From aab2ea3fe4946cdd2c462d9a89bcfa38ad49e902 Mon Sep 17 00:00:00 2001
From: ffalor <35144141+ffalor@users.noreply.github.com>
Date: Mon, 28 Oct 2024 17:34:12 -0500
Subject: [PATCH] regenerate using 10/28/24 spec
fix detects.Alert
add intel.cvss models
fix missing intel.cvss models
add missing fields to detects.ExternalAlert type
wip
wip
wip
wip
wip
---
falcon/client/a_s_p_m/aspm_client.go | 959 ++++++
.../create_executor_node_parameters.go | 150 +
.../a_s_p_m/create_executor_node_responses.go | 742 +++++
.../a_s_p_m/create_integration_parameters.go | 150 +
.../a_s_p_m/create_integration_responses.go | 742 +++++
.../create_integration_task_parameters.go | 150 +
.../create_integration_task_responses.go | 742 +++++
.../delete_executor_node_parameters.go | 149 +
.../a_s_p_m/delete_executor_node_responses.go | 729 +++++
.../a_s_p_m/delete_integration_parameters.go | 149 +
.../a_s_p_m/delete_integration_responses.go | 729 +++++
.../delete_integration_task_parameters.go | 149 +
.../delete_integration_task_responses.go | 729 +++++
.../client/a_s_p_m/delete_tags_parameters.go | 150 +
.../client/a_s_p_m/delete_tags_responses.go | 845 +++++
.../a_s_p_m/execute_query_parameters.go | 157 +
.../client/a_s_p_m/execute_query_responses.go | 858 +++++
.../a_s_p_m/get_executor_nodes_parameters.go | 185 ++
.../a_s_p_m/get_executor_nodes_responses.go | 742 +++++
.../get_integration_tasks_parameters.go | 192 ++
.../get_integration_tasks_responses.go | 742 +++++
.../get_integration_types_parameters.go | 128 +
.../get_integration_types_responses.go | 626 ++++
.../a_s_p_m/get_integrations_parameters.go | 192 ++
.../a_s_p_m/get_integrations_responses.go | 742 +++++
.../get_service_violation_types_parameters.go | 150 +
.../get_service_violation_types_responses.go | 858 +++++
.../a_s_p_m/get_services_count_parameters.go | 150 +
.../a_s_p_m/get_services_count_responses.go | 729 +++++
falcon/client/a_s_p_m/get_tags_parameters.go | 296 ++
falcon/client/a_s_p_m/get_tags_responses.go | 742 +++++
.../run_integration_task_parameters.go | 201 ++
.../a_s_p_m/run_integration_task_responses.go | 742 +++++
.../service_now_get_deployments_parameters.go | 285 ++
.../service_now_get_deployments_responses.go | 742 +++++
.../service_now_get_services_parameters.go | 285 ++
.../service_now_get_services_responses.go | 742 +++++
.../update_executor_node_parameters.go | 150 +
.../a_s_p_m/update_executor_node_responses.go | 742 +++++
.../a_s_p_m/update_integration_parameters.go | 170 +
.../a_s_p_m/update_integration_responses.go | 742 +++++
.../update_integration_task_parameters.go | 170 +
.../update_integration_task_responses.go | 742 +++++
...upsert_business_applications_parameters.go | 150 +
.../upsert_business_applications_responses.go | 845 +++++
.../client/a_s_p_m/upsert_tags_parameters.go | 150 +
.../client/a_s_p_m/upsert_tags_responses.go | 845 +++++
falcon/client/alerts/alerts_client.go | 8 +-
.../get_queries_alerts_v1_parameters.go | 2 +-
.../patch_entities_alerts_v2_parameters.go | 30 +-
falcon/client/alerts/query_v2_parameters.go | 2 +-
falcon/client/alerts/update_v3_parameters.go | 30 +-
.../api_integrations_client.go | 42 +-
.../execute_command_proxy_parameters.go | 150 +
.../execute_command_proxy_responses.go | 740 +++++
.../cb_exclusions_create_v1_responses.go | 116 +
.../cb_exclusions_delete_v1_responses.go | 116 +
.../cb_exclusions_get_v1_responses.go | 116 +
.../cb_exclusions_query_v1_responses.go | 116 +
.../cb_exclusions_update_v1_responses.go | 116 +
.../certificates_get_v1_responses.go | 116 +
...ggregate_cluster_assessments_parameters.go | 6 +-
...led_containers_by_rules_path_parameters.go | 20 +-
...containers_count_by_severity_parameters.go | 14 +-
..._failed_images_by_rules_path_parameters.go | 20 +-
...led_images_count_by_severity_parameters.go | 22 +-
...ate_failed_rules_by_clusters_parameters.go | 22 +-
...egate_failed_rules_by_images_parameters.go | 20 +-
...iled_rules_count_by_severity_parameters.go | 20 +-
..._aggregate_image_assessments_parameters.go | 20 +-
..._aggregate_rules_assessments_parameters.go | 18 +-
...xt_aggregate_rules_by_status_parameters.go | 22 +-
.../get_rule_details_responses.go | 116 +
.../aggregate_image_count_parameters.go | 2 +-
.../combined_base_images_parameters.go | 163 +
.../combined_base_images_responses.go | 626 ++++
...ombined_image_issues_summary_parameters.go | 35 +
..._image_vulnerability_summary_parameters.go | 35 +
.../container_images_client.go | 120 +
.../create_base_images_entities_parameters.go | 150 +
.../create_base_images_entities_responses.go | 626 ++++
.../delete_base_images_parameters.go | 175 +
.../delete_base_images_responses.go | 626 ++++
.../get_combined_images_parameters.go | 2 +-
.../read_combined_images_export_parameters.go | 4 +-
...ined_vulnerabilities_details_parameters.go | 2 +-
...ead_combined_vulnerabilities_parameters.go | 2 +-
..._count_by_actively_exploited_parameters.go | 2 +-
...bility_count_by_c_p_s_rating_parameters.go | 2 +-
...ility_count_by_c_v_s_s_score_parameters.go | 2 +-
...nerability_count_by_severity_parameters.go | 2 +-
.../read_vulnerability_count_parameters.go | 2 +-
.../crowd_strike_api_specification_client.go | 40 +
...s_account_scripts_attachment_parameters.go | 104 +
.../create_rule_group_mixin0_responses.go | 116 +
.../custom_ioa/create_rule_responses.go | 116 +
.../delete_rule_groups_mixin0_responses.go | 116 +
.../custom_ioa/delete_rules_responses.go | 116 +
.../custom_ioa/get_patterns_responses.go | 116 +
.../get_platforms_mixin0_responses.go | 116 +
.../get_rule_groups_mixin0_responses.go | 116 +
.../custom_ioa/get_rule_types_responses.go | 116 +
.../custom_ioa/get_rules_get_responses.go | 116 +
.../custom_ioa/get_rules_mixin0_responses.go | 116 +
.../custom_ioa/query_patterns_responses.go | 116 +
.../query_platforms_mixin0_responses.go | 116 +
.../query_rule_groups_full_parameters.go | 2 +-
.../query_rule_groups_full_responses.go | 116 +
.../query_rule_groups_mixin0_parameters.go | 2 +-
.../query_rule_groups_mixin0_responses.go | 116 +
.../custom_ioa/query_rule_types_responses.go | 116 +
.../query_rules_mixin0_parameters.go | 2 +-
.../query_rules_mixin0_responses.go | 116 +
.../update_rule_group_mixin0_responses.go | 116 +
.../custom_ioa/update_rules_responses.go | 116 +
.../custom_ioa/update_rules_v2_responses.go | 116 +
.../client/custom_ioa/validate_responses.go | 232 ++
.../custom_storage/custom_storage_client.go | 240 ++
.../client/custom_storage/delete_responses.go | 116 +
.../delete_versioned_object_parameters.go | 221 ++
.../delete_versioned_object_responses.go | 510 +++
falcon/client/custom_storage/get_responses.go | 116 +
...et_versioned_object_metadata_parameters.go | 195 ++
...get_versioned_object_metadata_responses.go | 510 +++
.../get_versioned_object_parameters.go | 195 ++
.../get_versioned_object_responses.go | 512 +++
.../list_objects_by_version_parameters.go | 249 ++
.../list_objects_by_version_responses.go | 510 +++
.../client/custom_storage/list_responses.go | 116 +
.../custom_storage/metadata_responses.go | 116 +
.../put_object_by_version_parameters.go | 243 ++
.../put_object_by_version_responses.go | 510 +++
.../search_objects_by_version_parameters.go | 285 ++
.../search_objects_by_version_responses.go | 510 +++
.../client/custom_storage/search_responses.go | 116 +
.../client/custom_storage/upload_responses.go | 116 +
...s_account_scripts_attachment_parameters.go | 104 +
.../get_horizon_d4_c_scripts_responses.go | 116 +
.../client/datascanner/datascanner_client.go | 2 +-
.../update_data_scanner_tasks_parameters.go | 22 +
.../delivery_settings_client.go | 119 +
.../get_delivery_settings_parameters.go | 128 +
.../get_delivery_settings_responses.go | 626 ++++
.../post_delivery_settings_parameters.go | 150 +
.../post_delivery_settings_responses.go | 626 ++++
.../downloads_api/download_file_parameters.go | 183 ++
.../downloads_api/download_file_responses.go | 742 +++++
.../downloads_api/downloads_api_client.go | 119 +
.../enumerate_file_parameters.go | 333 ++
.../downloads_api/enumerate_file_responses.go | 742 +++++
...bined_ecosystem_subsidiaries_parameters.go | 282 ++
...mbined_ecosystem_subsidiaries_responses.go | 626 ++++
.../delete_external_assets_parameters.go | 196 ++
.../delete_external_assets_responses.go | 626 ++++
.../exposure_management_client.go | 162 +-
.../get_ecosystem_subsidiaries_parameters.go | 209 ++
.../get_ecosystem_subsidiaries_responses.go | 626 ++++
...query_ecosystem_subsidiaries_parameters.go | 282 ++
.../query_ecosystem_subsidiaries_responses.go | 626 ++++
.../aggregate_alerts_responses.go | 116 +
.../aggregate_allow_list_responses.go | 116 +
.../aggregate_block_list_responses.go | 116 +
.../aggregate_detections_responses.go | 116 +
...egate_device_count_collection_responses.go | 116 +
.../aggregate_escalations_responses.go | 116 +
.../aggregate_f_c_incidents_responses.go | 116 +
.../aggregate_remediations_responses.go | 116 +
..._collection_queries_by_filter_responses.go | 116 +
.../query_alert_ids_by_filter_responses.go | 116 +
.../query_allow_list_filter_responses.go | 116 +
.../query_block_list_filter_responses.go | 116 +
...query_detection_ids_by_filter_responses.go | 116 +
.../query_escalations_filter_responses.go | 116 +
.../query_incident_ids_by_filter_responses.go | 116 +
.../query_remediations_filter_responses.go | 116 +
.../delete_registry_entities_responses.go | 116 +
.../download_export_file_parameters.go | 156 +
.../download_export_file_responses.go | 624 ++++
.../falcon_container_image_client.go | 160 +
.../launch_export_job_parameters.go | 172 +
.../launch_export_job_responses.go | 626 ++++
.../query_export_jobs_parameters.go | 165 +
.../query_export_jobs_responses.go | 626 ++++
.../read_export_jobs_parameters.go | 175 +
.../read_export_jobs_responses.go | 626 ++++
.../falconx_sandbox/submit_parameters.go | 34 +
.../aggregate_events_responses.go | 116 +
.../aggregate_policy_rules_responses.go | 116 +
.../aggregate_rules_responses.go | 116 +
.../create_network_locations_responses.go | 116 +
.../create_rule_group_responses.go | 116 +
.../create_rule_group_validation_responses.go | 116 +
.../delete_network_locations_responses.go | 116 +
.../delete_rule_groups_responses.go | 116 +
.../get_events_responses.go | 116 +
.../get_firewall_fields_responses.go | 116 +
...get_network_locations_details_responses.go | 116 +
.../get_network_locations_responses.go | 116 +
.../get_platforms_responses.go | 116 +
.../get_policy_containers_responses.go | 116 +
.../get_rule_groups_responses.go | 116 +
.../get_rules_responses.go | 116 +
.../query_events_responses.go | 116 +
.../query_firewall_fields_responses.go | 116 +
.../query_network_locations_responses.go | 116 +
.../query_platforms_responses.go | 116 +
.../query_policy_rules_responses.go | 116 +
.../query_rule_groups_responses.go | 116 +
.../query_rules_responses.go | 116 +
...te_network_locations_metadata_responses.go | 116 +
..._network_locations_precedence_responses.go | 116 +
.../update_network_locations_responses.go | 116 +
.../update_policy_container_responses.go | 116 +
.../update_policy_container_v1_responses.go | 116 +
.../update_rule_group_responses.go | 116 +
.../update_rule_group_validation_responses.go | 116 +
.../upsert_network_locations_responses.go | 116 +
.../validate_filepath_pattern_responses.go | 116 +
...rches_dynamic_execute_alt_v1_parameters.go | 25 +
...aved_searches_execute_alt_v1_parameters.go | 25 +
.../execute_dynamic_parameters.go | 25 +
.../foundry_logscale/execute_parameters.go | 25 +
.../foundry_logscale_client.go | 4 +-
...aved_searches_execute_alt_v1_parameters.go | 62 +
.../get_search_results_parameters.go | 62 +
falcon/client/handle/handle_client.go | 79 +
falcon/client/handle/handle_parameters.go | 128 +
falcon/client/handle/handle_responses.go | 392 +++
.../get_host_migration_i_ds_v1_parameters.go | 2 +-
.../get_migration_i_ds_v1_parameters.go | 2 +-
.../hosts/get_online_state_v1_responses.go | 116 +
...ery_devices_by_filter_scroll_parameters.go | 4 +-
.../get_lookup_from_package_v1_parameters.go | 195 ++
.../get_lookup_from_package_v1_responses.go | 613 ++++
...om_package_with_namespace_v1_parameters.go | 217 ++
...rom_package_with_namespace_v1_responses.go | 613 ++++
.../get_lookup_v1_parameters.go | 173 +
.../get_lookup_v1_responses.go | 613 ++++
.../get_search_status_v1_parameters.go | 173 +
.../get_search_status_v1_responses.go | 729 +++++
.../humio_auth_proxy_client.go | 319 ++
.../start_search_v1_parameters.go | 151 +
.../start_search_v1_responses.go | 729 +++++
.../stop_search_v1_parameters.go | 173 +
.../stop_search_v1_responses.go | 613 ++++
.../upload_lookup_v1_parameters.go | 151 +
.../upload_lookup_v1_responses.go | 729 +++++
.../get_sensor_aggregates_responses.go | 116 +
.../get_sensor_details_responses.go | 116 +
.../query_sensors_by_filter_responses.go | 116 +
...pt_proxy_delete_policy_rules_parameters.go | 197 ++
...mpt_proxy_delete_policy_rules_responses.go | 497 +++
...eempt_proxy_get_policy_rules_parameters.go | 197 ++
...proxy_get_policy_rules_query_parameters.go | 254 ++
..._proxy_get_policy_rules_query_responses.go | 497 +++
...reempt_proxy_get_policy_rules_responses.go | 497 +++
...pi_preempt_proxy_post_graphql_responses.go | 116 +
...empt_proxy_post_policy_rules_parameters.go | 172 +
...eempt_proxy_post_policy_rules_responses.go | 497 +++
.../identity_protection_client.go | 160 +
.../intel/get_malware_entities_responses.go | 116 +
.../get_malware_mitre_report_parameters.go | 208 ++
.../get_malware_mitre_report_responses.go | 497 +++
.../intel/get_mitre_report_responses.go | 116 +
falcon/client/intel/intel_client.go | 40 +
.../intel/post_mitre_attacks_responses.go | 116 +
...ery_mitre_attacks_for_malware_responses.go | 116 +
.../intel/query_mitre_attacks_responses.go | 116 +
.../query_i_o_a_exclusions_v1_parameters.go | 70 +-
falcon/client/ioc/action_get_v1_responses.go | 116 +
.../client/ioc/action_query_v1_responses.go | 116 +
.../ioc/get_indicators_report_responses.go | 116 +
.../ioc/indicator_aggregate_v1_responses.go | 116 +
.../ioc/indicator_combined_v1_responses.go | 116 +
.../ioc/indicator_create_v1_responses.go | 116 +
.../ioc/indicator_delete_v1_responses.go | 116 +
...indicator_get_device_count_v1_responses.go | 116 +
...dicator_get_devices_ran_on_v1_responses.go | 116 +
...cator_get_processes_ran_on_v1_responses.go | 116 +
.../client/ioc/indicator_get_v1_responses.go | 116 +
.../ioc/indicator_search_v1_responses.go | 116 +
.../ioc/indicator_update_v1_responses.go | 116 +
.../client/ioc/ioc_type_query_v1_responses.go | 116 +
.../client/ioc/platform_query_v1_responses.go | 116 +
.../client/ioc/severity_query_v1_responses.go | 116 +
falcon/client/iocs/devices_count_responses.go | 116 +
.../client/iocs/devices_ran_on_responses.go | 116 +
.../iocs/entities_processes_responses.go | 116 +
.../client/iocs/processes_ran_on_responses.go | 116 +
.../cluster_combined_parameters.go | 2 +-
.../cluster_count_parameters.go | 2 +-
..._by_kubernetes_version_count_parameters.go | 2 +-
.../clusters_by_status_count_parameters.go | 2 +-
.../container_combined_parameters.go | 2 +-
.../container_count_parameters.go | 2 +-
...age_detections_count_by_date_parameters.go | 2 +-
...ontainer_images_by_most_used_parameters.go | 2 +-
...rabilities_by_severity_count_parameters.go | 2 +-
...ntainers_by_date_range_count_parameters.go | 2 +-
.../containers_sensor_coverage_parameters.go | 2 +-
.../deployment_combined_parameters.go | 2 +-
.../deployment_count_parameters.go | 2 +-
...stinct_container_image_count_parameters.go | 2 +-
...y_container_run_time_version_parameters.go | 2 +-
.../group_containers_by_managed_parameters.go | 2 +-
.../kubernetes_protection_client.go | 2 +-
.../node_combined_parameters.go | 2 +-
.../node_count_parameters.go | 2 +-
.../nodes_by_cloud_count_parameters.go | 2 +-
...ntainer_engine_version_count_parameters.go | 2 +-
.../nodes_by_date_range_count_parameters.go | 2 +-
.../pod_combined_parameters.go | 2 +-
.../pod_count_parameters.go | 2 +-
.../read_namespace_count_parameters.go | 2 +-
...erable_container_image_count_parameters.go | 2 +-
.../aggregate_cases_responses.go | 116 +
.../mssp/add_c_id_group_members_responses.go | 116 +
falcon/client/mssp/add_role_responses.go | 116 +
.../mssp/add_user_group_members_responses.go | 116 +
.../mssp/create_c_id_groups_responses.go | 116 +
.../mssp/create_user_groups_responses.go | 116 +
.../delete_c_id_group_members_responses.go | 116 +
.../delete_c_id_group_members_v2_responses.go | 116 +
.../mssp/delete_c_id_groups_responses.go | 116 +
.../delete_user_group_members_responses.go | 116 +
.../mssp/delete_user_groups_responses.go | 116 +
falcon/client/mssp/deleted_roles_responses.go | 116 +
.../mssp/get_c_id_group_by_id_responses.go | 116 +
.../mssp/get_c_id_group_by_id_v2_responses.go | 116 +
.../get_c_id_group_members_by_responses.go | 116 +
.../get_c_id_group_members_by_v2_responses.go | 116 +
falcon/client/mssp/get_children_responses.go | 116 +
.../client/mssp/get_children_v2_responses.go | 116 +
.../client/mssp/get_roles_by_id_responses.go | 116 +
.../get_user_group_members_by_id_responses.go | 116 +
...t_user_group_members_by_id_v2_responses.go | 116 +
.../mssp/get_user_groups_by_id_responses.go | 116 +
.../get_user_groups_by_id_v2_responses.go | 116 +
.../query_c_id_group_members_responses.go | 116 +
.../mssp/query_c_id_groups_responses.go | 116 +
.../client/mssp/query_children_responses.go | 116 +
falcon/client/mssp/query_roles_responses.go | 116 +
.../query_user_group_members_responses.go | 116 +
.../mssp/query_user_groups_responses.go | 116 +
.../mssp/update_c_id_groups_responses.go | 116 +
.../mssp/update_user_groups_responses.go | 116 +
...gate_query_scan_host_metadata_responses.go | 116 +
.../client/ods/aggregate_scans_responses.go | 116 +
.../aggregate_scheduled_scans_responses.go | 116 +
falcon/client/ods/cancel_scans_responses.go | 116 +
falcon/client/ods/create_scan_responses.go | 116 +
.../ods/delete_scheduled_scans_responses.go | 116 +
.../get_malicious_files_by_ids_responses.go | 116 +
...get_scan_host_metadata_by_ids_responses.go | 116 +
.../ods/get_scans_by_scan_ids_responses.go | 116 +
.../ods/get_scans_by_scan_ids_v2_responses.go | 116 +
...t_scheduled_scans_by_scan_ids_responses.go | 116 +
.../ods/query_malicious_files_responses.go | 116 +
.../ods/query_scan_host_metadata_responses.go | 116 +
falcon/client/ods/query_scans_responses.go | 116 +
.../ods/query_scheduled_scans_responses.go | 116 +
falcon/client/ods/schedule_scan_responses.go | 116 +
...istration_aws_create_account_parameters.go | 150 +
...gistration_aws_create_account_responses.go | 742 +++++
...istration_aws_delete_account_parameters.go | 220 ++
...gistration_aws_delete_account_responses.go | 742 +++++
...egistration_aws_get_accounts_parameters.go | 175 +
...registration_aws_get_accounts_responses.go | 742 +++++
...istration_aws_query_accounts_parameters.go | 414 +++
...gistration_aws_query_accounts_responses.go | 742 +++++
...istration_aws_update_account_parameters.go | 150 +
...gistration_aws_update_account_responses.go | 742 +++++
...ration_aws_validate_accounts_parameters.go | 270 ++
...tration_aws_validate_accounts_responses.go | 626 ++++
falcon/client/operations/operations_client.go | 284 ++
...ates_detections_global_counts_responses.go | 116 +
...aggregates_events_collections_responses.go | 116 +
.../aggregates_events_responses.go | 116 +
...gates_incidents_global_counts_responses.go | 116 +
...ates_o_w_events_global_counts_responses.go | 116 +
.../action_update_count_responses.go | 116 +
.../get_aggregate_files_responses.go | 116 +
.../get_quarantine_files_responses.go | 116 +
.../query_quarantine_files_responses.go | 116 +
.../update_qf_by_query_responses.go | 116 +
...te_quarantined_detects_by_ids_responses.go | 116 +
.../get_scans_aggregates_responses.go | 116 +
.../quick_scan_pro/delete_file_parameters.go | 175 +
.../quick_scan_pro/delete_file_responses.go | 510 +++
.../delete_scan_result_parameters.go | 175 +
.../delete_scan_result_responses.go | 510 +++
.../get_scan_result_parameters.go | 175 +
.../get_scan_result_responses.go | 510 +++
.../quick_scan_pro/launch_scan_parameters.go | 150 +
.../quick_scan_pro/launch_scan_responses.go | 510 +++
.../query_scan_results_parameters.go | 272 ++
.../query_scan_results_responses.go | 510 +++
.../quick_scan_pro/quick_scan_pro_client.go | 279 ++
.../upload_file_mixin0_mixin93_parameters.go | 194 ++
.../upload_file_mixin0_mixin93_responses.go | 510 +++
.../r_t_r_aggregate_sessions_responses.go | 116 +
...tive_responder_command_status_responses.go | 116 +
.../r_t_r_check_command_status_responses.go | 116 +
.../r_t_r_delete_file_responses.go | 116 +
.../r_t_r_delete_file_v2_responses.go | 116 +
.../r_t_r_delete_queued_session_responses.go | 116 +
.../r_t_r_delete_session_responses.go | 116 +
...cute_active_responder_command_responses.go | 116 +
.../r_t_r_execute_command_responses.go | 116 +
.../r_t_r_list_all_sessions_responses.go | 116 +
.../r_t_r_list_files_responses.go | 116 +
.../r_t_r_list_files_v2_responses.go | 116 +
.../r_t_r_list_queued_sessions_responses.go | 116 +
.../r_t_r_list_sessions_responses.go | 116 +
..._r_check_admin_command_status_responses.go | 116 +
.../r_t_r_create_put_files_responses.go | 116 +
.../r_t_r_create_scripts_responses.go | 116 +
.../r_t_r_delete_put_files_responses.go | 116 +
.../r_t_r_delete_scripts_responses.go | 116 +
.../r_t_r_execute_admin_command_responses.go | 116 +
.../r_t_r_get_falcon_scripts_responses.go | 116 +
.../r_t_r_get_put_files_responses.go | 116 +
.../r_t_r_get_put_files_v2_responses.go | 116 +
.../r_t_r_get_scripts_responses.go | 116 +
.../r_t_r_get_scripts_v2_responses.go | 116 +
.../r_t_r_list_falcon_scripts_responses.go | 116 +
.../r_t_r_list_put_files_responses.go | 116 +
.../r_t_r_list_scripts_responses.go | 116 +
.../r_t_r_update_scripts_responses.go | 116 +
.../r_t_r_audit_sessions_responses.go | 116 +
falcon/client/recon/recon_client.go | 2 +-
.../report_executions_client.go | 2 +-
.../report_executions_get_responses.go | 116 +
.../report_executions_query_responses.go | 116 +
.../report_executions_retry_responses.go | 116 +
.../scheduled_reports/execute_responses.go | 116 +
.../query_by_id_responses.go | 116 +
.../scheduled_reports/query_responses.go | 116 +
...wnload_sensor_installer_by_id_responses.go | 116 +
...oad_sensor_installer_by_id_v2_responses.go | 116 +
...ed_sensor_installers_by_query_responses.go | 116 +
...sensor_installers_by_query_v2_responses.go | 116 +
...et_sensor_installers_by_query_responses.go | 116 +
...sensor_installers_by_query_v2_responses.go | 116 +
...or_installers_c_c_id_by_query_responses.go | 116 +
...et_sensor_installers_entities_responses.go | 116 +
...sensor_installers_entities_v2_responses.go | 116 +
.../get_sensor_usage_weekly_parameters.go | 174 +
.../get_sensor_usage_weekly_responses.go | 626 ++++
.../sensor_usage_api_client.go | 79 +
.../get_remediations_v2_responses.go | 116 +
.../get_vulnerabilities_responses.go | 116 +
.../combined_edges_get_responses.go | 116 +
.../combined_ran_on_get_responses.go | 116 +
.../combined_summary_get_responses.go | 116 +
.../queries_edgetypes_get_responses.go | 116 +
.../user_management/create_user_responses.go | 116 +
.../user_management/delete_user_responses.go | 116 +
.../grant_user_role_ids_responses.go | 116 +
.../retrieve_emails_by_c_id_responses.go | 116 +
.../retrieve_user_responses.go | 116 +
...retrieve_user_u_ui_ds_by_c_id_responses.go | 116 +
.../retrieve_user_uuid_responses.go | 116 +
.../revoke_user_role_ids_responses.go | 116 +
.../user_management/update_user_responses.go | 116 +
falcon/client/workflows/execute_responses.go | 116 +
falcon/client/workflows/workflows_client.go | 2 +-
.../get_assessment_v1_responses.go | 116 +
.../get_assessments_by_score_v1_responses.go | 116 +
.../get_audit_v1_responses.go | 116 +
falcon/models/activities_activity.go | 80 +
falcon/models/activity.go | 160 +
.../alerts_container_alerts_count_value.go | 124 +-
falcon/models/api_hourly_average_response.go | 235 ++
.../api_m_f_a_resource_i_ds_response.go | 191 ++
.../api_m_f_a_resource_i_ds_response_next.go | 11 +
falcon/models/api_meta_info.go | 10 +-
falcon/models/api_object_metadata.go | 3 +
falcon/models/api_paging.go | 62 -
falcon/models/api_response_pagination.go | 74 +
falcon/models/api_weekly_average_response.go | 235 ++
falcon/models/common_count_as_resource.go | 17 -
falcon/models/common_count_response.go | 124 +-
falcon/models/common_entities_response.go | 190 ++
.../common_entities_response_resources.go | 11 +
falcon/models/custom_type3352885422.go | 11 +
falcon/models/definitions_definition_ext.go | 9 +
falcon/models/destination.go | 160 +
.../detections_api_assessment_detections.go | 124 +-
.../detections_api_combined_detections.go | 124 +-
.../models/detections_api_detections_count.go | 124 +-
falcon/models/detects_alert.go | 2896 ++++++++++++++++-
.../models/device_mapped_device_policies.go | 153 +
.../domain_a_w_s_account_resource_metadata.go | 68 +
.../domain_api_compliance_control_v1.go | 88 +
.../domain_api_compliance_mapping_v1.go | 156 +
falcon/models/domain_api_entity_matched_v1.go | 56 -
...omain_api_evaluation_logic_host_info_v1.go | 124 -
.../domain_api_evaluation_logic_item_v1.go | 20 +-
.../models/domain_api_evaluation_logic_v1.go | 72 +-
falcon/models/domain_api_finding_rule_v1.go | 62 +
falcon/models/domain_api_remediation_info.go | 56 +
falcon/models/domain_api_remediation_v2.go | 6 +
falcon/models/domain_api_rule_details_v1.go | 70 +-
.../models/domain_api_vulnerability_app_v2.go | 17 +
...omain_api_vulnerability_extended_app_v2.go | 71 +
falcon/models/domain_assessment_paging.go | 94 +
.../models/domain_case_creation_request_v2.go | 34 +
.../models/domain_cloud_a_w_s_account_v1.go | 564 ++++
falcon/models/domain_cloud_condition.go | 153 +
falcon/models/domain_compliance.go | 62 +
falcon/models/domain_control.go | 136 +
falcon/models/domain_control_benchmark.go | 53 +
...ain_create_submission_v1_error_response.go | 170 +
...cover_api_application_browser_extension.go | 3 +
falcon/models/domain_discover_api_host.go | 3 +
...in_external_asset_api_delete_request_v1.go | 50 +
falcon/models/domain_external_export_job.go | 156 +
falcon/models/domain_feature_permission.go | 141 +
falcon/models/domain_feature_status.go | 88 +
...cosystem_subsidiaries_entities_response.go | 173 +
.../domain_fem_ecosystem_subsidiaries_meta.go | 125 +
...m_ecosystem_subsidiaries_query_response.go | 125 +
..._ecosystem_subsidiaries_response_fields.go | 171 +
.../models/domain_fem_ecosystem_subsidiary.go | 218 ++
falcon/models/domain_meta_info.go | 104 +-
falcon/models/domain_news_document.go | 3 +
falcon/models/domain_platform.go | 12 +-
falcon/models/domain_policy_info.go | 133 +-
falcon/models/domain_product.go | 105 -
falcon/models/domain_product_features.go | 88 +
.../models/domain_product_features_status.go | 141 +
falcon/models/domain_product_permission.go | 141 +
falcon/models/domain_query_response.go | 14 +-
falcon/models/domain_report_params.go | 58 +-
falcon/models/domain_scan.go | 6 +-
falcon/models/domain_scan_v2.go | 3 -
falcon/models/domain_scheduled_report_v1.go | 3 +
falcon/models/domain_spotlight_params.go | 105 +
falcon/models/domain_vulnerability.go | 100 +-
falcon/models/domain_x_d_r_params.go | 17 +
...indicators_drift_indicators_count_value.go | 124 +-
...indicators_drift_indicators_field_value.go | 124 +-
falcon/models/entities_o_d_s_scan_request.go | 17 -
falcon/models/entities_rolling_average.go | 229 ++
falcon/models/executions_execution_result.go | 3 +
falcon/models/executions_loop_result.go | 3 +
.../models/executions_loop_result_outputs.go | 11 +
falcon/models/exports_exports_response.go | 235 ++
.../models/exports_launch_export_request.go | 108 +
.../models/exports_launch_export_response.go | 188 ++
falcon/models/falconx_report_v1.go | 3 +
falcon/models/graph_condition.go | 3 +
falcon/models/graph_end.go | 3 +
falcon/models/graph_sub_model.go | 2 +-
falcon/models/intel_c_v_s_sv2.go | 71 +
falcon/models/intel_c_v_s_sv3.go | 77 +
.../jsonschema_condition_group_fields.go | 3 +
falcon/models/jsonschema_duration_option.go | 88 +
falcon/models/jsonschema_sub_schema.go | 54 +
falcon/models/jsonschema_ui_extensions.go | 136 +
.../models/jsonschema_workflow_extensions.go | 3 +
.../k8sioms_kubernetes_i_o_m_count_value.go | 124 +-
.../k8sioms_kubernetes_i_o_m_field_value.go | 124 +-
falcon/models/messages_case.go | 51 +
.../models/models_api_customer_and_image.go | 86 +
.../models_api_image_combined_export.go | 51 +
falcon/models/models_base_image_request.go | 62 +
falcon/models/models_cluster.go | 34 +
falcon/models/models_cluster_info.go | 3 +
falcon/models/models_container.go | 822 ++++-
falcon/models/models_container_port_list.go | 27 -
falcon/models/models_container_ports.go | 27 +
.../models_create_base_images_request.go | 124 +
falcon/models/models_delivery_settings.go | 233 ++
...odels_delivery_settings_entity_response.go | 235 ++
.../models/models_delivery_settings_input.go | 88 +
.../models_delivery_settings_request.go | 124 +
falcon/models/models_deployment.go | 451 ++-
falcon/models/models_deployment_agents.go | 27 +
.../models/models_ext_api_image_combined.go | 17 +
falcon/models/models_image_details.go | 122 +
falcon/models/models_node.go | 34 +
falcon/models/models_pod.go | 34 +
.../models/models_policy_entity_response.go | 124 +-
...models_policy_exclusion_entity_response.go | 124 +-
.../models_policy_group_entity_response.go | 124 +-
falcon/models/models_vulnerability_product.go | 143 +
falcon/models/models_vulnerability_type.go | 2 +-
falcon/models/msa_aggregation_result.go | 6 +-
...rameter_activity_config_parameter_value.go | 3 +
.../parameter_condition_field_parameter.go | 3 +
...ter_condition_field_provision_parameter.go | 17 +
.../patterndisposition_pattern_disposition.go | 102 +
.../quickscanpro_delete_file_response.go | 188 ++
falcon/models/quickscanpro_file_result.go | 136 +
.../quickscanpro_file_upload_resource.go | 74 +
.../quickscanpro_file_upload_response.go | 286 ++
.../quickscanpro_get_scan_result_resource.go | 174 +
.../quickscanpro_get_scan_result_response.go | 235 ++
.../quickscanpro_launch_scan_request.go | 124 +
...ickscanpro_launch_scan_request_resource.go | 71 +
.../quickscanpro_launch_scan_resource.go | 110 +
.../quickscanpro_launch_scan_response.go | 286 ++
.../models/quickscanpro_m_i_t_r_e_attack.go | 127 +
.../quickscanpro_m_i_t_r_e_attack_parent.go | 56 +
...uickscanpro_query_scan_results_response.go | 188 ++
falcon/models/quickscanpro_quota_resource.go | 91 +
falcon/models/quickscanpro_scan_metadata.go | 132 +
falcon/models/quickscanpro_scan_result.go | 330 ++
falcon/models/quickscanpro_url_result.go | 133 +
.../registration_static_scripts_response.go | 6 +-
...rest_a_w_s_account_create_request_extv1.go | 124 +
...st_a_w_s_account_create_response_ext_v1.go | 235 ++
falcon/models/rest_a_w_s_account_validated.go | 267 ++
.../rest_a_w_s_account_validation_response.go | 235 ++
...t_account_product_upsert_request_ext_v1.go | 88 +
.../rest_cloud_a_w_s_account_create_ext_v1.go | 151 +
.../sadomain_typosquatting_component.go | 51 +
.../sadomain_typosquatting_subdomain.go | 162 +
falcon/models/source_endpoint.go | 160 +
falcon/models/source_user.go | 160 +
falcon/models/types_action_run.go | 6 -
falcon/models/types_executor_node.go | 7 +-
.../types_generic_user_facing_request.go | 6 -
.../types_get_services_related_entity.go | 6 +-
falcon/models/types_integration.go | 57 +-
falcon/models/types_integration_task.go | 57 +-
falcon/models/types_policy_rules_condition.go | 53 +
.../models/types_policy_rules_create_body.go | 348 ++
.../types_run_integration_task_request.go | 6 -
falcon/models/types_unique_tag_entry.go | 4 +-
.../types_update_integration_task_request.go | 109 +
falcon/models/v2_condition.go | 19 +-
...n_parameters.go => v2_condition_groups.go} | 41 +-
falcon/models/v2_definition.go | 9 +
falcon/models/v2_loop.go | 3 +
falcon/models/v2_model.go | 3 +
falcon/models/v2_parameters.go | 29 +-
specs/transformation.jq | 371 ++-
640 files changed, 109841 insertions(+), 1946 deletions(-)
create mode 100644 falcon/client/a_s_p_m/aspm_client.go
create mode 100644 falcon/client/a_s_p_m/create_executor_node_parameters.go
create mode 100644 falcon/client/a_s_p_m/create_executor_node_responses.go
create mode 100644 falcon/client/a_s_p_m/create_integration_parameters.go
create mode 100644 falcon/client/a_s_p_m/create_integration_responses.go
create mode 100644 falcon/client/a_s_p_m/create_integration_task_parameters.go
create mode 100644 falcon/client/a_s_p_m/create_integration_task_responses.go
create mode 100644 falcon/client/a_s_p_m/delete_executor_node_parameters.go
create mode 100644 falcon/client/a_s_p_m/delete_executor_node_responses.go
create mode 100644 falcon/client/a_s_p_m/delete_integration_parameters.go
create mode 100644 falcon/client/a_s_p_m/delete_integration_responses.go
create mode 100644 falcon/client/a_s_p_m/delete_integration_task_parameters.go
create mode 100644 falcon/client/a_s_p_m/delete_integration_task_responses.go
create mode 100644 falcon/client/a_s_p_m/delete_tags_parameters.go
create mode 100644 falcon/client/a_s_p_m/delete_tags_responses.go
create mode 100644 falcon/client/a_s_p_m/execute_query_parameters.go
create mode 100644 falcon/client/a_s_p_m/execute_query_responses.go
create mode 100644 falcon/client/a_s_p_m/get_executor_nodes_parameters.go
create mode 100644 falcon/client/a_s_p_m/get_executor_nodes_responses.go
create mode 100644 falcon/client/a_s_p_m/get_integration_tasks_parameters.go
create mode 100644 falcon/client/a_s_p_m/get_integration_tasks_responses.go
create mode 100644 falcon/client/a_s_p_m/get_integration_types_parameters.go
create mode 100644 falcon/client/a_s_p_m/get_integration_types_responses.go
create mode 100644 falcon/client/a_s_p_m/get_integrations_parameters.go
create mode 100644 falcon/client/a_s_p_m/get_integrations_responses.go
create mode 100644 falcon/client/a_s_p_m/get_service_violation_types_parameters.go
create mode 100644 falcon/client/a_s_p_m/get_service_violation_types_responses.go
create mode 100644 falcon/client/a_s_p_m/get_services_count_parameters.go
create mode 100644 falcon/client/a_s_p_m/get_services_count_responses.go
create mode 100644 falcon/client/a_s_p_m/get_tags_parameters.go
create mode 100644 falcon/client/a_s_p_m/get_tags_responses.go
create mode 100644 falcon/client/a_s_p_m/run_integration_task_parameters.go
create mode 100644 falcon/client/a_s_p_m/run_integration_task_responses.go
create mode 100644 falcon/client/a_s_p_m/service_now_get_deployments_parameters.go
create mode 100644 falcon/client/a_s_p_m/service_now_get_deployments_responses.go
create mode 100644 falcon/client/a_s_p_m/service_now_get_services_parameters.go
create mode 100644 falcon/client/a_s_p_m/service_now_get_services_responses.go
create mode 100644 falcon/client/a_s_p_m/update_executor_node_parameters.go
create mode 100644 falcon/client/a_s_p_m/update_executor_node_responses.go
create mode 100644 falcon/client/a_s_p_m/update_integration_parameters.go
create mode 100644 falcon/client/a_s_p_m/update_integration_responses.go
create mode 100644 falcon/client/a_s_p_m/update_integration_task_parameters.go
create mode 100644 falcon/client/a_s_p_m/update_integration_task_responses.go
create mode 100644 falcon/client/a_s_p_m/upsert_business_applications_parameters.go
create mode 100644 falcon/client/a_s_p_m/upsert_business_applications_responses.go
create mode 100644 falcon/client/a_s_p_m/upsert_tags_parameters.go
create mode 100644 falcon/client/a_s_p_m/upsert_tags_responses.go
create mode 100644 falcon/client/api_integrations/execute_command_proxy_parameters.go
create mode 100644 falcon/client/api_integrations/execute_command_proxy_responses.go
create mode 100644 falcon/client/container_images/combined_base_images_parameters.go
create mode 100644 falcon/client/container_images/combined_base_images_responses.go
create mode 100644 falcon/client/container_images/create_base_images_entities_parameters.go
create mode 100644 falcon/client/container_images/create_base_images_entities_responses.go
create mode 100644 falcon/client/container_images/delete_base_images_parameters.go
create mode 100644 falcon/client/container_images/delete_base_images_responses.go
create mode 100644 falcon/client/custom_storage/delete_versioned_object_parameters.go
create mode 100644 falcon/client/custom_storage/delete_versioned_object_responses.go
create mode 100644 falcon/client/custom_storage/get_versioned_object_metadata_parameters.go
create mode 100644 falcon/client/custom_storage/get_versioned_object_metadata_responses.go
create mode 100644 falcon/client/custom_storage/get_versioned_object_parameters.go
create mode 100644 falcon/client/custom_storage/get_versioned_object_responses.go
create mode 100644 falcon/client/custom_storage/list_objects_by_version_parameters.go
create mode 100644 falcon/client/custom_storage/list_objects_by_version_responses.go
create mode 100644 falcon/client/custom_storage/put_object_by_version_parameters.go
create mode 100644 falcon/client/custom_storage/put_object_by_version_responses.go
create mode 100644 falcon/client/custom_storage/search_objects_by_version_parameters.go
create mode 100644 falcon/client/custom_storage/search_objects_by_version_responses.go
create mode 100644 falcon/client/delivery_settings/delivery_settings_client.go
create mode 100644 falcon/client/delivery_settings/get_delivery_settings_parameters.go
create mode 100644 falcon/client/delivery_settings/get_delivery_settings_responses.go
create mode 100644 falcon/client/delivery_settings/post_delivery_settings_parameters.go
create mode 100644 falcon/client/delivery_settings/post_delivery_settings_responses.go
create mode 100644 falcon/client/downloads_api/download_file_parameters.go
create mode 100644 falcon/client/downloads_api/download_file_responses.go
create mode 100644 falcon/client/downloads_api/downloads_api_client.go
create mode 100644 falcon/client/downloads_api/enumerate_file_parameters.go
create mode 100644 falcon/client/downloads_api/enumerate_file_responses.go
create mode 100644 falcon/client/exposure_management/combined_ecosystem_subsidiaries_parameters.go
create mode 100644 falcon/client/exposure_management/combined_ecosystem_subsidiaries_responses.go
create mode 100644 falcon/client/exposure_management/delete_external_assets_parameters.go
create mode 100644 falcon/client/exposure_management/delete_external_assets_responses.go
create mode 100644 falcon/client/exposure_management/get_ecosystem_subsidiaries_parameters.go
create mode 100644 falcon/client/exposure_management/get_ecosystem_subsidiaries_responses.go
create mode 100644 falcon/client/exposure_management/query_ecosystem_subsidiaries_parameters.go
create mode 100644 falcon/client/exposure_management/query_ecosystem_subsidiaries_responses.go
create mode 100644 falcon/client/falcon_container_image/download_export_file_parameters.go
create mode 100644 falcon/client/falcon_container_image/download_export_file_responses.go
create mode 100644 falcon/client/falcon_container_image/launch_export_job_parameters.go
create mode 100644 falcon/client/falcon_container_image/launch_export_job_responses.go
create mode 100644 falcon/client/falcon_container_image/query_export_jobs_parameters.go
create mode 100644 falcon/client/falcon_container_image/query_export_jobs_responses.go
create mode 100644 falcon/client/falcon_container_image/read_export_jobs_parameters.go
create mode 100644 falcon/client/falcon_container_image/read_export_jobs_responses.go
create mode 100644 falcon/client/handle/handle_client.go
create mode 100644 falcon/client/handle/handle_parameters.go
create mode 100644 falcon/client/handle/handle_responses.go
create mode 100644 falcon/client/humio_auth_proxy/get_lookup_from_package_v1_parameters.go
create mode 100644 falcon/client/humio_auth_proxy/get_lookup_from_package_v1_responses.go
create mode 100644 falcon/client/humio_auth_proxy/get_lookup_from_package_with_namespace_v1_parameters.go
create mode 100644 falcon/client/humio_auth_proxy/get_lookup_from_package_with_namespace_v1_responses.go
create mode 100644 falcon/client/humio_auth_proxy/get_lookup_v1_parameters.go
create mode 100644 falcon/client/humio_auth_proxy/get_lookup_v1_responses.go
create mode 100644 falcon/client/humio_auth_proxy/get_search_status_v1_parameters.go
create mode 100644 falcon/client/humio_auth_proxy/get_search_status_v1_responses.go
create mode 100644 falcon/client/humio_auth_proxy/humio_auth_proxy_client.go
create mode 100644 falcon/client/humio_auth_proxy/start_search_v1_parameters.go
create mode 100644 falcon/client/humio_auth_proxy/start_search_v1_responses.go
create mode 100644 falcon/client/humio_auth_proxy/stop_search_v1_parameters.go
create mode 100644 falcon/client/humio_auth_proxy/stop_search_v1_responses.go
create mode 100644 falcon/client/humio_auth_proxy/upload_lookup_v1_parameters.go
create mode 100644 falcon/client/humio_auth_proxy/upload_lookup_v1_responses.go
create mode 100644 falcon/client/identity_protection/api_preempt_proxy_delete_policy_rules_parameters.go
create mode 100644 falcon/client/identity_protection/api_preempt_proxy_delete_policy_rules_responses.go
create mode 100644 falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_parameters.go
create mode 100644 falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_query_parameters.go
create mode 100644 falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_query_responses.go
create mode 100644 falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_responses.go
create mode 100644 falcon/client/identity_protection/api_preempt_proxy_post_policy_rules_parameters.go
create mode 100644 falcon/client/identity_protection/api_preempt_proxy_post_policy_rules_responses.go
create mode 100644 falcon/client/intel/get_malware_mitre_report_parameters.go
create mode 100644 falcon/client/intel/get_malware_mitre_report_responses.go
create mode 100644 falcon/client/operations/cloud_registration_aws_create_account_parameters.go
create mode 100644 falcon/client/operations/cloud_registration_aws_create_account_responses.go
create mode 100644 falcon/client/operations/cloud_registration_aws_delete_account_parameters.go
create mode 100644 falcon/client/operations/cloud_registration_aws_delete_account_responses.go
create mode 100644 falcon/client/operations/cloud_registration_aws_get_accounts_parameters.go
create mode 100644 falcon/client/operations/cloud_registration_aws_get_accounts_responses.go
create mode 100644 falcon/client/operations/cloud_registration_aws_query_accounts_parameters.go
create mode 100644 falcon/client/operations/cloud_registration_aws_query_accounts_responses.go
create mode 100644 falcon/client/operations/cloud_registration_aws_update_account_parameters.go
create mode 100644 falcon/client/operations/cloud_registration_aws_update_account_responses.go
create mode 100644 falcon/client/operations/cloud_registration_aws_validate_accounts_parameters.go
create mode 100644 falcon/client/operations/cloud_registration_aws_validate_accounts_responses.go
create mode 100644 falcon/client/operations/operations_client.go
create mode 100644 falcon/client/quick_scan_pro/delete_file_parameters.go
create mode 100644 falcon/client/quick_scan_pro/delete_file_responses.go
create mode 100644 falcon/client/quick_scan_pro/delete_scan_result_parameters.go
create mode 100644 falcon/client/quick_scan_pro/delete_scan_result_responses.go
create mode 100644 falcon/client/quick_scan_pro/get_scan_result_parameters.go
create mode 100644 falcon/client/quick_scan_pro/get_scan_result_responses.go
create mode 100644 falcon/client/quick_scan_pro/launch_scan_parameters.go
create mode 100644 falcon/client/quick_scan_pro/launch_scan_responses.go
create mode 100644 falcon/client/quick_scan_pro/query_scan_results_parameters.go
create mode 100644 falcon/client/quick_scan_pro/query_scan_results_responses.go
create mode 100644 falcon/client/quick_scan_pro/quick_scan_pro_client.go
create mode 100644 falcon/client/quick_scan_pro/upload_file_mixin0_mixin93_parameters.go
create mode 100644 falcon/client/quick_scan_pro/upload_file_mixin0_mixin93_responses.go
create mode 100644 falcon/client/sensor_usage_api/get_sensor_usage_weekly_parameters.go
create mode 100644 falcon/client/sensor_usage_api/get_sensor_usage_weekly_responses.go
create mode 100644 falcon/client/sensor_usage_api/sensor_usage_api_client.go
create mode 100644 falcon/models/activity.go
create mode 100644 falcon/models/api_hourly_average_response.go
create mode 100644 falcon/models/api_m_f_a_resource_i_ds_response.go
create mode 100644 falcon/models/api_m_f_a_resource_i_ds_response_next.go
delete mode 100644 falcon/models/api_paging.go
create mode 100644 falcon/models/api_response_pagination.go
create mode 100644 falcon/models/api_weekly_average_response.go
create mode 100644 falcon/models/common_entities_response.go
create mode 100644 falcon/models/common_entities_response_resources.go
create mode 100644 falcon/models/custom_type3352885422.go
create mode 100644 falcon/models/destination.go
create mode 100644 falcon/models/domain_a_w_s_account_resource_metadata.go
create mode 100644 falcon/models/domain_api_compliance_control_v1.go
create mode 100644 falcon/models/domain_api_compliance_mapping_v1.go
delete mode 100644 falcon/models/domain_api_entity_matched_v1.go
delete mode 100644 falcon/models/domain_api_evaluation_logic_host_info_v1.go
create mode 100644 falcon/models/domain_api_remediation_info.go
create mode 100644 falcon/models/domain_assessment_paging.go
create mode 100644 falcon/models/domain_cloud_a_w_s_account_v1.go
create mode 100644 falcon/models/domain_cloud_condition.go
create mode 100644 falcon/models/domain_compliance.go
create mode 100644 falcon/models/domain_control.go
create mode 100644 falcon/models/domain_control_benchmark.go
create mode 100644 falcon/models/domain_create_submission_v1_error_response.go
create mode 100644 falcon/models/domain_external_asset_api_delete_request_v1.go
create mode 100644 falcon/models/domain_external_export_job.go
create mode 100644 falcon/models/domain_feature_permission.go
create mode 100644 falcon/models/domain_feature_status.go
create mode 100644 falcon/models/domain_fem_ecosystem_subsidiaries_entities_response.go
create mode 100644 falcon/models/domain_fem_ecosystem_subsidiaries_meta.go
create mode 100644 falcon/models/domain_fem_ecosystem_subsidiaries_query_response.go
create mode 100644 falcon/models/domain_fem_ecosystem_subsidiaries_response_fields.go
create mode 100644 falcon/models/domain_fem_ecosystem_subsidiary.go
delete mode 100644 falcon/models/domain_product.go
create mode 100644 falcon/models/domain_product_features.go
create mode 100644 falcon/models/domain_product_features_status.go
create mode 100644 falcon/models/domain_product_permission.go
create mode 100644 falcon/models/domain_spotlight_params.go
create mode 100644 falcon/models/entities_rolling_average.go
create mode 100644 falcon/models/executions_loop_result_outputs.go
create mode 100644 falcon/models/exports_exports_response.go
create mode 100644 falcon/models/exports_launch_export_request.go
create mode 100644 falcon/models/exports_launch_export_response.go
create mode 100644 falcon/models/intel_c_v_s_sv2.go
create mode 100644 falcon/models/intel_c_v_s_sv3.go
create mode 100644 falcon/models/jsonschema_duration_option.go
create mode 100644 falcon/models/jsonschema_ui_extensions.go
create mode 100644 falcon/models/models_base_image_request.go
delete mode 100644 falcon/models/models_container_port_list.go
create mode 100644 falcon/models/models_container_ports.go
create mode 100644 falcon/models/models_create_base_images_request.go
create mode 100644 falcon/models/models_delivery_settings.go
create mode 100644 falcon/models/models_delivery_settings_entity_response.go
create mode 100644 falcon/models/models_delivery_settings_input.go
create mode 100644 falcon/models/models_delivery_settings_request.go
create mode 100644 falcon/models/models_deployment_agents.go
create mode 100644 falcon/models/models_image_details.go
create mode 100644 falcon/models/models_vulnerability_product.go
create mode 100644 falcon/models/quickscanpro_delete_file_response.go
create mode 100644 falcon/models/quickscanpro_file_result.go
create mode 100644 falcon/models/quickscanpro_file_upload_resource.go
create mode 100644 falcon/models/quickscanpro_file_upload_response.go
create mode 100644 falcon/models/quickscanpro_get_scan_result_resource.go
create mode 100644 falcon/models/quickscanpro_get_scan_result_response.go
create mode 100644 falcon/models/quickscanpro_launch_scan_request.go
create mode 100644 falcon/models/quickscanpro_launch_scan_request_resource.go
create mode 100644 falcon/models/quickscanpro_launch_scan_resource.go
create mode 100644 falcon/models/quickscanpro_launch_scan_response.go
create mode 100644 falcon/models/quickscanpro_m_i_t_r_e_attack.go
create mode 100644 falcon/models/quickscanpro_m_i_t_r_e_attack_parent.go
create mode 100644 falcon/models/quickscanpro_query_scan_results_response.go
create mode 100644 falcon/models/quickscanpro_quota_resource.go
create mode 100644 falcon/models/quickscanpro_scan_metadata.go
create mode 100644 falcon/models/quickscanpro_scan_result.go
create mode 100644 falcon/models/quickscanpro_url_result.go
create mode 100644 falcon/models/rest_a_w_s_account_create_request_extv1.go
create mode 100644 falcon/models/rest_a_w_s_account_create_response_ext_v1.go
create mode 100644 falcon/models/rest_a_w_s_account_validated.go
create mode 100644 falcon/models/rest_a_w_s_account_validation_response.go
create mode 100644 falcon/models/rest_account_product_upsert_request_ext_v1.go
create mode 100644 falcon/models/rest_cloud_a_w_s_account_create_ext_v1.go
create mode 100644 falcon/models/sadomain_typosquatting_subdomain.go
create mode 100644 falcon/models/source_endpoint.go
create mode 100644 falcon/models/source_user.go
create mode 100644 falcon/models/types_policy_rules_condition.go
create mode 100644 falcon/models/types_policy_rules_create_body.go
create mode 100644 falcon/models/types_update_integration_task_request.go
rename falcon/models/{v2_condition_parameters.go => v2_condition_groups.go} (62%)
diff --git a/falcon/client/a_s_p_m/aspm_client.go b/falcon/client/a_s_p_m/aspm_client.go
new file mode 100644
index 00000000..c5ad8f7c
--- /dev/null
+++ b/falcon/client/a_s_p_m/aspm_client.go
@@ -0,0 +1,959 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new a s p m API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for a s p m API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ CreateExecutorNode(params *CreateExecutorNodeParams, opts ...ClientOption) (*CreateExecutorNodeOK, error)
+
+ CreateIntegration(params *CreateIntegrationParams, opts ...ClientOption) (*CreateIntegrationOK, error)
+
+ CreateIntegrationTask(params *CreateIntegrationTaskParams, opts ...ClientOption) (*CreateIntegrationTaskOK, error)
+
+ DeleteExecutorNode(params *DeleteExecutorNodeParams, opts ...ClientOption) (*DeleteExecutorNodeOK, error)
+
+ DeleteIntegration(params *DeleteIntegrationParams, opts ...ClientOption) (*DeleteIntegrationOK, error)
+
+ DeleteIntegrationTask(params *DeleteIntegrationTaskParams, opts ...ClientOption) (*DeleteIntegrationTaskOK, error)
+
+ DeleteTags(params *DeleteTagsParams, opts ...ClientOption) (*DeleteTagsCreated, error)
+
+ ExecuteQuery(params *ExecuteQueryParams, opts ...ClientOption) (*ExecuteQueryOK, error)
+
+ GetExecutorNodes(params *GetExecutorNodesParams, opts ...ClientOption) (*GetExecutorNodesOK, error)
+
+ GetIntegrationTasks(params *GetIntegrationTasksParams, opts ...ClientOption) (*GetIntegrationTasksOK, error)
+
+ GetIntegrationTypes(params *GetIntegrationTypesParams, opts ...ClientOption) (*GetIntegrationTypesOK, error)
+
+ GetIntegrations(params *GetIntegrationsParams, opts ...ClientOption) (*GetIntegrationsOK, error)
+
+ GetServiceViolationTypes(params *GetServiceViolationTypesParams, opts ...ClientOption) (*GetServiceViolationTypesOK, error)
+
+ GetServicesCount(params *GetServicesCountParams, opts ...ClientOption) (*GetServicesCountOK, error)
+
+ GetTags(params *GetTagsParams, opts ...ClientOption) (*GetTagsOK, error)
+
+ RunIntegrationTask(params *RunIntegrationTaskParams, opts ...ClientOption) (*RunIntegrationTaskOK, error)
+
+ ServiceNowGetDeployments(params *ServiceNowGetDeploymentsParams, opts ...ClientOption) (*ServiceNowGetDeploymentsOK, error)
+
+ ServiceNowGetServices(params *ServiceNowGetServicesParams, opts ...ClientOption) (*ServiceNowGetServicesOK, error)
+
+ UpdateExecutorNode(params *UpdateExecutorNodeParams, opts ...ClientOption) (*UpdateExecutorNodeOK, error)
+
+ UpdateIntegration(params *UpdateIntegrationParams, opts ...ClientOption) (*UpdateIntegrationOK, error)
+
+ UpdateIntegrationTask(params *UpdateIntegrationTaskParams, opts ...ClientOption) (*UpdateIntegrationTaskOK, error)
+
+ UpsertBusinessApplications(params *UpsertBusinessApplicationsParams, opts ...ClientOption) (*UpsertBusinessApplicationsCreated, error)
+
+ UpsertTags(params *UpsertTagsParams, opts ...ClientOption) (*UpsertTagsCreated, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+CreateExecutorNode creates a new relay node
+*/
+func (a *Client) CreateExecutorNode(params *CreateExecutorNodeParams, opts ...ClientOption) (*CreateExecutorNodeOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCreateExecutorNodeParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "CreateExecutorNode",
+ Method: "POST",
+ PathPattern: "/aspm-api-gateway/api/v1/executor_nodes",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CreateExecutorNodeReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*CreateExecutorNodeOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for CreateExecutorNode: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+CreateIntegration creates a new integration
+*/
+func (a *Client) CreateIntegration(params *CreateIntegrationParams, opts ...ClientOption) (*CreateIntegrationOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCreateIntegrationParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "CreateIntegration",
+ Method: "POST",
+ PathPattern: "/aspm-api-gateway/api/v1/integrations",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CreateIntegrationReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*CreateIntegrationOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for CreateIntegration: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+CreateIntegrationTask creates new integration task
+*/
+func (a *Client) CreateIntegrationTask(params *CreateIntegrationTaskParams, opts ...ClientOption) (*CreateIntegrationTaskOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCreateIntegrationTaskParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "CreateIntegrationTask",
+ Method: "POST",
+ PathPattern: "/aspm-api-gateway/api/v1/integration_tasks",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CreateIntegrationTaskReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*CreateIntegrationTaskOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for CreateIntegrationTask: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+DeleteExecutorNode deletes a relay node
+*/
+func (a *Client) DeleteExecutorNode(params *DeleteExecutorNodeParams, opts ...ClientOption) (*DeleteExecutorNodeOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDeleteExecutorNodeParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "DeleteExecutorNode",
+ Method: "DELETE",
+ PathPattern: "/aspm-api-gateway/api/v1/executor_nodes/{ID}",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DeleteExecutorNodeReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DeleteExecutorNodeOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for DeleteExecutorNode: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+DeleteIntegration deletes an existing integration by its ID
+*/
+func (a *Client) DeleteIntegration(params *DeleteIntegrationParams, opts ...ClientOption) (*DeleteIntegrationOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDeleteIntegrationParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "DeleteIntegration",
+ Method: "DELETE",
+ PathPattern: "/aspm-api-gateway/api/v1/integrations/{ID}",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DeleteIntegrationReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DeleteIntegrationOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for DeleteIntegration: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+DeleteIntegrationTask deletes an existing integration task by its ID
+*/
+func (a *Client) DeleteIntegrationTask(params *DeleteIntegrationTaskParams, opts ...ClientOption) (*DeleteIntegrationTaskOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDeleteIntegrationTaskParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "DeleteIntegrationTask",
+ Method: "DELETE",
+ PathPattern: "/aspm-api-gateway/api/v1/integration_tasks/{ID}",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DeleteIntegrationTaskReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DeleteIntegrationTaskOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for DeleteIntegrationTask: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+DeleteTags removes existing tags
+*/
+func (a *Client) DeleteTags(params *DeleteTagsParams, opts ...ClientOption) (*DeleteTagsCreated, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDeleteTagsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "DeleteTags",
+ Method: "POST",
+ PathPattern: "/aspm-api-gateway/api/v1/tags",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DeleteTagsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DeleteTagsCreated)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for DeleteTags: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ExecuteQuery executes a query the syntax used is identical to that of the query page
+*/
+func (a *Client) ExecuteQuery(params *ExecuteQueryParams, opts ...ClientOption) (*ExecuteQueryOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewExecuteQueryParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "ExecuteQuery",
+ Method: "POST",
+ PathPattern: "/aspm-api-gateway/api/v1/query",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &ExecuteQueryReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*ExecuteQueryOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for ExecuteQuery: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetExecutorNodes gets all the relay nodes
+*/
+func (a *Client) GetExecutorNodes(params *GetExecutorNodesParams, opts ...ClientOption) (*GetExecutorNodesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetExecutorNodesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetExecutorNodes",
+ Method: "GET",
+ PathPattern: "/aspm-api-gateway/api/v1/executor_nodes",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetExecutorNodesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetExecutorNodesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetExecutorNodes: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetIntegrationTasks gets all the integration tasks
+*/
+func (a *Client) GetIntegrationTasks(params *GetIntegrationTasksParams, opts ...ClientOption) (*GetIntegrationTasksOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetIntegrationTasksParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetIntegrationTasks",
+ Method: "GET",
+ PathPattern: "/aspm-api-gateway/api/v1/integration_tasks",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetIntegrationTasksReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetIntegrationTasksOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetIntegrationTasks: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetIntegrationTypes gets all the integration types
+*/
+func (a *Client) GetIntegrationTypes(params *GetIntegrationTypesParams, opts ...ClientOption) (*GetIntegrationTypesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetIntegrationTypesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetIntegrationTypes",
+ Method: "GET",
+ PathPattern: "/aspm-api-gateway/api/v1/integration_types",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetIntegrationTypesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetIntegrationTypesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetIntegrationTypes: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetIntegrations gets a list of all the integrations
+*/
+func (a *Client) GetIntegrations(params *GetIntegrationsParams, opts ...ClientOption) (*GetIntegrationsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetIntegrationsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetIntegrations",
+ Method: "GET",
+ PathPattern: "/aspm-api-gateway/api/v1/integrations",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetIntegrationsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetIntegrationsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetIntegrations: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetServiceViolationTypes gets the different types of violation
+*/
+func (a *Client) GetServiceViolationTypes(params *GetServiceViolationTypesParams, opts ...ClientOption) (*GetServiceViolationTypesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetServiceViolationTypesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetServiceViolationTypes",
+ Method: "GET",
+ PathPattern: "/aspm-api-gateway/api/v1/services/violations/types",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetServiceViolationTypesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetServiceViolationTypesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetServiceViolationTypes: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetServicesCount gets the total amount of existing services
+*/
+func (a *Client) GetServicesCount(params *GetServicesCountParams, opts ...ClientOption) (*GetServicesCountOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetServicesCountParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetServicesCount",
+ Method: "POST",
+ PathPattern: "/aspm-api-gateway/api/v1/services/count",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetServicesCountReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetServicesCountOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetServicesCount: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetTags gets all the tags
+*/
+func (a *Client) GetTags(params *GetTagsParams, opts ...ClientOption) (*GetTagsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetTagsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetTags",
+ Method: "GET",
+ PathPattern: "/aspm-api-gateway/api/v1/tags",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetTagsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetTagsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetTags: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+RunIntegrationTask runs an integration task by its ID
+*/
+func (a *Client) RunIntegrationTask(params *RunIntegrationTaskParams, opts ...ClientOption) (*RunIntegrationTaskOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewRunIntegrationTaskParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "RunIntegrationTask",
+ Method: "POST",
+ PathPattern: "/aspm-api-gateway/api/v1/integration_tasks/{ID}/run",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &RunIntegrationTaskReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*RunIntegrationTaskOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for RunIntegrationTask: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ServiceNowGetDeployments service now get deployments API
+*/
+func (a *Client) ServiceNowGetDeployments(params *ServiceNowGetDeploymentsParams, opts ...ClientOption) (*ServiceNowGetDeploymentsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewServiceNowGetDeploymentsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "ServiceNowGetDeployments",
+ Method: "GET",
+ PathPattern: "/aspm-api-gateway/api/v1/servicenow/deployments",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &ServiceNowGetDeploymentsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*ServiceNowGetDeploymentsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for ServiceNowGetDeployments: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ServiceNowGetServices service now get services API
+*/
+func (a *Client) ServiceNowGetServices(params *ServiceNowGetServicesParams, opts ...ClientOption) (*ServiceNowGetServicesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewServiceNowGetServicesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "ServiceNowGetServices",
+ Method: "GET",
+ PathPattern: "/aspm-api-gateway/api/v1/servicenow/services",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &ServiceNowGetServicesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*ServiceNowGetServicesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for ServiceNowGetServices: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+UpdateExecutorNode updates an existing relay node
+*/
+func (a *Client) UpdateExecutorNode(params *UpdateExecutorNodeParams, opts ...ClientOption) (*UpdateExecutorNodeOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewUpdateExecutorNodeParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "UpdateExecutorNode",
+ Method: "PUT",
+ PathPattern: "/aspm-api-gateway/api/v1/executor_nodes",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &UpdateExecutorNodeReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*UpdateExecutorNodeOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for UpdateExecutorNode: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+UpdateIntegration updates an existing integration by its ID
+*/
+func (a *Client) UpdateIntegration(params *UpdateIntegrationParams, opts ...ClientOption) (*UpdateIntegrationOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewUpdateIntegrationParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "UpdateIntegration",
+ Method: "PUT",
+ PathPattern: "/aspm-api-gateway/api/v1/integrations/{ID}",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &UpdateIntegrationReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*UpdateIntegrationOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for UpdateIntegration: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+UpdateIntegrationTask updates an existing integration task by its ID
+*/
+func (a *Client) UpdateIntegrationTask(params *UpdateIntegrationTaskParams, opts ...ClientOption) (*UpdateIntegrationTaskOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewUpdateIntegrationTaskParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "UpdateIntegrationTask",
+ Method: "PUT",
+ PathPattern: "/aspm-api-gateway/api/v1/integration_tasks/{ID}",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &UpdateIntegrationTaskReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*UpdateIntegrationTaskOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for UpdateIntegrationTask: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+UpsertBusinessApplications creates or update business applications
+*/
+func (a *Client) UpsertBusinessApplications(params *UpsertBusinessApplicationsParams, opts ...ClientOption) (*UpsertBusinessApplicationsCreated, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewUpsertBusinessApplicationsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "UpsertBusinessApplications",
+ Method: "PUT",
+ PathPattern: "/aspm-api-gateway/api/v1/business_applications",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &UpsertBusinessApplicationsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*UpsertBusinessApplicationsCreated)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for UpsertBusinessApplications: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+UpsertTags creates new or update existing tag you can update unique tags table or regular tags table
+*/
+func (a *Client) UpsertTags(params *UpsertTagsParams, opts ...ClientOption) (*UpsertTagsCreated, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewUpsertTagsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "UpsertTags",
+ Method: "PUT",
+ PathPattern: "/aspm-api-gateway/api/v1/tags",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &UpsertTagsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*UpsertTagsCreated)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for UpsertTags: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/falcon/client/a_s_p_m/create_executor_node_parameters.go b/falcon/client/a_s_p_m/create_executor_node_parameters.go
new file mode 100644
index 00000000..58ea7c6d
--- /dev/null
+++ b/falcon/client/a_s_p_m/create_executor_node_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewCreateExecutorNodeParams creates a new CreateExecutorNodeParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCreateExecutorNodeParams() *CreateExecutorNodeParams {
+ return &CreateExecutorNodeParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCreateExecutorNodeParamsWithTimeout creates a new CreateExecutorNodeParams object
+// with the ability to set a timeout on a request.
+func NewCreateExecutorNodeParamsWithTimeout(timeout time.Duration) *CreateExecutorNodeParams {
+ return &CreateExecutorNodeParams{
+ timeout: timeout,
+ }
+}
+
+// NewCreateExecutorNodeParamsWithContext creates a new CreateExecutorNodeParams object
+// with the ability to set a context for a request.
+func NewCreateExecutorNodeParamsWithContext(ctx context.Context) *CreateExecutorNodeParams {
+ return &CreateExecutorNodeParams{
+ Context: ctx,
+ }
+}
+
+// NewCreateExecutorNodeParamsWithHTTPClient creates a new CreateExecutorNodeParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCreateExecutorNodeParamsWithHTTPClient(client *http.Client) *CreateExecutorNodeParams {
+ return &CreateExecutorNodeParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CreateExecutorNodeParams contains all the parameters to send to the API endpoint
+
+ for the create executor node operation.
+
+ Typically these are written to a http.Request.
+*/
+type CreateExecutorNodeParams struct {
+
+ // Body.
+ Body *models.TypesExecutorNode
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the create executor node params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateExecutorNodeParams) WithDefaults() *CreateExecutorNodeParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the create executor node params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateExecutorNodeParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the create executor node params
+func (o *CreateExecutorNodeParams) WithTimeout(timeout time.Duration) *CreateExecutorNodeParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the create executor node params
+func (o *CreateExecutorNodeParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the create executor node params
+func (o *CreateExecutorNodeParams) WithContext(ctx context.Context) *CreateExecutorNodeParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the create executor node params
+func (o *CreateExecutorNodeParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the create executor node params
+func (o *CreateExecutorNodeParams) WithHTTPClient(client *http.Client) *CreateExecutorNodeParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the create executor node params
+func (o *CreateExecutorNodeParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the create executor node params
+func (o *CreateExecutorNodeParams) WithBody(body *models.TypesExecutorNode) *CreateExecutorNodeParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the create executor node params
+func (o *CreateExecutorNodeParams) SetBody(body *models.TypesExecutorNode) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CreateExecutorNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/create_executor_node_responses.go b/falcon/client/a_s_p_m/create_executor_node_responses.go
new file mode 100644
index 00000000..a3819d26
--- /dev/null
+++ b/falcon/client/a_s_p_m/create_executor_node_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CreateExecutorNodeReader is a Reader for the CreateExecutorNode structure.
+type CreateExecutorNodeReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CreateExecutorNodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCreateExecutorNodeOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCreateExecutorNodeBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewCreateExecutorNodeUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCreateExecutorNodeForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCreateExecutorNodeTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCreateExecutorNodeInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /aspm-api-gateway/api/v1/executor_nodes] CreateExecutorNode", response, response.Code())
+ }
+}
+
+// NewCreateExecutorNodeOK creates a CreateExecutorNodeOK with default headers values
+func NewCreateExecutorNodeOK() *CreateExecutorNodeOK {
+ return &CreateExecutorNodeOK{}
+}
+
+/*
+CreateExecutorNodeOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type CreateExecutorNodeOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesExecutorNode
+}
+
+// IsSuccess returns true when this create executor node o k response has a 2xx status code
+func (o *CreateExecutorNodeOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this create executor node o k response has a 3xx status code
+func (o *CreateExecutorNodeOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create executor node o k response has a 4xx status code
+func (o *CreateExecutorNodeOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create executor node o k response has a 5xx status code
+func (o *CreateExecutorNodeOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create executor node o k response a status code equal to that given
+func (o *CreateExecutorNodeOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the create executor node o k response
+func (o *CreateExecutorNodeOK) Code() int {
+ return 200
+}
+
+func (o *CreateExecutorNodeOK) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeOK %+v", 200, o.Payload)
+}
+
+func (o *CreateExecutorNodeOK) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeOK %+v", 200, o.Payload)
+}
+
+func (o *CreateExecutorNodeOK) GetPayload() *models.TypesExecutorNode {
+ return o.Payload
+}
+
+func (o *CreateExecutorNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesExecutorNode)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateExecutorNodeBadRequest creates a CreateExecutorNodeBadRequest with default headers values
+func NewCreateExecutorNodeBadRequest() *CreateExecutorNodeBadRequest {
+ return &CreateExecutorNodeBadRequest{}
+}
+
+/*
+CreateExecutorNodeBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CreateExecutorNodeBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create executor node bad request response has a 2xx status code
+func (o *CreateExecutorNodeBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create executor node bad request response has a 3xx status code
+func (o *CreateExecutorNodeBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create executor node bad request response has a 4xx status code
+func (o *CreateExecutorNodeBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create executor node bad request response has a 5xx status code
+func (o *CreateExecutorNodeBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create executor node bad request response a status code equal to that given
+func (o *CreateExecutorNodeBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the create executor node bad request response
+func (o *CreateExecutorNodeBadRequest) Code() int {
+ return 400
+}
+
+func (o *CreateExecutorNodeBadRequest) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CreateExecutorNodeBadRequest) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CreateExecutorNodeBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateExecutorNodeBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateExecutorNodeUnauthorized creates a CreateExecutorNodeUnauthorized with default headers values
+func NewCreateExecutorNodeUnauthorized() *CreateExecutorNodeUnauthorized {
+ return &CreateExecutorNodeUnauthorized{}
+}
+
+/*
+CreateExecutorNodeUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type CreateExecutorNodeUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create executor node unauthorized response has a 2xx status code
+func (o *CreateExecutorNodeUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create executor node unauthorized response has a 3xx status code
+func (o *CreateExecutorNodeUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create executor node unauthorized response has a 4xx status code
+func (o *CreateExecutorNodeUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create executor node unauthorized response has a 5xx status code
+func (o *CreateExecutorNodeUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create executor node unauthorized response a status code equal to that given
+func (o *CreateExecutorNodeUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the create executor node unauthorized response
+func (o *CreateExecutorNodeUnauthorized) Code() int {
+ return 401
+}
+
+func (o *CreateExecutorNodeUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *CreateExecutorNodeUnauthorized) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *CreateExecutorNodeUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateExecutorNodeUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateExecutorNodeForbidden creates a CreateExecutorNodeForbidden with default headers values
+func NewCreateExecutorNodeForbidden() *CreateExecutorNodeForbidden {
+ return &CreateExecutorNodeForbidden{}
+}
+
+/*
+CreateExecutorNodeForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CreateExecutorNodeForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create executor node forbidden response has a 2xx status code
+func (o *CreateExecutorNodeForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create executor node forbidden response has a 3xx status code
+func (o *CreateExecutorNodeForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create executor node forbidden response has a 4xx status code
+func (o *CreateExecutorNodeForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create executor node forbidden response has a 5xx status code
+func (o *CreateExecutorNodeForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create executor node forbidden response a status code equal to that given
+func (o *CreateExecutorNodeForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the create executor node forbidden response
+func (o *CreateExecutorNodeForbidden) Code() int {
+ return 403
+}
+
+func (o *CreateExecutorNodeForbidden) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeForbidden %+v", 403, o.Payload)
+}
+
+func (o *CreateExecutorNodeForbidden) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeForbidden %+v", 403, o.Payload)
+}
+
+func (o *CreateExecutorNodeForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateExecutorNodeForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateExecutorNodeTooManyRequests creates a CreateExecutorNodeTooManyRequests with default headers values
+func NewCreateExecutorNodeTooManyRequests() *CreateExecutorNodeTooManyRequests {
+ return &CreateExecutorNodeTooManyRequests{}
+}
+
+/*
+CreateExecutorNodeTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CreateExecutorNodeTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create executor node too many requests response has a 2xx status code
+func (o *CreateExecutorNodeTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create executor node too many requests response has a 3xx status code
+func (o *CreateExecutorNodeTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create executor node too many requests response has a 4xx status code
+func (o *CreateExecutorNodeTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create executor node too many requests response has a 5xx status code
+func (o *CreateExecutorNodeTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create executor node too many requests response a status code equal to that given
+func (o *CreateExecutorNodeTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the create executor node too many requests response
+func (o *CreateExecutorNodeTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CreateExecutorNodeTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CreateExecutorNodeTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CreateExecutorNodeTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateExecutorNodeTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateExecutorNodeInternalServerError creates a CreateExecutorNodeInternalServerError with default headers values
+func NewCreateExecutorNodeInternalServerError() *CreateExecutorNodeInternalServerError {
+ return &CreateExecutorNodeInternalServerError{}
+}
+
+/*
+CreateExecutorNodeInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CreateExecutorNodeInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create executor node internal server error response has a 2xx status code
+func (o *CreateExecutorNodeInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create executor node internal server error response has a 3xx status code
+func (o *CreateExecutorNodeInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create executor node internal server error response has a 4xx status code
+func (o *CreateExecutorNodeInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create executor node internal server error response has a 5xx status code
+func (o *CreateExecutorNodeInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create executor node internal server error response a status code equal to that given
+func (o *CreateExecutorNodeInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create executor node internal server error response
+func (o *CreateExecutorNodeInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateExecutorNodeInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateExecutorNodeInternalServerError) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/executor_nodes][%d] createExecutorNodeInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateExecutorNodeInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateExecutorNodeInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/create_integration_parameters.go b/falcon/client/a_s_p_m/create_integration_parameters.go
new file mode 100644
index 00000000..f8bfa031
--- /dev/null
+++ b/falcon/client/a_s_p_m/create_integration_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewCreateIntegrationParams creates a new CreateIntegrationParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCreateIntegrationParams() *CreateIntegrationParams {
+ return &CreateIntegrationParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCreateIntegrationParamsWithTimeout creates a new CreateIntegrationParams object
+// with the ability to set a timeout on a request.
+func NewCreateIntegrationParamsWithTimeout(timeout time.Duration) *CreateIntegrationParams {
+ return &CreateIntegrationParams{
+ timeout: timeout,
+ }
+}
+
+// NewCreateIntegrationParamsWithContext creates a new CreateIntegrationParams object
+// with the ability to set a context for a request.
+func NewCreateIntegrationParamsWithContext(ctx context.Context) *CreateIntegrationParams {
+ return &CreateIntegrationParams{
+ Context: ctx,
+ }
+}
+
+// NewCreateIntegrationParamsWithHTTPClient creates a new CreateIntegrationParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCreateIntegrationParamsWithHTTPClient(client *http.Client) *CreateIntegrationParams {
+ return &CreateIntegrationParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CreateIntegrationParams contains all the parameters to send to the API endpoint
+
+ for the create integration operation.
+
+ Typically these are written to a http.Request.
+*/
+type CreateIntegrationParams struct {
+
+ // Body.
+ Body *models.TypesCreateIntegrationRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the create integration params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateIntegrationParams) WithDefaults() *CreateIntegrationParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the create integration params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateIntegrationParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the create integration params
+func (o *CreateIntegrationParams) WithTimeout(timeout time.Duration) *CreateIntegrationParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the create integration params
+func (o *CreateIntegrationParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the create integration params
+func (o *CreateIntegrationParams) WithContext(ctx context.Context) *CreateIntegrationParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the create integration params
+func (o *CreateIntegrationParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the create integration params
+func (o *CreateIntegrationParams) WithHTTPClient(client *http.Client) *CreateIntegrationParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the create integration params
+func (o *CreateIntegrationParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the create integration params
+func (o *CreateIntegrationParams) WithBody(body *models.TypesCreateIntegrationRequest) *CreateIntegrationParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the create integration params
+func (o *CreateIntegrationParams) SetBody(body *models.TypesCreateIntegrationRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CreateIntegrationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/create_integration_responses.go b/falcon/client/a_s_p_m/create_integration_responses.go
new file mode 100644
index 00000000..e72d5d1f
--- /dev/null
+++ b/falcon/client/a_s_p_m/create_integration_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CreateIntegrationReader is a Reader for the CreateIntegration structure.
+type CreateIntegrationReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CreateIntegrationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCreateIntegrationOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCreateIntegrationBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewCreateIntegrationUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCreateIntegrationForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCreateIntegrationTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCreateIntegrationInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /aspm-api-gateway/api/v1/integrations] CreateIntegration", response, response.Code())
+ }
+}
+
+// NewCreateIntegrationOK creates a CreateIntegrationOK with default headers values
+func NewCreateIntegrationOK() *CreateIntegrationOK {
+ return &CreateIntegrationOK{}
+}
+
+/*
+CreateIntegrationOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type CreateIntegrationOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesIntegrationResponse
+}
+
+// IsSuccess returns true when this create integration o k response has a 2xx status code
+func (o *CreateIntegrationOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this create integration o k response has a 3xx status code
+func (o *CreateIntegrationOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration o k response has a 4xx status code
+func (o *CreateIntegrationOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create integration o k response has a 5xx status code
+func (o *CreateIntegrationOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create integration o k response a status code equal to that given
+func (o *CreateIntegrationOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the create integration o k response
+func (o *CreateIntegrationOK) Code() int {
+ return 200
+}
+
+func (o *CreateIntegrationOK) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationOK %+v", 200, o.Payload)
+}
+
+func (o *CreateIntegrationOK) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationOK %+v", 200, o.Payload)
+}
+
+func (o *CreateIntegrationOK) GetPayload() *models.TypesIntegrationResponse {
+ return o.Payload
+}
+
+func (o *CreateIntegrationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesIntegrationResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateIntegrationBadRequest creates a CreateIntegrationBadRequest with default headers values
+func NewCreateIntegrationBadRequest() *CreateIntegrationBadRequest {
+ return &CreateIntegrationBadRequest{}
+}
+
+/*
+CreateIntegrationBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CreateIntegrationBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create integration bad request response has a 2xx status code
+func (o *CreateIntegrationBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create integration bad request response has a 3xx status code
+func (o *CreateIntegrationBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration bad request response has a 4xx status code
+func (o *CreateIntegrationBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create integration bad request response has a 5xx status code
+func (o *CreateIntegrationBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create integration bad request response a status code equal to that given
+func (o *CreateIntegrationBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the create integration bad request response
+func (o *CreateIntegrationBadRequest) Code() int {
+ return 400
+}
+
+func (o *CreateIntegrationBadRequest) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CreateIntegrationBadRequest) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CreateIntegrationBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateIntegrationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateIntegrationUnauthorized creates a CreateIntegrationUnauthorized with default headers values
+func NewCreateIntegrationUnauthorized() *CreateIntegrationUnauthorized {
+ return &CreateIntegrationUnauthorized{}
+}
+
+/*
+CreateIntegrationUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type CreateIntegrationUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create integration unauthorized response has a 2xx status code
+func (o *CreateIntegrationUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create integration unauthorized response has a 3xx status code
+func (o *CreateIntegrationUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration unauthorized response has a 4xx status code
+func (o *CreateIntegrationUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create integration unauthorized response has a 5xx status code
+func (o *CreateIntegrationUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create integration unauthorized response a status code equal to that given
+func (o *CreateIntegrationUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the create integration unauthorized response
+func (o *CreateIntegrationUnauthorized) Code() int {
+ return 401
+}
+
+func (o *CreateIntegrationUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *CreateIntegrationUnauthorized) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *CreateIntegrationUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateIntegrationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateIntegrationForbidden creates a CreateIntegrationForbidden with default headers values
+func NewCreateIntegrationForbidden() *CreateIntegrationForbidden {
+ return &CreateIntegrationForbidden{}
+}
+
+/*
+CreateIntegrationForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CreateIntegrationForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create integration forbidden response has a 2xx status code
+func (o *CreateIntegrationForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create integration forbidden response has a 3xx status code
+func (o *CreateIntegrationForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration forbidden response has a 4xx status code
+func (o *CreateIntegrationForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create integration forbidden response has a 5xx status code
+func (o *CreateIntegrationForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create integration forbidden response a status code equal to that given
+func (o *CreateIntegrationForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the create integration forbidden response
+func (o *CreateIntegrationForbidden) Code() int {
+ return 403
+}
+
+func (o *CreateIntegrationForbidden) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationForbidden %+v", 403, o.Payload)
+}
+
+func (o *CreateIntegrationForbidden) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationForbidden %+v", 403, o.Payload)
+}
+
+func (o *CreateIntegrationForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateIntegrationForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateIntegrationTooManyRequests creates a CreateIntegrationTooManyRequests with default headers values
+func NewCreateIntegrationTooManyRequests() *CreateIntegrationTooManyRequests {
+ return &CreateIntegrationTooManyRequests{}
+}
+
+/*
+CreateIntegrationTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CreateIntegrationTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create integration too many requests response has a 2xx status code
+func (o *CreateIntegrationTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create integration too many requests response has a 3xx status code
+func (o *CreateIntegrationTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration too many requests response has a 4xx status code
+func (o *CreateIntegrationTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create integration too many requests response has a 5xx status code
+func (o *CreateIntegrationTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create integration too many requests response a status code equal to that given
+func (o *CreateIntegrationTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the create integration too many requests response
+func (o *CreateIntegrationTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CreateIntegrationTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CreateIntegrationTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CreateIntegrationTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateIntegrationTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateIntegrationInternalServerError creates a CreateIntegrationInternalServerError with default headers values
+func NewCreateIntegrationInternalServerError() *CreateIntegrationInternalServerError {
+ return &CreateIntegrationInternalServerError{}
+}
+
+/*
+CreateIntegrationInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CreateIntegrationInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create integration internal server error response has a 2xx status code
+func (o *CreateIntegrationInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create integration internal server error response has a 3xx status code
+func (o *CreateIntegrationInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration internal server error response has a 4xx status code
+func (o *CreateIntegrationInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create integration internal server error response has a 5xx status code
+func (o *CreateIntegrationInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create integration internal server error response a status code equal to that given
+func (o *CreateIntegrationInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create integration internal server error response
+func (o *CreateIntegrationInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateIntegrationInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateIntegrationInternalServerError) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integrations][%d] createIntegrationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateIntegrationInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateIntegrationInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/create_integration_task_parameters.go b/falcon/client/a_s_p_m/create_integration_task_parameters.go
new file mode 100644
index 00000000..78207733
--- /dev/null
+++ b/falcon/client/a_s_p_m/create_integration_task_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewCreateIntegrationTaskParams creates a new CreateIntegrationTaskParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCreateIntegrationTaskParams() *CreateIntegrationTaskParams {
+ return &CreateIntegrationTaskParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCreateIntegrationTaskParamsWithTimeout creates a new CreateIntegrationTaskParams object
+// with the ability to set a timeout on a request.
+func NewCreateIntegrationTaskParamsWithTimeout(timeout time.Duration) *CreateIntegrationTaskParams {
+ return &CreateIntegrationTaskParams{
+ timeout: timeout,
+ }
+}
+
+// NewCreateIntegrationTaskParamsWithContext creates a new CreateIntegrationTaskParams object
+// with the ability to set a context for a request.
+func NewCreateIntegrationTaskParamsWithContext(ctx context.Context) *CreateIntegrationTaskParams {
+ return &CreateIntegrationTaskParams{
+ Context: ctx,
+ }
+}
+
+// NewCreateIntegrationTaskParamsWithHTTPClient creates a new CreateIntegrationTaskParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCreateIntegrationTaskParamsWithHTTPClient(client *http.Client) *CreateIntegrationTaskParams {
+ return &CreateIntegrationTaskParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CreateIntegrationTaskParams contains all the parameters to send to the API endpoint
+
+ for the create integration task operation.
+
+ Typically these are written to a http.Request.
+*/
+type CreateIntegrationTaskParams struct {
+
+ // Body.
+ Body *models.TypesCreateIntegrationTaskRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the create integration task params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateIntegrationTaskParams) WithDefaults() *CreateIntegrationTaskParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the create integration task params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateIntegrationTaskParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the create integration task params
+func (o *CreateIntegrationTaskParams) WithTimeout(timeout time.Duration) *CreateIntegrationTaskParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the create integration task params
+func (o *CreateIntegrationTaskParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the create integration task params
+func (o *CreateIntegrationTaskParams) WithContext(ctx context.Context) *CreateIntegrationTaskParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the create integration task params
+func (o *CreateIntegrationTaskParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the create integration task params
+func (o *CreateIntegrationTaskParams) WithHTTPClient(client *http.Client) *CreateIntegrationTaskParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the create integration task params
+func (o *CreateIntegrationTaskParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the create integration task params
+func (o *CreateIntegrationTaskParams) WithBody(body *models.TypesCreateIntegrationTaskRequest) *CreateIntegrationTaskParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the create integration task params
+func (o *CreateIntegrationTaskParams) SetBody(body *models.TypesCreateIntegrationTaskRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CreateIntegrationTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/create_integration_task_responses.go b/falcon/client/a_s_p_m/create_integration_task_responses.go
new file mode 100644
index 00000000..71e3b293
--- /dev/null
+++ b/falcon/client/a_s_p_m/create_integration_task_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CreateIntegrationTaskReader is a Reader for the CreateIntegrationTask structure.
+type CreateIntegrationTaskReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CreateIntegrationTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCreateIntegrationTaskOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCreateIntegrationTaskBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewCreateIntegrationTaskUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCreateIntegrationTaskForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCreateIntegrationTaskTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCreateIntegrationTaskInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /aspm-api-gateway/api/v1/integration_tasks] CreateIntegrationTask", response, response.Code())
+ }
+}
+
+// NewCreateIntegrationTaskOK creates a CreateIntegrationTaskOK with default headers values
+func NewCreateIntegrationTaskOK() *CreateIntegrationTaskOK {
+ return &CreateIntegrationTaskOK{}
+}
+
+/*
+CreateIntegrationTaskOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type CreateIntegrationTaskOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesIntegrationTaskResponse
+}
+
+// IsSuccess returns true when this create integration task o k response has a 2xx status code
+func (o *CreateIntegrationTaskOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this create integration task o k response has a 3xx status code
+func (o *CreateIntegrationTaskOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration task o k response has a 4xx status code
+func (o *CreateIntegrationTaskOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create integration task o k response has a 5xx status code
+func (o *CreateIntegrationTaskOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create integration task o k response a status code equal to that given
+func (o *CreateIntegrationTaskOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the create integration task o k response
+func (o *CreateIntegrationTaskOK) Code() int {
+ return 200
+}
+
+func (o *CreateIntegrationTaskOK) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskOK %+v", 200, o.Payload)
+}
+
+func (o *CreateIntegrationTaskOK) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskOK %+v", 200, o.Payload)
+}
+
+func (o *CreateIntegrationTaskOK) GetPayload() *models.TypesIntegrationTaskResponse {
+ return o.Payload
+}
+
+func (o *CreateIntegrationTaskOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesIntegrationTaskResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateIntegrationTaskBadRequest creates a CreateIntegrationTaskBadRequest with default headers values
+func NewCreateIntegrationTaskBadRequest() *CreateIntegrationTaskBadRequest {
+ return &CreateIntegrationTaskBadRequest{}
+}
+
+/*
+CreateIntegrationTaskBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CreateIntegrationTaskBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create integration task bad request response has a 2xx status code
+func (o *CreateIntegrationTaskBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create integration task bad request response has a 3xx status code
+func (o *CreateIntegrationTaskBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration task bad request response has a 4xx status code
+func (o *CreateIntegrationTaskBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create integration task bad request response has a 5xx status code
+func (o *CreateIntegrationTaskBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create integration task bad request response a status code equal to that given
+func (o *CreateIntegrationTaskBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the create integration task bad request response
+func (o *CreateIntegrationTaskBadRequest) Code() int {
+ return 400
+}
+
+func (o *CreateIntegrationTaskBadRequest) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CreateIntegrationTaskBadRequest) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CreateIntegrationTaskBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateIntegrationTaskBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateIntegrationTaskUnauthorized creates a CreateIntegrationTaskUnauthorized with default headers values
+func NewCreateIntegrationTaskUnauthorized() *CreateIntegrationTaskUnauthorized {
+ return &CreateIntegrationTaskUnauthorized{}
+}
+
+/*
+CreateIntegrationTaskUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type CreateIntegrationTaskUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create integration task unauthorized response has a 2xx status code
+func (o *CreateIntegrationTaskUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create integration task unauthorized response has a 3xx status code
+func (o *CreateIntegrationTaskUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration task unauthorized response has a 4xx status code
+func (o *CreateIntegrationTaskUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create integration task unauthorized response has a 5xx status code
+func (o *CreateIntegrationTaskUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create integration task unauthorized response a status code equal to that given
+func (o *CreateIntegrationTaskUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the create integration task unauthorized response
+func (o *CreateIntegrationTaskUnauthorized) Code() int {
+ return 401
+}
+
+func (o *CreateIntegrationTaskUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *CreateIntegrationTaskUnauthorized) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *CreateIntegrationTaskUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateIntegrationTaskUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateIntegrationTaskForbidden creates a CreateIntegrationTaskForbidden with default headers values
+func NewCreateIntegrationTaskForbidden() *CreateIntegrationTaskForbidden {
+ return &CreateIntegrationTaskForbidden{}
+}
+
+/*
+CreateIntegrationTaskForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CreateIntegrationTaskForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create integration task forbidden response has a 2xx status code
+func (o *CreateIntegrationTaskForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create integration task forbidden response has a 3xx status code
+func (o *CreateIntegrationTaskForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration task forbidden response has a 4xx status code
+func (o *CreateIntegrationTaskForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create integration task forbidden response has a 5xx status code
+func (o *CreateIntegrationTaskForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create integration task forbidden response a status code equal to that given
+func (o *CreateIntegrationTaskForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the create integration task forbidden response
+func (o *CreateIntegrationTaskForbidden) Code() int {
+ return 403
+}
+
+func (o *CreateIntegrationTaskForbidden) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskForbidden %+v", 403, o.Payload)
+}
+
+func (o *CreateIntegrationTaskForbidden) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskForbidden %+v", 403, o.Payload)
+}
+
+func (o *CreateIntegrationTaskForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateIntegrationTaskForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateIntegrationTaskTooManyRequests creates a CreateIntegrationTaskTooManyRequests with default headers values
+func NewCreateIntegrationTaskTooManyRequests() *CreateIntegrationTaskTooManyRequests {
+ return &CreateIntegrationTaskTooManyRequests{}
+}
+
+/*
+CreateIntegrationTaskTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CreateIntegrationTaskTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create integration task too many requests response has a 2xx status code
+func (o *CreateIntegrationTaskTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create integration task too many requests response has a 3xx status code
+func (o *CreateIntegrationTaskTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration task too many requests response has a 4xx status code
+func (o *CreateIntegrationTaskTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create integration task too many requests response has a 5xx status code
+func (o *CreateIntegrationTaskTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create integration task too many requests response a status code equal to that given
+func (o *CreateIntegrationTaskTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the create integration task too many requests response
+func (o *CreateIntegrationTaskTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CreateIntegrationTaskTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CreateIntegrationTaskTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CreateIntegrationTaskTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateIntegrationTaskTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateIntegrationTaskInternalServerError creates a CreateIntegrationTaskInternalServerError with default headers values
+func NewCreateIntegrationTaskInternalServerError() *CreateIntegrationTaskInternalServerError {
+ return &CreateIntegrationTaskInternalServerError{}
+}
+
+/*
+CreateIntegrationTaskInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CreateIntegrationTaskInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this create integration task internal server error response has a 2xx status code
+func (o *CreateIntegrationTaskInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create integration task internal server error response has a 3xx status code
+func (o *CreateIntegrationTaskInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create integration task internal server error response has a 4xx status code
+func (o *CreateIntegrationTaskInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create integration task internal server error response has a 5xx status code
+func (o *CreateIntegrationTaskInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create integration task internal server error response a status code equal to that given
+func (o *CreateIntegrationTaskInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create integration task internal server error response
+func (o *CreateIntegrationTaskInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateIntegrationTaskInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateIntegrationTaskInternalServerError) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks][%d] createIntegrationTaskInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateIntegrationTaskInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *CreateIntegrationTaskInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/delete_executor_node_parameters.go b/falcon/client/a_s_p_m/delete_executor_node_parameters.go
new file mode 100644
index 00000000..06155a20
--- /dev/null
+++ b/falcon/client/a_s_p_m/delete_executor_node_parameters.go
@@ -0,0 +1,149 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewDeleteExecutorNodeParams creates a new DeleteExecutorNodeParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDeleteExecutorNodeParams() *DeleteExecutorNodeParams {
+ return &DeleteExecutorNodeParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDeleteExecutorNodeParamsWithTimeout creates a new DeleteExecutorNodeParams object
+// with the ability to set a timeout on a request.
+func NewDeleteExecutorNodeParamsWithTimeout(timeout time.Duration) *DeleteExecutorNodeParams {
+ return &DeleteExecutorNodeParams{
+ timeout: timeout,
+ }
+}
+
+// NewDeleteExecutorNodeParamsWithContext creates a new DeleteExecutorNodeParams object
+// with the ability to set a context for a request.
+func NewDeleteExecutorNodeParamsWithContext(ctx context.Context) *DeleteExecutorNodeParams {
+ return &DeleteExecutorNodeParams{
+ Context: ctx,
+ }
+}
+
+// NewDeleteExecutorNodeParamsWithHTTPClient creates a new DeleteExecutorNodeParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDeleteExecutorNodeParamsWithHTTPClient(client *http.Client) *DeleteExecutorNodeParams {
+ return &DeleteExecutorNodeParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DeleteExecutorNodeParams contains all the parameters to send to the API endpoint
+
+ for the delete executor node operation.
+
+ Typically these are written to a http.Request.
+*/
+type DeleteExecutorNodeParams struct {
+
+ // ID.
+ ID int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the delete executor node params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteExecutorNodeParams) WithDefaults() *DeleteExecutorNodeParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the delete executor node params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteExecutorNodeParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the delete executor node params
+func (o *DeleteExecutorNodeParams) WithTimeout(timeout time.Duration) *DeleteExecutorNodeParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the delete executor node params
+func (o *DeleteExecutorNodeParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the delete executor node params
+func (o *DeleteExecutorNodeParams) WithContext(ctx context.Context) *DeleteExecutorNodeParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the delete executor node params
+func (o *DeleteExecutorNodeParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the delete executor node params
+func (o *DeleteExecutorNodeParams) WithHTTPClient(client *http.Client) *DeleteExecutorNodeParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the delete executor node params
+func (o *DeleteExecutorNodeParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithID adds the id to the delete executor node params
+func (o *DeleteExecutorNodeParams) WithID(id int64) *DeleteExecutorNodeParams {
+ o.SetID(id)
+ return o
+}
+
+// SetID adds the id to the delete executor node params
+func (o *DeleteExecutorNodeParams) SetID(id int64) {
+ o.ID = id
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DeleteExecutorNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param ID
+ if err := r.SetPathParam("ID", swag.FormatInt64(o.ID)); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/delete_executor_node_responses.go b/falcon/client/a_s_p_m/delete_executor_node_responses.go
new file mode 100644
index 00000000..5137c2cb
--- /dev/null
+++ b/falcon/client/a_s_p_m/delete_executor_node_responses.go
@@ -0,0 +1,729 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DeleteExecutorNodeReader is a Reader for the DeleteExecutorNode structure.
+type DeleteExecutorNodeReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DeleteExecutorNodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewDeleteExecutorNodeOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewDeleteExecutorNodeBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewDeleteExecutorNodeUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewDeleteExecutorNodeForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDeleteExecutorNodeTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDeleteExecutorNodeInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}] DeleteExecutorNode", response, response.Code())
+ }
+}
+
+// NewDeleteExecutorNodeOK creates a DeleteExecutorNodeOK with default headers values
+func NewDeleteExecutorNodeOK() *DeleteExecutorNodeOK {
+ return &DeleteExecutorNodeOK{}
+}
+
+/*
+DeleteExecutorNodeOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type DeleteExecutorNodeOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this delete executor node o k response has a 2xx status code
+func (o *DeleteExecutorNodeOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this delete executor node o k response has a 3xx status code
+func (o *DeleteExecutorNodeOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete executor node o k response has a 4xx status code
+func (o *DeleteExecutorNodeOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete executor node o k response has a 5xx status code
+func (o *DeleteExecutorNodeOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete executor node o k response a status code equal to that given
+func (o *DeleteExecutorNodeOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the delete executor node o k response
+func (o *DeleteExecutorNodeOK) Code() int {
+ return 200
+}
+
+func (o *DeleteExecutorNodeOK) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeOK ", 200)
+}
+
+func (o *DeleteExecutorNodeOK) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeOK ", 200)
+}
+
+func (o *DeleteExecutorNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewDeleteExecutorNodeBadRequest creates a DeleteExecutorNodeBadRequest with default headers values
+func NewDeleteExecutorNodeBadRequest() *DeleteExecutorNodeBadRequest {
+ return &DeleteExecutorNodeBadRequest{}
+}
+
+/*
+DeleteExecutorNodeBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type DeleteExecutorNodeBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete executor node bad request response has a 2xx status code
+func (o *DeleteExecutorNodeBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete executor node bad request response has a 3xx status code
+func (o *DeleteExecutorNodeBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete executor node bad request response has a 4xx status code
+func (o *DeleteExecutorNodeBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete executor node bad request response has a 5xx status code
+func (o *DeleteExecutorNodeBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete executor node bad request response a status code equal to that given
+func (o *DeleteExecutorNodeBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the delete executor node bad request response
+func (o *DeleteExecutorNodeBadRequest) Code() int {
+ return 400
+}
+
+func (o *DeleteExecutorNodeBadRequest) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteExecutorNodeBadRequest) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteExecutorNodeBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteExecutorNodeBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteExecutorNodeUnauthorized creates a DeleteExecutorNodeUnauthorized with default headers values
+func NewDeleteExecutorNodeUnauthorized() *DeleteExecutorNodeUnauthorized {
+ return &DeleteExecutorNodeUnauthorized{}
+}
+
+/*
+DeleteExecutorNodeUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type DeleteExecutorNodeUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete executor node unauthorized response has a 2xx status code
+func (o *DeleteExecutorNodeUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete executor node unauthorized response has a 3xx status code
+func (o *DeleteExecutorNodeUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete executor node unauthorized response has a 4xx status code
+func (o *DeleteExecutorNodeUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete executor node unauthorized response has a 5xx status code
+func (o *DeleteExecutorNodeUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete executor node unauthorized response a status code equal to that given
+func (o *DeleteExecutorNodeUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the delete executor node unauthorized response
+func (o *DeleteExecutorNodeUnauthorized) Code() int {
+ return 401
+}
+
+func (o *DeleteExecutorNodeUnauthorized) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *DeleteExecutorNodeUnauthorized) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *DeleteExecutorNodeUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteExecutorNodeUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteExecutorNodeForbidden creates a DeleteExecutorNodeForbidden with default headers values
+func NewDeleteExecutorNodeForbidden() *DeleteExecutorNodeForbidden {
+ return &DeleteExecutorNodeForbidden{}
+}
+
+/*
+DeleteExecutorNodeForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DeleteExecutorNodeForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete executor node forbidden response has a 2xx status code
+func (o *DeleteExecutorNodeForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete executor node forbidden response has a 3xx status code
+func (o *DeleteExecutorNodeForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete executor node forbidden response has a 4xx status code
+func (o *DeleteExecutorNodeForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete executor node forbidden response has a 5xx status code
+func (o *DeleteExecutorNodeForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete executor node forbidden response a status code equal to that given
+func (o *DeleteExecutorNodeForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the delete executor node forbidden response
+func (o *DeleteExecutorNodeForbidden) Code() int {
+ return 403
+}
+
+func (o *DeleteExecutorNodeForbidden) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteExecutorNodeForbidden) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteExecutorNodeForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteExecutorNodeForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteExecutorNodeTooManyRequests creates a DeleteExecutorNodeTooManyRequests with default headers values
+func NewDeleteExecutorNodeTooManyRequests() *DeleteExecutorNodeTooManyRequests {
+ return &DeleteExecutorNodeTooManyRequests{}
+}
+
+/*
+DeleteExecutorNodeTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DeleteExecutorNodeTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete executor node too many requests response has a 2xx status code
+func (o *DeleteExecutorNodeTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete executor node too many requests response has a 3xx status code
+func (o *DeleteExecutorNodeTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete executor node too many requests response has a 4xx status code
+func (o *DeleteExecutorNodeTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete executor node too many requests response has a 5xx status code
+func (o *DeleteExecutorNodeTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete executor node too many requests response a status code equal to that given
+func (o *DeleteExecutorNodeTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the delete executor node too many requests response
+func (o *DeleteExecutorNodeTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DeleteExecutorNodeTooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteExecutorNodeTooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteExecutorNodeTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteExecutorNodeTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteExecutorNodeInternalServerError creates a DeleteExecutorNodeInternalServerError with default headers values
+func NewDeleteExecutorNodeInternalServerError() *DeleteExecutorNodeInternalServerError {
+ return &DeleteExecutorNodeInternalServerError{}
+}
+
+/*
+DeleteExecutorNodeInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type DeleteExecutorNodeInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete executor node internal server error response has a 2xx status code
+func (o *DeleteExecutorNodeInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete executor node internal server error response has a 3xx status code
+func (o *DeleteExecutorNodeInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete executor node internal server error response has a 4xx status code
+func (o *DeleteExecutorNodeInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete executor node internal server error response has a 5xx status code
+func (o *DeleteExecutorNodeInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete executor node internal server error response a status code equal to that given
+func (o *DeleteExecutorNodeInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete executor node internal server error response
+func (o *DeleteExecutorNodeInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteExecutorNodeInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteExecutorNodeInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/executor_nodes/{ID}][%d] deleteExecutorNodeInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteExecutorNodeInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteExecutorNodeInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/delete_integration_parameters.go b/falcon/client/a_s_p_m/delete_integration_parameters.go
new file mode 100644
index 00000000..4b19d6f2
--- /dev/null
+++ b/falcon/client/a_s_p_m/delete_integration_parameters.go
@@ -0,0 +1,149 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewDeleteIntegrationParams creates a new DeleteIntegrationParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDeleteIntegrationParams() *DeleteIntegrationParams {
+ return &DeleteIntegrationParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDeleteIntegrationParamsWithTimeout creates a new DeleteIntegrationParams object
+// with the ability to set a timeout on a request.
+func NewDeleteIntegrationParamsWithTimeout(timeout time.Duration) *DeleteIntegrationParams {
+ return &DeleteIntegrationParams{
+ timeout: timeout,
+ }
+}
+
+// NewDeleteIntegrationParamsWithContext creates a new DeleteIntegrationParams object
+// with the ability to set a context for a request.
+func NewDeleteIntegrationParamsWithContext(ctx context.Context) *DeleteIntegrationParams {
+ return &DeleteIntegrationParams{
+ Context: ctx,
+ }
+}
+
+// NewDeleteIntegrationParamsWithHTTPClient creates a new DeleteIntegrationParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDeleteIntegrationParamsWithHTTPClient(client *http.Client) *DeleteIntegrationParams {
+ return &DeleteIntegrationParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DeleteIntegrationParams contains all the parameters to send to the API endpoint
+
+ for the delete integration operation.
+
+ Typically these are written to a http.Request.
+*/
+type DeleteIntegrationParams struct {
+
+ // ID.
+ ID int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the delete integration params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteIntegrationParams) WithDefaults() *DeleteIntegrationParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the delete integration params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteIntegrationParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the delete integration params
+func (o *DeleteIntegrationParams) WithTimeout(timeout time.Duration) *DeleteIntegrationParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the delete integration params
+func (o *DeleteIntegrationParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the delete integration params
+func (o *DeleteIntegrationParams) WithContext(ctx context.Context) *DeleteIntegrationParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the delete integration params
+func (o *DeleteIntegrationParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the delete integration params
+func (o *DeleteIntegrationParams) WithHTTPClient(client *http.Client) *DeleteIntegrationParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the delete integration params
+func (o *DeleteIntegrationParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithID adds the id to the delete integration params
+func (o *DeleteIntegrationParams) WithID(id int64) *DeleteIntegrationParams {
+ o.SetID(id)
+ return o
+}
+
+// SetID adds the id to the delete integration params
+func (o *DeleteIntegrationParams) SetID(id int64) {
+ o.ID = id
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DeleteIntegrationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param ID
+ if err := r.SetPathParam("ID", swag.FormatInt64(o.ID)); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/delete_integration_responses.go b/falcon/client/a_s_p_m/delete_integration_responses.go
new file mode 100644
index 00000000..c18f31d2
--- /dev/null
+++ b/falcon/client/a_s_p_m/delete_integration_responses.go
@@ -0,0 +1,729 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DeleteIntegrationReader is a Reader for the DeleteIntegration structure.
+type DeleteIntegrationReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DeleteIntegrationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewDeleteIntegrationOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewDeleteIntegrationBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewDeleteIntegrationUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewDeleteIntegrationForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDeleteIntegrationTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDeleteIntegrationInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}] DeleteIntegration", response, response.Code())
+ }
+}
+
+// NewDeleteIntegrationOK creates a DeleteIntegrationOK with default headers values
+func NewDeleteIntegrationOK() *DeleteIntegrationOK {
+ return &DeleteIntegrationOK{}
+}
+
+/*
+DeleteIntegrationOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type DeleteIntegrationOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this delete integration o k response has a 2xx status code
+func (o *DeleteIntegrationOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this delete integration o k response has a 3xx status code
+func (o *DeleteIntegrationOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration o k response has a 4xx status code
+func (o *DeleteIntegrationOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete integration o k response has a 5xx status code
+func (o *DeleteIntegrationOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete integration o k response a status code equal to that given
+func (o *DeleteIntegrationOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the delete integration o k response
+func (o *DeleteIntegrationOK) Code() int {
+ return 200
+}
+
+func (o *DeleteIntegrationOK) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationOK ", 200)
+}
+
+func (o *DeleteIntegrationOK) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationOK ", 200)
+}
+
+func (o *DeleteIntegrationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewDeleteIntegrationBadRequest creates a DeleteIntegrationBadRequest with default headers values
+func NewDeleteIntegrationBadRequest() *DeleteIntegrationBadRequest {
+ return &DeleteIntegrationBadRequest{}
+}
+
+/*
+DeleteIntegrationBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type DeleteIntegrationBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete integration bad request response has a 2xx status code
+func (o *DeleteIntegrationBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete integration bad request response has a 3xx status code
+func (o *DeleteIntegrationBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration bad request response has a 4xx status code
+func (o *DeleteIntegrationBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete integration bad request response has a 5xx status code
+func (o *DeleteIntegrationBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete integration bad request response a status code equal to that given
+func (o *DeleteIntegrationBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the delete integration bad request response
+func (o *DeleteIntegrationBadRequest) Code() int {
+ return 400
+}
+
+func (o *DeleteIntegrationBadRequest) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteIntegrationBadRequest) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteIntegrationBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteIntegrationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteIntegrationUnauthorized creates a DeleteIntegrationUnauthorized with default headers values
+func NewDeleteIntegrationUnauthorized() *DeleteIntegrationUnauthorized {
+ return &DeleteIntegrationUnauthorized{}
+}
+
+/*
+DeleteIntegrationUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type DeleteIntegrationUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete integration unauthorized response has a 2xx status code
+func (o *DeleteIntegrationUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete integration unauthorized response has a 3xx status code
+func (o *DeleteIntegrationUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration unauthorized response has a 4xx status code
+func (o *DeleteIntegrationUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete integration unauthorized response has a 5xx status code
+func (o *DeleteIntegrationUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete integration unauthorized response a status code equal to that given
+func (o *DeleteIntegrationUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the delete integration unauthorized response
+func (o *DeleteIntegrationUnauthorized) Code() int {
+ return 401
+}
+
+func (o *DeleteIntegrationUnauthorized) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *DeleteIntegrationUnauthorized) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *DeleteIntegrationUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteIntegrationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteIntegrationForbidden creates a DeleteIntegrationForbidden with default headers values
+func NewDeleteIntegrationForbidden() *DeleteIntegrationForbidden {
+ return &DeleteIntegrationForbidden{}
+}
+
+/*
+DeleteIntegrationForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DeleteIntegrationForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete integration forbidden response has a 2xx status code
+func (o *DeleteIntegrationForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete integration forbidden response has a 3xx status code
+func (o *DeleteIntegrationForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration forbidden response has a 4xx status code
+func (o *DeleteIntegrationForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete integration forbidden response has a 5xx status code
+func (o *DeleteIntegrationForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete integration forbidden response a status code equal to that given
+func (o *DeleteIntegrationForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the delete integration forbidden response
+func (o *DeleteIntegrationForbidden) Code() int {
+ return 403
+}
+
+func (o *DeleteIntegrationForbidden) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteIntegrationForbidden) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteIntegrationForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteIntegrationForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteIntegrationTooManyRequests creates a DeleteIntegrationTooManyRequests with default headers values
+func NewDeleteIntegrationTooManyRequests() *DeleteIntegrationTooManyRequests {
+ return &DeleteIntegrationTooManyRequests{}
+}
+
+/*
+DeleteIntegrationTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DeleteIntegrationTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete integration too many requests response has a 2xx status code
+func (o *DeleteIntegrationTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete integration too many requests response has a 3xx status code
+func (o *DeleteIntegrationTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration too many requests response has a 4xx status code
+func (o *DeleteIntegrationTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete integration too many requests response has a 5xx status code
+func (o *DeleteIntegrationTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete integration too many requests response a status code equal to that given
+func (o *DeleteIntegrationTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the delete integration too many requests response
+func (o *DeleteIntegrationTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DeleteIntegrationTooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteIntegrationTooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteIntegrationTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteIntegrationTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteIntegrationInternalServerError creates a DeleteIntegrationInternalServerError with default headers values
+func NewDeleteIntegrationInternalServerError() *DeleteIntegrationInternalServerError {
+ return &DeleteIntegrationInternalServerError{}
+}
+
+/*
+DeleteIntegrationInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type DeleteIntegrationInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete integration internal server error response has a 2xx status code
+func (o *DeleteIntegrationInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete integration internal server error response has a 3xx status code
+func (o *DeleteIntegrationInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration internal server error response has a 4xx status code
+func (o *DeleteIntegrationInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete integration internal server error response has a 5xx status code
+func (o *DeleteIntegrationInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete integration internal server error response a status code equal to that given
+func (o *DeleteIntegrationInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete integration internal server error response
+func (o *DeleteIntegrationInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteIntegrationInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteIntegrationInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integrations/{ID}][%d] deleteIntegrationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteIntegrationInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteIntegrationInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/delete_integration_task_parameters.go b/falcon/client/a_s_p_m/delete_integration_task_parameters.go
new file mode 100644
index 00000000..9ba5ff59
--- /dev/null
+++ b/falcon/client/a_s_p_m/delete_integration_task_parameters.go
@@ -0,0 +1,149 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewDeleteIntegrationTaskParams creates a new DeleteIntegrationTaskParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDeleteIntegrationTaskParams() *DeleteIntegrationTaskParams {
+ return &DeleteIntegrationTaskParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDeleteIntegrationTaskParamsWithTimeout creates a new DeleteIntegrationTaskParams object
+// with the ability to set a timeout on a request.
+func NewDeleteIntegrationTaskParamsWithTimeout(timeout time.Duration) *DeleteIntegrationTaskParams {
+ return &DeleteIntegrationTaskParams{
+ timeout: timeout,
+ }
+}
+
+// NewDeleteIntegrationTaskParamsWithContext creates a new DeleteIntegrationTaskParams object
+// with the ability to set a context for a request.
+func NewDeleteIntegrationTaskParamsWithContext(ctx context.Context) *DeleteIntegrationTaskParams {
+ return &DeleteIntegrationTaskParams{
+ Context: ctx,
+ }
+}
+
+// NewDeleteIntegrationTaskParamsWithHTTPClient creates a new DeleteIntegrationTaskParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDeleteIntegrationTaskParamsWithHTTPClient(client *http.Client) *DeleteIntegrationTaskParams {
+ return &DeleteIntegrationTaskParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DeleteIntegrationTaskParams contains all the parameters to send to the API endpoint
+
+ for the delete integration task operation.
+
+ Typically these are written to a http.Request.
+*/
+type DeleteIntegrationTaskParams struct {
+
+ // ID.
+ ID int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the delete integration task params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteIntegrationTaskParams) WithDefaults() *DeleteIntegrationTaskParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the delete integration task params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteIntegrationTaskParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the delete integration task params
+func (o *DeleteIntegrationTaskParams) WithTimeout(timeout time.Duration) *DeleteIntegrationTaskParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the delete integration task params
+func (o *DeleteIntegrationTaskParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the delete integration task params
+func (o *DeleteIntegrationTaskParams) WithContext(ctx context.Context) *DeleteIntegrationTaskParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the delete integration task params
+func (o *DeleteIntegrationTaskParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the delete integration task params
+func (o *DeleteIntegrationTaskParams) WithHTTPClient(client *http.Client) *DeleteIntegrationTaskParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the delete integration task params
+func (o *DeleteIntegrationTaskParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithID adds the id to the delete integration task params
+func (o *DeleteIntegrationTaskParams) WithID(id int64) *DeleteIntegrationTaskParams {
+ o.SetID(id)
+ return o
+}
+
+// SetID adds the id to the delete integration task params
+func (o *DeleteIntegrationTaskParams) SetID(id int64) {
+ o.ID = id
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DeleteIntegrationTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param ID
+ if err := r.SetPathParam("ID", swag.FormatInt64(o.ID)); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/delete_integration_task_responses.go b/falcon/client/a_s_p_m/delete_integration_task_responses.go
new file mode 100644
index 00000000..17582028
--- /dev/null
+++ b/falcon/client/a_s_p_m/delete_integration_task_responses.go
@@ -0,0 +1,729 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DeleteIntegrationTaskReader is a Reader for the DeleteIntegrationTask structure.
+type DeleteIntegrationTaskReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DeleteIntegrationTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewDeleteIntegrationTaskOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewDeleteIntegrationTaskBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewDeleteIntegrationTaskUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewDeleteIntegrationTaskForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDeleteIntegrationTaskTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDeleteIntegrationTaskInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}] DeleteIntegrationTask", response, response.Code())
+ }
+}
+
+// NewDeleteIntegrationTaskOK creates a DeleteIntegrationTaskOK with default headers values
+func NewDeleteIntegrationTaskOK() *DeleteIntegrationTaskOK {
+ return &DeleteIntegrationTaskOK{}
+}
+
+/*
+DeleteIntegrationTaskOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type DeleteIntegrationTaskOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this delete integration task o k response has a 2xx status code
+func (o *DeleteIntegrationTaskOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this delete integration task o k response has a 3xx status code
+func (o *DeleteIntegrationTaskOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration task o k response has a 4xx status code
+func (o *DeleteIntegrationTaskOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete integration task o k response has a 5xx status code
+func (o *DeleteIntegrationTaskOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete integration task o k response a status code equal to that given
+func (o *DeleteIntegrationTaskOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the delete integration task o k response
+func (o *DeleteIntegrationTaskOK) Code() int {
+ return 200
+}
+
+func (o *DeleteIntegrationTaskOK) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskOK ", 200)
+}
+
+func (o *DeleteIntegrationTaskOK) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskOK ", 200)
+}
+
+func (o *DeleteIntegrationTaskOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewDeleteIntegrationTaskBadRequest creates a DeleteIntegrationTaskBadRequest with default headers values
+func NewDeleteIntegrationTaskBadRequest() *DeleteIntegrationTaskBadRequest {
+ return &DeleteIntegrationTaskBadRequest{}
+}
+
+/*
+DeleteIntegrationTaskBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type DeleteIntegrationTaskBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete integration task bad request response has a 2xx status code
+func (o *DeleteIntegrationTaskBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete integration task bad request response has a 3xx status code
+func (o *DeleteIntegrationTaskBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration task bad request response has a 4xx status code
+func (o *DeleteIntegrationTaskBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete integration task bad request response has a 5xx status code
+func (o *DeleteIntegrationTaskBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete integration task bad request response a status code equal to that given
+func (o *DeleteIntegrationTaskBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the delete integration task bad request response
+func (o *DeleteIntegrationTaskBadRequest) Code() int {
+ return 400
+}
+
+func (o *DeleteIntegrationTaskBadRequest) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteIntegrationTaskBadRequest) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteIntegrationTaskBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteIntegrationTaskBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteIntegrationTaskUnauthorized creates a DeleteIntegrationTaskUnauthorized with default headers values
+func NewDeleteIntegrationTaskUnauthorized() *DeleteIntegrationTaskUnauthorized {
+ return &DeleteIntegrationTaskUnauthorized{}
+}
+
+/*
+DeleteIntegrationTaskUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type DeleteIntegrationTaskUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete integration task unauthorized response has a 2xx status code
+func (o *DeleteIntegrationTaskUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete integration task unauthorized response has a 3xx status code
+func (o *DeleteIntegrationTaskUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration task unauthorized response has a 4xx status code
+func (o *DeleteIntegrationTaskUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete integration task unauthorized response has a 5xx status code
+func (o *DeleteIntegrationTaskUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete integration task unauthorized response a status code equal to that given
+func (o *DeleteIntegrationTaskUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the delete integration task unauthorized response
+func (o *DeleteIntegrationTaskUnauthorized) Code() int {
+ return 401
+}
+
+func (o *DeleteIntegrationTaskUnauthorized) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *DeleteIntegrationTaskUnauthorized) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *DeleteIntegrationTaskUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteIntegrationTaskUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteIntegrationTaskForbidden creates a DeleteIntegrationTaskForbidden with default headers values
+func NewDeleteIntegrationTaskForbidden() *DeleteIntegrationTaskForbidden {
+ return &DeleteIntegrationTaskForbidden{}
+}
+
+/*
+DeleteIntegrationTaskForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DeleteIntegrationTaskForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete integration task forbidden response has a 2xx status code
+func (o *DeleteIntegrationTaskForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete integration task forbidden response has a 3xx status code
+func (o *DeleteIntegrationTaskForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration task forbidden response has a 4xx status code
+func (o *DeleteIntegrationTaskForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete integration task forbidden response has a 5xx status code
+func (o *DeleteIntegrationTaskForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete integration task forbidden response a status code equal to that given
+func (o *DeleteIntegrationTaskForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the delete integration task forbidden response
+func (o *DeleteIntegrationTaskForbidden) Code() int {
+ return 403
+}
+
+func (o *DeleteIntegrationTaskForbidden) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteIntegrationTaskForbidden) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteIntegrationTaskForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteIntegrationTaskForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteIntegrationTaskTooManyRequests creates a DeleteIntegrationTaskTooManyRequests with default headers values
+func NewDeleteIntegrationTaskTooManyRequests() *DeleteIntegrationTaskTooManyRequests {
+ return &DeleteIntegrationTaskTooManyRequests{}
+}
+
+/*
+DeleteIntegrationTaskTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DeleteIntegrationTaskTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete integration task too many requests response has a 2xx status code
+func (o *DeleteIntegrationTaskTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete integration task too many requests response has a 3xx status code
+func (o *DeleteIntegrationTaskTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration task too many requests response has a 4xx status code
+func (o *DeleteIntegrationTaskTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete integration task too many requests response has a 5xx status code
+func (o *DeleteIntegrationTaskTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete integration task too many requests response a status code equal to that given
+func (o *DeleteIntegrationTaskTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the delete integration task too many requests response
+func (o *DeleteIntegrationTaskTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DeleteIntegrationTaskTooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteIntegrationTaskTooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteIntegrationTaskTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteIntegrationTaskTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteIntegrationTaskInternalServerError creates a DeleteIntegrationTaskInternalServerError with default headers values
+func NewDeleteIntegrationTaskInternalServerError() *DeleteIntegrationTaskInternalServerError {
+ return &DeleteIntegrationTaskInternalServerError{}
+}
+
+/*
+DeleteIntegrationTaskInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type DeleteIntegrationTaskInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete integration task internal server error response has a 2xx status code
+func (o *DeleteIntegrationTaskInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete integration task internal server error response has a 3xx status code
+func (o *DeleteIntegrationTaskInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete integration task internal server error response has a 4xx status code
+func (o *DeleteIntegrationTaskInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete integration task internal server error response has a 5xx status code
+func (o *DeleteIntegrationTaskInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete integration task internal server error response a status code equal to that given
+func (o *DeleteIntegrationTaskInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete integration task internal server error response
+func (o *DeleteIntegrationTaskInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteIntegrationTaskInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteIntegrationTaskInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] deleteIntegrationTaskInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteIntegrationTaskInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteIntegrationTaskInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/delete_tags_parameters.go b/falcon/client/a_s_p_m/delete_tags_parameters.go
new file mode 100644
index 00000000..c2ce20c2
--- /dev/null
+++ b/falcon/client/a_s_p_m/delete_tags_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewDeleteTagsParams creates a new DeleteTagsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDeleteTagsParams() *DeleteTagsParams {
+ return &DeleteTagsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDeleteTagsParamsWithTimeout creates a new DeleteTagsParams object
+// with the ability to set a timeout on a request.
+func NewDeleteTagsParamsWithTimeout(timeout time.Duration) *DeleteTagsParams {
+ return &DeleteTagsParams{
+ timeout: timeout,
+ }
+}
+
+// NewDeleteTagsParamsWithContext creates a new DeleteTagsParams object
+// with the ability to set a context for a request.
+func NewDeleteTagsParamsWithContext(ctx context.Context) *DeleteTagsParams {
+ return &DeleteTagsParams{
+ Context: ctx,
+ }
+}
+
+// NewDeleteTagsParamsWithHTTPClient creates a new DeleteTagsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDeleteTagsParamsWithHTTPClient(client *http.Client) *DeleteTagsParams {
+ return &DeleteTagsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DeleteTagsParams contains all the parameters to send to the API endpoint
+
+ for the delete tags operation.
+
+ Typically these are written to a http.Request.
+*/
+type DeleteTagsParams struct {
+
+ // Body.
+ Body *models.TypesEditTagRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the delete tags params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteTagsParams) WithDefaults() *DeleteTagsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the delete tags params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteTagsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the delete tags params
+func (o *DeleteTagsParams) WithTimeout(timeout time.Duration) *DeleteTagsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the delete tags params
+func (o *DeleteTagsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the delete tags params
+func (o *DeleteTagsParams) WithContext(ctx context.Context) *DeleteTagsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the delete tags params
+func (o *DeleteTagsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the delete tags params
+func (o *DeleteTagsParams) WithHTTPClient(client *http.Client) *DeleteTagsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the delete tags params
+func (o *DeleteTagsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the delete tags params
+func (o *DeleteTagsParams) WithBody(body *models.TypesEditTagRequest) *DeleteTagsParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the delete tags params
+func (o *DeleteTagsParams) SetBody(body *models.TypesEditTagRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DeleteTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/delete_tags_responses.go b/falcon/client/a_s_p_m/delete_tags_responses.go
new file mode 100644
index 00000000..acb64c81
--- /dev/null
+++ b/falcon/client/a_s_p_m/delete_tags_responses.go
@@ -0,0 +1,845 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DeleteTagsReader is a Reader for the DeleteTags structure.
+type DeleteTagsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DeleteTagsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 201:
+ result := NewDeleteTagsCreated()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewDeleteTagsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewDeleteTagsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewDeleteTagsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDeleteTagsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDeleteTagsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 503:
+ result := NewDeleteTagsServiceUnavailable()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /aspm-api-gateway/api/v1/tags] DeleteTags", response, response.Code())
+ }
+}
+
+// NewDeleteTagsCreated creates a DeleteTagsCreated with default headers values
+func NewDeleteTagsCreated() *DeleteTagsCreated {
+ return &DeleteTagsCreated{}
+}
+
+/*
+DeleteTagsCreated describes a response with status code 201, with default header values.
+
+Created
+*/
+type DeleteTagsCreated struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this delete tags created response has a 2xx status code
+func (o *DeleteTagsCreated) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this delete tags created response has a 3xx status code
+func (o *DeleteTagsCreated) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete tags created response has a 4xx status code
+func (o *DeleteTagsCreated) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete tags created response has a 5xx status code
+func (o *DeleteTagsCreated) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete tags created response a status code equal to that given
+func (o *DeleteTagsCreated) IsCode(code int) bool {
+ return code == 201
+}
+
+// Code gets the status code for the delete tags created response
+func (o *DeleteTagsCreated) Code() int {
+ return 201
+}
+
+func (o *DeleteTagsCreated) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsCreated ", 201)
+}
+
+func (o *DeleteTagsCreated) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsCreated ", 201)
+}
+
+func (o *DeleteTagsCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewDeleteTagsBadRequest creates a DeleteTagsBadRequest with default headers values
+func NewDeleteTagsBadRequest() *DeleteTagsBadRequest {
+ return &DeleteTagsBadRequest{}
+}
+
+/*
+DeleteTagsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type DeleteTagsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete tags bad request response has a 2xx status code
+func (o *DeleteTagsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete tags bad request response has a 3xx status code
+func (o *DeleteTagsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete tags bad request response has a 4xx status code
+func (o *DeleteTagsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete tags bad request response has a 5xx status code
+func (o *DeleteTagsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete tags bad request response a status code equal to that given
+func (o *DeleteTagsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the delete tags bad request response
+func (o *DeleteTagsBadRequest) Code() int {
+ return 400
+}
+
+func (o *DeleteTagsBadRequest) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteTagsBadRequest) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteTagsBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteTagsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteTagsUnauthorized creates a DeleteTagsUnauthorized with default headers values
+func NewDeleteTagsUnauthorized() *DeleteTagsUnauthorized {
+ return &DeleteTagsUnauthorized{}
+}
+
+/*
+DeleteTagsUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type DeleteTagsUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete tags unauthorized response has a 2xx status code
+func (o *DeleteTagsUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete tags unauthorized response has a 3xx status code
+func (o *DeleteTagsUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete tags unauthorized response has a 4xx status code
+func (o *DeleteTagsUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete tags unauthorized response has a 5xx status code
+func (o *DeleteTagsUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete tags unauthorized response a status code equal to that given
+func (o *DeleteTagsUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the delete tags unauthorized response
+func (o *DeleteTagsUnauthorized) Code() int {
+ return 401
+}
+
+func (o *DeleteTagsUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *DeleteTagsUnauthorized) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *DeleteTagsUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteTagsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteTagsForbidden creates a DeleteTagsForbidden with default headers values
+func NewDeleteTagsForbidden() *DeleteTagsForbidden {
+ return &DeleteTagsForbidden{}
+}
+
+/*
+DeleteTagsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DeleteTagsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete tags forbidden response has a 2xx status code
+func (o *DeleteTagsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete tags forbidden response has a 3xx status code
+func (o *DeleteTagsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete tags forbidden response has a 4xx status code
+func (o *DeleteTagsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete tags forbidden response has a 5xx status code
+func (o *DeleteTagsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete tags forbidden response a status code equal to that given
+func (o *DeleteTagsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the delete tags forbidden response
+func (o *DeleteTagsForbidden) Code() int {
+ return 403
+}
+
+func (o *DeleteTagsForbidden) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteTagsForbidden) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteTagsForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteTagsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteTagsTooManyRequests creates a DeleteTagsTooManyRequests with default headers values
+func NewDeleteTagsTooManyRequests() *DeleteTagsTooManyRequests {
+ return &DeleteTagsTooManyRequests{}
+}
+
+/*
+DeleteTagsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DeleteTagsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete tags too many requests response has a 2xx status code
+func (o *DeleteTagsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete tags too many requests response has a 3xx status code
+func (o *DeleteTagsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete tags too many requests response has a 4xx status code
+func (o *DeleteTagsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete tags too many requests response has a 5xx status code
+func (o *DeleteTagsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete tags too many requests response a status code equal to that given
+func (o *DeleteTagsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the delete tags too many requests response
+func (o *DeleteTagsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DeleteTagsTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteTagsTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteTagsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteTagsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteTagsInternalServerError creates a DeleteTagsInternalServerError with default headers values
+func NewDeleteTagsInternalServerError() *DeleteTagsInternalServerError {
+ return &DeleteTagsInternalServerError{}
+}
+
+/*
+DeleteTagsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteTagsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete tags internal server error response has a 2xx status code
+func (o *DeleteTagsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete tags internal server error response has a 3xx status code
+func (o *DeleteTagsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete tags internal server error response has a 4xx status code
+func (o *DeleteTagsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete tags internal server error response has a 5xx status code
+func (o *DeleteTagsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete tags internal server error response a status code equal to that given
+func (o *DeleteTagsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete tags internal server error response
+func (o *DeleteTagsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteTagsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteTagsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteTagsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteTagsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteTagsServiceUnavailable creates a DeleteTagsServiceUnavailable with default headers values
+func NewDeleteTagsServiceUnavailable() *DeleteTagsServiceUnavailable {
+ return &DeleteTagsServiceUnavailable{}
+}
+
+/*
+DeleteTagsServiceUnavailable describes a response with status code 503, with default header values.
+
+Service Unavailable
+*/
+type DeleteTagsServiceUnavailable struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this delete tags service unavailable response has a 2xx status code
+func (o *DeleteTagsServiceUnavailable) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete tags service unavailable response has a 3xx status code
+func (o *DeleteTagsServiceUnavailable) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete tags service unavailable response has a 4xx status code
+func (o *DeleteTagsServiceUnavailable) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete tags service unavailable response has a 5xx status code
+func (o *DeleteTagsServiceUnavailable) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete tags service unavailable response a status code equal to that given
+func (o *DeleteTagsServiceUnavailable) IsCode(code int) bool {
+ return code == 503
+}
+
+// Code gets the status code for the delete tags service unavailable response
+func (o *DeleteTagsServiceUnavailable) Code() int {
+ return 503
+}
+
+func (o *DeleteTagsServiceUnavailable) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsServiceUnavailable %+v", 503, o.Payload)
+}
+
+func (o *DeleteTagsServiceUnavailable) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/tags][%d] deleteTagsServiceUnavailable %+v", 503, o.Payload)
+}
+
+func (o *DeleteTagsServiceUnavailable) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *DeleteTagsServiceUnavailable) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/execute_query_parameters.go b/falcon/client/a_s_p_m/execute_query_parameters.go
new file mode 100644
index 00000000..0644d5fa
--- /dev/null
+++ b/falcon/client/a_s_p_m/execute_query_parameters.go
@@ -0,0 +1,157 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewExecuteQueryParams creates a new ExecuteQueryParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewExecuteQueryParams() *ExecuteQueryParams {
+ return &ExecuteQueryParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewExecuteQueryParamsWithTimeout creates a new ExecuteQueryParams object
+// with the ability to set a timeout on a request.
+func NewExecuteQueryParamsWithTimeout(timeout time.Duration) *ExecuteQueryParams {
+ return &ExecuteQueryParams{
+ timeout: timeout,
+ }
+}
+
+// NewExecuteQueryParamsWithContext creates a new ExecuteQueryParams object
+// with the ability to set a context for a request.
+func NewExecuteQueryParamsWithContext(ctx context.Context) *ExecuteQueryParams {
+ return &ExecuteQueryParams{
+ Context: ctx,
+ }
+}
+
+// NewExecuteQueryParamsWithHTTPClient creates a new ExecuteQueryParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewExecuteQueryParamsWithHTTPClient(client *http.Client) *ExecuteQueryParams {
+ return &ExecuteQueryParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+ExecuteQueryParams contains all the parameters to send to the API endpoint
+
+ for the execute query operation.
+
+ Typically these are written to a http.Request.
+*/
+type ExecuteQueryParams struct {
+
+ /* Body.
+
+ **params details:**
+ - selectFields:
+ - **fields** - For filtering relevant fields only.
+ - **withoutServices** - Default is set to **true**, you will not receive information about the services. If you want to get the relevant service, set to **false**.
+ - **serviceFields**- For filtering relevant fields of the service (if you chose to get it)
+ */
+ Body *models.TypesQueryRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the execute query params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ExecuteQueryParams) WithDefaults() *ExecuteQueryParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the execute query params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ExecuteQueryParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the execute query params
+func (o *ExecuteQueryParams) WithTimeout(timeout time.Duration) *ExecuteQueryParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the execute query params
+func (o *ExecuteQueryParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the execute query params
+func (o *ExecuteQueryParams) WithContext(ctx context.Context) *ExecuteQueryParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the execute query params
+func (o *ExecuteQueryParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the execute query params
+func (o *ExecuteQueryParams) WithHTTPClient(client *http.Client) *ExecuteQueryParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the execute query params
+func (o *ExecuteQueryParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the execute query params
+func (o *ExecuteQueryParams) WithBody(body *models.TypesQueryRequest) *ExecuteQueryParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the execute query params
+func (o *ExecuteQueryParams) SetBody(body *models.TypesQueryRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *ExecuteQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/execute_query_responses.go b/falcon/client/a_s_p_m/execute_query_responses.go
new file mode 100644
index 00000000..7cad9e7c
--- /dev/null
+++ b/falcon/client/a_s_p_m/execute_query_responses.go
@@ -0,0 +1,858 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// ExecuteQueryReader is a Reader for the ExecuteQuery structure.
+type ExecuteQueryReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *ExecuteQueryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewExecuteQueryOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewExecuteQueryBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewExecuteQueryUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewExecuteQueryForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewExecuteQueryTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewExecuteQueryInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 503:
+ result := NewExecuteQueryServiceUnavailable()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /aspm-api-gateway/api/v1/query] ExecuteQuery", response, response.Code())
+ }
+}
+
+// NewExecuteQueryOK creates a ExecuteQueryOK with default headers values
+func NewExecuteQueryOK() *ExecuteQueryOK {
+ return &ExecuteQueryOK{}
+}
+
+/*
+ExecuteQueryOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type ExecuteQueryOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesQueryResult
+}
+
+// IsSuccess returns true when this execute query o k response has a 2xx status code
+func (o *ExecuteQueryOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this execute query o k response has a 3xx status code
+func (o *ExecuteQueryOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute query o k response has a 4xx status code
+func (o *ExecuteQueryOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this execute query o k response has a 5xx status code
+func (o *ExecuteQueryOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute query o k response a status code equal to that given
+func (o *ExecuteQueryOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the execute query o k response
+func (o *ExecuteQueryOK) Code() int {
+ return 200
+}
+
+func (o *ExecuteQueryOK) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryOK %+v", 200, o.Payload)
+}
+
+func (o *ExecuteQueryOK) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryOK %+v", 200, o.Payload)
+}
+
+func (o *ExecuteQueryOK) GetPayload() *models.TypesQueryResult {
+ return o.Payload
+}
+
+func (o *ExecuteQueryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesQueryResult)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteQueryBadRequest creates a ExecuteQueryBadRequest with default headers values
+func NewExecuteQueryBadRequest() *ExecuteQueryBadRequest {
+ return &ExecuteQueryBadRequest{}
+}
+
+/*
+ExecuteQueryBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type ExecuteQueryBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this execute query bad request response has a 2xx status code
+func (o *ExecuteQueryBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute query bad request response has a 3xx status code
+func (o *ExecuteQueryBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute query bad request response has a 4xx status code
+func (o *ExecuteQueryBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this execute query bad request response has a 5xx status code
+func (o *ExecuteQueryBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute query bad request response a status code equal to that given
+func (o *ExecuteQueryBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the execute query bad request response
+func (o *ExecuteQueryBadRequest) Code() int {
+ return 400
+}
+
+func (o *ExecuteQueryBadRequest) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ExecuteQueryBadRequest) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ExecuteQueryBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *ExecuteQueryBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteQueryUnauthorized creates a ExecuteQueryUnauthorized with default headers values
+func NewExecuteQueryUnauthorized() *ExecuteQueryUnauthorized {
+ return &ExecuteQueryUnauthorized{}
+}
+
+/*
+ExecuteQueryUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type ExecuteQueryUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this execute query unauthorized response has a 2xx status code
+func (o *ExecuteQueryUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute query unauthorized response has a 3xx status code
+func (o *ExecuteQueryUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute query unauthorized response has a 4xx status code
+func (o *ExecuteQueryUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this execute query unauthorized response has a 5xx status code
+func (o *ExecuteQueryUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute query unauthorized response a status code equal to that given
+func (o *ExecuteQueryUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the execute query unauthorized response
+func (o *ExecuteQueryUnauthorized) Code() int {
+ return 401
+}
+
+func (o *ExecuteQueryUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ExecuteQueryUnauthorized) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ExecuteQueryUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *ExecuteQueryUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteQueryForbidden creates a ExecuteQueryForbidden with default headers values
+func NewExecuteQueryForbidden() *ExecuteQueryForbidden {
+ return &ExecuteQueryForbidden{}
+}
+
+/*
+ExecuteQueryForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type ExecuteQueryForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this execute query forbidden response has a 2xx status code
+func (o *ExecuteQueryForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute query forbidden response has a 3xx status code
+func (o *ExecuteQueryForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute query forbidden response has a 4xx status code
+func (o *ExecuteQueryForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this execute query forbidden response has a 5xx status code
+func (o *ExecuteQueryForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute query forbidden response a status code equal to that given
+func (o *ExecuteQueryForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the execute query forbidden response
+func (o *ExecuteQueryForbidden) Code() int {
+ return 403
+}
+
+func (o *ExecuteQueryForbidden) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryForbidden %+v", 403, o.Payload)
+}
+
+func (o *ExecuteQueryForbidden) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryForbidden %+v", 403, o.Payload)
+}
+
+func (o *ExecuteQueryForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *ExecuteQueryForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteQueryTooManyRequests creates a ExecuteQueryTooManyRequests with default headers values
+func NewExecuteQueryTooManyRequests() *ExecuteQueryTooManyRequests {
+ return &ExecuteQueryTooManyRequests{}
+}
+
+/*
+ExecuteQueryTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type ExecuteQueryTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this execute query too many requests response has a 2xx status code
+func (o *ExecuteQueryTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute query too many requests response has a 3xx status code
+func (o *ExecuteQueryTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute query too many requests response has a 4xx status code
+func (o *ExecuteQueryTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this execute query too many requests response has a 5xx status code
+func (o *ExecuteQueryTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute query too many requests response a status code equal to that given
+func (o *ExecuteQueryTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the execute query too many requests response
+func (o *ExecuteQueryTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *ExecuteQueryTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ExecuteQueryTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ExecuteQueryTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ExecuteQueryTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteQueryInternalServerError creates a ExecuteQueryInternalServerError with default headers values
+func NewExecuteQueryInternalServerError() *ExecuteQueryInternalServerError {
+ return &ExecuteQueryInternalServerError{}
+}
+
+/*
+ExecuteQueryInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ExecuteQueryInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this execute query internal server error response has a 2xx status code
+func (o *ExecuteQueryInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute query internal server error response has a 3xx status code
+func (o *ExecuteQueryInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute query internal server error response has a 4xx status code
+func (o *ExecuteQueryInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this execute query internal server error response has a 5xx status code
+func (o *ExecuteQueryInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this execute query internal server error response a status code equal to that given
+func (o *ExecuteQueryInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the execute query internal server error response
+func (o *ExecuteQueryInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ExecuteQueryInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ExecuteQueryInternalServerError) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ExecuteQueryInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ExecuteQueryInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteQueryServiceUnavailable creates a ExecuteQueryServiceUnavailable with default headers values
+func NewExecuteQueryServiceUnavailable() *ExecuteQueryServiceUnavailable {
+ return &ExecuteQueryServiceUnavailable{}
+}
+
+/*
+ExecuteQueryServiceUnavailable describes a response with status code 503, with default header values.
+
+Service Unavailable
+*/
+type ExecuteQueryServiceUnavailable struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this execute query service unavailable response has a 2xx status code
+func (o *ExecuteQueryServiceUnavailable) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute query service unavailable response has a 3xx status code
+func (o *ExecuteQueryServiceUnavailable) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute query service unavailable response has a 4xx status code
+func (o *ExecuteQueryServiceUnavailable) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this execute query service unavailable response has a 5xx status code
+func (o *ExecuteQueryServiceUnavailable) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this execute query service unavailable response a status code equal to that given
+func (o *ExecuteQueryServiceUnavailable) IsCode(code int) bool {
+ return code == 503
+}
+
+// Code gets the status code for the execute query service unavailable response
+func (o *ExecuteQueryServiceUnavailable) Code() int {
+ return 503
+}
+
+func (o *ExecuteQueryServiceUnavailable) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryServiceUnavailable %+v", 503, o.Payload)
+}
+
+func (o *ExecuteQueryServiceUnavailable) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/query][%d] executeQueryServiceUnavailable %+v", 503, o.Payload)
+}
+
+func (o *ExecuteQueryServiceUnavailable) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *ExecuteQueryServiceUnavailable) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_executor_nodes_parameters.go b/falcon/client/a_s_p_m/get_executor_nodes_parameters.go
new file mode 100644
index 00000000..f3d97c9c
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_executor_nodes_parameters.go
@@ -0,0 +1,185 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetExecutorNodesParams creates a new GetExecutorNodesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetExecutorNodesParams() *GetExecutorNodesParams {
+ return &GetExecutorNodesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetExecutorNodesParamsWithTimeout creates a new GetExecutorNodesParams object
+// with the ability to set a timeout on a request.
+func NewGetExecutorNodesParamsWithTimeout(timeout time.Duration) *GetExecutorNodesParams {
+ return &GetExecutorNodesParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetExecutorNodesParamsWithContext creates a new GetExecutorNodesParams object
+// with the ability to set a context for a request.
+func NewGetExecutorNodesParamsWithContext(ctx context.Context) *GetExecutorNodesParams {
+ return &GetExecutorNodesParams{
+ Context: ctx,
+ }
+}
+
+// NewGetExecutorNodesParamsWithHTTPClient creates a new GetExecutorNodesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetExecutorNodesParamsWithHTTPClient(client *http.Client) *GetExecutorNodesParams {
+ return &GetExecutorNodesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetExecutorNodesParams contains all the parameters to send to the API endpoint
+
+ for the get executor nodes operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetExecutorNodesParams struct {
+
+ // IntegrationType.
+ IntegrationType *int64
+
+ // NodeType.
+ NodeType string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get executor nodes params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetExecutorNodesParams) WithDefaults() *GetExecutorNodesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get executor nodes params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetExecutorNodesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get executor nodes params
+func (o *GetExecutorNodesParams) WithTimeout(timeout time.Duration) *GetExecutorNodesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get executor nodes params
+func (o *GetExecutorNodesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get executor nodes params
+func (o *GetExecutorNodesParams) WithContext(ctx context.Context) *GetExecutorNodesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get executor nodes params
+func (o *GetExecutorNodesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get executor nodes params
+func (o *GetExecutorNodesParams) WithHTTPClient(client *http.Client) *GetExecutorNodesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get executor nodes params
+func (o *GetExecutorNodesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIntegrationType adds the integrationType to the get executor nodes params
+func (o *GetExecutorNodesParams) WithIntegrationType(integrationType *int64) *GetExecutorNodesParams {
+ o.SetIntegrationType(integrationType)
+ return o
+}
+
+// SetIntegrationType adds the integrationType to the get executor nodes params
+func (o *GetExecutorNodesParams) SetIntegrationType(integrationType *int64) {
+ o.IntegrationType = integrationType
+}
+
+// WithNodeType adds the nodeType to the get executor nodes params
+func (o *GetExecutorNodesParams) WithNodeType(nodeType string) *GetExecutorNodesParams {
+ o.SetNodeType(nodeType)
+ return o
+}
+
+// SetNodeType adds the nodeType to the get executor nodes params
+func (o *GetExecutorNodesParams) SetNodeType(nodeType string) {
+ o.NodeType = nodeType
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetExecutorNodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.IntegrationType != nil {
+
+ // query param integration_type
+ var qrIntegrationType int64
+
+ if o.IntegrationType != nil {
+ qrIntegrationType = *o.IntegrationType
+ }
+ qIntegrationType := swag.FormatInt64(qrIntegrationType)
+ if qIntegrationType != "" {
+
+ if err := r.SetQueryParam("integration_type", qIntegrationType); err != nil {
+ return err
+ }
+ }
+ }
+
+ // query param node_type
+ qrNodeType := o.NodeType
+ qNodeType := qrNodeType
+ if qNodeType != "" {
+
+ if err := r.SetQueryParam("node_type", qNodeType); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_executor_nodes_responses.go b/falcon/client/a_s_p_m/get_executor_nodes_responses.go
new file mode 100644
index 00000000..47330942
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_executor_nodes_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetExecutorNodesReader is a Reader for the GetExecutorNodes structure.
+type GetExecutorNodesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetExecutorNodesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetExecutorNodesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewGetExecutorNodesBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewGetExecutorNodesUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetExecutorNodesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetExecutorNodesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetExecutorNodesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /aspm-api-gateway/api/v1/executor_nodes] GetExecutorNodes", response, response.Code())
+ }
+}
+
+// NewGetExecutorNodesOK creates a GetExecutorNodesOK with default headers values
+func NewGetExecutorNodesOK() *GetExecutorNodesOK {
+ return &GetExecutorNodesOK{}
+}
+
+/*
+GetExecutorNodesOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetExecutorNodesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesListExecutorNodesResponse
+}
+
+// IsSuccess returns true when this get executor nodes o k response has a 2xx status code
+func (o *GetExecutorNodesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get executor nodes o k response has a 3xx status code
+func (o *GetExecutorNodesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get executor nodes o k response has a 4xx status code
+func (o *GetExecutorNodesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get executor nodes o k response has a 5xx status code
+func (o *GetExecutorNodesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get executor nodes o k response a status code equal to that given
+func (o *GetExecutorNodesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get executor nodes o k response
+func (o *GetExecutorNodesOK) Code() int {
+ return 200
+}
+
+func (o *GetExecutorNodesOK) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesOK %+v", 200, o.Payload)
+}
+
+func (o *GetExecutorNodesOK) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesOK %+v", 200, o.Payload)
+}
+
+func (o *GetExecutorNodesOK) GetPayload() *models.TypesListExecutorNodesResponse {
+ return o.Payload
+}
+
+func (o *GetExecutorNodesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesListExecutorNodesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetExecutorNodesBadRequest creates a GetExecutorNodesBadRequest with default headers values
+func NewGetExecutorNodesBadRequest() *GetExecutorNodesBadRequest {
+ return &GetExecutorNodesBadRequest{}
+}
+
+/*
+GetExecutorNodesBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type GetExecutorNodesBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get executor nodes bad request response has a 2xx status code
+func (o *GetExecutorNodesBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get executor nodes bad request response has a 3xx status code
+func (o *GetExecutorNodesBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get executor nodes bad request response has a 4xx status code
+func (o *GetExecutorNodesBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get executor nodes bad request response has a 5xx status code
+func (o *GetExecutorNodesBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get executor nodes bad request response a status code equal to that given
+func (o *GetExecutorNodesBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the get executor nodes bad request response
+func (o *GetExecutorNodesBadRequest) Code() int {
+ return 400
+}
+
+func (o *GetExecutorNodesBadRequest) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetExecutorNodesBadRequest) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetExecutorNodesBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetExecutorNodesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetExecutorNodesUnauthorized creates a GetExecutorNodesUnauthorized with default headers values
+func NewGetExecutorNodesUnauthorized() *GetExecutorNodesUnauthorized {
+ return &GetExecutorNodesUnauthorized{}
+}
+
+/*
+GetExecutorNodesUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type GetExecutorNodesUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get executor nodes unauthorized response has a 2xx status code
+func (o *GetExecutorNodesUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get executor nodes unauthorized response has a 3xx status code
+func (o *GetExecutorNodesUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get executor nodes unauthorized response has a 4xx status code
+func (o *GetExecutorNodesUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get executor nodes unauthorized response has a 5xx status code
+func (o *GetExecutorNodesUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get executor nodes unauthorized response a status code equal to that given
+func (o *GetExecutorNodesUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get executor nodes unauthorized response
+func (o *GetExecutorNodesUnauthorized) Code() int {
+ return 401
+}
+
+func (o *GetExecutorNodesUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetExecutorNodesUnauthorized) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetExecutorNodesUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetExecutorNodesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetExecutorNodesForbidden creates a GetExecutorNodesForbidden with default headers values
+func NewGetExecutorNodesForbidden() *GetExecutorNodesForbidden {
+ return &GetExecutorNodesForbidden{}
+}
+
+/*
+GetExecutorNodesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetExecutorNodesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get executor nodes forbidden response has a 2xx status code
+func (o *GetExecutorNodesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get executor nodes forbidden response has a 3xx status code
+func (o *GetExecutorNodesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get executor nodes forbidden response has a 4xx status code
+func (o *GetExecutorNodesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get executor nodes forbidden response has a 5xx status code
+func (o *GetExecutorNodesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get executor nodes forbidden response a status code equal to that given
+func (o *GetExecutorNodesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get executor nodes forbidden response
+func (o *GetExecutorNodesForbidden) Code() int {
+ return 403
+}
+
+func (o *GetExecutorNodesForbidden) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetExecutorNodesForbidden) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetExecutorNodesForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetExecutorNodesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetExecutorNodesTooManyRequests creates a GetExecutorNodesTooManyRequests with default headers values
+func NewGetExecutorNodesTooManyRequests() *GetExecutorNodesTooManyRequests {
+ return &GetExecutorNodesTooManyRequests{}
+}
+
+/*
+GetExecutorNodesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetExecutorNodesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get executor nodes too many requests response has a 2xx status code
+func (o *GetExecutorNodesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get executor nodes too many requests response has a 3xx status code
+func (o *GetExecutorNodesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get executor nodes too many requests response has a 4xx status code
+func (o *GetExecutorNodesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get executor nodes too many requests response has a 5xx status code
+func (o *GetExecutorNodesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get executor nodes too many requests response a status code equal to that given
+func (o *GetExecutorNodesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get executor nodes too many requests response
+func (o *GetExecutorNodesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetExecutorNodesTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetExecutorNodesTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetExecutorNodesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetExecutorNodesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetExecutorNodesInternalServerError creates a GetExecutorNodesInternalServerError with default headers values
+func NewGetExecutorNodesInternalServerError() *GetExecutorNodesInternalServerError {
+ return &GetExecutorNodesInternalServerError{}
+}
+
+/*
+GetExecutorNodesInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type GetExecutorNodesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get executor nodes internal server error response has a 2xx status code
+func (o *GetExecutorNodesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get executor nodes internal server error response has a 3xx status code
+func (o *GetExecutorNodesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get executor nodes internal server error response has a 4xx status code
+func (o *GetExecutorNodesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get executor nodes internal server error response has a 5xx status code
+func (o *GetExecutorNodesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get executor nodes internal server error response a status code equal to that given
+func (o *GetExecutorNodesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get executor nodes internal server error response
+func (o *GetExecutorNodesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetExecutorNodesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetExecutorNodesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/executor_nodes][%d] getExecutorNodesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetExecutorNodesInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetExecutorNodesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_integration_tasks_parameters.go b/falcon/client/a_s_p_m/get_integration_tasks_parameters.go
new file mode 100644
index 00000000..e7ea8ec8
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_integration_tasks_parameters.go
@@ -0,0 +1,192 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetIntegrationTasksParams creates a new GetIntegrationTasksParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetIntegrationTasksParams() *GetIntegrationTasksParams {
+ return &GetIntegrationTasksParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetIntegrationTasksParamsWithTimeout creates a new GetIntegrationTasksParams object
+// with the ability to set a timeout on a request.
+func NewGetIntegrationTasksParamsWithTimeout(timeout time.Duration) *GetIntegrationTasksParams {
+ return &GetIntegrationTasksParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetIntegrationTasksParamsWithContext creates a new GetIntegrationTasksParams object
+// with the ability to set a context for a request.
+func NewGetIntegrationTasksParamsWithContext(ctx context.Context) *GetIntegrationTasksParams {
+ return &GetIntegrationTasksParams{
+ Context: ctx,
+ }
+}
+
+// NewGetIntegrationTasksParamsWithHTTPClient creates a new GetIntegrationTasksParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetIntegrationTasksParamsWithHTTPClient(client *http.Client) *GetIntegrationTasksParams {
+ return &GetIntegrationTasksParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetIntegrationTasksParams contains all the parameters to send to the API endpoint
+
+ for the get integration tasks operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetIntegrationTasksParams struct {
+
+ // Category.
+ Category *string
+
+ // IntegrationTaskType.
+ IntegrationTaskType *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get integration tasks params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIntegrationTasksParams) WithDefaults() *GetIntegrationTasksParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get integration tasks params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIntegrationTasksParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get integration tasks params
+func (o *GetIntegrationTasksParams) WithTimeout(timeout time.Duration) *GetIntegrationTasksParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get integration tasks params
+func (o *GetIntegrationTasksParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get integration tasks params
+func (o *GetIntegrationTasksParams) WithContext(ctx context.Context) *GetIntegrationTasksParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get integration tasks params
+func (o *GetIntegrationTasksParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get integration tasks params
+func (o *GetIntegrationTasksParams) WithHTTPClient(client *http.Client) *GetIntegrationTasksParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get integration tasks params
+func (o *GetIntegrationTasksParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithCategory adds the category to the get integration tasks params
+func (o *GetIntegrationTasksParams) WithCategory(category *string) *GetIntegrationTasksParams {
+ o.SetCategory(category)
+ return o
+}
+
+// SetCategory adds the category to the get integration tasks params
+func (o *GetIntegrationTasksParams) SetCategory(category *string) {
+ o.Category = category
+}
+
+// WithIntegrationTaskType adds the integrationTaskType to the get integration tasks params
+func (o *GetIntegrationTasksParams) WithIntegrationTaskType(integrationTaskType *int64) *GetIntegrationTasksParams {
+ o.SetIntegrationTaskType(integrationTaskType)
+ return o
+}
+
+// SetIntegrationTaskType adds the integrationTaskType to the get integration tasks params
+func (o *GetIntegrationTasksParams) SetIntegrationTaskType(integrationTaskType *int64) {
+ o.IntegrationTaskType = integrationTaskType
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetIntegrationTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Category != nil {
+
+ // query param category
+ var qrCategory string
+
+ if o.Category != nil {
+ qrCategory = *o.Category
+ }
+ qCategory := qrCategory
+ if qCategory != "" {
+
+ if err := r.SetQueryParam("category", qCategory); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.IntegrationTaskType != nil {
+
+ // query param integration_task_type
+ var qrIntegrationTaskType int64
+
+ if o.IntegrationTaskType != nil {
+ qrIntegrationTaskType = *o.IntegrationTaskType
+ }
+ qIntegrationTaskType := swag.FormatInt64(qrIntegrationTaskType)
+ if qIntegrationTaskType != "" {
+
+ if err := r.SetQueryParam("integration_task_type", qIntegrationTaskType); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_integration_tasks_responses.go b/falcon/client/a_s_p_m/get_integration_tasks_responses.go
new file mode 100644
index 00000000..b87021f3
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_integration_tasks_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetIntegrationTasksReader is a Reader for the GetIntegrationTasks structure.
+type GetIntegrationTasksReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetIntegrationTasksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetIntegrationTasksOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewGetIntegrationTasksBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewGetIntegrationTasksUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetIntegrationTasksForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetIntegrationTasksTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetIntegrationTasksInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /aspm-api-gateway/api/v1/integration_tasks] GetIntegrationTasks", response, response.Code())
+ }
+}
+
+// NewGetIntegrationTasksOK creates a GetIntegrationTasksOK with default headers values
+func NewGetIntegrationTasksOK() *GetIntegrationTasksOK {
+ return &GetIntegrationTasksOK{}
+}
+
+/*
+GetIntegrationTasksOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetIntegrationTasksOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesListIntegrationTasksResponse
+}
+
+// IsSuccess returns true when this get integration tasks o k response has a 2xx status code
+func (o *GetIntegrationTasksOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get integration tasks o k response has a 3xx status code
+func (o *GetIntegrationTasksOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration tasks o k response has a 4xx status code
+func (o *GetIntegrationTasksOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get integration tasks o k response has a 5xx status code
+func (o *GetIntegrationTasksOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integration tasks o k response a status code equal to that given
+func (o *GetIntegrationTasksOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get integration tasks o k response
+func (o *GetIntegrationTasksOK) Code() int {
+ return 200
+}
+
+func (o *GetIntegrationTasksOK) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksOK %+v", 200, o.Payload)
+}
+
+func (o *GetIntegrationTasksOK) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksOK %+v", 200, o.Payload)
+}
+
+func (o *GetIntegrationTasksOK) GetPayload() *models.TypesListIntegrationTasksResponse {
+ return o.Payload
+}
+
+func (o *GetIntegrationTasksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesListIntegrationTasksResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationTasksBadRequest creates a GetIntegrationTasksBadRequest with default headers values
+func NewGetIntegrationTasksBadRequest() *GetIntegrationTasksBadRequest {
+ return &GetIntegrationTasksBadRequest{}
+}
+
+/*
+GetIntegrationTasksBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type GetIntegrationTasksBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integration tasks bad request response has a 2xx status code
+func (o *GetIntegrationTasksBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integration tasks bad request response has a 3xx status code
+func (o *GetIntegrationTasksBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration tasks bad request response has a 4xx status code
+func (o *GetIntegrationTasksBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integration tasks bad request response has a 5xx status code
+func (o *GetIntegrationTasksBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integration tasks bad request response a status code equal to that given
+func (o *GetIntegrationTasksBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the get integration tasks bad request response
+func (o *GetIntegrationTasksBadRequest) Code() int {
+ return 400
+}
+
+func (o *GetIntegrationTasksBadRequest) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetIntegrationTasksBadRequest) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetIntegrationTasksBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationTasksBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationTasksUnauthorized creates a GetIntegrationTasksUnauthorized with default headers values
+func NewGetIntegrationTasksUnauthorized() *GetIntegrationTasksUnauthorized {
+ return &GetIntegrationTasksUnauthorized{}
+}
+
+/*
+GetIntegrationTasksUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type GetIntegrationTasksUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integration tasks unauthorized response has a 2xx status code
+func (o *GetIntegrationTasksUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integration tasks unauthorized response has a 3xx status code
+func (o *GetIntegrationTasksUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration tasks unauthorized response has a 4xx status code
+func (o *GetIntegrationTasksUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integration tasks unauthorized response has a 5xx status code
+func (o *GetIntegrationTasksUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integration tasks unauthorized response a status code equal to that given
+func (o *GetIntegrationTasksUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get integration tasks unauthorized response
+func (o *GetIntegrationTasksUnauthorized) Code() int {
+ return 401
+}
+
+func (o *GetIntegrationTasksUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetIntegrationTasksUnauthorized) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetIntegrationTasksUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationTasksUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationTasksForbidden creates a GetIntegrationTasksForbidden with default headers values
+func NewGetIntegrationTasksForbidden() *GetIntegrationTasksForbidden {
+ return &GetIntegrationTasksForbidden{}
+}
+
+/*
+GetIntegrationTasksForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetIntegrationTasksForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integration tasks forbidden response has a 2xx status code
+func (o *GetIntegrationTasksForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integration tasks forbidden response has a 3xx status code
+func (o *GetIntegrationTasksForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration tasks forbidden response has a 4xx status code
+func (o *GetIntegrationTasksForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integration tasks forbidden response has a 5xx status code
+func (o *GetIntegrationTasksForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integration tasks forbidden response a status code equal to that given
+func (o *GetIntegrationTasksForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get integration tasks forbidden response
+func (o *GetIntegrationTasksForbidden) Code() int {
+ return 403
+}
+
+func (o *GetIntegrationTasksForbidden) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetIntegrationTasksForbidden) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetIntegrationTasksForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationTasksForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationTasksTooManyRequests creates a GetIntegrationTasksTooManyRequests with default headers values
+func NewGetIntegrationTasksTooManyRequests() *GetIntegrationTasksTooManyRequests {
+ return &GetIntegrationTasksTooManyRequests{}
+}
+
+/*
+GetIntegrationTasksTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetIntegrationTasksTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get integration tasks too many requests response has a 2xx status code
+func (o *GetIntegrationTasksTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integration tasks too many requests response has a 3xx status code
+func (o *GetIntegrationTasksTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration tasks too many requests response has a 4xx status code
+func (o *GetIntegrationTasksTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integration tasks too many requests response has a 5xx status code
+func (o *GetIntegrationTasksTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integration tasks too many requests response a status code equal to that given
+func (o *GetIntegrationTasksTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get integration tasks too many requests response
+func (o *GetIntegrationTasksTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetIntegrationTasksTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetIntegrationTasksTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetIntegrationTasksTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetIntegrationTasksTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationTasksInternalServerError creates a GetIntegrationTasksInternalServerError with default headers values
+func NewGetIntegrationTasksInternalServerError() *GetIntegrationTasksInternalServerError {
+ return &GetIntegrationTasksInternalServerError{}
+}
+
+/*
+GetIntegrationTasksInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type GetIntegrationTasksInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integration tasks internal server error response has a 2xx status code
+func (o *GetIntegrationTasksInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integration tasks internal server error response has a 3xx status code
+func (o *GetIntegrationTasksInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration tasks internal server error response has a 4xx status code
+func (o *GetIntegrationTasksInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get integration tasks internal server error response has a 5xx status code
+func (o *GetIntegrationTasksInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get integration tasks internal server error response a status code equal to that given
+func (o *GetIntegrationTasksInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get integration tasks internal server error response
+func (o *GetIntegrationTasksInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetIntegrationTasksInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetIntegrationTasksInternalServerError) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_tasks][%d] getIntegrationTasksInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetIntegrationTasksInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationTasksInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_integration_types_parameters.go b/falcon/client/a_s_p_m/get_integration_types_parameters.go
new file mode 100644
index 00000000..70a94482
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_integration_types_parameters.go
@@ -0,0 +1,128 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetIntegrationTypesParams creates a new GetIntegrationTypesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetIntegrationTypesParams() *GetIntegrationTypesParams {
+ return &GetIntegrationTypesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetIntegrationTypesParamsWithTimeout creates a new GetIntegrationTypesParams object
+// with the ability to set a timeout on a request.
+func NewGetIntegrationTypesParamsWithTimeout(timeout time.Duration) *GetIntegrationTypesParams {
+ return &GetIntegrationTypesParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetIntegrationTypesParamsWithContext creates a new GetIntegrationTypesParams object
+// with the ability to set a context for a request.
+func NewGetIntegrationTypesParamsWithContext(ctx context.Context) *GetIntegrationTypesParams {
+ return &GetIntegrationTypesParams{
+ Context: ctx,
+ }
+}
+
+// NewGetIntegrationTypesParamsWithHTTPClient creates a new GetIntegrationTypesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetIntegrationTypesParamsWithHTTPClient(client *http.Client) *GetIntegrationTypesParams {
+ return &GetIntegrationTypesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetIntegrationTypesParams contains all the parameters to send to the API endpoint
+
+ for the get integration types operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetIntegrationTypesParams struct {
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get integration types params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIntegrationTypesParams) WithDefaults() *GetIntegrationTypesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get integration types params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIntegrationTypesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get integration types params
+func (o *GetIntegrationTypesParams) WithTimeout(timeout time.Duration) *GetIntegrationTypesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get integration types params
+func (o *GetIntegrationTypesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get integration types params
+func (o *GetIntegrationTypesParams) WithContext(ctx context.Context) *GetIntegrationTypesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get integration types params
+func (o *GetIntegrationTypesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get integration types params
+func (o *GetIntegrationTypesParams) WithHTTPClient(client *http.Client) *GetIntegrationTypesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get integration types params
+func (o *GetIntegrationTypesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetIntegrationTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_integration_types_responses.go b/falcon/client/a_s_p_m/get_integration_types_responses.go
new file mode 100644
index 00000000..f55ba7f0
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_integration_types_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetIntegrationTypesReader is a Reader for the GetIntegrationTypes structure.
+type GetIntegrationTypesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetIntegrationTypesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetIntegrationTypesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetIntegrationTypesUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetIntegrationTypesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetIntegrationTypesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetIntegrationTypesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /aspm-api-gateway/api/v1/integration_types] GetIntegrationTypes", response, response.Code())
+ }
+}
+
+// NewGetIntegrationTypesOK creates a GetIntegrationTypesOK with default headers values
+func NewGetIntegrationTypesOK() *GetIntegrationTypesOK {
+ return &GetIntegrationTypesOK{}
+}
+
+/*
+GetIntegrationTypesOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetIntegrationTypesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesListIntegrationTypesResponse
+}
+
+// IsSuccess returns true when this get integration types o k response has a 2xx status code
+func (o *GetIntegrationTypesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get integration types o k response has a 3xx status code
+func (o *GetIntegrationTypesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration types o k response has a 4xx status code
+func (o *GetIntegrationTypesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get integration types o k response has a 5xx status code
+func (o *GetIntegrationTypesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integration types o k response a status code equal to that given
+func (o *GetIntegrationTypesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get integration types o k response
+func (o *GetIntegrationTypesOK) Code() int {
+ return 200
+}
+
+func (o *GetIntegrationTypesOK) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_types][%d] getIntegrationTypesOK %+v", 200, o.Payload)
+}
+
+func (o *GetIntegrationTypesOK) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_types][%d] getIntegrationTypesOK %+v", 200, o.Payload)
+}
+
+func (o *GetIntegrationTypesOK) GetPayload() *models.TypesListIntegrationTypesResponse {
+ return o.Payload
+}
+
+func (o *GetIntegrationTypesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesListIntegrationTypesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationTypesUnauthorized creates a GetIntegrationTypesUnauthorized with default headers values
+func NewGetIntegrationTypesUnauthorized() *GetIntegrationTypesUnauthorized {
+ return &GetIntegrationTypesUnauthorized{}
+}
+
+/*
+GetIntegrationTypesUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type GetIntegrationTypesUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integration types unauthorized response has a 2xx status code
+func (o *GetIntegrationTypesUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integration types unauthorized response has a 3xx status code
+func (o *GetIntegrationTypesUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration types unauthorized response has a 4xx status code
+func (o *GetIntegrationTypesUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integration types unauthorized response has a 5xx status code
+func (o *GetIntegrationTypesUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integration types unauthorized response a status code equal to that given
+func (o *GetIntegrationTypesUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get integration types unauthorized response
+func (o *GetIntegrationTypesUnauthorized) Code() int {
+ return 401
+}
+
+func (o *GetIntegrationTypesUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_types][%d] getIntegrationTypesUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetIntegrationTypesUnauthorized) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_types][%d] getIntegrationTypesUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetIntegrationTypesUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationTypesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationTypesForbidden creates a GetIntegrationTypesForbidden with default headers values
+func NewGetIntegrationTypesForbidden() *GetIntegrationTypesForbidden {
+ return &GetIntegrationTypesForbidden{}
+}
+
+/*
+GetIntegrationTypesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetIntegrationTypesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integration types forbidden response has a 2xx status code
+func (o *GetIntegrationTypesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integration types forbidden response has a 3xx status code
+func (o *GetIntegrationTypesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration types forbidden response has a 4xx status code
+func (o *GetIntegrationTypesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integration types forbidden response has a 5xx status code
+func (o *GetIntegrationTypesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integration types forbidden response a status code equal to that given
+func (o *GetIntegrationTypesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get integration types forbidden response
+func (o *GetIntegrationTypesForbidden) Code() int {
+ return 403
+}
+
+func (o *GetIntegrationTypesForbidden) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_types][%d] getIntegrationTypesForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetIntegrationTypesForbidden) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_types][%d] getIntegrationTypesForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetIntegrationTypesForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationTypesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationTypesTooManyRequests creates a GetIntegrationTypesTooManyRequests with default headers values
+func NewGetIntegrationTypesTooManyRequests() *GetIntegrationTypesTooManyRequests {
+ return &GetIntegrationTypesTooManyRequests{}
+}
+
+/*
+GetIntegrationTypesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetIntegrationTypesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get integration types too many requests response has a 2xx status code
+func (o *GetIntegrationTypesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integration types too many requests response has a 3xx status code
+func (o *GetIntegrationTypesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration types too many requests response has a 4xx status code
+func (o *GetIntegrationTypesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integration types too many requests response has a 5xx status code
+func (o *GetIntegrationTypesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integration types too many requests response a status code equal to that given
+func (o *GetIntegrationTypesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get integration types too many requests response
+func (o *GetIntegrationTypesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetIntegrationTypesTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_types][%d] getIntegrationTypesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetIntegrationTypesTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_types][%d] getIntegrationTypesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetIntegrationTypesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetIntegrationTypesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationTypesInternalServerError creates a GetIntegrationTypesInternalServerError with default headers values
+func NewGetIntegrationTypesInternalServerError() *GetIntegrationTypesInternalServerError {
+ return &GetIntegrationTypesInternalServerError{}
+}
+
+/*
+GetIntegrationTypesInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type GetIntegrationTypesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integration types internal server error response has a 2xx status code
+func (o *GetIntegrationTypesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integration types internal server error response has a 3xx status code
+func (o *GetIntegrationTypesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integration types internal server error response has a 4xx status code
+func (o *GetIntegrationTypesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get integration types internal server error response has a 5xx status code
+func (o *GetIntegrationTypesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get integration types internal server error response a status code equal to that given
+func (o *GetIntegrationTypesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get integration types internal server error response
+func (o *GetIntegrationTypesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetIntegrationTypesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_types][%d] getIntegrationTypesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetIntegrationTypesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integration_types][%d] getIntegrationTypesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetIntegrationTypesInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationTypesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_integrations_parameters.go b/falcon/client/a_s_p_m/get_integrations_parameters.go
new file mode 100644
index 00000000..8aa701cc
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_integrations_parameters.go
@@ -0,0 +1,192 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetIntegrationsParams creates a new GetIntegrationsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetIntegrationsParams() *GetIntegrationsParams {
+ return &GetIntegrationsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetIntegrationsParamsWithTimeout creates a new GetIntegrationsParams object
+// with the ability to set a timeout on a request.
+func NewGetIntegrationsParamsWithTimeout(timeout time.Duration) *GetIntegrationsParams {
+ return &GetIntegrationsParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetIntegrationsParamsWithContext creates a new GetIntegrationsParams object
+// with the ability to set a context for a request.
+func NewGetIntegrationsParamsWithContext(ctx context.Context) *GetIntegrationsParams {
+ return &GetIntegrationsParams{
+ Context: ctx,
+ }
+}
+
+// NewGetIntegrationsParamsWithHTTPClient creates a new GetIntegrationsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetIntegrationsParamsWithHTTPClient(client *http.Client) *GetIntegrationsParams {
+ return &GetIntegrationsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetIntegrationsParams contains all the parameters to send to the API endpoint
+
+ for the get integrations operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetIntegrationsParams struct {
+
+ // Category.
+ Category *string
+
+ // IntegrationType.
+ IntegrationType *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get integrations params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIntegrationsParams) WithDefaults() *GetIntegrationsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get integrations params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIntegrationsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get integrations params
+func (o *GetIntegrationsParams) WithTimeout(timeout time.Duration) *GetIntegrationsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get integrations params
+func (o *GetIntegrationsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get integrations params
+func (o *GetIntegrationsParams) WithContext(ctx context.Context) *GetIntegrationsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get integrations params
+func (o *GetIntegrationsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get integrations params
+func (o *GetIntegrationsParams) WithHTTPClient(client *http.Client) *GetIntegrationsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get integrations params
+func (o *GetIntegrationsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithCategory adds the category to the get integrations params
+func (o *GetIntegrationsParams) WithCategory(category *string) *GetIntegrationsParams {
+ o.SetCategory(category)
+ return o
+}
+
+// SetCategory adds the category to the get integrations params
+func (o *GetIntegrationsParams) SetCategory(category *string) {
+ o.Category = category
+}
+
+// WithIntegrationType adds the integrationType to the get integrations params
+func (o *GetIntegrationsParams) WithIntegrationType(integrationType *int64) *GetIntegrationsParams {
+ o.SetIntegrationType(integrationType)
+ return o
+}
+
+// SetIntegrationType adds the integrationType to the get integrations params
+func (o *GetIntegrationsParams) SetIntegrationType(integrationType *int64) {
+ o.IntegrationType = integrationType
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetIntegrationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Category != nil {
+
+ // query param category
+ var qrCategory string
+
+ if o.Category != nil {
+ qrCategory = *o.Category
+ }
+ qCategory := qrCategory
+ if qCategory != "" {
+
+ if err := r.SetQueryParam("category", qCategory); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.IntegrationType != nil {
+
+ // query param integration_type
+ var qrIntegrationType int64
+
+ if o.IntegrationType != nil {
+ qrIntegrationType = *o.IntegrationType
+ }
+ qIntegrationType := swag.FormatInt64(qrIntegrationType)
+ if qIntegrationType != "" {
+
+ if err := r.SetQueryParam("integration_type", qIntegrationType); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_integrations_responses.go b/falcon/client/a_s_p_m/get_integrations_responses.go
new file mode 100644
index 00000000..d86d9abe
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_integrations_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetIntegrationsReader is a Reader for the GetIntegrations structure.
+type GetIntegrationsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetIntegrationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetIntegrationsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewGetIntegrationsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewGetIntegrationsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetIntegrationsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetIntegrationsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetIntegrationsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /aspm-api-gateway/api/v1/integrations] GetIntegrations", response, response.Code())
+ }
+}
+
+// NewGetIntegrationsOK creates a GetIntegrationsOK with default headers values
+func NewGetIntegrationsOK() *GetIntegrationsOK {
+ return &GetIntegrationsOK{}
+}
+
+/*
+GetIntegrationsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetIntegrationsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesListIntegrationsResponse
+}
+
+// IsSuccess returns true when this get integrations o k response has a 2xx status code
+func (o *GetIntegrationsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get integrations o k response has a 3xx status code
+func (o *GetIntegrationsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integrations o k response has a 4xx status code
+func (o *GetIntegrationsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get integrations o k response has a 5xx status code
+func (o *GetIntegrationsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integrations o k response a status code equal to that given
+func (o *GetIntegrationsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get integrations o k response
+func (o *GetIntegrationsOK) Code() int {
+ return 200
+}
+
+func (o *GetIntegrationsOK) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsOK %+v", 200, o.Payload)
+}
+
+func (o *GetIntegrationsOK) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsOK %+v", 200, o.Payload)
+}
+
+func (o *GetIntegrationsOK) GetPayload() *models.TypesListIntegrationsResponse {
+ return o.Payload
+}
+
+func (o *GetIntegrationsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesListIntegrationsResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationsBadRequest creates a GetIntegrationsBadRequest with default headers values
+func NewGetIntegrationsBadRequest() *GetIntegrationsBadRequest {
+ return &GetIntegrationsBadRequest{}
+}
+
+/*
+GetIntegrationsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type GetIntegrationsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integrations bad request response has a 2xx status code
+func (o *GetIntegrationsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integrations bad request response has a 3xx status code
+func (o *GetIntegrationsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integrations bad request response has a 4xx status code
+func (o *GetIntegrationsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integrations bad request response has a 5xx status code
+func (o *GetIntegrationsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integrations bad request response a status code equal to that given
+func (o *GetIntegrationsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the get integrations bad request response
+func (o *GetIntegrationsBadRequest) Code() int {
+ return 400
+}
+
+func (o *GetIntegrationsBadRequest) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetIntegrationsBadRequest) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetIntegrationsBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationsUnauthorized creates a GetIntegrationsUnauthorized with default headers values
+func NewGetIntegrationsUnauthorized() *GetIntegrationsUnauthorized {
+ return &GetIntegrationsUnauthorized{}
+}
+
+/*
+GetIntegrationsUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type GetIntegrationsUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integrations unauthorized response has a 2xx status code
+func (o *GetIntegrationsUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integrations unauthorized response has a 3xx status code
+func (o *GetIntegrationsUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integrations unauthorized response has a 4xx status code
+func (o *GetIntegrationsUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integrations unauthorized response has a 5xx status code
+func (o *GetIntegrationsUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integrations unauthorized response a status code equal to that given
+func (o *GetIntegrationsUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get integrations unauthorized response
+func (o *GetIntegrationsUnauthorized) Code() int {
+ return 401
+}
+
+func (o *GetIntegrationsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetIntegrationsUnauthorized) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetIntegrationsUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationsForbidden creates a GetIntegrationsForbidden with default headers values
+func NewGetIntegrationsForbidden() *GetIntegrationsForbidden {
+ return &GetIntegrationsForbidden{}
+}
+
+/*
+GetIntegrationsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetIntegrationsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integrations forbidden response has a 2xx status code
+func (o *GetIntegrationsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integrations forbidden response has a 3xx status code
+func (o *GetIntegrationsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integrations forbidden response has a 4xx status code
+func (o *GetIntegrationsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integrations forbidden response has a 5xx status code
+func (o *GetIntegrationsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integrations forbidden response a status code equal to that given
+func (o *GetIntegrationsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get integrations forbidden response
+func (o *GetIntegrationsForbidden) Code() int {
+ return 403
+}
+
+func (o *GetIntegrationsForbidden) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetIntegrationsForbidden) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetIntegrationsForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationsTooManyRequests creates a GetIntegrationsTooManyRequests with default headers values
+func NewGetIntegrationsTooManyRequests() *GetIntegrationsTooManyRequests {
+ return &GetIntegrationsTooManyRequests{}
+}
+
+/*
+GetIntegrationsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetIntegrationsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get integrations too many requests response has a 2xx status code
+func (o *GetIntegrationsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integrations too many requests response has a 3xx status code
+func (o *GetIntegrationsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integrations too many requests response has a 4xx status code
+func (o *GetIntegrationsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get integrations too many requests response has a 5xx status code
+func (o *GetIntegrationsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get integrations too many requests response a status code equal to that given
+func (o *GetIntegrationsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get integrations too many requests response
+func (o *GetIntegrationsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetIntegrationsTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetIntegrationsTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetIntegrationsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetIntegrationsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIntegrationsInternalServerError creates a GetIntegrationsInternalServerError with default headers values
+func NewGetIntegrationsInternalServerError() *GetIntegrationsInternalServerError {
+ return &GetIntegrationsInternalServerError{}
+}
+
+/*
+GetIntegrationsInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type GetIntegrationsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get integrations internal server error response has a 2xx status code
+func (o *GetIntegrationsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get integrations internal server error response has a 3xx status code
+func (o *GetIntegrationsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get integrations internal server error response has a 4xx status code
+func (o *GetIntegrationsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get integrations internal server error response has a 5xx status code
+func (o *GetIntegrationsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get integrations internal server error response a status code equal to that given
+func (o *GetIntegrationsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get integrations internal server error response
+func (o *GetIntegrationsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetIntegrationsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetIntegrationsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/integrations][%d] getIntegrationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetIntegrationsInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetIntegrationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_service_violation_types_parameters.go b/falcon/client/a_s_p_m/get_service_violation_types_parameters.go
new file mode 100644
index 00000000..e4da72d2
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_service_violation_types_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewGetServiceViolationTypesParams creates a new GetServiceViolationTypesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetServiceViolationTypesParams() *GetServiceViolationTypesParams {
+ return &GetServiceViolationTypesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetServiceViolationTypesParamsWithTimeout creates a new GetServiceViolationTypesParams object
+// with the ability to set a timeout on a request.
+func NewGetServiceViolationTypesParamsWithTimeout(timeout time.Duration) *GetServiceViolationTypesParams {
+ return &GetServiceViolationTypesParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetServiceViolationTypesParamsWithContext creates a new GetServiceViolationTypesParams object
+// with the ability to set a context for a request.
+func NewGetServiceViolationTypesParamsWithContext(ctx context.Context) *GetServiceViolationTypesParams {
+ return &GetServiceViolationTypesParams{
+ Context: ctx,
+ }
+}
+
+// NewGetServiceViolationTypesParamsWithHTTPClient creates a new GetServiceViolationTypesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetServiceViolationTypesParamsWithHTTPClient(client *http.Client) *GetServiceViolationTypesParams {
+ return &GetServiceViolationTypesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetServiceViolationTypesParams contains all the parameters to send to the API endpoint
+
+ for the get service violation types operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetServiceViolationTypesParams struct {
+
+ // Body.
+ Body *models.TypesGenericUserFacingRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get service violation types params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetServiceViolationTypesParams) WithDefaults() *GetServiceViolationTypesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get service violation types params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetServiceViolationTypesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get service violation types params
+func (o *GetServiceViolationTypesParams) WithTimeout(timeout time.Duration) *GetServiceViolationTypesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get service violation types params
+func (o *GetServiceViolationTypesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get service violation types params
+func (o *GetServiceViolationTypesParams) WithContext(ctx context.Context) *GetServiceViolationTypesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get service violation types params
+func (o *GetServiceViolationTypesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get service violation types params
+func (o *GetServiceViolationTypesParams) WithHTTPClient(client *http.Client) *GetServiceViolationTypesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get service violation types params
+func (o *GetServiceViolationTypesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the get service violation types params
+func (o *GetServiceViolationTypesParams) WithBody(body *models.TypesGenericUserFacingRequest) *GetServiceViolationTypesParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the get service violation types params
+func (o *GetServiceViolationTypesParams) SetBody(body *models.TypesGenericUserFacingRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetServiceViolationTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_service_violation_types_responses.go b/falcon/client/a_s_p_m/get_service_violation_types_responses.go
new file mode 100644
index 00000000..138f0123
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_service_violation_types_responses.go
@@ -0,0 +1,858 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetServiceViolationTypesReader is a Reader for the GetServiceViolationTypes structure.
+type GetServiceViolationTypesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetServiceViolationTypesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetServiceViolationTypesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewGetServiceViolationTypesBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewGetServiceViolationTypesUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetServiceViolationTypesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetServiceViolationTypesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetServiceViolationTypesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 503:
+ result := NewGetServiceViolationTypesServiceUnavailable()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /aspm-api-gateway/api/v1/services/violations/types] GetServiceViolationTypes", response, response.Code())
+ }
+}
+
+// NewGetServiceViolationTypesOK creates a GetServiceViolationTypesOK with default headers values
+func NewGetServiceViolationTypesOK() *GetServiceViolationTypesOK {
+ return &GetServiceViolationTypesOK{}
+}
+
+/*
+GetServiceViolationTypesOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetServiceViolationTypesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesGetViolationTypesResponse
+}
+
+// IsSuccess returns true when this get service violation types o k response has a 2xx status code
+func (o *GetServiceViolationTypesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get service violation types o k response has a 3xx status code
+func (o *GetServiceViolationTypesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get service violation types o k response has a 4xx status code
+func (o *GetServiceViolationTypesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get service violation types o k response has a 5xx status code
+func (o *GetServiceViolationTypesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get service violation types o k response a status code equal to that given
+func (o *GetServiceViolationTypesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get service violation types o k response
+func (o *GetServiceViolationTypesOK) Code() int {
+ return 200
+}
+
+func (o *GetServiceViolationTypesOK) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesOK %+v", 200, o.Payload)
+}
+
+func (o *GetServiceViolationTypesOK) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesOK %+v", 200, o.Payload)
+}
+
+func (o *GetServiceViolationTypesOK) GetPayload() *models.TypesGetViolationTypesResponse {
+ return o.Payload
+}
+
+func (o *GetServiceViolationTypesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesGetViolationTypesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetServiceViolationTypesBadRequest creates a GetServiceViolationTypesBadRequest with default headers values
+func NewGetServiceViolationTypesBadRequest() *GetServiceViolationTypesBadRequest {
+ return &GetServiceViolationTypesBadRequest{}
+}
+
+/*
+GetServiceViolationTypesBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type GetServiceViolationTypesBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get service violation types bad request response has a 2xx status code
+func (o *GetServiceViolationTypesBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get service violation types bad request response has a 3xx status code
+func (o *GetServiceViolationTypesBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get service violation types bad request response has a 4xx status code
+func (o *GetServiceViolationTypesBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get service violation types bad request response has a 5xx status code
+func (o *GetServiceViolationTypesBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get service violation types bad request response a status code equal to that given
+func (o *GetServiceViolationTypesBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the get service violation types bad request response
+func (o *GetServiceViolationTypesBadRequest) Code() int {
+ return 400
+}
+
+func (o *GetServiceViolationTypesBadRequest) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetServiceViolationTypesBadRequest) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetServiceViolationTypesBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetServiceViolationTypesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetServiceViolationTypesUnauthorized creates a GetServiceViolationTypesUnauthorized with default headers values
+func NewGetServiceViolationTypesUnauthorized() *GetServiceViolationTypesUnauthorized {
+ return &GetServiceViolationTypesUnauthorized{}
+}
+
+/*
+GetServiceViolationTypesUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type GetServiceViolationTypesUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get service violation types unauthorized response has a 2xx status code
+func (o *GetServiceViolationTypesUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get service violation types unauthorized response has a 3xx status code
+func (o *GetServiceViolationTypesUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get service violation types unauthorized response has a 4xx status code
+func (o *GetServiceViolationTypesUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get service violation types unauthorized response has a 5xx status code
+func (o *GetServiceViolationTypesUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get service violation types unauthorized response a status code equal to that given
+func (o *GetServiceViolationTypesUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get service violation types unauthorized response
+func (o *GetServiceViolationTypesUnauthorized) Code() int {
+ return 401
+}
+
+func (o *GetServiceViolationTypesUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetServiceViolationTypesUnauthorized) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetServiceViolationTypesUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetServiceViolationTypesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetServiceViolationTypesForbidden creates a GetServiceViolationTypesForbidden with default headers values
+func NewGetServiceViolationTypesForbidden() *GetServiceViolationTypesForbidden {
+ return &GetServiceViolationTypesForbidden{}
+}
+
+/*
+GetServiceViolationTypesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetServiceViolationTypesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get service violation types forbidden response has a 2xx status code
+func (o *GetServiceViolationTypesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get service violation types forbidden response has a 3xx status code
+func (o *GetServiceViolationTypesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get service violation types forbidden response has a 4xx status code
+func (o *GetServiceViolationTypesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get service violation types forbidden response has a 5xx status code
+func (o *GetServiceViolationTypesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get service violation types forbidden response a status code equal to that given
+func (o *GetServiceViolationTypesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get service violation types forbidden response
+func (o *GetServiceViolationTypesForbidden) Code() int {
+ return 403
+}
+
+func (o *GetServiceViolationTypesForbidden) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetServiceViolationTypesForbidden) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetServiceViolationTypesForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetServiceViolationTypesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetServiceViolationTypesTooManyRequests creates a GetServiceViolationTypesTooManyRequests with default headers values
+func NewGetServiceViolationTypesTooManyRequests() *GetServiceViolationTypesTooManyRequests {
+ return &GetServiceViolationTypesTooManyRequests{}
+}
+
+/*
+GetServiceViolationTypesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetServiceViolationTypesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get service violation types too many requests response has a 2xx status code
+func (o *GetServiceViolationTypesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get service violation types too many requests response has a 3xx status code
+func (o *GetServiceViolationTypesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get service violation types too many requests response has a 4xx status code
+func (o *GetServiceViolationTypesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get service violation types too many requests response has a 5xx status code
+func (o *GetServiceViolationTypesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get service violation types too many requests response a status code equal to that given
+func (o *GetServiceViolationTypesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get service violation types too many requests response
+func (o *GetServiceViolationTypesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetServiceViolationTypesTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetServiceViolationTypesTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetServiceViolationTypesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetServiceViolationTypesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetServiceViolationTypesInternalServerError creates a GetServiceViolationTypesInternalServerError with default headers values
+func NewGetServiceViolationTypesInternalServerError() *GetServiceViolationTypesInternalServerError {
+ return &GetServiceViolationTypesInternalServerError{}
+}
+
+/*
+GetServiceViolationTypesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetServiceViolationTypesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get service violation types internal server error response has a 2xx status code
+func (o *GetServiceViolationTypesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get service violation types internal server error response has a 3xx status code
+func (o *GetServiceViolationTypesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get service violation types internal server error response has a 4xx status code
+func (o *GetServiceViolationTypesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get service violation types internal server error response has a 5xx status code
+func (o *GetServiceViolationTypesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get service violation types internal server error response a status code equal to that given
+func (o *GetServiceViolationTypesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get service violation types internal server error response
+func (o *GetServiceViolationTypesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetServiceViolationTypesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetServiceViolationTypesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetServiceViolationTypesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetServiceViolationTypesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetServiceViolationTypesServiceUnavailable creates a GetServiceViolationTypesServiceUnavailable with default headers values
+func NewGetServiceViolationTypesServiceUnavailable() *GetServiceViolationTypesServiceUnavailable {
+ return &GetServiceViolationTypesServiceUnavailable{}
+}
+
+/*
+GetServiceViolationTypesServiceUnavailable describes a response with status code 503, with default header values.
+
+Service Unavailable
+*/
+type GetServiceViolationTypesServiceUnavailable struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get service violation types service unavailable response has a 2xx status code
+func (o *GetServiceViolationTypesServiceUnavailable) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get service violation types service unavailable response has a 3xx status code
+func (o *GetServiceViolationTypesServiceUnavailable) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get service violation types service unavailable response has a 4xx status code
+func (o *GetServiceViolationTypesServiceUnavailable) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get service violation types service unavailable response has a 5xx status code
+func (o *GetServiceViolationTypesServiceUnavailable) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get service violation types service unavailable response a status code equal to that given
+func (o *GetServiceViolationTypesServiceUnavailable) IsCode(code int) bool {
+ return code == 503
+}
+
+// Code gets the status code for the get service violation types service unavailable response
+func (o *GetServiceViolationTypesServiceUnavailable) Code() int {
+ return 503
+}
+
+func (o *GetServiceViolationTypesServiceUnavailable) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesServiceUnavailable %+v", 503, o.Payload)
+}
+
+func (o *GetServiceViolationTypesServiceUnavailable) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/services/violations/types][%d] getServiceViolationTypesServiceUnavailable %+v", 503, o.Payload)
+}
+
+func (o *GetServiceViolationTypesServiceUnavailable) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetServiceViolationTypesServiceUnavailable) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_services_count_parameters.go b/falcon/client/a_s_p_m/get_services_count_parameters.go
new file mode 100644
index 00000000..806bc7a2
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_services_count_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewGetServicesCountParams creates a new GetServicesCountParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetServicesCountParams() *GetServicesCountParams {
+ return &GetServicesCountParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetServicesCountParamsWithTimeout creates a new GetServicesCountParams object
+// with the ability to set a timeout on a request.
+func NewGetServicesCountParamsWithTimeout(timeout time.Duration) *GetServicesCountParams {
+ return &GetServicesCountParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetServicesCountParamsWithContext creates a new GetServicesCountParams object
+// with the ability to set a context for a request.
+func NewGetServicesCountParamsWithContext(ctx context.Context) *GetServicesCountParams {
+ return &GetServicesCountParams{
+ Context: ctx,
+ }
+}
+
+// NewGetServicesCountParamsWithHTTPClient creates a new GetServicesCountParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetServicesCountParamsWithHTTPClient(client *http.Client) *GetServicesCountParams {
+ return &GetServicesCountParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetServicesCountParams contains all the parameters to send to the API endpoint
+
+ for the get services count operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetServicesCountParams struct {
+
+ // Body.
+ Body *models.TypesGetServicesRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get services count params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetServicesCountParams) WithDefaults() *GetServicesCountParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get services count params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetServicesCountParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get services count params
+func (o *GetServicesCountParams) WithTimeout(timeout time.Duration) *GetServicesCountParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get services count params
+func (o *GetServicesCountParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get services count params
+func (o *GetServicesCountParams) WithContext(ctx context.Context) *GetServicesCountParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get services count params
+func (o *GetServicesCountParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get services count params
+func (o *GetServicesCountParams) WithHTTPClient(client *http.Client) *GetServicesCountParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get services count params
+func (o *GetServicesCountParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the get services count params
+func (o *GetServicesCountParams) WithBody(body *models.TypesGetServicesRequest) *GetServicesCountParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the get services count params
+func (o *GetServicesCountParams) SetBody(body *models.TypesGetServicesRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetServicesCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_services_count_responses.go b/falcon/client/a_s_p_m/get_services_count_responses.go
new file mode 100644
index 00000000..7d63f4de
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_services_count_responses.go
@@ -0,0 +1,729 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetServicesCountReader is a Reader for the GetServicesCount structure.
+type GetServicesCountReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetServicesCountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetServicesCountOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewGetServicesCountBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewGetServicesCountUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetServicesCountForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetServicesCountTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetServicesCountInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /aspm-api-gateway/api/v1/services/count] GetServicesCount", response, response.Code())
+ }
+}
+
+// NewGetServicesCountOK creates a GetServicesCountOK with default headers values
+func NewGetServicesCountOK() *GetServicesCountOK {
+ return &GetServicesCountOK{}
+}
+
+/*
+GetServicesCountOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetServicesCountOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this get services count o k response has a 2xx status code
+func (o *GetServicesCountOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get services count o k response has a 3xx status code
+func (o *GetServicesCountOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get services count o k response has a 4xx status code
+func (o *GetServicesCountOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get services count o k response has a 5xx status code
+func (o *GetServicesCountOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get services count o k response a status code equal to that given
+func (o *GetServicesCountOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get services count o k response
+func (o *GetServicesCountOK) Code() int {
+ return 200
+}
+
+func (o *GetServicesCountOK) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountOK ", 200)
+}
+
+func (o *GetServicesCountOK) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountOK ", 200)
+}
+
+func (o *GetServicesCountOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewGetServicesCountBadRequest creates a GetServicesCountBadRequest with default headers values
+func NewGetServicesCountBadRequest() *GetServicesCountBadRequest {
+ return &GetServicesCountBadRequest{}
+}
+
+/*
+GetServicesCountBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type GetServicesCountBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get services count bad request response has a 2xx status code
+func (o *GetServicesCountBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get services count bad request response has a 3xx status code
+func (o *GetServicesCountBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get services count bad request response has a 4xx status code
+func (o *GetServicesCountBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get services count bad request response has a 5xx status code
+func (o *GetServicesCountBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get services count bad request response a status code equal to that given
+func (o *GetServicesCountBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the get services count bad request response
+func (o *GetServicesCountBadRequest) Code() int {
+ return 400
+}
+
+func (o *GetServicesCountBadRequest) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetServicesCountBadRequest) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetServicesCountBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetServicesCountBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetServicesCountUnauthorized creates a GetServicesCountUnauthorized with default headers values
+func NewGetServicesCountUnauthorized() *GetServicesCountUnauthorized {
+ return &GetServicesCountUnauthorized{}
+}
+
+/*
+GetServicesCountUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type GetServicesCountUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get services count unauthorized response has a 2xx status code
+func (o *GetServicesCountUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get services count unauthorized response has a 3xx status code
+func (o *GetServicesCountUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get services count unauthorized response has a 4xx status code
+func (o *GetServicesCountUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get services count unauthorized response has a 5xx status code
+func (o *GetServicesCountUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get services count unauthorized response a status code equal to that given
+func (o *GetServicesCountUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get services count unauthorized response
+func (o *GetServicesCountUnauthorized) Code() int {
+ return 401
+}
+
+func (o *GetServicesCountUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetServicesCountUnauthorized) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetServicesCountUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetServicesCountUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetServicesCountForbidden creates a GetServicesCountForbidden with default headers values
+func NewGetServicesCountForbidden() *GetServicesCountForbidden {
+ return &GetServicesCountForbidden{}
+}
+
+/*
+GetServicesCountForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetServicesCountForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get services count forbidden response has a 2xx status code
+func (o *GetServicesCountForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get services count forbidden response has a 3xx status code
+func (o *GetServicesCountForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get services count forbidden response has a 4xx status code
+func (o *GetServicesCountForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get services count forbidden response has a 5xx status code
+func (o *GetServicesCountForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get services count forbidden response a status code equal to that given
+func (o *GetServicesCountForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get services count forbidden response
+func (o *GetServicesCountForbidden) Code() int {
+ return 403
+}
+
+func (o *GetServicesCountForbidden) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetServicesCountForbidden) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetServicesCountForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetServicesCountForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetServicesCountTooManyRequests creates a GetServicesCountTooManyRequests with default headers values
+func NewGetServicesCountTooManyRequests() *GetServicesCountTooManyRequests {
+ return &GetServicesCountTooManyRequests{}
+}
+
+/*
+GetServicesCountTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetServicesCountTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get services count too many requests response has a 2xx status code
+func (o *GetServicesCountTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get services count too many requests response has a 3xx status code
+func (o *GetServicesCountTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get services count too many requests response has a 4xx status code
+func (o *GetServicesCountTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get services count too many requests response has a 5xx status code
+func (o *GetServicesCountTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get services count too many requests response a status code equal to that given
+func (o *GetServicesCountTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get services count too many requests response
+func (o *GetServicesCountTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetServicesCountTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetServicesCountTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetServicesCountTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetServicesCountTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetServicesCountInternalServerError creates a GetServicesCountInternalServerError with default headers values
+func NewGetServicesCountInternalServerError() *GetServicesCountInternalServerError {
+ return &GetServicesCountInternalServerError{}
+}
+
+/*
+GetServicesCountInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type GetServicesCountInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get services count internal server error response has a 2xx status code
+func (o *GetServicesCountInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get services count internal server error response has a 3xx status code
+func (o *GetServicesCountInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get services count internal server error response has a 4xx status code
+func (o *GetServicesCountInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get services count internal server error response has a 5xx status code
+func (o *GetServicesCountInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get services count internal server error response a status code equal to that given
+func (o *GetServicesCountInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get services count internal server error response
+func (o *GetServicesCountInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetServicesCountInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetServicesCountInternalServerError) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/services/count][%d] getServicesCountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetServicesCountInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetServicesCountInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/get_tags_parameters.go b/falcon/client/a_s_p_m/get_tags_parameters.go
new file mode 100644
index 00000000..fa751912
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_tags_parameters.go
@@ -0,0 +1,296 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetTagsParams creates a new GetTagsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetTagsParams() *GetTagsParams {
+ return &GetTagsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetTagsParamsWithTimeout creates a new GetTagsParams object
+// with the ability to set a timeout on a request.
+func NewGetTagsParamsWithTimeout(timeout time.Duration) *GetTagsParams {
+ return &GetTagsParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetTagsParamsWithContext creates a new GetTagsParams object
+// with the ability to set a context for a request.
+func NewGetTagsParamsWithContext(ctx context.Context) *GetTagsParams {
+ return &GetTagsParams{
+ Context: ctx,
+ }
+}
+
+// NewGetTagsParamsWithHTTPClient creates a new GetTagsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetTagsParamsWithHTTPClient(client *http.Client) *GetTagsParams {
+ return &GetTagsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetTagsParams contains all the parameters to send to the API endpoint
+
+ for the get tags operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetTagsParams struct {
+
+ // IsUnique.
+ IsUnique *bool
+
+ // Limit.
+ Limit *int64
+
+ // Name.
+ Name []string
+
+ // Offset.
+ Offset *int64
+
+ // TagName.
+ TagName *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get tags params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetTagsParams) WithDefaults() *GetTagsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get tags params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetTagsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get tags params
+func (o *GetTagsParams) WithTimeout(timeout time.Duration) *GetTagsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get tags params
+func (o *GetTagsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get tags params
+func (o *GetTagsParams) WithContext(ctx context.Context) *GetTagsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get tags params
+func (o *GetTagsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get tags params
+func (o *GetTagsParams) WithHTTPClient(client *http.Client) *GetTagsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get tags params
+func (o *GetTagsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIsUnique adds the isUnique to the get tags params
+func (o *GetTagsParams) WithIsUnique(isUnique *bool) *GetTagsParams {
+ o.SetIsUnique(isUnique)
+ return o
+}
+
+// SetIsUnique adds the isUnique to the get tags params
+func (o *GetTagsParams) SetIsUnique(isUnique *bool) {
+ o.IsUnique = isUnique
+}
+
+// WithLimit adds the limit to the get tags params
+func (o *GetTagsParams) WithLimit(limit *int64) *GetTagsParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the get tags params
+func (o *GetTagsParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithName adds the name to the get tags params
+func (o *GetTagsParams) WithName(name []string) *GetTagsParams {
+ o.SetName(name)
+ return o
+}
+
+// SetName adds the name to the get tags params
+func (o *GetTagsParams) SetName(name []string) {
+ o.Name = name
+}
+
+// WithOffset adds the offset to the get tags params
+func (o *GetTagsParams) WithOffset(offset *int64) *GetTagsParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the get tags params
+func (o *GetTagsParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WithTagName adds the tagName to the get tags params
+func (o *GetTagsParams) WithTagName(tagName *string) *GetTagsParams {
+ o.SetTagName(tagName)
+ return o
+}
+
+// SetTagName adds the tagName to the get tags params
+func (o *GetTagsParams) SetTagName(tagName *string) {
+ o.TagName = tagName
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.IsUnique != nil {
+
+ // query param isUnique
+ var qrIsUnique bool
+
+ if o.IsUnique != nil {
+ qrIsUnique = *o.IsUnique
+ }
+ qIsUnique := swag.FormatBool(qrIsUnique)
+ if qIsUnique != "" {
+
+ if err := r.SetQueryParam("isUnique", qIsUnique); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Name != nil {
+
+ // binding items for name
+ joinedName := o.bindParamName(reg)
+
+ // query array param name
+ if err := r.SetQueryParam("name", joinedName...); err != nil {
+ return err
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.TagName != nil {
+
+ // query param tagName
+ var qrTagName string
+
+ if o.TagName != nil {
+ qrTagName = *o.TagName
+ }
+ qTagName := qrTagName
+ if qTagName != "" {
+
+ if err := r.SetQueryParam("tagName", qTagName); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamGetTags binds the parameter name
+func (o *GetTagsParams) bindParamName(formats strfmt.Registry) []string {
+ nameIR := o.Name
+
+ var nameIC []string
+ for _, nameIIR := range nameIR { // explode []string
+
+ nameIIV := nameIIR // string as string
+ nameIC = append(nameIC, nameIIV)
+ }
+
+ // items.CollectionFormat: "csv"
+ nameIS := swag.JoinByFormat(nameIC, "csv")
+
+ return nameIS
+}
diff --git a/falcon/client/a_s_p_m/get_tags_responses.go b/falcon/client/a_s_p_m/get_tags_responses.go
new file mode 100644
index 00000000..958efb98
--- /dev/null
+++ b/falcon/client/a_s_p_m/get_tags_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetTagsReader is a Reader for the GetTags structure.
+type GetTagsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetTagsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetTagsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewGetTagsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewGetTagsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetTagsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetTagsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetTagsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /aspm-api-gateway/api/v1/tags] GetTags", response, response.Code())
+ }
+}
+
+// NewGetTagsOK creates a GetTagsOK with default headers values
+func NewGetTagsOK() *GetTagsOK {
+ return &GetTagsOK{}
+}
+
+/*
+GetTagsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetTagsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesTagsDataResponse
+}
+
+// IsSuccess returns true when this get tags o k response has a 2xx status code
+func (o *GetTagsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get tags o k response has a 3xx status code
+func (o *GetTagsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get tags o k response has a 4xx status code
+func (o *GetTagsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get tags o k response has a 5xx status code
+func (o *GetTagsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get tags o k response a status code equal to that given
+func (o *GetTagsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get tags o k response
+func (o *GetTagsOK) Code() int {
+ return 200
+}
+
+func (o *GetTagsOK) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsOK %+v", 200, o.Payload)
+}
+
+func (o *GetTagsOK) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsOK %+v", 200, o.Payload)
+}
+
+func (o *GetTagsOK) GetPayload() *models.TypesTagsDataResponse {
+ return o.Payload
+}
+
+func (o *GetTagsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesTagsDataResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetTagsBadRequest creates a GetTagsBadRequest with default headers values
+func NewGetTagsBadRequest() *GetTagsBadRequest {
+ return &GetTagsBadRequest{}
+}
+
+/*
+GetTagsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type GetTagsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get tags bad request response has a 2xx status code
+func (o *GetTagsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get tags bad request response has a 3xx status code
+func (o *GetTagsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get tags bad request response has a 4xx status code
+func (o *GetTagsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get tags bad request response has a 5xx status code
+func (o *GetTagsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get tags bad request response a status code equal to that given
+func (o *GetTagsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the get tags bad request response
+func (o *GetTagsBadRequest) Code() int {
+ return 400
+}
+
+func (o *GetTagsBadRequest) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetTagsBadRequest) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetTagsBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetTagsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetTagsUnauthorized creates a GetTagsUnauthorized with default headers values
+func NewGetTagsUnauthorized() *GetTagsUnauthorized {
+ return &GetTagsUnauthorized{}
+}
+
+/*
+GetTagsUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type GetTagsUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get tags unauthorized response has a 2xx status code
+func (o *GetTagsUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get tags unauthorized response has a 3xx status code
+func (o *GetTagsUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get tags unauthorized response has a 4xx status code
+func (o *GetTagsUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get tags unauthorized response has a 5xx status code
+func (o *GetTagsUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get tags unauthorized response a status code equal to that given
+func (o *GetTagsUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get tags unauthorized response
+func (o *GetTagsUnauthorized) Code() int {
+ return 401
+}
+
+func (o *GetTagsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetTagsUnauthorized) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetTagsUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetTagsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetTagsForbidden creates a GetTagsForbidden with default headers values
+func NewGetTagsForbidden() *GetTagsForbidden {
+ return &GetTagsForbidden{}
+}
+
+/*
+GetTagsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetTagsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get tags forbidden response has a 2xx status code
+func (o *GetTagsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get tags forbidden response has a 3xx status code
+func (o *GetTagsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get tags forbidden response has a 4xx status code
+func (o *GetTagsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get tags forbidden response has a 5xx status code
+func (o *GetTagsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get tags forbidden response a status code equal to that given
+func (o *GetTagsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get tags forbidden response
+func (o *GetTagsForbidden) Code() int {
+ return 403
+}
+
+func (o *GetTagsForbidden) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetTagsForbidden) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetTagsForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetTagsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetTagsTooManyRequests creates a GetTagsTooManyRequests with default headers values
+func NewGetTagsTooManyRequests() *GetTagsTooManyRequests {
+ return &GetTagsTooManyRequests{}
+}
+
+/*
+GetTagsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetTagsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get tags too many requests response has a 2xx status code
+func (o *GetTagsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get tags too many requests response has a 3xx status code
+func (o *GetTagsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get tags too many requests response has a 4xx status code
+func (o *GetTagsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get tags too many requests response has a 5xx status code
+func (o *GetTagsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get tags too many requests response a status code equal to that given
+func (o *GetTagsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get tags too many requests response
+func (o *GetTagsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetTagsTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetTagsTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetTagsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetTagsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetTagsInternalServerError creates a GetTagsInternalServerError with default headers values
+func NewGetTagsInternalServerError() *GetTagsInternalServerError {
+ return &GetTagsInternalServerError{}
+}
+
+/*
+GetTagsInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type GetTagsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this get tags internal server error response has a 2xx status code
+func (o *GetTagsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get tags internal server error response has a 3xx status code
+func (o *GetTagsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get tags internal server error response has a 4xx status code
+func (o *GetTagsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get tags internal server error response has a 5xx status code
+func (o *GetTagsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get tags internal server error response a status code equal to that given
+func (o *GetTagsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get tags internal server error response
+func (o *GetTagsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetTagsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetTagsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/tags][%d] getTagsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetTagsInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *GetTagsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/run_integration_task_parameters.go b/falcon/client/a_s_p_m/run_integration_task_parameters.go
new file mode 100644
index 00000000..f0e73059
--- /dev/null
+++ b/falcon/client/a_s_p_m/run_integration_task_parameters.go
@@ -0,0 +1,201 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewRunIntegrationTaskParams creates a new RunIntegrationTaskParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewRunIntegrationTaskParams() *RunIntegrationTaskParams {
+ return &RunIntegrationTaskParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewRunIntegrationTaskParamsWithTimeout creates a new RunIntegrationTaskParams object
+// with the ability to set a timeout on a request.
+func NewRunIntegrationTaskParamsWithTimeout(timeout time.Duration) *RunIntegrationTaskParams {
+ return &RunIntegrationTaskParams{
+ timeout: timeout,
+ }
+}
+
+// NewRunIntegrationTaskParamsWithContext creates a new RunIntegrationTaskParams object
+// with the ability to set a context for a request.
+func NewRunIntegrationTaskParamsWithContext(ctx context.Context) *RunIntegrationTaskParams {
+ return &RunIntegrationTaskParams{
+ Context: ctx,
+ }
+}
+
+// NewRunIntegrationTaskParamsWithHTTPClient creates a new RunIntegrationTaskParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewRunIntegrationTaskParamsWithHTTPClient(client *http.Client) *RunIntegrationTaskParams {
+ return &RunIntegrationTaskParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+RunIntegrationTaskParams contains all the parameters to send to the API endpoint
+
+ for the run integration task operation.
+
+ Typically these are written to a http.Request.
+*/
+type RunIntegrationTaskParams struct {
+
+ // ID.
+ ID int64
+
+ // Body.
+ Body *models.TypesRunIntegrationTaskRequest
+
+ // Category.
+ Category *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the run integration task params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *RunIntegrationTaskParams) WithDefaults() *RunIntegrationTaskParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the run integration task params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *RunIntegrationTaskParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the run integration task params
+func (o *RunIntegrationTaskParams) WithTimeout(timeout time.Duration) *RunIntegrationTaskParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the run integration task params
+func (o *RunIntegrationTaskParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the run integration task params
+func (o *RunIntegrationTaskParams) WithContext(ctx context.Context) *RunIntegrationTaskParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the run integration task params
+func (o *RunIntegrationTaskParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the run integration task params
+func (o *RunIntegrationTaskParams) WithHTTPClient(client *http.Client) *RunIntegrationTaskParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the run integration task params
+func (o *RunIntegrationTaskParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithID adds the id to the run integration task params
+func (o *RunIntegrationTaskParams) WithID(id int64) *RunIntegrationTaskParams {
+ o.SetID(id)
+ return o
+}
+
+// SetID adds the id to the run integration task params
+func (o *RunIntegrationTaskParams) SetID(id int64) {
+ o.ID = id
+}
+
+// WithBody adds the body to the run integration task params
+func (o *RunIntegrationTaskParams) WithBody(body *models.TypesRunIntegrationTaskRequest) *RunIntegrationTaskParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the run integration task params
+func (o *RunIntegrationTaskParams) SetBody(body *models.TypesRunIntegrationTaskRequest) {
+ o.Body = body
+}
+
+// WithCategory adds the category to the run integration task params
+func (o *RunIntegrationTaskParams) WithCategory(category *string) *RunIntegrationTaskParams {
+ o.SetCategory(category)
+ return o
+}
+
+// SetCategory adds the category to the run integration task params
+func (o *RunIntegrationTaskParams) SetCategory(category *string) {
+ o.Category = category
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *RunIntegrationTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param ID
+ if err := r.SetPathParam("ID", swag.FormatInt64(o.ID)); err != nil {
+ return err
+ }
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if o.Category != nil {
+
+ // query param category
+ var qrCategory string
+
+ if o.Category != nil {
+ qrCategory = *o.Category
+ }
+ qCategory := qrCategory
+ if qCategory != "" {
+
+ if err := r.SetQueryParam("category", qCategory); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/run_integration_task_responses.go b/falcon/client/a_s_p_m/run_integration_task_responses.go
new file mode 100644
index 00000000..8ba4004c
--- /dev/null
+++ b/falcon/client/a_s_p_m/run_integration_task_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// RunIntegrationTaskReader is a Reader for the RunIntegrationTask structure.
+type RunIntegrationTaskReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *RunIntegrationTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewRunIntegrationTaskOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewRunIntegrationTaskBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewRunIntegrationTaskUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewRunIntegrationTaskForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewRunIntegrationTaskTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewRunIntegrationTaskInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run] RunIntegrationTask", response, response.Code())
+ }
+}
+
+// NewRunIntegrationTaskOK creates a RunIntegrationTaskOK with default headers values
+func NewRunIntegrationTaskOK() *RunIntegrationTaskOK {
+ return &RunIntegrationTaskOK{}
+}
+
+/*
+RunIntegrationTaskOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type RunIntegrationTaskOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesIntegrationTaskTestConnectionResponse
+}
+
+// IsSuccess returns true when this run integration task o k response has a 2xx status code
+func (o *RunIntegrationTaskOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this run integration task o k response has a 3xx status code
+func (o *RunIntegrationTaskOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this run integration task o k response has a 4xx status code
+func (o *RunIntegrationTaskOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this run integration task o k response has a 5xx status code
+func (o *RunIntegrationTaskOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this run integration task o k response a status code equal to that given
+func (o *RunIntegrationTaskOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the run integration task o k response
+func (o *RunIntegrationTaskOK) Code() int {
+ return 200
+}
+
+func (o *RunIntegrationTaskOK) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskOK %+v", 200, o.Payload)
+}
+
+func (o *RunIntegrationTaskOK) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskOK %+v", 200, o.Payload)
+}
+
+func (o *RunIntegrationTaskOK) GetPayload() *models.TypesIntegrationTaskTestConnectionResponse {
+ return o.Payload
+}
+
+func (o *RunIntegrationTaskOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesIntegrationTaskTestConnectionResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRunIntegrationTaskBadRequest creates a RunIntegrationTaskBadRequest with default headers values
+func NewRunIntegrationTaskBadRequest() *RunIntegrationTaskBadRequest {
+ return &RunIntegrationTaskBadRequest{}
+}
+
+/*
+RunIntegrationTaskBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type RunIntegrationTaskBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this run integration task bad request response has a 2xx status code
+func (o *RunIntegrationTaskBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this run integration task bad request response has a 3xx status code
+func (o *RunIntegrationTaskBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this run integration task bad request response has a 4xx status code
+func (o *RunIntegrationTaskBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this run integration task bad request response has a 5xx status code
+func (o *RunIntegrationTaskBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this run integration task bad request response a status code equal to that given
+func (o *RunIntegrationTaskBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the run integration task bad request response
+func (o *RunIntegrationTaskBadRequest) Code() int {
+ return 400
+}
+
+func (o *RunIntegrationTaskBadRequest) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskBadRequest %+v", 400, o.Payload)
+}
+
+func (o *RunIntegrationTaskBadRequest) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskBadRequest %+v", 400, o.Payload)
+}
+
+func (o *RunIntegrationTaskBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *RunIntegrationTaskBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRunIntegrationTaskUnauthorized creates a RunIntegrationTaskUnauthorized with default headers values
+func NewRunIntegrationTaskUnauthorized() *RunIntegrationTaskUnauthorized {
+ return &RunIntegrationTaskUnauthorized{}
+}
+
+/*
+RunIntegrationTaskUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type RunIntegrationTaskUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this run integration task unauthorized response has a 2xx status code
+func (o *RunIntegrationTaskUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this run integration task unauthorized response has a 3xx status code
+func (o *RunIntegrationTaskUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this run integration task unauthorized response has a 4xx status code
+func (o *RunIntegrationTaskUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this run integration task unauthorized response has a 5xx status code
+func (o *RunIntegrationTaskUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this run integration task unauthorized response a status code equal to that given
+func (o *RunIntegrationTaskUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the run integration task unauthorized response
+func (o *RunIntegrationTaskUnauthorized) Code() int {
+ return 401
+}
+
+func (o *RunIntegrationTaskUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *RunIntegrationTaskUnauthorized) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *RunIntegrationTaskUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *RunIntegrationTaskUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRunIntegrationTaskForbidden creates a RunIntegrationTaskForbidden with default headers values
+func NewRunIntegrationTaskForbidden() *RunIntegrationTaskForbidden {
+ return &RunIntegrationTaskForbidden{}
+}
+
+/*
+RunIntegrationTaskForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type RunIntegrationTaskForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this run integration task forbidden response has a 2xx status code
+func (o *RunIntegrationTaskForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this run integration task forbidden response has a 3xx status code
+func (o *RunIntegrationTaskForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this run integration task forbidden response has a 4xx status code
+func (o *RunIntegrationTaskForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this run integration task forbidden response has a 5xx status code
+func (o *RunIntegrationTaskForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this run integration task forbidden response a status code equal to that given
+func (o *RunIntegrationTaskForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the run integration task forbidden response
+func (o *RunIntegrationTaskForbidden) Code() int {
+ return 403
+}
+
+func (o *RunIntegrationTaskForbidden) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskForbidden %+v", 403, o.Payload)
+}
+
+func (o *RunIntegrationTaskForbidden) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskForbidden %+v", 403, o.Payload)
+}
+
+func (o *RunIntegrationTaskForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *RunIntegrationTaskForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRunIntegrationTaskTooManyRequests creates a RunIntegrationTaskTooManyRequests with default headers values
+func NewRunIntegrationTaskTooManyRequests() *RunIntegrationTaskTooManyRequests {
+ return &RunIntegrationTaskTooManyRequests{}
+}
+
+/*
+RunIntegrationTaskTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type RunIntegrationTaskTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this run integration task too many requests response has a 2xx status code
+func (o *RunIntegrationTaskTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this run integration task too many requests response has a 3xx status code
+func (o *RunIntegrationTaskTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this run integration task too many requests response has a 4xx status code
+func (o *RunIntegrationTaskTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this run integration task too many requests response has a 5xx status code
+func (o *RunIntegrationTaskTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this run integration task too many requests response a status code equal to that given
+func (o *RunIntegrationTaskTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the run integration task too many requests response
+func (o *RunIntegrationTaskTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *RunIntegrationTaskTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *RunIntegrationTaskTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *RunIntegrationTaskTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RunIntegrationTaskTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRunIntegrationTaskInternalServerError creates a RunIntegrationTaskInternalServerError with default headers values
+func NewRunIntegrationTaskInternalServerError() *RunIntegrationTaskInternalServerError {
+ return &RunIntegrationTaskInternalServerError{}
+}
+
+/*
+RunIntegrationTaskInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type RunIntegrationTaskInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this run integration task internal server error response has a 2xx status code
+func (o *RunIntegrationTaskInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this run integration task internal server error response has a 3xx status code
+func (o *RunIntegrationTaskInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this run integration task internal server error response has a 4xx status code
+func (o *RunIntegrationTaskInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this run integration task internal server error response has a 5xx status code
+func (o *RunIntegrationTaskInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this run integration task internal server error response a status code equal to that given
+func (o *RunIntegrationTaskInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the run integration task internal server error response
+func (o *RunIntegrationTaskInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RunIntegrationTaskInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RunIntegrationTaskInternalServerError) String() string {
+ return fmt.Sprintf("[POST /aspm-api-gateway/api/v1/integration_tasks/{ID}/run][%d] runIntegrationTaskInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RunIntegrationTaskInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *RunIntegrationTaskInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/service_now_get_deployments_parameters.go b/falcon/client/a_s_p_m/service_now_get_deployments_parameters.go
new file mode 100644
index 00000000..1cbb8ec7
--- /dev/null
+++ b/falcon/client/a_s_p_m/service_now_get_deployments_parameters.go
@@ -0,0 +1,285 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewServiceNowGetDeploymentsParams creates a new ServiceNowGetDeploymentsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewServiceNowGetDeploymentsParams() *ServiceNowGetDeploymentsParams {
+ return &ServiceNowGetDeploymentsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewServiceNowGetDeploymentsParamsWithTimeout creates a new ServiceNowGetDeploymentsParams object
+// with the ability to set a timeout on a request.
+func NewServiceNowGetDeploymentsParamsWithTimeout(timeout time.Duration) *ServiceNowGetDeploymentsParams {
+ return &ServiceNowGetDeploymentsParams{
+ timeout: timeout,
+ }
+}
+
+// NewServiceNowGetDeploymentsParamsWithContext creates a new ServiceNowGetDeploymentsParams object
+// with the ability to set a context for a request.
+func NewServiceNowGetDeploymentsParamsWithContext(ctx context.Context) *ServiceNowGetDeploymentsParams {
+ return &ServiceNowGetDeploymentsParams{
+ Context: ctx,
+ }
+}
+
+// NewServiceNowGetDeploymentsParamsWithHTTPClient creates a new ServiceNowGetDeploymentsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewServiceNowGetDeploymentsParamsWithHTTPClient(client *http.Client) *ServiceNowGetDeploymentsParams {
+ return &ServiceNowGetDeploymentsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+ServiceNowGetDeploymentsParams contains all the parameters to send to the API endpoint
+
+ for the service now get deployments operation.
+
+ Typically these are written to a http.Request.
+*/
+type ServiceNowGetDeploymentsParams struct {
+
+ // Direction.
+ Direction *string
+
+ // Limit.
+ Limit *int64
+
+ // Offset.
+ Offset *int64
+
+ // OrderBy.
+ OrderBy *string
+
+ // QlFilters.
+ QlFilters *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the service now get deployments params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ServiceNowGetDeploymentsParams) WithDefaults() *ServiceNowGetDeploymentsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the service now get deployments params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ServiceNowGetDeploymentsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) WithTimeout(timeout time.Duration) *ServiceNowGetDeploymentsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) WithContext(ctx context.Context) *ServiceNowGetDeploymentsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) WithHTTPClient(client *http.Client) *ServiceNowGetDeploymentsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithDirection adds the direction to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) WithDirection(direction *string) *ServiceNowGetDeploymentsParams {
+ o.SetDirection(direction)
+ return o
+}
+
+// SetDirection adds the direction to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) SetDirection(direction *string) {
+ o.Direction = direction
+}
+
+// WithLimit adds the limit to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) WithLimit(limit *int64) *ServiceNowGetDeploymentsParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) WithOffset(offset *int64) *ServiceNowGetDeploymentsParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WithOrderBy adds the orderBy to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) WithOrderBy(orderBy *string) *ServiceNowGetDeploymentsParams {
+ o.SetOrderBy(orderBy)
+ return o
+}
+
+// SetOrderBy adds the orderBy to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) SetOrderBy(orderBy *string) {
+ o.OrderBy = orderBy
+}
+
+// WithQlFilters adds the qlFilters to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) WithQlFilters(qlFilters *string) *ServiceNowGetDeploymentsParams {
+ o.SetQlFilters(qlFilters)
+ return o
+}
+
+// SetQlFilters adds the qlFilters to the service now get deployments params
+func (o *ServiceNowGetDeploymentsParams) SetQlFilters(qlFilters *string) {
+ o.QlFilters = qlFilters
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *ServiceNowGetDeploymentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Direction != nil {
+
+ // query param direction
+ var qrDirection string
+
+ if o.Direction != nil {
+ qrDirection = *o.Direction
+ }
+ qDirection := qrDirection
+ if qDirection != "" {
+
+ if err := r.SetQueryParam("direction", qDirection); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.OrderBy != nil {
+
+ // query param orderBy
+ var qrOrderBy string
+
+ if o.OrderBy != nil {
+ qrOrderBy = *o.OrderBy
+ }
+ qOrderBy := qrOrderBy
+ if qOrderBy != "" {
+
+ if err := r.SetQueryParam("orderBy", qOrderBy); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.QlFilters != nil {
+
+ // query param ql_filters
+ var qrQlFilters string
+
+ if o.QlFilters != nil {
+ qrQlFilters = *o.QlFilters
+ }
+ qQlFilters := qrQlFilters
+ if qQlFilters != "" {
+
+ if err := r.SetQueryParam("ql_filters", qQlFilters); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/service_now_get_deployments_responses.go b/falcon/client/a_s_p_m/service_now_get_deployments_responses.go
new file mode 100644
index 00000000..e6f4a756
--- /dev/null
+++ b/falcon/client/a_s_p_m/service_now_get_deployments_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// ServiceNowGetDeploymentsReader is a Reader for the ServiceNowGetDeployments structure.
+type ServiceNowGetDeploymentsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *ServiceNowGetDeploymentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewServiceNowGetDeploymentsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewServiceNowGetDeploymentsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewServiceNowGetDeploymentsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewServiceNowGetDeploymentsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewServiceNowGetDeploymentsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewServiceNowGetDeploymentsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /aspm-api-gateway/api/v1/servicenow/deployments] ServiceNowGetDeployments", response, response.Code())
+ }
+}
+
+// NewServiceNowGetDeploymentsOK creates a ServiceNowGetDeploymentsOK with default headers values
+func NewServiceNowGetDeploymentsOK() *ServiceNowGetDeploymentsOK {
+ return &ServiceNowGetDeploymentsOK{}
+}
+
+/*
+ServiceNowGetDeploymentsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type ServiceNowGetDeploymentsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesServiceNowDeploymentsResponse
+}
+
+// IsSuccess returns true when this service now get deployments o k response has a 2xx status code
+func (o *ServiceNowGetDeploymentsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this service now get deployments o k response has a 3xx status code
+func (o *ServiceNowGetDeploymentsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get deployments o k response has a 4xx status code
+func (o *ServiceNowGetDeploymentsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this service now get deployments o k response has a 5xx status code
+func (o *ServiceNowGetDeploymentsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this service now get deployments o k response a status code equal to that given
+func (o *ServiceNowGetDeploymentsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the service now get deployments o k response
+func (o *ServiceNowGetDeploymentsOK) Code() int {
+ return 200
+}
+
+func (o *ServiceNowGetDeploymentsOK) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsOK %+v", 200, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsOK) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsOK %+v", 200, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsOK) GetPayload() *models.TypesServiceNowDeploymentsResponse {
+ return o.Payload
+}
+
+func (o *ServiceNowGetDeploymentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesServiceNowDeploymentsResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewServiceNowGetDeploymentsBadRequest creates a ServiceNowGetDeploymentsBadRequest with default headers values
+func NewServiceNowGetDeploymentsBadRequest() *ServiceNowGetDeploymentsBadRequest {
+ return &ServiceNowGetDeploymentsBadRequest{}
+}
+
+/*
+ServiceNowGetDeploymentsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type ServiceNowGetDeploymentsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this service now get deployments bad request response has a 2xx status code
+func (o *ServiceNowGetDeploymentsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this service now get deployments bad request response has a 3xx status code
+func (o *ServiceNowGetDeploymentsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get deployments bad request response has a 4xx status code
+func (o *ServiceNowGetDeploymentsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this service now get deployments bad request response has a 5xx status code
+func (o *ServiceNowGetDeploymentsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this service now get deployments bad request response a status code equal to that given
+func (o *ServiceNowGetDeploymentsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the service now get deployments bad request response
+func (o *ServiceNowGetDeploymentsBadRequest) Code() int {
+ return 400
+}
+
+func (o *ServiceNowGetDeploymentsBadRequest) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsBadRequest) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *ServiceNowGetDeploymentsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewServiceNowGetDeploymentsUnauthorized creates a ServiceNowGetDeploymentsUnauthorized with default headers values
+func NewServiceNowGetDeploymentsUnauthorized() *ServiceNowGetDeploymentsUnauthorized {
+ return &ServiceNowGetDeploymentsUnauthorized{}
+}
+
+/*
+ServiceNowGetDeploymentsUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type ServiceNowGetDeploymentsUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this service now get deployments unauthorized response has a 2xx status code
+func (o *ServiceNowGetDeploymentsUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this service now get deployments unauthorized response has a 3xx status code
+func (o *ServiceNowGetDeploymentsUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get deployments unauthorized response has a 4xx status code
+func (o *ServiceNowGetDeploymentsUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this service now get deployments unauthorized response has a 5xx status code
+func (o *ServiceNowGetDeploymentsUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this service now get deployments unauthorized response a status code equal to that given
+func (o *ServiceNowGetDeploymentsUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the service now get deployments unauthorized response
+func (o *ServiceNowGetDeploymentsUnauthorized) Code() int {
+ return 401
+}
+
+func (o *ServiceNowGetDeploymentsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsUnauthorized) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *ServiceNowGetDeploymentsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewServiceNowGetDeploymentsForbidden creates a ServiceNowGetDeploymentsForbidden with default headers values
+func NewServiceNowGetDeploymentsForbidden() *ServiceNowGetDeploymentsForbidden {
+ return &ServiceNowGetDeploymentsForbidden{}
+}
+
+/*
+ServiceNowGetDeploymentsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type ServiceNowGetDeploymentsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this service now get deployments forbidden response has a 2xx status code
+func (o *ServiceNowGetDeploymentsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this service now get deployments forbidden response has a 3xx status code
+func (o *ServiceNowGetDeploymentsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get deployments forbidden response has a 4xx status code
+func (o *ServiceNowGetDeploymentsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this service now get deployments forbidden response has a 5xx status code
+func (o *ServiceNowGetDeploymentsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this service now get deployments forbidden response a status code equal to that given
+func (o *ServiceNowGetDeploymentsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the service now get deployments forbidden response
+func (o *ServiceNowGetDeploymentsForbidden) Code() int {
+ return 403
+}
+
+func (o *ServiceNowGetDeploymentsForbidden) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsForbidden %+v", 403, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsForbidden) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsForbidden %+v", 403, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *ServiceNowGetDeploymentsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewServiceNowGetDeploymentsTooManyRequests creates a ServiceNowGetDeploymentsTooManyRequests with default headers values
+func NewServiceNowGetDeploymentsTooManyRequests() *ServiceNowGetDeploymentsTooManyRequests {
+ return &ServiceNowGetDeploymentsTooManyRequests{}
+}
+
+/*
+ServiceNowGetDeploymentsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type ServiceNowGetDeploymentsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this service now get deployments too many requests response has a 2xx status code
+func (o *ServiceNowGetDeploymentsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this service now get deployments too many requests response has a 3xx status code
+func (o *ServiceNowGetDeploymentsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get deployments too many requests response has a 4xx status code
+func (o *ServiceNowGetDeploymentsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this service now get deployments too many requests response has a 5xx status code
+func (o *ServiceNowGetDeploymentsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this service now get deployments too many requests response a status code equal to that given
+func (o *ServiceNowGetDeploymentsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the service now get deployments too many requests response
+func (o *ServiceNowGetDeploymentsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *ServiceNowGetDeploymentsTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ServiceNowGetDeploymentsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewServiceNowGetDeploymentsInternalServerError creates a ServiceNowGetDeploymentsInternalServerError with default headers values
+func NewServiceNowGetDeploymentsInternalServerError() *ServiceNowGetDeploymentsInternalServerError {
+ return &ServiceNowGetDeploymentsInternalServerError{}
+}
+
+/*
+ServiceNowGetDeploymentsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ServiceNowGetDeploymentsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this service now get deployments internal server error response has a 2xx status code
+func (o *ServiceNowGetDeploymentsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this service now get deployments internal server error response has a 3xx status code
+func (o *ServiceNowGetDeploymentsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get deployments internal server error response has a 4xx status code
+func (o *ServiceNowGetDeploymentsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this service now get deployments internal server error response has a 5xx status code
+func (o *ServiceNowGetDeploymentsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this service now get deployments internal server error response a status code equal to that given
+func (o *ServiceNowGetDeploymentsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the service now get deployments internal server error response
+func (o *ServiceNowGetDeploymentsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ServiceNowGetDeploymentsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/deployments][%d] serviceNowGetDeploymentsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ServiceNowGetDeploymentsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ServiceNowGetDeploymentsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/service_now_get_services_parameters.go b/falcon/client/a_s_p_m/service_now_get_services_parameters.go
new file mode 100644
index 00000000..a36017fd
--- /dev/null
+++ b/falcon/client/a_s_p_m/service_now_get_services_parameters.go
@@ -0,0 +1,285 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewServiceNowGetServicesParams creates a new ServiceNowGetServicesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewServiceNowGetServicesParams() *ServiceNowGetServicesParams {
+ return &ServiceNowGetServicesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewServiceNowGetServicesParamsWithTimeout creates a new ServiceNowGetServicesParams object
+// with the ability to set a timeout on a request.
+func NewServiceNowGetServicesParamsWithTimeout(timeout time.Duration) *ServiceNowGetServicesParams {
+ return &ServiceNowGetServicesParams{
+ timeout: timeout,
+ }
+}
+
+// NewServiceNowGetServicesParamsWithContext creates a new ServiceNowGetServicesParams object
+// with the ability to set a context for a request.
+func NewServiceNowGetServicesParamsWithContext(ctx context.Context) *ServiceNowGetServicesParams {
+ return &ServiceNowGetServicesParams{
+ Context: ctx,
+ }
+}
+
+// NewServiceNowGetServicesParamsWithHTTPClient creates a new ServiceNowGetServicesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewServiceNowGetServicesParamsWithHTTPClient(client *http.Client) *ServiceNowGetServicesParams {
+ return &ServiceNowGetServicesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+ServiceNowGetServicesParams contains all the parameters to send to the API endpoint
+
+ for the service now get services operation.
+
+ Typically these are written to a http.Request.
+*/
+type ServiceNowGetServicesParams struct {
+
+ // Direction.
+ Direction *string
+
+ // Limit.
+ Limit *int64
+
+ // Offset.
+ Offset *int64
+
+ // OrderBy.
+ OrderBy *string
+
+ // QlFilters.
+ QlFilters *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the service now get services params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ServiceNowGetServicesParams) WithDefaults() *ServiceNowGetServicesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the service now get services params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ServiceNowGetServicesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the service now get services params
+func (o *ServiceNowGetServicesParams) WithTimeout(timeout time.Duration) *ServiceNowGetServicesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the service now get services params
+func (o *ServiceNowGetServicesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the service now get services params
+func (o *ServiceNowGetServicesParams) WithContext(ctx context.Context) *ServiceNowGetServicesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the service now get services params
+func (o *ServiceNowGetServicesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the service now get services params
+func (o *ServiceNowGetServicesParams) WithHTTPClient(client *http.Client) *ServiceNowGetServicesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the service now get services params
+func (o *ServiceNowGetServicesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithDirection adds the direction to the service now get services params
+func (o *ServiceNowGetServicesParams) WithDirection(direction *string) *ServiceNowGetServicesParams {
+ o.SetDirection(direction)
+ return o
+}
+
+// SetDirection adds the direction to the service now get services params
+func (o *ServiceNowGetServicesParams) SetDirection(direction *string) {
+ o.Direction = direction
+}
+
+// WithLimit adds the limit to the service now get services params
+func (o *ServiceNowGetServicesParams) WithLimit(limit *int64) *ServiceNowGetServicesParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the service now get services params
+func (o *ServiceNowGetServicesParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the service now get services params
+func (o *ServiceNowGetServicesParams) WithOffset(offset *int64) *ServiceNowGetServicesParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the service now get services params
+func (o *ServiceNowGetServicesParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WithOrderBy adds the orderBy to the service now get services params
+func (o *ServiceNowGetServicesParams) WithOrderBy(orderBy *string) *ServiceNowGetServicesParams {
+ o.SetOrderBy(orderBy)
+ return o
+}
+
+// SetOrderBy adds the orderBy to the service now get services params
+func (o *ServiceNowGetServicesParams) SetOrderBy(orderBy *string) {
+ o.OrderBy = orderBy
+}
+
+// WithQlFilters adds the qlFilters to the service now get services params
+func (o *ServiceNowGetServicesParams) WithQlFilters(qlFilters *string) *ServiceNowGetServicesParams {
+ o.SetQlFilters(qlFilters)
+ return o
+}
+
+// SetQlFilters adds the qlFilters to the service now get services params
+func (o *ServiceNowGetServicesParams) SetQlFilters(qlFilters *string) {
+ o.QlFilters = qlFilters
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *ServiceNowGetServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Direction != nil {
+
+ // query param direction
+ var qrDirection string
+
+ if o.Direction != nil {
+ qrDirection = *o.Direction
+ }
+ qDirection := qrDirection
+ if qDirection != "" {
+
+ if err := r.SetQueryParam("direction", qDirection); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.OrderBy != nil {
+
+ // query param orderBy
+ var qrOrderBy string
+
+ if o.OrderBy != nil {
+ qrOrderBy = *o.OrderBy
+ }
+ qOrderBy := qrOrderBy
+ if qOrderBy != "" {
+
+ if err := r.SetQueryParam("orderBy", qOrderBy); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.QlFilters != nil {
+
+ // query param ql_filters
+ var qrQlFilters string
+
+ if o.QlFilters != nil {
+ qrQlFilters = *o.QlFilters
+ }
+ qQlFilters := qrQlFilters
+ if qQlFilters != "" {
+
+ if err := r.SetQueryParam("ql_filters", qQlFilters); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/service_now_get_services_responses.go b/falcon/client/a_s_p_m/service_now_get_services_responses.go
new file mode 100644
index 00000000..aee93d9b
--- /dev/null
+++ b/falcon/client/a_s_p_m/service_now_get_services_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// ServiceNowGetServicesReader is a Reader for the ServiceNowGetServices structure.
+type ServiceNowGetServicesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *ServiceNowGetServicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewServiceNowGetServicesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewServiceNowGetServicesBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewServiceNowGetServicesUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewServiceNowGetServicesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewServiceNowGetServicesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewServiceNowGetServicesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /aspm-api-gateway/api/v1/servicenow/services] ServiceNowGetServices", response, response.Code())
+ }
+}
+
+// NewServiceNowGetServicesOK creates a ServiceNowGetServicesOK with default headers values
+func NewServiceNowGetServicesOK() *ServiceNowGetServicesOK {
+ return &ServiceNowGetServicesOK{}
+}
+
+/*
+ServiceNowGetServicesOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type ServiceNowGetServicesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesServiceNowServicesResponse
+}
+
+// IsSuccess returns true when this service now get services o k response has a 2xx status code
+func (o *ServiceNowGetServicesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this service now get services o k response has a 3xx status code
+func (o *ServiceNowGetServicesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get services o k response has a 4xx status code
+func (o *ServiceNowGetServicesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this service now get services o k response has a 5xx status code
+func (o *ServiceNowGetServicesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this service now get services o k response a status code equal to that given
+func (o *ServiceNowGetServicesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the service now get services o k response
+func (o *ServiceNowGetServicesOK) Code() int {
+ return 200
+}
+
+func (o *ServiceNowGetServicesOK) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesOK %+v", 200, o.Payload)
+}
+
+func (o *ServiceNowGetServicesOK) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesOK %+v", 200, o.Payload)
+}
+
+func (o *ServiceNowGetServicesOK) GetPayload() *models.TypesServiceNowServicesResponse {
+ return o.Payload
+}
+
+func (o *ServiceNowGetServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesServiceNowServicesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewServiceNowGetServicesBadRequest creates a ServiceNowGetServicesBadRequest with default headers values
+func NewServiceNowGetServicesBadRequest() *ServiceNowGetServicesBadRequest {
+ return &ServiceNowGetServicesBadRequest{}
+}
+
+/*
+ServiceNowGetServicesBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type ServiceNowGetServicesBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this service now get services bad request response has a 2xx status code
+func (o *ServiceNowGetServicesBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this service now get services bad request response has a 3xx status code
+func (o *ServiceNowGetServicesBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get services bad request response has a 4xx status code
+func (o *ServiceNowGetServicesBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this service now get services bad request response has a 5xx status code
+func (o *ServiceNowGetServicesBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this service now get services bad request response a status code equal to that given
+func (o *ServiceNowGetServicesBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the service now get services bad request response
+func (o *ServiceNowGetServicesBadRequest) Code() int {
+ return 400
+}
+
+func (o *ServiceNowGetServicesBadRequest) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ServiceNowGetServicesBadRequest) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ServiceNowGetServicesBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *ServiceNowGetServicesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewServiceNowGetServicesUnauthorized creates a ServiceNowGetServicesUnauthorized with default headers values
+func NewServiceNowGetServicesUnauthorized() *ServiceNowGetServicesUnauthorized {
+ return &ServiceNowGetServicesUnauthorized{}
+}
+
+/*
+ServiceNowGetServicesUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type ServiceNowGetServicesUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this service now get services unauthorized response has a 2xx status code
+func (o *ServiceNowGetServicesUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this service now get services unauthorized response has a 3xx status code
+func (o *ServiceNowGetServicesUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get services unauthorized response has a 4xx status code
+func (o *ServiceNowGetServicesUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this service now get services unauthorized response has a 5xx status code
+func (o *ServiceNowGetServicesUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this service now get services unauthorized response a status code equal to that given
+func (o *ServiceNowGetServicesUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the service now get services unauthorized response
+func (o *ServiceNowGetServicesUnauthorized) Code() int {
+ return 401
+}
+
+func (o *ServiceNowGetServicesUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ServiceNowGetServicesUnauthorized) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ServiceNowGetServicesUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *ServiceNowGetServicesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewServiceNowGetServicesForbidden creates a ServiceNowGetServicesForbidden with default headers values
+func NewServiceNowGetServicesForbidden() *ServiceNowGetServicesForbidden {
+ return &ServiceNowGetServicesForbidden{}
+}
+
+/*
+ServiceNowGetServicesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type ServiceNowGetServicesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this service now get services forbidden response has a 2xx status code
+func (o *ServiceNowGetServicesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this service now get services forbidden response has a 3xx status code
+func (o *ServiceNowGetServicesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get services forbidden response has a 4xx status code
+func (o *ServiceNowGetServicesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this service now get services forbidden response has a 5xx status code
+func (o *ServiceNowGetServicesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this service now get services forbidden response a status code equal to that given
+func (o *ServiceNowGetServicesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the service now get services forbidden response
+func (o *ServiceNowGetServicesForbidden) Code() int {
+ return 403
+}
+
+func (o *ServiceNowGetServicesForbidden) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesForbidden %+v", 403, o.Payload)
+}
+
+func (o *ServiceNowGetServicesForbidden) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesForbidden %+v", 403, o.Payload)
+}
+
+func (o *ServiceNowGetServicesForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *ServiceNowGetServicesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewServiceNowGetServicesTooManyRequests creates a ServiceNowGetServicesTooManyRequests with default headers values
+func NewServiceNowGetServicesTooManyRequests() *ServiceNowGetServicesTooManyRequests {
+ return &ServiceNowGetServicesTooManyRequests{}
+}
+
+/*
+ServiceNowGetServicesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type ServiceNowGetServicesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this service now get services too many requests response has a 2xx status code
+func (o *ServiceNowGetServicesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this service now get services too many requests response has a 3xx status code
+func (o *ServiceNowGetServicesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get services too many requests response has a 4xx status code
+func (o *ServiceNowGetServicesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this service now get services too many requests response has a 5xx status code
+func (o *ServiceNowGetServicesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this service now get services too many requests response a status code equal to that given
+func (o *ServiceNowGetServicesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the service now get services too many requests response
+func (o *ServiceNowGetServicesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *ServiceNowGetServicesTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ServiceNowGetServicesTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ServiceNowGetServicesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ServiceNowGetServicesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewServiceNowGetServicesInternalServerError creates a ServiceNowGetServicesInternalServerError with default headers values
+func NewServiceNowGetServicesInternalServerError() *ServiceNowGetServicesInternalServerError {
+ return &ServiceNowGetServicesInternalServerError{}
+}
+
+/*
+ServiceNowGetServicesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ServiceNowGetServicesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this service now get services internal server error response has a 2xx status code
+func (o *ServiceNowGetServicesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this service now get services internal server error response has a 3xx status code
+func (o *ServiceNowGetServicesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this service now get services internal server error response has a 4xx status code
+func (o *ServiceNowGetServicesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this service now get services internal server error response has a 5xx status code
+func (o *ServiceNowGetServicesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this service now get services internal server error response a status code equal to that given
+func (o *ServiceNowGetServicesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the service now get services internal server error response
+func (o *ServiceNowGetServicesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ServiceNowGetServicesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ServiceNowGetServicesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /aspm-api-gateway/api/v1/servicenow/services][%d] serviceNowGetServicesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ServiceNowGetServicesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ServiceNowGetServicesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/update_executor_node_parameters.go b/falcon/client/a_s_p_m/update_executor_node_parameters.go
new file mode 100644
index 00000000..adf999de
--- /dev/null
+++ b/falcon/client/a_s_p_m/update_executor_node_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewUpdateExecutorNodeParams creates a new UpdateExecutorNodeParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewUpdateExecutorNodeParams() *UpdateExecutorNodeParams {
+ return &UpdateExecutorNodeParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewUpdateExecutorNodeParamsWithTimeout creates a new UpdateExecutorNodeParams object
+// with the ability to set a timeout on a request.
+func NewUpdateExecutorNodeParamsWithTimeout(timeout time.Duration) *UpdateExecutorNodeParams {
+ return &UpdateExecutorNodeParams{
+ timeout: timeout,
+ }
+}
+
+// NewUpdateExecutorNodeParamsWithContext creates a new UpdateExecutorNodeParams object
+// with the ability to set a context for a request.
+func NewUpdateExecutorNodeParamsWithContext(ctx context.Context) *UpdateExecutorNodeParams {
+ return &UpdateExecutorNodeParams{
+ Context: ctx,
+ }
+}
+
+// NewUpdateExecutorNodeParamsWithHTTPClient creates a new UpdateExecutorNodeParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewUpdateExecutorNodeParamsWithHTTPClient(client *http.Client) *UpdateExecutorNodeParams {
+ return &UpdateExecutorNodeParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+UpdateExecutorNodeParams contains all the parameters to send to the API endpoint
+
+ for the update executor node operation.
+
+ Typically these are written to a http.Request.
+*/
+type UpdateExecutorNodeParams struct {
+
+ // Body.
+ Body *models.TypesExecutorNode
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the update executor node params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdateExecutorNodeParams) WithDefaults() *UpdateExecutorNodeParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the update executor node params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdateExecutorNodeParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the update executor node params
+func (o *UpdateExecutorNodeParams) WithTimeout(timeout time.Duration) *UpdateExecutorNodeParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the update executor node params
+func (o *UpdateExecutorNodeParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the update executor node params
+func (o *UpdateExecutorNodeParams) WithContext(ctx context.Context) *UpdateExecutorNodeParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the update executor node params
+func (o *UpdateExecutorNodeParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the update executor node params
+func (o *UpdateExecutorNodeParams) WithHTTPClient(client *http.Client) *UpdateExecutorNodeParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the update executor node params
+func (o *UpdateExecutorNodeParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the update executor node params
+func (o *UpdateExecutorNodeParams) WithBody(body *models.TypesExecutorNode) *UpdateExecutorNodeParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the update executor node params
+func (o *UpdateExecutorNodeParams) SetBody(body *models.TypesExecutorNode) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *UpdateExecutorNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/update_executor_node_responses.go b/falcon/client/a_s_p_m/update_executor_node_responses.go
new file mode 100644
index 00000000..e5c9765e
--- /dev/null
+++ b/falcon/client/a_s_p_m/update_executor_node_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// UpdateExecutorNodeReader is a Reader for the UpdateExecutorNode structure.
+type UpdateExecutorNodeReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *UpdateExecutorNodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewUpdateExecutorNodeOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewUpdateExecutorNodeBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewUpdateExecutorNodeUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewUpdateExecutorNodeForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewUpdateExecutorNodeTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewUpdateExecutorNodeInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PUT /aspm-api-gateway/api/v1/executor_nodes] UpdateExecutorNode", response, response.Code())
+ }
+}
+
+// NewUpdateExecutorNodeOK creates a UpdateExecutorNodeOK with default headers values
+func NewUpdateExecutorNodeOK() *UpdateExecutorNodeOK {
+ return &UpdateExecutorNodeOK{}
+}
+
+/*
+UpdateExecutorNodeOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type UpdateExecutorNodeOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesExecutorNode
+}
+
+// IsSuccess returns true when this update executor node o k response has a 2xx status code
+func (o *UpdateExecutorNodeOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this update executor node o k response has a 3xx status code
+func (o *UpdateExecutorNodeOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update executor node o k response has a 4xx status code
+func (o *UpdateExecutorNodeOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update executor node o k response has a 5xx status code
+func (o *UpdateExecutorNodeOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update executor node o k response a status code equal to that given
+func (o *UpdateExecutorNodeOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the update executor node o k response
+func (o *UpdateExecutorNodeOK) Code() int {
+ return 200
+}
+
+func (o *UpdateExecutorNodeOK) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeOK %+v", 200, o.Payload)
+}
+
+func (o *UpdateExecutorNodeOK) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeOK %+v", 200, o.Payload)
+}
+
+func (o *UpdateExecutorNodeOK) GetPayload() *models.TypesExecutorNode {
+ return o.Payload
+}
+
+func (o *UpdateExecutorNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesExecutorNode)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateExecutorNodeBadRequest creates a UpdateExecutorNodeBadRequest with default headers values
+func NewUpdateExecutorNodeBadRequest() *UpdateExecutorNodeBadRequest {
+ return &UpdateExecutorNodeBadRequest{}
+}
+
+/*
+UpdateExecutorNodeBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type UpdateExecutorNodeBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update executor node bad request response has a 2xx status code
+func (o *UpdateExecutorNodeBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update executor node bad request response has a 3xx status code
+func (o *UpdateExecutorNodeBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update executor node bad request response has a 4xx status code
+func (o *UpdateExecutorNodeBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update executor node bad request response has a 5xx status code
+func (o *UpdateExecutorNodeBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update executor node bad request response a status code equal to that given
+func (o *UpdateExecutorNodeBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the update executor node bad request response
+func (o *UpdateExecutorNodeBadRequest) Code() int {
+ return 400
+}
+
+func (o *UpdateExecutorNodeBadRequest) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdateExecutorNodeBadRequest) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdateExecutorNodeBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateExecutorNodeBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateExecutorNodeUnauthorized creates a UpdateExecutorNodeUnauthorized with default headers values
+func NewUpdateExecutorNodeUnauthorized() *UpdateExecutorNodeUnauthorized {
+ return &UpdateExecutorNodeUnauthorized{}
+}
+
+/*
+UpdateExecutorNodeUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type UpdateExecutorNodeUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update executor node unauthorized response has a 2xx status code
+func (o *UpdateExecutorNodeUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update executor node unauthorized response has a 3xx status code
+func (o *UpdateExecutorNodeUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update executor node unauthorized response has a 4xx status code
+func (o *UpdateExecutorNodeUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update executor node unauthorized response has a 5xx status code
+func (o *UpdateExecutorNodeUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update executor node unauthorized response a status code equal to that given
+func (o *UpdateExecutorNodeUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the update executor node unauthorized response
+func (o *UpdateExecutorNodeUnauthorized) Code() int {
+ return 401
+}
+
+func (o *UpdateExecutorNodeUnauthorized) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdateExecutorNodeUnauthorized) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdateExecutorNodeUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateExecutorNodeUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateExecutorNodeForbidden creates a UpdateExecutorNodeForbidden with default headers values
+func NewUpdateExecutorNodeForbidden() *UpdateExecutorNodeForbidden {
+ return &UpdateExecutorNodeForbidden{}
+}
+
+/*
+UpdateExecutorNodeForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type UpdateExecutorNodeForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update executor node forbidden response has a 2xx status code
+func (o *UpdateExecutorNodeForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update executor node forbidden response has a 3xx status code
+func (o *UpdateExecutorNodeForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update executor node forbidden response has a 4xx status code
+func (o *UpdateExecutorNodeForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update executor node forbidden response has a 5xx status code
+func (o *UpdateExecutorNodeForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update executor node forbidden response a status code equal to that given
+func (o *UpdateExecutorNodeForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the update executor node forbidden response
+func (o *UpdateExecutorNodeForbidden) Code() int {
+ return 403
+}
+
+func (o *UpdateExecutorNodeForbidden) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdateExecutorNodeForbidden) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdateExecutorNodeForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateExecutorNodeForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateExecutorNodeTooManyRequests creates a UpdateExecutorNodeTooManyRequests with default headers values
+func NewUpdateExecutorNodeTooManyRequests() *UpdateExecutorNodeTooManyRequests {
+ return &UpdateExecutorNodeTooManyRequests{}
+}
+
+/*
+UpdateExecutorNodeTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type UpdateExecutorNodeTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update executor node too many requests response has a 2xx status code
+func (o *UpdateExecutorNodeTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update executor node too many requests response has a 3xx status code
+func (o *UpdateExecutorNodeTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update executor node too many requests response has a 4xx status code
+func (o *UpdateExecutorNodeTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update executor node too many requests response has a 5xx status code
+func (o *UpdateExecutorNodeTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update executor node too many requests response a status code equal to that given
+func (o *UpdateExecutorNodeTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the update executor node too many requests response
+func (o *UpdateExecutorNodeTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *UpdateExecutorNodeTooManyRequests) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UpdateExecutorNodeTooManyRequests) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UpdateExecutorNodeTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateExecutorNodeTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateExecutorNodeInternalServerError creates a UpdateExecutorNodeInternalServerError with default headers values
+func NewUpdateExecutorNodeInternalServerError() *UpdateExecutorNodeInternalServerError {
+ return &UpdateExecutorNodeInternalServerError{}
+}
+
+/*
+UpdateExecutorNodeInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type UpdateExecutorNodeInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update executor node internal server error response has a 2xx status code
+func (o *UpdateExecutorNodeInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update executor node internal server error response has a 3xx status code
+func (o *UpdateExecutorNodeInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update executor node internal server error response has a 4xx status code
+func (o *UpdateExecutorNodeInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update executor node internal server error response has a 5xx status code
+func (o *UpdateExecutorNodeInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update executor node internal server error response a status code equal to that given
+func (o *UpdateExecutorNodeInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update executor node internal server error response
+func (o *UpdateExecutorNodeInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateExecutorNodeInternalServerError) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateExecutorNodeInternalServerError) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/executor_nodes][%d] updateExecutorNodeInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateExecutorNodeInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateExecutorNodeInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/update_integration_parameters.go b/falcon/client/a_s_p_m/update_integration_parameters.go
new file mode 100644
index 00000000..ceb48106
--- /dev/null
+++ b/falcon/client/a_s_p_m/update_integration_parameters.go
@@ -0,0 +1,170 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewUpdateIntegrationParams creates a new UpdateIntegrationParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewUpdateIntegrationParams() *UpdateIntegrationParams {
+ return &UpdateIntegrationParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewUpdateIntegrationParamsWithTimeout creates a new UpdateIntegrationParams object
+// with the ability to set a timeout on a request.
+func NewUpdateIntegrationParamsWithTimeout(timeout time.Duration) *UpdateIntegrationParams {
+ return &UpdateIntegrationParams{
+ timeout: timeout,
+ }
+}
+
+// NewUpdateIntegrationParamsWithContext creates a new UpdateIntegrationParams object
+// with the ability to set a context for a request.
+func NewUpdateIntegrationParamsWithContext(ctx context.Context) *UpdateIntegrationParams {
+ return &UpdateIntegrationParams{
+ Context: ctx,
+ }
+}
+
+// NewUpdateIntegrationParamsWithHTTPClient creates a new UpdateIntegrationParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewUpdateIntegrationParamsWithHTTPClient(client *http.Client) *UpdateIntegrationParams {
+ return &UpdateIntegrationParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+UpdateIntegrationParams contains all the parameters to send to the API endpoint
+
+ for the update integration operation.
+
+ Typically these are written to a http.Request.
+*/
+type UpdateIntegrationParams struct {
+
+ // ID.
+ ID int64
+
+ // Body.
+ Body *models.TypesUpdateIntegrationRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the update integration params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdateIntegrationParams) WithDefaults() *UpdateIntegrationParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the update integration params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdateIntegrationParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the update integration params
+func (o *UpdateIntegrationParams) WithTimeout(timeout time.Duration) *UpdateIntegrationParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the update integration params
+func (o *UpdateIntegrationParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the update integration params
+func (o *UpdateIntegrationParams) WithContext(ctx context.Context) *UpdateIntegrationParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the update integration params
+func (o *UpdateIntegrationParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the update integration params
+func (o *UpdateIntegrationParams) WithHTTPClient(client *http.Client) *UpdateIntegrationParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the update integration params
+func (o *UpdateIntegrationParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithID adds the id to the update integration params
+func (o *UpdateIntegrationParams) WithID(id int64) *UpdateIntegrationParams {
+ o.SetID(id)
+ return o
+}
+
+// SetID adds the id to the update integration params
+func (o *UpdateIntegrationParams) SetID(id int64) {
+ o.ID = id
+}
+
+// WithBody adds the body to the update integration params
+func (o *UpdateIntegrationParams) WithBody(body *models.TypesUpdateIntegrationRequest) *UpdateIntegrationParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the update integration params
+func (o *UpdateIntegrationParams) SetBody(body *models.TypesUpdateIntegrationRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *UpdateIntegrationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param ID
+ if err := r.SetPathParam("ID", swag.FormatInt64(o.ID)); err != nil {
+ return err
+ }
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/update_integration_responses.go b/falcon/client/a_s_p_m/update_integration_responses.go
new file mode 100644
index 00000000..fe584f37
--- /dev/null
+++ b/falcon/client/a_s_p_m/update_integration_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// UpdateIntegrationReader is a Reader for the UpdateIntegration structure.
+type UpdateIntegrationReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *UpdateIntegrationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewUpdateIntegrationOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewUpdateIntegrationBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewUpdateIntegrationUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewUpdateIntegrationForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewUpdateIntegrationTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewUpdateIntegrationInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PUT /aspm-api-gateway/api/v1/integrations/{ID}] UpdateIntegration", response, response.Code())
+ }
+}
+
+// NewUpdateIntegrationOK creates a UpdateIntegrationOK with default headers values
+func NewUpdateIntegrationOK() *UpdateIntegrationOK {
+ return &UpdateIntegrationOK{}
+}
+
+/*
+UpdateIntegrationOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type UpdateIntegrationOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesIntegrationResponse
+}
+
+// IsSuccess returns true when this update integration o k response has a 2xx status code
+func (o *UpdateIntegrationOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this update integration o k response has a 3xx status code
+func (o *UpdateIntegrationOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration o k response has a 4xx status code
+func (o *UpdateIntegrationOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update integration o k response has a 5xx status code
+func (o *UpdateIntegrationOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update integration o k response a status code equal to that given
+func (o *UpdateIntegrationOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the update integration o k response
+func (o *UpdateIntegrationOK) Code() int {
+ return 200
+}
+
+func (o *UpdateIntegrationOK) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationOK %+v", 200, o.Payload)
+}
+
+func (o *UpdateIntegrationOK) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationOK %+v", 200, o.Payload)
+}
+
+func (o *UpdateIntegrationOK) GetPayload() *models.TypesIntegrationResponse {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesIntegrationResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateIntegrationBadRequest creates a UpdateIntegrationBadRequest with default headers values
+func NewUpdateIntegrationBadRequest() *UpdateIntegrationBadRequest {
+ return &UpdateIntegrationBadRequest{}
+}
+
+/*
+UpdateIntegrationBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type UpdateIntegrationBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update integration bad request response has a 2xx status code
+func (o *UpdateIntegrationBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update integration bad request response has a 3xx status code
+func (o *UpdateIntegrationBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration bad request response has a 4xx status code
+func (o *UpdateIntegrationBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update integration bad request response has a 5xx status code
+func (o *UpdateIntegrationBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update integration bad request response a status code equal to that given
+func (o *UpdateIntegrationBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the update integration bad request response
+func (o *UpdateIntegrationBadRequest) Code() int {
+ return 400
+}
+
+func (o *UpdateIntegrationBadRequest) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdateIntegrationBadRequest) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdateIntegrationBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateIntegrationUnauthorized creates a UpdateIntegrationUnauthorized with default headers values
+func NewUpdateIntegrationUnauthorized() *UpdateIntegrationUnauthorized {
+ return &UpdateIntegrationUnauthorized{}
+}
+
+/*
+UpdateIntegrationUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type UpdateIntegrationUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update integration unauthorized response has a 2xx status code
+func (o *UpdateIntegrationUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update integration unauthorized response has a 3xx status code
+func (o *UpdateIntegrationUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration unauthorized response has a 4xx status code
+func (o *UpdateIntegrationUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update integration unauthorized response has a 5xx status code
+func (o *UpdateIntegrationUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update integration unauthorized response a status code equal to that given
+func (o *UpdateIntegrationUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the update integration unauthorized response
+func (o *UpdateIntegrationUnauthorized) Code() int {
+ return 401
+}
+
+func (o *UpdateIntegrationUnauthorized) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdateIntegrationUnauthorized) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdateIntegrationUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateIntegrationForbidden creates a UpdateIntegrationForbidden with default headers values
+func NewUpdateIntegrationForbidden() *UpdateIntegrationForbidden {
+ return &UpdateIntegrationForbidden{}
+}
+
+/*
+UpdateIntegrationForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type UpdateIntegrationForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update integration forbidden response has a 2xx status code
+func (o *UpdateIntegrationForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update integration forbidden response has a 3xx status code
+func (o *UpdateIntegrationForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration forbidden response has a 4xx status code
+func (o *UpdateIntegrationForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update integration forbidden response has a 5xx status code
+func (o *UpdateIntegrationForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update integration forbidden response a status code equal to that given
+func (o *UpdateIntegrationForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the update integration forbidden response
+func (o *UpdateIntegrationForbidden) Code() int {
+ return 403
+}
+
+func (o *UpdateIntegrationForbidden) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdateIntegrationForbidden) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdateIntegrationForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateIntegrationTooManyRequests creates a UpdateIntegrationTooManyRequests with default headers values
+func NewUpdateIntegrationTooManyRequests() *UpdateIntegrationTooManyRequests {
+ return &UpdateIntegrationTooManyRequests{}
+}
+
+/*
+UpdateIntegrationTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type UpdateIntegrationTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update integration too many requests response has a 2xx status code
+func (o *UpdateIntegrationTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update integration too many requests response has a 3xx status code
+func (o *UpdateIntegrationTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration too many requests response has a 4xx status code
+func (o *UpdateIntegrationTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update integration too many requests response has a 5xx status code
+func (o *UpdateIntegrationTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update integration too many requests response a status code equal to that given
+func (o *UpdateIntegrationTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the update integration too many requests response
+func (o *UpdateIntegrationTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *UpdateIntegrationTooManyRequests) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UpdateIntegrationTooManyRequests) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UpdateIntegrationTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateIntegrationInternalServerError creates a UpdateIntegrationInternalServerError with default headers values
+func NewUpdateIntegrationInternalServerError() *UpdateIntegrationInternalServerError {
+ return &UpdateIntegrationInternalServerError{}
+}
+
+/*
+UpdateIntegrationInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type UpdateIntegrationInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update integration internal server error response has a 2xx status code
+func (o *UpdateIntegrationInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update integration internal server error response has a 3xx status code
+func (o *UpdateIntegrationInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration internal server error response has a 4xx status code
+func (o *UpdateIntegrationInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update integration internal server error response has a 5xx status code
+func (o *UpdateIntegrationInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update integration internal server error response a status code equal to that given
+func (o *UpdateIntegrationInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update integration internal server error response
+func (o *UpdateIntegrationInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateIntegrationInternalServerError) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateIntegrationInternalServerError) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integrations/{ID}][%d] updateIntegrationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateIntegrationInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/update_integration_task_parameters.go b/falcon/client/a_s_p_m/update_integration_task_parameters.go
new file mode 100644
index 00000000..f9e94eed
--- /dev/null
+++ b/falcon/client/a_s_p_m/update_integration_task_parameters.go
@@ -0,0 +1,170 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewUpdateIntegrationTaskParams creates a new UpdateIntegrationTaskParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewUpdateIntegrationTaskParams() *UpdateIntegrationTaskParams {
+ return &UpdateIntegrationTaskParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewUpdateIntegrationTaskParamsWithTimeout creates a new UpdateIntegrationTaskParams object
+// with the ability to set a timeout on a request.
+func NewUpdateIntegrationTaskParamsWithTimeout(timeout time.Duration) *UpdateIntegrationTaskParams {
+ return &UpdateIntegrationTaskParams{
+ timeout: timeout,
+ }
+}
+
+// NewUpdateIntegrationTaskParamsWithContext creates a new UpdateIntegrationTaskParams object
+// with the ability to set a context for a request.
+func NewUpdateIntegrationTaskParamsWithContext(ctx context.Context) *UpdateIntegrationTaskParams {
+ return &UpdateIntegrationTaskParams{
+ Context: ctx,
+ }
+}
+
+// NewUpdateIntegrationTaskParamsWithHTTPClient creates a new UpdateIntegrationTaskParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewUpdateIntegrationTaskParamsWithHTTPClient(client *http.Client) *UpdateIntegrationTaskParams {
+ return &UpdateIntegrationTaskParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+UpdateIntegrationTaskParams contains all the parameters to send to the API endpoint
+
+ for the update integration task operation.
+
+ Typically these are written to a http.Request.
+*/
+type UpdateIntegrationTaskParams struct {
+
+ // ID.
+ ID int64
+
+ // Body.
+ Body *models.TypesUpdateIntegrationTaskRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the update integration task params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdateIntegrationTaskParams) WithDefaults() *UpdateIntegrationTaskParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the update integration task params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdateIntegrationTaskParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the update integration task params
+func (o *UpdateIntegrationTaskParams) WithTimeout(timeout time.Duration) *UpdateIntegrationTaskParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the update integration task params
+func (o *UpdateIntegrationTaskParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the update integration task params
+func (o *UpdateIntegrationTaskParams) WithContext(ctx context.Context) *UpdateIntegrationTaskParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the update integration task params
+func (o *UpdateIntegrationTaskParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the update integration task params
+func (o *UpdateIntegrationTaskParams) WithHTTPClient(client *http.Client) *UpdateIntegrationTaskParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the update integration task params
+func (o *UpdateIntegrationTaskParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithID adds the id to the update integration task params
+func (o *UpdateIntegrationTaskParams) WithID(id int64) *UpdateIntegrationTaskParams {
+ o.SetID(id)
+ return o
+}
+
+// SetID adds the id to the update integration task params
+func (o *UpdateIntegrationTaskParams) SetID(id int64) {
+ o.ID = id
+}
+
+// WithBody adds the body to the update integration task params
+func (o *UpdateIntegrationTaskParams) WithBody(body *models.TypesUpdateIntegrationTaskRequest) *UpdateIntegrationTaskParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the update integration task params
+func (o *UpdateIntegrationTaskParams) SetBody(body *models.TypesUpdateIntegrationTaskRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *UpdateIntegrationTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param ID
+ if err := r.SetPathParam("ID", swag.FormatInt64(o.ID)); err != nil {
+ return err
+ }
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/update_integration_task_responses.go b/falcon/client/a_s_p_m/update_integration_task_responses.go
new file mode 100644
index 00000000..f390faf3
--- /dev/null
+++ b/falcon/client/a_s_p_m/update_integration_task_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// UpdateIntegrationTaskReader is a Reader for the UpdateIntegrationTask structure.
+type UpdateIntegrationTaskReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *UpdateIntegrationTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewUpdateIntegrationTaskOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewUpdateIntegrationTaskBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewUpdateIntegrationTaskUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewUpdateIntegrationTaskForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewUpdateIntegrationTaskTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewUpdateIntegrationTaskInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}] UpdateIntegrationTask", response, response.Code())
+ }
+}
+
+// NewUpdateIntegrationTaskOK creates a UpdateIntegrationTaskOK with default headers values
+func NewUpdateIntegrationTaskOK() *UpdateIntegrationTaskOK {
+ return &UpdateIntegrationTaskOK{}
+}
+
+/*
+UpdateIntegrationTaskOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type UpdateIntegrationTaskOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesIntegrationTaskResponse
+}
+
+// IsSuccess returns true when this update integration task o k response has a 2xx status code
+func (o *UpdateIntegrationTaskOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this update integration task o k response has a 3xx status code
+func (o *UpdateIntegrationTaskOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration task o k response has a 4xx status code
+func (o *UpdateIntegrationTaskOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update integration task o k response has a 5xx status code
+func (o *UpdateIntegrationTaskOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update integration task o k response a status code equal to that given
+func (o *UpdateIntegrationTaskOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the update integration task o k response
+func (o *UpdateIntegrationTaskOK) Code() int {
+ return 200
+}
+
+func (o *UpdateIntegrationTaskOK) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskOK %+v", 200, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskOK) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskOK %+v", 200, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskOK) GetPayload() *models.TypesIntegrationTaskResponse {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationTaskOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesIntegrationTaskResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateIntegrationTaskBadRequest creates a UpdateIntegrationTaskBadRequest with default headers values
+func NewUpdateIntegrationTaskBadRequest() *UpdateIntegrationTaskBadRequest {
+ return &UpdateIntegrationTaskBadRequest{}
+}
+
+/*
+UpdateIntegrationTaskBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type UpdateIntegrationTaskBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update integration task bad request response has a 2xx status code
+func (o *UpdateIntegrationTaskBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update integration task bad request response has a 3xx status code
+func (o *UpdateIntegrationTaskBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration task bad request response has a 4xx status code
+func (o *UpdateIntegrationTaskBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update integration task bad request response has a 5xx status code
+func (o *UpdateIntegrationTaskBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update integration task bad request response a status code equal to that given
+func (o *UpdateIntegrationTaskBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the update integration task bad request response
+func (o *UpdateIntegrationTaskBadRequest) Code() int {
+ return 400
+}
+
+func (o *UpdateIntegrationTaskBadRequest) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskBadRequest) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationTaskBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateIntegrationTaskUnauthorized creates a UpdateIntegrationTaskUnauthorized with default headers values
+func NewUpdateIntegrationTaskUnauthorized() *UpdateIntegrationTaskUnauthorized {
+ return &UpdateIntegrationTaskUnauthorized{}
+}
+
+/*
+UpdateIntegrationTaskUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type UpdateIntegrationTaskUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update integration task unauthorized response has a 2xx status code
+func (o *UpdateIntegrationTaskUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update integration task unauthorized response has a 3xx status code
+func (o *UpdateIntegrationTaskUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration task unauthorized response has a 4xx status code
+func (o *UpdateIntegrationTaskUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update integration task unauthorized response has a 5xx status code
+func (o *UpdateIntegrationTaskUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update integration task unauthorized response a status code equal to that given
+func (o *UpdateIntegrationTaskUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the update integration task unauthorized response
+func (o *UpdateIntegrationTaskUnauthorized) Code() int {
+ return 401
+}
+
+func (o *UpdateIntegrationTaskUnauthorized) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskUnauthorized) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationTaskUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateIntegrationTaskForbidden creates a UpdateIntegrationTaskForbidden with default headers values
+func NewUpdateIntegrationTaskForbidden() *UpdateIntegrationTaskForbidden {
+ return &UpdateIntegrationTaskForbidden{}
+}
+
+/*
+UpdateIntegrationTaskForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type UpdateIntegrationTaskForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update integration task forbidden response has a 2xx status code
+func (o *UpdateIntegrationTaskForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update integration task forbidden response has a 3xx status code
+func (o *UpdateIntegrationTaskForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration task forbidden response has a 4xx status code
+func (o *UpdateIntegrationTaskForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update integration task forbidden response has a 5xx status code
+func (o *UpdateIntegrationTaskForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update integration task forbidden response a status code equal to that given
+func (o *UpdateIntegrationTaskForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the update integration task forbidden response
+func (o *UpdateIntegrationTaskForbidden) Code() int {
+ return 403
+}
+
+func (o *UpdateIntegrationTaskForbidden) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskForbidden) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationTaskForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateIntegrationTaskTooManyRequests creates a UpdateIntegrationTaskTooManyRequests with default headers values
+func NewUpdateIntegrationTaskTooManyRequests() *UpdateIntegrationTaskTooManyRequests {
+ return &UpdateIntegrationTaskTooManyRequests{}
+}
+
+/*
+UpdateIntegrationTaskTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type UpdateIntegrationTaskTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update integration task too many requests response has a 2xx status code
+func (o *UpdateIntegrationTaskTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update integration task too many requests response has a 3xx status code
+func (o *UpdateIntegrationTaskTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration task too many requests response has a 4xx status code
+func (o *UpdateIntegrationTaskTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update integration task too many requests response has a 5xx status code
+func (o *UpdateIntegrationTaskTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update integration task too many requests response a status code equal to that given
+func (o *UpdateIntegrationTaskTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the update integration task too many requests response
+func (o *UpdateIntegrationTaskTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *UpdateIntegrationTaskTooManyRequests) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskTooManyRequests) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationTaskTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateIntegrationTaskInternalServerError creates a UpdateIntegrationTaskInternalServerError with default headers values
+func NewUpdateIntegrationTaskInternalServerError() *UpdateIntegrationTaskInternalServerError {
+ return &UpdateIntegrationTaskInternalServerError{}
+}
+
+/*
+UpdateIntegrationTaskInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type UpdateIntegrationTaskInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this update integration task internal server error response has a 2xx status code
+func (o *UpdateIntegrationTaskInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update integration task internal server error response has a 3xx status code
+func (o *UpdateIntegrationTaskInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update integration task internal server error response has a 4xx status code
+func (o *UpdateIntegrationTaskInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update integration task internal server error response has a 5xx status code
+func (o *UpdateIntegrationTaskInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update integration task internal server error response a status code equal to that given
+func (o *UpdateIntegrationTaskInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update integration task internal server error response
+func (o *UpdateIntegrationTaskInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateIntegrationTaskInternalServerError) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskInternalServerError) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/integration_tasks/{ID}][%d] updateIntegrationTaskInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateIntegrationTaskInternalServerError) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpdateIntegrationTaskInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/upsert_business_applications_parameters.go b/falcon/client/a_s_p_m/upsert_business_applications_parameters.go
new file mode 100644
index 00000000..32787d7a
--- /dev/null
+++ b/falcon/client/a_s_p_m/upsert_business_applications_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewUpsertBusinessApplicationsParams creates a new UpsertBusinessApplicationsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewUpsertBusinessApplicationsParams() *UpsertBusinessApplicationsParams {
+ return &UpsertBusinessApplicationsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewUpsertBusinessApplicationsParamsWithTimeout creates a new UpsertBusinessApplicationsParams object
+// with the ability to set a timeout on a request.
+func NewUpsertBusinessApplicationsParamsWithTimeout(timeout time.Duration) *UpsertBusinessApplicationsParams {
+ return &UpsertBusinessApplicationsParams{
+ timeout: timeout,
+ }
+}
+
+// NewUpsertBusinessApplicationsParamsWithContext creates a new UpsertBusinessApplicationsParams object
+// with the ability to set a context for a request.
+func NewUpsertBusinessApplicationsParamsWithContext(ctx context.Context) *UpsertBusinessApplicationsParams {
+ return &UpsertBusinessApplicationsParams{
+ Context: ctx,
+ }
+}
+
+// NewUpsertBusinessApplicationsParamsWithHTTPClient creates a new UpsertBusinessApplicationsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewUpsertBusinessApplicationsParamsWithHTTPClient(client *http.Client) *UpsertBusinessApplicationsParams {
+ return &UpsertBusinessApplicationsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+UpsertBusinessApplicationsParams contains all the parameters to send to the API endpoint
+
+ for the upsert business applications operation.
+
+ Typically these are written to a http.Request.
+*/
+type UpsertBusinessApplicationsParams struct {
+
+ // Body.
+ Body *models.TypesUpsertBusinessApplicationRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the upsert business applications params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpsertBusinessApplicationsParams) WithDefaults() *UpsertBusinessApplicationsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the upsert business applications params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpsertBusinessApplicationsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the upsert business applications params
+func (o *UpsertBusinessApplicationsParams) WithTimeout(timeout time.Duration) *UpsertBusinessApplicationsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the upsert business applications params
+func (o *UpsertBusinessApplicationsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the upsert business applications params
+func (o *UpsertBusinessApplicationsParams) WithContext(ctx context.Context) *UpsertBusinessApplicationsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the upsert business applications params
+func (o *UpsertBusinessApplicationsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the upsert business applications params
+func (o *UpsertBusinessApplicationsParams) WithHTTPClient(client *http.Client) *UpsertBusinessApplicationsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the upsert business applications params
+func (o *UpsertBusinessApplicationsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the upsert business applications params
+func (o *UpsertBusinessApplicationsParams) WithBody(body *models.TypesUpsertBusinessApplicationRequest) *UpsertBusinessApplicationsParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the upsert business applications params
+func (o *UpsertBusinessApplicationsParams) SetBody(body *models.TypesUpsertBusinessApplicationRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *UpsertBusinessApplicationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/upsert_business_applications_responses.go b/falcon/client/a_s_p_m/upsert_business_applications_responses.go
new file mode 100644
index 00000000..dc59ca82
--- /dev/null
+++ b/falcon/client/a_s_p_m/upsert_business_applications_responses.go
@@ -0,0 +1,845 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// UpsertBusinessApplicationsReader is a Reader for the UpsertBusinessApplications structure.
+type UpsertBusinessApplicationsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *UpsertBusinessApplicationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 201:
+ result := NewUpsertBusinessApplicationsCreated()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewUpsertBusinessApplicationsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewUpsertBusinessApplicationsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewUpsertBusinessApplicationsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewUpsertBusinessApplicationsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewUpsertBusinessApplicationsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 503:
+ result := NewUpsertBusinessApplicationsServiceUnavailable()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PUT /aspm-api-gateway/api/v1/business_applications] UpsertBusinessApplications", response, response.Code())
+ }
+}
+
+// NewUpsertBusinessApplicationsCreated creates a UpsertBusinessApplicationsCreated with default headers values
+func NewUpsertBusinessApplicationsCreated() *UpsertBusinessApplicationsCreated {
+ return &UpsertBusinessApplicationsCreated{}
+}
+
+/*
+UpsertBusinessApplicationsCreated describes a response with status code 201, with default header values.
+
+Created
+*/
+type UpsertBusinessApplicationsCreated struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this upsert business applications created response has a 2xx status code
+func (o *UpsertBusinessApplicationsCreated) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this upsert business applications created response has a 3xx status code
+func (o *UpsertBusinessApplicationsCreated) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert business applications created response has a 4xx status code
+func (o *UpsertBusinessApplicationsCreated) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upsert business applications created response has a 5xx status code
+func (o *UpsertBusinessApplicationsCreated) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upsert business applications created response a status code equal to that given
+func (o *UpsertBusinessApplicationsCreated) IsCode(code int) bool {
+ return code == 201
+}
+
+// Code gets the status code for the upsert business applications created response
+func (o *UpsertBusinessApplicationsCreated) Code() int {
+ return 201
+}
+
+func (o *UpsertBusinessApplicationsCreated) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsCreated ", 201)
+}
+
+func (o *UpsertBusinessApplicationsCreated) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsCreated ", 201)
+}
+
+func (o *UpsertBusinessApplicationsCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewUpsertBusinessApplicationsBadRequest creates a UpsertBusinessApplicationsBadRequest with default headers values
+func NewUpsertBusinessApplicationsBadRequest() *UpsertBusinessApplicationsBadRequest {
+ return &UpsertBusinessApplicationsBadRequest{}
+}
+
+/*
+UpsertBusinessApplicationsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type UpsertBusinessApplicationsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this upsert business applications bad request response has a 2xx status code
+func (o *UpsertBusinessApplicationsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert business applications bad request response has a 3xx status code
+func (o *UpsertBusinessApplicationsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert business applications bad request response has a 4xx status code
+func (o *UpsertBusinessApplicationsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upsert business applications bad request response has a 5xx status code
+func (o *UpsertBusinessApplicationsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upsert business applications bad request response a status code equal to that given
+func (o *UpsertBusinessApplicationsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the upsert business applications bad request response
+func (o *UpsertBusinessApplicationsBadRequest) Code() int {
+ return 400
+}
+
+func (o *UpsertBusinessApplicationsBadRequest) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsBadRequest) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpsertBusinessApplicationsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpsertBusinessApplicationsUnauthorized creates a UpsertBusinessApplicationsUnauthorized with default headers values
+func NewUpsertBusinessApplicationsUnauthorized() *UpsertBusinessApplicationsUnauthorized {
+ return &UpsertBusinessApplicationsUnauthorized{}
+}
+
+/*
+UpsertBusinessApplicationsUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type UpsertBusinessApplicationsUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this upsert business applications unauthorized response has a 2xx status code
+func (o *UpsertBusinessApplicationsUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert business applications unauthorized response has a 3xx status code
+func (o *UpsertBusinessApplicationsUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert business applications unauthorized response has a 4xx status code
+func (o *UpsertBusinessApplicationsUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upsert business applications unauthorized response has a 5xx status code
+func (o *UpsertBusinessApplicationsUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upsert business applications unauthorized response a status code equal to that given
+func (o *UpsertBusinessApplicationsUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the upsert business applications unauthorized response
+func (o *UpsertBusinessApplicationsUnauthorized) Code() int {
+ return 401
+}
+
+func (o *UpsertBusinessApplicationsUnauthorized) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsUnauthorized) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpsertBusinessApplicationsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpsertBusinessApplicationsForbidden creates a UpsertBusinessApplicationsForbidden with default headers values
+func NewUpsertBusinessApplicationsForbidden() *UpsertBusinessApplicationsForbidden {
+ return &UpsertBusinessApplicationsForbidden{}
+}
+
+/*
+UpsertBusinessApplicationsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type UpsertBusinessApplicationsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this upsert business applications forbidden response has a 2xx status code
+func (o *UpsertBusinessApplicationsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert business applications forbidden response has a 3xx status code
+func (o *UpsertBusinessApplicationsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert business applications forbidden response has a 4xx status code
+func (o *UpsertBusinessApplicationsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upsert business applications forbidden response has a 5xx status code
+func (o *UpsertBusinessApplicationsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upsert business applications forbidden response a status code equal to that given
+func (o *UpsertBusinessApplicationsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the upsert business applications forbidden response
+func (o *UpsertBusinessApplicationsForbidden) Code() int {
+ return 403
+}
+
+func (o *UpsertBusinessApplicationsForbidden) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsForbidden) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpsertBusinessApplicationsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpsertBusinessApplicationsTooManyRequests creates a UpsertBusinessApplicationsTooManyRequests with default headers values
+func NewUpsertBusinessApplicationsTooManyRequests() *UpsertBusinessApplicationsTooManyRequests {
+ return &UpsertBusinessApplicationsTooManyRequests{}
+}
+
+/*
+UpsertBusinessApplicationsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type UpsertBusinessApplicationsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this upsert business applications too many requests response has a 2xx status code
+func (o *UpsertBusinessApplicationsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert business applications too many requests response has a 3xx status code
+func (o *UpsertBusinessApplicationsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert business applications too many requests response has a 4xx status code
+func (o *UpsertBusinessApplicationsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upsert business applications too many requests response has a 5xx status code
+func (o *UpsertBusinessApplicationsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upsert business applications too many requests response a status code equal to that given
+func (o *UpsertBusinessApplicationsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the upsert business applications too many requests response
+func (o *UpsertBusinessApplicationsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *UpsertBusinessApplicationsTooManyRequests) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsTooManyRequests) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpsertBusinessApplicationsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpsertBusinessApplicationsInternalServerError creates a UpsertBusinessApplicationsInternalServerError with default headers values
+func NewUpsertBusinessApplicationsInternalServerError() *UpsertBusinessApplicationsInternalServerError {
+ return &UpsertBusinessApplicationsInternalServerError{}
+}
+
+/*
+UpsertBusinessApplicationsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpsertBusinessApplicationsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this upsert business applications internal server error response has a 2xx status code
+func (o *UpsertBusinessApplicationsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert business applications internal server error response has a 3xx status code
+func (o *UpsertBusinessApplicationsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert business applications internal server error response has a 4xx status code
+func (o *UpsertBusinessApplicationsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upsert business applications internal server error response has a 5xx status code
+func (o *UpsertBusinessApplicationsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this upsert business applications internal server error response a status code equal to that given
+func (o *UpsertBusinessApplicationsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the upsert business applications internal server error response
+func (o *UpsertBusinessApplicationsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpsertBusinessApplicationsInternalServerError) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsInternalServerError) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpsertBusinessApplicationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpsertBusinessApplicationsServiceUnavailable creates a UpsertBusinessApplicationsServiceUnavailable with default headers values
+func NewUpsertBusinessApplicationsServiceUnavailable() *UpsertBusinessApplicationsServiceUnavailable {
+ return &UpsertBusinessApplicationsServiceUnavailable{}
+}
+
+/*
+UpsertBusinessApplicationsServiceUnavailable describes a response with status code 503, with default header values.
+
+Service Unavailable
+*/
+type UpsertBusinessApplicationsServiceUnavailable struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this upsert business applications service unavailable response has a 2xx status code
+func (o *UpsertBusinessApplicationsServiceUnavailable) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert business applications service unavailable response has a 3xx status code
+func (o *UpsertBusinessApplicationsServiceUnavailable) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert business applications service unavailable response has a 4xx status code
+func (o *UpsertBusinessApplicationsServiceUnavailable) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upsert business applications service unavailable response has a 5xx status code
+func (o *UpsertBusinessApplicationsServiceUnavailable) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this upsert business applications service unavailable response a status code equal to that given
+func (o *UpsertBusinessApplicationsServiceUnavailable) IsCode(code int) bool {
+ return code == 503
+}
+
+// Code gets the status code for the upsert business applications service unavailable response
+func (o *UpsertBusinessApplicationsServiceUnavailable) Code() int {
+ return 503
+}
+
+func (o *UpsertBusinessApplicationsServiceUnavailable) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsServiceUnavailable %+v", 503, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsServiceUnavailable) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/business_applications][%d] upsertBusinessApplicationsServiceUnavailable %+v", 503, o.Payload)
+}
+
+func (o *UpsertBusinessApplicationsServiceUnavailable) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpsertBusinessApplicationsServiceUnavailable) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/upsert_tags_parameters.go b/falcon/client/a_s_p_m/upsert_tags_parameters.go
new file mode 100644
index 00000000..82869aba
--- /dev/null
+++ b/falcon/client/a_s_p_m/upsert_tags_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewUpsertTagsParams creates a new UpsertTagsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewUpsertTagsParams() *UpsertTagsParams {
+ return &UpsertTagsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewUpsertTagsParamsWithTimeout creates a new UpsertTagsParams object
+// with the ability to set a timeout on a request.
+func NewUpsertTagsParamsWithTimeout(timeout time.Duration) *UpsertTagsParams {
+ return &UpsertTagsParams{
+ timeout: timeout,
+ }
+}
+
+// NewUpsertTagsParamsWithContext creates a new UpsertTagsParams object
+// with the ability to set a context for a request.
+func NewUpsertTagsParamsWithContext(ctx context.Context) *UpsertTagsParams {
+ return &UpsertTagsParams{
+ Context: ctx,
+ }
+}
+
+// NewUpsertTagsParamsWithHTTPClient creates a new UpsertTagsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewUpsertTagsParamsWithHTTPClient(client *http.Client) *UpsertTagsParams {
+ return &UpsertTagsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+UpsertTagsParams contains all the parameters to send to the API endpoint
+
+ for the upsert tags operation.
+
+ Typically these are written to a http.Request.
+*/
+type UpsertTagsParams struct {
+
+ // Body.
+ Body *models.TypesEditUniqueTagRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the upsert tags params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpsertTagsParams) WithDefaults() *UpsertTagsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the upsert tags params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpsertTagsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the upsert tags params
+func (o *UpsertTagsParams) WithTimeout(timeout time.Duration) *UpsertTagsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the upsert tags params
+func (o *UpsertTagsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the upsert tags params
+func (o *UpsertTagsParams) WithContext(ctx context.Context) *UpsertTagsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the upsert tags params
+func (o *UpsertTagsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the upsert tags params
+func (o *UpsertTagsParams) WithHTTPClient(client *http.Client) *UpsertTagsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the upsert tags params
+func (o *UpsertTagsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the upsert tags params
+func (o *UpsertTagsParams) WithBody(body *models.TypesEditUniqueTagRequest) *UpsertTagsParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the upsert tags params
+func (o *UpsertTagsParams) SetBody(body *models.TypesEditUniqueTagRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *UpsertTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/a_s_p_m/upsert_tags_responses.go b/falcon/client/a_s_p_m/upsert_tags_responses.go
new file mode 100644
index 00000000..cee5e8ef
--- /dev/null
+++ b/falcon/client/a_s_p_m/upsert_tags_responses.go
@@ -0,0 +1,845 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package a_s_p_m
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// UpsertTagsReader is a Reader for the UpsertTags structure.
+type UpsertTagsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *UpsertTagsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 201:
+ result := NewUpsertTagsCreated()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewUpsertTagsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewUpsertTagsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewUpsertTagsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewUpsertTagsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewUpsertTagsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 503:
+ result := NewUpsertTagsServiceUnavailable()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PUT /aspm-api-gateway/api/v1/tags] UpsertTags", response, response.Code())
+ }
+}
+
+// NewUpsertTagsCreated creates a UpsertTagsCreated with default headers values
+func NewUpsertTagsCreated() *UpsertTagsCreated {
+ return &UpsertTagsCreated{}
+}
+
+/*
+UpsertTagsCreated describes a response with status code 201, with default header values.
+
+Created
+*/
+type UpsertTagsCreated struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this upsert tags created response has a 2xx status code
+func (o *UpsertTagsCreated) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this upsert tags created response has a 3xx status code
+func (o *UpsertTagsCreated) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert tags created response has a 4xx status code
+func (o *UpsertTagsCreated) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upsert tags created response has a 5xx status code
+func (o *UpsertTagsCreated) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upsert tags created response a status code equal to that given
+func (o *UpsertTagsCreated) IsCode(code int) bool {
+ return code == 201
+}
+
+// Code gets the status code for the upsert tags created response
+func (o *UpsertTagsCreated) Code() int {
+ return 201
+}
+
+func (o *UpsertTagsCreated) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsCreated ", 201)
+}
+
+func (o *UpsertTagsCreated) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsCreated ", 201)
+}
+
+func (o *UpsertTagsCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewUpsertTagsBadRequest creates a UpsertTagsBadRequest with default headers values
+func NewUpsertTagsBadRequest() *UpsertTagsBadRequest {
+ return &UpsertTagsBadRequest{}
+}
+
+/*
+UpsertTagsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type UpsertTagsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this upsert tags bad request response has a 2xx status code
+func (o *UpsertTagsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert tags bad request response has a 3xx status code
+func (o *UpsertTagsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert tags bad request response has a 4xx status code
+func (o *UpsertTagsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upsert tags bad request response has a 5xx status code
+func (o *UpsertTagsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upsert tags bad request response a status code equal to that given
+func (o *UpsertTagsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the upsert tags bad request response
+func (o *UpsertTagsBadRequest) Code() int {
+ return 400
+}
+
+func (o *UpsertTagsBadRequest) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpsertTagsBadRequest) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpsertTagsBadRequest) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpsertTagsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpsertTagsUnauthorized creates a UpsertTagsUnauthorized with default headers values
+func NewUpsertTagsUnauthorized() *UpsertTagsUnauthorized {
+ return &UpsertTagsUnauthorized{}
+}
+
+/*
+UpsertTagsUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type UpsertTagsUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this upsert tags unauthorized response has a 2xx status code
+func (o *UpsertTagsUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert tags unauthorized response has a 3xx status code
+func (o *UpsertTagsUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert tags unauthorized response has a 4xx status code
+func (o *UpsertTagsUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upsert tags unauthorized response has a 5xx status code
+func (o *UpsertTagsUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upsert tags unauthorized response a status code equal to that given
+func (o *UpsertTagsUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the upsert tags unauthorized response
+func (o *UpsertTagsUnauthorized) Code() int {
+ return 401
+}
+
+func (o *UpsertTagsUnauthorized) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpsertTagsUnauthorized) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpsertTagsUnauthorized) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpsertTagsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpsertTagsForbidden creates a UpsertTagsForbidden with default headers values
+func NewUpsertTagsForbidden() *UpsertTagsForbidden {
+ return &UpsertTagsForbidden{}
+}
+
+/*
+UpsertTagsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type UpsertTagsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this upsert tags forbidden response has a 2xx status code
+func (o *UpsertTagsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert tags forbidden response has a 3xx status code
+func (o *UpsertTagsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert tags forbidden response has a 4xx status code
+func (o *UpsertTagsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upsert tags forbidden response has a 5xx status code
+func (o *UpsertTagsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upsert tags forbidden response a status code equal to that given
+func (o *UpsertTagsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the upsert tags forbidden response
+func (o *UpsertTagsForbidden) Code() int {
+ return 403
+}
+
+func (o *UpsertTagsForbidden) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpsertTagsForbidden) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpsertTagsForbidden) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpsertTagsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpsertTagsTooManyRequests creates a UpsertTagsTooManyRequests with default headers values
+func NewUpsertTagsTooManyRequests() *UpsertTagsTooManyRequests {
+ return &UpsertTagsTooManyRequests{}
+}
+
+/*
+UpsertTagsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type UpsertTagsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this upsert tags too many requests response has a 2xx status code
+func (o *UpsertTagsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert tags too many requests response has a 3xx status code
+func (o *UpsertTagsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert tags too many requests response has a 4xx status code
+func (o *UpsertTagsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upsert tags too many requests response has a 5xx status code
+func (o *UpsertTagsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upsert tags too many requests response a status code equal to that given
+func (o *UpsertTagsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the upsert tags too many requests response
+func (o *UpsertTagsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *UpsertTagsTooManyRequests) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UpsertTagsTooManyRequests) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UpsertTagsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpsertTagsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpsertTagsInternalServerError creates a UpsertTagsInternalServerError with default headers values
+func NewUpsertTagsInternalServerError() *UpsertTagsInternalServerError {
+ return &UpsertTagsInternalServerError{}
+}
+
+/*
+UpsertTagsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpsertTagsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this upsert tags internal server error response has a 2xx status code
+func (o *UpsertTagsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert tags internal server error response has a 3xx status code
+func (o *UpsertTagsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert tags internal server error response has a 4xx status code
+func (o *UpsertTagsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upsert tags internal server error response has a 5xx status code
+func (o *UpsertTagsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this upsert tags internal server error response a status code equal to that given
+func (o *UpsertTagsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the upsert tags internal server error response
+func (o *UpsertTagsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpsertTagsInternalServerError) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpsertTagsInternalServerError) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpsertTagsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpsertTagsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpsertTagsServiceUnavailable creates a UpsertTagsServiceUnavailable with default headers values
+func NewUpsertTagsServiceUnavailable() *UpsertTagsServiceUnavailable {
+ return &UpsertTagsServiceUnavailable{}
+}
+
+/*
+UpsertTagsServiceUnavailable describes a response with status code 503, with default header values.
+
+Service Unavailable
+*/
+type UpsertTagsServiceUnavailable struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.TypesErrorMessage
+}
+
+// IsSuccess returns true when this upsert tags service unavailable response has a 2xx status code
+func (o *UpsertTagsServiceUnavailable) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert tags service unavailable response has a 3xx status code
+func (o *UpsertTagsServiceUnavailable) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert tags service unavailable response has a 4xx status code
+func (o *UpsertTagsServiceUnavailable) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upsert tags service unavailable response has a 5xx status code
+func (o *UpsertTagsServiceUnavailable) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this upsert tags service unavailable response a status code equal to that given
+func (o *UpsertTagsServiceUnavailable) IsCode(code int) bool {
+ return code == 503
+}
+
+// Code gets the status code for the upsert tags service unavailable response
+func (o *UpsertTagsServiceUnavailable) Code() int {
+ return 503
+}
+
+func (o *UpsertTagsServiceUnavailable) Error() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsServiceUnavailable %+v", 503, o.Payload)
+}
+
+func (o *UpsertTagsServiceUnavailable) String() string {
+ return fmt.Sprintf("[PUT /aspm-api-gateway/api/v1/tags][%d] upsertTagsServiceUnavailable %+v", 503, o.Payload)
+}
+
+func (o *UpsertTagsServiceUnavailable) GetPayload() *models.TypesErrorMessage {
+ return o.Payload
+}
+
+func (o *UpsertTagsServiceUnavailable) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.TypesErrorMessage)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/alerts/alerts_client.go b/falcon/client/alerts/alerts_client.go
index d92bb627..e2b4f9aa 100644
--- a/falcon/client/alerts/alerts_client.go
+++ b/falcon/client/alerts/alerts_client.go
@@ -88,7 +88,7 @@ func (a *Client) GetAggregateV2(params *GetAggregateV2Params, opts ...ClientOpti
}
/*
-GetQueriesAlertsV1 retrieves all alerts ids that match a given query
+GetQueriesAlertsV1 deprecateds please use version v2 of this endpoint retrieves all alerts ids that match a given query
*/
func (a *Client) GetQueriesAlertsV1(params *GetQueriesAlertsV1Params, opts ...ClientOption) (*GetQueriesAlertsV1OK, error) {
// TODO: Validate the params before sending
@@ -164,7 +164,7 @@ func (a *Client) GetV2(params *GetV2Params, opts ...ClientOption) (*GetV2OK, err
}
/*
-PatchEntitiesAlertsV2 performs actions on alerts identified by composite ID s in request each action has a name and a description which describes what the action does if a request adds and removes tag in a single request the order of processing would be to remove tags before adding new ones in
+PatchEntitiesAlertsV2 deprecateds please use version v3 of this endpoint perform actions on alerts identified by composite ID s in request each action has a name and a description which describes what the action does if a request adds and removes tag in a single request the order of processing would be to remove tags before adding new ones in
*/
func (a *Client) PatchEntitiesAlertsV2(params *PatchEntitiesAlertsV2Params, opts ...ClientOption) (*PatchEntitiesAlertsV2OK, error) {
// TODO: Validate the params before sending
@@ -202,7 +202,7 @@ func (a *Client) PatchEntitiesAlertsV2(params *PatchEntitiesAlertsV2Params, opts
}
/*
-PostAggregatesAlertsV1 retrieves aggregate values for alerts across all c i ds
+PostAggregatesAlertsV1 deprecateds please use version v2 of this endpoint retrieves aggregate values for alerts across all c i ds
*/
func (a *Client) PostAggregatesAlertsV1(params *PostAggregatesAlertsV1Params, opts ...ClientOption) (*PostAggregatesAlertsV1OK, error) {
// TODO: Validate the params before sending
@@ -240,7 +240,7 @@ func (a *Client) PostAggregatesAlertsV1(params *PostAggregatesAlertsV1Params, op
}
/*
-PostEntitiesAlertsV1 retrieves all alerts given their ids
+PostEntitiesAlertsV1 deprecateds please use version v2 of this endpoint retrieves all alerts given their ids
*/
func (a *Client) PostEntitiesAlertsV1(params *PostEntitiesAlertsV1Params, opts ...ClientOption) (*PostEntitiesAlertsV1OK, error) {
// TODO: Validate the params before sending
diff --git a/falcon/client/alerts/get_queries_alerts_v1_parameters.go b/falcon/client/alerts/get_queries_alerts_v1_parameters.go
index 078bf029..e3b767db 100644
--- a/falcon/client/alerts/get_queries_alerts_v1_parameters.go
+++ b/falcon/client/alerts/get_queries_alerts_v1_parameters.go
@@ -91,7 +91,7 @@ type GetQueriesAlertsV1Params struct {
/* Q.
- Search all detection metadata for the provided string
+ Search all alert metadata for the provided string
*/
Q *string
diff --git a/falcon/client/alerts/patch_entities_alerts_v2_parameters.go b/falcon/client/alerts/patch_entities_alerts_v2_parameters.go
index 2cb88e72..7b81c029 100644
--- a/falcon/client/alerts/patch_entities_alerts_v2_parameters.go
+++ b/falcon/client/alerts/patch_entities_alerts_v2_parameters.go
@@ -65,7 +65,35 @@ type PatchEntitiesAlertsV2Params struct {
/* Body.
- request body takes a list of action parameter request that is applied against all "ids" provided
+ `ids`
+ - IDs of Alerts to modify.
+
+ `action_parameters` values
+ - `assign_to_uuid`
+ - Assign Alert to user UUID, such as `00000000-0000-0000-0000-000000000000`
+ - `assign_to_user_id`
+ - Assign Alert to user ID, such as `user@example.com`
+ - `assign_to_name`
+ - Assign Alert to username, such as `John Doe`
+ - `unassign`
+ - Unassign Alert clears out the assigned user UUID, user ID, and username.
+ - `add_tag`
+ - Add a tag to the Alert.
+ - `remove_tag`
+ - Remove a tag from the Alert.
+ - `remove_tags_by_prefix`
+ - Remove tags from the Alert based on the prefix.
+ - `append_comment`
+ - Comments are displayed with the Alert in Falcon and are usually used to provide context or notes for other Falcon users. An Alert can have multiple comments over time.
+ - `update_status` values
+ - `new`
+ - `in_progress`
+ - `reopened`
+ - `closed`
+ - `show_in_ui` values
+ - `true`: This alert is displayed in Falcon
+ - `false`: This alert is not displayed in Falcon.
+
*/
Body *models.DetectsapiPatchEntitiesAlertsV2Request
diff --git a/falcon/client/alerts/query_v2_parameters.go b/falcon/client/alerts/query_v2_parameters.go
index 50939b5c..f68e682c 100644
--- a/falcon/client/alerts/query_v2_parameters.go
+++ b/falcon/client/alerts/query_v2_parameters.go
@@ -99,7 +99,7 @@ type QueryV2Params struct {
/* Q.
- Search all detection metadata for the provided string
+ Search all alert metadata for the provided string
*/
Q *string
diff --git a/falcon/client/alerts/update_v3_parameters.go b/falcon/client/alerts/update_v3_parameters.go
index fbc4ec60..ca30c6de 100644
--- a/falcon/client/alerts/update_v3_parameters.go
+++ b/falcon/client/alerts/update_v3_parameters.go
@@ -66,7 +66,35 @@ type UpdateV3Params struct {
/* Body.
- request body takes a list of action parameter request that is applied against all "composite_ids" provided
+ `composite_ids`
+ - CompositeIDs of Alerts to modify.
+
+ `action_parameters` values
+ - `assign_to_uuid`
+ - Assign Alert to user UUID, such as `00000000-0000-0000-0000-000000000000`
+ - `assign_to_user_id`
+ - Assign Alert to user ID, such as `user@example.com`
+ - `assign_to_name`
+ - Assign Alert to username, such as `John Doe`
+ - `unassign`
+ - Unassign Alert clears out the assigned user UUID, user ID, and username.
+ - `add_tag`
+ - Add a tag to the Alert.
+ - `remove_tag`
+ - Remove a tag from the Alert.
+ - `remove_tags_by_prefix`
+ - Remove tags from the Alert based on the prefix.
+ - `append_comment`
+ - Comments are displayed with the Alert in Falcon and are usually used to provide context or notes for other Falcon users. An Alert can have multiple comments over time.
+ - `update_status` values
+ - `new`
+ - `in_progress`
+ - `reopened`
+ - `closed`
+ - `show_in_ui` values
+ - `true`: This alert is displayed in Falcon
+ - `false`: This alert is not displayed in Falcon.
+
*/
Body *models.DetectsapiPatchEntitiesAlertsV3Request
diff --git a/falcon/client/api_integrations/api_integrations_client.go b/falcon/client/api_integrations/api_integrations_client.go
index 7c8a8392..8474ca4c 100644
--- a/falcon/client/api_integrations/api_integrations_client.go
+++ b/falcon/client/api_integrations/api_integrations_client.go
@@ -32,6 +32,8 @@ type ClientOption func(*runtime.ClientOperation)
type ClientService interface {
ExecuteCommand(params *ExecuteCommandParams, opts ...ClientOption) (*ExecuteCommandOK, error)
+ ExecuteCommandProxy(params *ExecuteCommandProxyParams, opts ...ClientOption) (*ExecuteCommandProxyOK, error)
+
GetCombinedPluginConfigs(params *GetCombinedPluginConfigsParams, opts ...ClientOption) (*GetCombinedPluginConfigsOK, error)
SetTransport(transport runtime.ClientTransport)
@@ -50,7 +52,7 @@ func (a *Client) ExecuteCommand(params *ExecuteCommandParams, opts ...ClientOpti
Method: "POST",
PathPattern: "/plugins/entities/execute/v1",
ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json", "multipart/form-data"},
Schemes: []string{"https"},
Params: params,
Reader: &ExecuteCommandReader{formats: a.formats},
@@ -75,6 +77,44 @@ func (a *Client) ExecuteCommand(params *ExecuteCommandParams, opts ...ClientOpti
panic(msg)
}
+/*
+ExecuteCommandProxy executes a command and proxy the response directly
+*/
+func (a *Client) ExecuteCommandProxy(params *ExecuteCommandProxyParams, opts ...ClientOption) (*ExecuteCommandProxyOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewExecuteCommandProxyParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "ExecuteCommandProxy",
+ Method: "POST",
+ PathPattern: "/plugins/entities/execute-proxy/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &ExecuteCommandProxyReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*ExecuteCommandProxyOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for ExecuteCommandProxy: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
/*
GetCombinedPluginConfigs queries for config resources and returns details
*/
diff --git a/falcon/client/api_integrations/execute_command_proxy_parameters.go b/falcon/client/api_integrations/execute_command_proxy_parameters.go
new file mode 100644
index 00000000..62832e88
--- /dev/null
+++ b/falcon/client/api_integrations/execute_command_proxy_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package api_integrations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewExecuteCommandProxyParams creates a new ExecuteCommandProxyParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewExecuteCommandProxyParams() *ExecuteCommandProxyParams {
+ return &ExecuteCommandProxyParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewExecuteCommandProxyParamsWithTimeout creates a new ExecuteCommandProxyParams object
+// with the ability to set a timeout on a request.
+func NewExecuteCommandProxyParamsWithTimeout(timeout time.Duration) *ExecuteCommandProxyParams {
+ return &ExecuteCommandProxyParams{
+ timeout: timeout,
+ }
+}
+
+// NewExecuteCommandProxyParamsWithContext creates a new ExecuteCommandProxyParams object
+// with the ability to set a context for a request.
+func NewExecuteCommandProxyParamsWithContext(ctx context.Context) *ExecuteCommandProxyParams {
+ return &ExecuteCommandProxyParams{
+ Context: ctx,
+ }
+}
+
+// NewExecuteCommandProxyParamsWithHTTPClient creates a new ExecuteCommandProxyParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewExecuteCommandProxyParamsWithHTTPClient(client *http.Client) *ExecuteCommandProxyParams {
+ return &ExecuteCommandProxyParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+ExecuteCommandProxyParams contains all the parameters to send to the API endpoint
+
+ for the execute command proxy operation.
+
+ Typically these are written to a http.Request.
+*/
+type ExecuteCommandProxyParams struct {
+
+ // Body.
+ Body *models.DomainExecuteCommandRequestV1
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the execute command proxy params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ExecuteCommandProxyParams) WithDefaults() *ExecuteCommandProxyParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the execute command proxy params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ExecuteCommandProxyParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the execute command proxy params
+func (o *ExecuteCommandProxyParams) WithTimeout(timeout time.Duration) *ExecuteCommandProxyParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the execute command proxy params
+func (o *ExecuteCommandProxyParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the execute command proxy params
+func (o *ExecuteCommandProxyParams) WithContext(ctx context.Context) *ExecuteCommandProxyParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the execute command proxy params
+func (o *ExecuteCommandProxyParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the execute command proxy params
+func (o *ExecuteCommandProxyParams) WithHTTPClient(client *http.Client) *ExecuteCommandProxyParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the execute command proxy params
+func (o *ExecuteCommandProxyParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the execute command proxy params
+func (o *ExecuteCommandProxyParams) WithBody(body *models.DomainExecuteCommandRequestV1) *ExecuteCommandProxyParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the execute command proxy params
+func (o *ExecuteCommandProxyParams) SetBody(body *models.DomainExecuteCommandRequestV1) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *ExecuteCommandProxyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/api_integrations/execute_command_proxy_responses.go b/falcon/client/api_integrations/execute_command_proxy_responses.go
new file mode 100644
index 00000000..ebc78b93
--- /dev/null
+++ b/falcon/client/api_integrations/execute_command_proxy_responses.go
@@ -0,0 +1,740 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package api_integrations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// ExecuteCommandProxyReader is a Reader for the ExecuteCommandProxy structure.
+type ExecuteCommandProxyReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *ExecuteCommandProxyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewExecuteCommandProxyOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewExecuteCommandProxyBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewExecuteCommandProxyForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewExecuteCommandProxyNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewExecuteCommandProxyTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewExecuteCommandProxyInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /plugins/entities/execute-proxy/v1] ExecuteCommandProxy", response, response.Code())
+ }
+}
+
+// NewExecuteCommandProxyOK creates a ExecuteCommandProxyOK with default headers values
+func NewExecuteCommandProxyOK() *ExecuteCommandProxyOK {
+ return &ExecuteCommandProxyOK{}
+}
+
+/*
+ExecuteCommandProxyOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type ExecuteCommandProxyOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload models.CustomType3352885422
+}
+
+// IsSuccess returns true when this execute command proxy o k response has a 2xx status code
+func (o *ExecuteCommandProxyOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this execute command proxy o k response has a 3xx status code
+func (o *ExecuteCommandProxyOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute command proxy o k response has a 4xx status code
+func (o *ExecuteCommandProxyOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this execute command proxy o k response has a 5xx status code
+func (o *ExecuteCommandProxyOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute command proxy o k response a status code equal to that given
+func (o *ExecuteCommandProxyOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the execute command proxy o k response
+func (o *ExecuteCommandProxyOK) Code() int {
+ return 200
+}
+
+func (o *ExecuteCommandProxyOK) Error() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyOK %+v", 200, o.Payload)
+}
+
+func (o *ExecuteCommandProxyOK) String() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyOK %+v", 200, o.Payload)
+}
+
+func (o *ExecuteCommandProxyOK) GetPayload() models.CustomType3352885422 {
+ return o.Payload
+}
+
+func (o *ExecuteCommandProxyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // response payload
+ if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteCommandProxyBadRequest creates a ExecuteCommandProxyBadRequest with default headers values
+func NewExecuteCommandProxyBadRequest() *ExecuteCommandProxyBadRequest {
+ return &ExecuteCommandProxyBadRequest{}
+}
+
+/*
+ExecuteCommandProxyBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type ExecuteCommandProxyBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainExecuteCommandResultsV1
+}
+
+// IsSuccess returns true when this execute command proxy bad request response has a 2xx status code
+func (o *ExecuteCommandProxyBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute command proxy bad request response has a 3xx status code
+func (o *ExecuteCommandProxyBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute command proxy bad request response has a 4xx status code
+func (o *ExecuteCommandProxyBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this execute command proxy bad request response has a 5xx status code
+func (o *ExecuteCommandProxyBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute command proxy bad request response a status code equal to that given
+func (o *ExecuteCommandProxyBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the execute command proxy bad request response
+func (o *ExecuteCommandProxyBadRequest) Code() int {
+ return 400
+}
+
+func (o *ExecuteCommandProxyBadRequest) Error() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ExecuteCommandProxyBadRequest) String() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ExecuteCommandProxyBadRequest) GetPayload() *models.DomainExecuteCommandResultsV1 {
+ return o.Payload
+}
+
+func (o *ExecuteCommandProxyBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainExecuteCommandResultsV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteCommandProxyForbidden creates a ExecuteCommandProxyForbidden with default headers values
+func NewExecuteCommandProxyForbidden() *ExecuteCommandProxyForbidden {
+ return &ExecuteCommandProxyForbidden{}
+}
+
+/*
+ExecuteCommandProxyForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type ExecuteCommandProxyForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this execute command proxy forbidden response has a 2xx status code
+func (o *ExecuteCommandProxyForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute command proxy forbidden response has a 3xx status code
+func (o *ExecuteCommandProxyForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute command proxy forbidden response has a 4xx status code
+func (o *ExecuteCommandProxyForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this execute command proxy forbidden response has a 5xx status code
+func (o *ExecuteCommandProxyForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute command proxy forbidden response a status code equal to that given
+func (o *ExecuteCommandProxyForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the execute command proxy forbidden response
+func (o *ExecuteCommandProxyForbidden) Code() int {
+ return 403
+}
+
+func (o *ExecuteCommandProxyForbidden) Error() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyForbidden %+v", 403, o.Payload)
+}
+
+func (o *ExecuteCommandProxyForbidden) String() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyForbidden %+v", 403, o.Payload)
+}
+
+func (o *ExecuteCommandProxyForbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *ExecuteCommandProxyForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteCommandProxyNotFound creates a ExecuteCommandProxyNotFound with default headers values
+func NewExecuteCommandProxyNotFound() *ExecuteCommandProxyNotFound {
+ return &ExecuteCommandProxyNotFound{}
+}
+
+/*
+ExecuteCommandProxyNotFound describes a response with status code 404, with default header values.
+
+Not Found
+*/
+type ExecuteCommandProxyNotFound struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainExecuteCommandResultsV1
+}
+
+// IsSuccess returns true when this execute command proxy not found response has a 2xx status code
+func (o *ExecuteCommandProxyNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute command proxy not found response has a 3xx status code
+func (o *ExecuteCommandProxyNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute command proxy not found response has a 4xx status code
+func (o *ExecuteCommandProxyNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this execute command proxy not found response has a 5xx status code
+func (o *ExecuteCommandProxyNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute command proxy not found response a status code equal to that given
+func (o *ExecuteCommandProxyNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the execute command proxy not found response
+func (o *ExecuteCommandProxyNotFound) Code() int {
+ return 404
+}
+
+func (o *ExecuteCommandProxyNotFound) Error() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyNotFound %+v", 404, o.Payload)
+}
+
+func (o *ExecuteCommandProxyNotFound) String() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyNotFound %+v", 404, o.Payload)
+}
+
+func (o *ExecuteCommandProxyNotFound) GetPayload() *models.DomainExecuteCommandResultsV1 {
+ return o.Payload
+}
+
+func (o *ExecuteCommandProxyNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainExecuteCommandResultsV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteCommandProxyTooManyRequests creates a ExecuteCommandProxyTooManyRequests with default headers values
+func NewExecuteCommandProxyTooManyRequests() *ExecuteCommandProxyTooManyRequests {
+ return &ExecuteCommandProxyTooManyRequests{}
+}
+
+/*
+ExecuteCommandProxyTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type ExecuteCommandProxyTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this execute command proxy too many requests response has a 2xx status code
+func (o *ExecuteCommandProxyTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute command proxy too many requests response has a 3xx status code
+func (o *ExecuteCommandProxyTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute command proxy too many requests response has a 4xx status code
+func (o *ExecuteCommandProxyTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this execute command proxy too many requests response has a 5xx status code
+func (o *ExecuteCommandProxyTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute command proxy too many requests response a status code equal to that given
+func (o *ExecuteCommandProxyTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the execute command proxy too many requests response
+func (o *ExecuteCommandProxyTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *ExecuteCommandProxyTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ExecuteCommandProxyTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ExecuteCommandProxyTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ExecuteCommandProxyTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewExecuteCommandProxyInternalServerError creates a ExecuteCommandProxyInternalServerError with default headers values
+func NewExecuteCommandProxyInternalServerError() *ExecuteCommandProxyInternalServerError {
+ return &ExecuteCommandProxyInternalServerError{}
+}
+
+/*
+ExecuteCommandProxyInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type ExecuteCommandProxyInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainExecuteCommandResultsV1
+}
+
+// IsSuccess returns true when this execute command proxy internal server error response has a 2xx status code
+func (o *ExecuteCommandProxyInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute command proxy internal server error response has a 3xx status code
+func (o *ExecuteCommandProxyInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute command proxy internal server error response has a 4xx status code
+func (o *ExecuteCommandProxyInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this execute command proxy internal server error response has a 5xx status code
+func (o *ExecuteCommandProxyInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this execute command proxy internal server error response a status code equal to that given
+func (o *ExecuteCommandProxyInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the execute command proxy internal server error response
+func (o *ExecuteCommandProxyInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ExecuteCommandProxyInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ExecuteCommandProxyInternalServerError) String() string {
+ return fmt.Sprintf("[POST /plugins/entities/execute-proxy/v1][%d] executeCommandProxyInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ExecuteCommandProxyInternalServerError) GetPayload() *models.DomainExecuteCommandResultsV1 {
+ return o.Payload
+}
+
+func (o *ExecuteCommandProxyInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainExecuteCommandResultsV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/certificate_based_exclusions/cb_exclusions_create_v1_responses.go b/falcon/client/certificate_based_exclusions/cb_exclusions_create_v1_responses.go
index 66498b62..3285d6f9 100644
--- a/falcon/client/certificate_based_exclusions/cb_exclusions_create_v1_responses.go
+++ b/falcon/client/certificate_based_exclusions/cb_exclusions_create_v1_responses.go
@@ -55,6 +55,12 @@ func (o *CbExclusionsCreateV1Reader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewCbExclusionsCreateV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /exclusions/entities/cert-based-exclusions/v1] cb-exclusions.create.v1", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *CbExclusionsCreateV1TooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewCbExclusionsCreateV1InternalServerError creates a CbExclusionsCreateV1InternalServerError with default headers values
+func NewCbExclusionsCreateV1InternalServerError() *CbExclusionsCreateV1InternalServerError {
+ return &CbExclusionsCreateV1InternalServerError{}
+}
+
+/*
+CbExclusionsCreateV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CbExclusionsCreateV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cb exclusions create v1 internal server error response has a 2xx status code
+func (o *CbExclusionsCreateV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cb exclusions create v1 internal server error response has a 3xx status code
+func (o *CbExclusionsCreateV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cb exclusions create v1 internal server error response has a 4xx status code
+func (o *CbExclusionsCreateV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cb exclusions create v1 internal server error response has a 5xx status code
+func (o *CbExclusionsCreateV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cb exclusions create v1 internal server error response a status code equal to that given
+func (o *CbExclusionsCreateV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cb exclusions create v1 internal server error response
+func (o *CbExclusionsCreateV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *CbExclusionsCreateV1InternalServerError) Error() string {
+ return fmt.Sprintf("[POST /exclusions/entities/cert-based-exclusions/v1][%d] cbExclusionsCreateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CbExclusionsCreateV1InternalServerError) String() string {
+ return fmt.Sprintf("[POST /exclusions/entities/cert-based-exclusions/v1][%d] cbExclusionsCreateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CbExclusionsCreateV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CbExclusionsCreateV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/certificate_based_exclusions/cb_exclusions_delete_v1_responses.go b/falcon/client/certificate_based_exclusions/cb_exclusions_delete_v1_responses.go
index d973d240..7b6e2f4c 100644
--- a/falcon/client/certificate_based_exclusions/cb_exclusions_delete_v1_responses.go
+++ b/falcon/client/certificate_based_exclusions/cb_exclusions_delete_v1_responses.go
@@ -55,6 +55,12 @@ func (o *CbExclusionsDeleteV1Reader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewCbExclusionsDeleteV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /exclusions/entities/cert-based-exclusions/v1] cb-exclusions.delete.v1", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *CbExclusionsDeleteV1TooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewCbExclusionsDeleteV1InternalServerError creates a CbExclusionsDeleteV1InternalServerError with default headers values
+func NewCbExclusionsDeleteV1InternalServerError() *CbExclusionsDeleteV1InternalServerError {
+ return &CbExclusionsDeleteV1InternalServerError{}
+}
+
+/*
+CbExclusionsDeleteV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CbExclusionsDeleteV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cb exclusions delete v1 internal server error response has a 2xx status code
+func (o *CbExclusionsDeleteV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cb exclusions delete v1 internal server error response has a 3xx status code
+func (o *CbExclusionsDeleteV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cb exclusions delete v1 internal server error response has a 4xx status code
+func (o *CbExclusionsDeleteV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cb exclusions delete v1 internal server error response has a 5xx status code
+func (o *CbExclusionsDeleteV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cb exclusions delete v1 internal server error response a status code equal to that given
+func (o *CbExclusionsDeleteV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cb exclusions delete v1 internal server error response
+func (o *CbExclusionsDeleteV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *CbExclusionsDeleteV1InternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /exclusions/entities/cert-based-exclusions/v1][%d] cbExclusionsDeleteV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CbExclusionsDeleteV1InternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /exclusions/entities/cert-based-exclusions/v1][%d] cbExclusionsDeleteV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CbExclusionsDeleteV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CbExclusionsDeleteV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/certificate_based_exclusions/cb_exclusions_get_v1_responses.go b/falcon/client/certificate_based_exclusions/cb_exclusions_get_v1_responses.go
index 4dbda4b7..b3c0244c 100644
--- a/falcon/client/certificate_based_exclusions/cb_exclusions_get_v1_responses.go
+++ b/falcon/client/certificate_based_exclusions/cb_exclusions_get_v1_responses.go
@@ -55,6 +55,12 @@ func (o *CbExclusionsGetV1Reader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewCbExclusionsGetV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /exclusions/entities/cert-based-exclusions/v1] cb-exclusions.get.v1", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *CbExclusionsGetV1TooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewCbExclusionsGetV1InternalServerError creates a CbExclusionsGetV1InternalServerError with default headers values
+func NewCbExclusionsGetV1InternalServerError() *CbExclusionsGetV1InternalServerError {
+ return &CbExclusionsGetV1InternalServerError{}
+}
+
+/*
+CbExclusionsGetV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CbExclusionsGetV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cb exclusions get v1 internal server error response has a 2xx status code
+func (o *CbExclusionsGetV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cb exclusions get v1 internal server error response has a 3xx status code
+func (o *CbExclusionsGetV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cb exclusions get v1 internal server error response has a 4xx status code
+func (o *CbExclusionsGetV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cb exclusions get v1 internal server error response has a 5xx status code
+func (o *CbExclusionsGetV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cb exclusions get v1 internal server error response a status code equal to that given
+func (o *CbExclusionsGetV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cb exclusions get v1 internal server error response
+func (o *CbExclusionsGetV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *CbExclusionsGetV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /exclusions/entities/cert-based-exclusions/v1][%d] cbExclusionsGetV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CbExclusionsGetV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /exclusions/entities/cert-based-exclusions/v1][%d] cbExclusionsGetV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CbExclusionsGetV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CbExclusionsGetV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/certificate_based_exclusions/cb_exclusions_query_v1_responses.go b/falcon/client/certificate_based_exclusions/cb_exclusions_query_v1_responses.go
index 661a4ba3..3f8c602d 100644
--- a/falcon/client/certificate_based_exclusions/cb_exclusions_query_v1_responses.go
+++ b/falcon/client/certificate_based_exclusions/cb_exclusions_query_v1_responses.go
@@ -55,6 +55,12 @@ func (o *CbExclusionsQueryV1Reader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewCbExclusionsQueryV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /exclusions/queries/cert-based-exclusions/v1] cb-exclusions.query.v1", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *CbExclusionsQueryV1TooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewCbExclusionsQueryV1InternalServerError creates a CbExclusionsQueryV1InternalServerError with default headers values
+func NewCbExclusionsQueryV1InternalServerError() *CbExclusionsQueryV1InternalServerError {
+ return &CbExclusionsQueryV1InternalServerError{}
+}
+
+/*
+CbExclusionsQueryV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CbExclusionsQueryV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cb exclusions query v1 internal server error response has a 2xx status code
+func (o *CbExclusionsQueryV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cb exclusions query v1 internal server error response has a 3xx status code
+func (o *CbExclusionsQueryV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cb exclusions query v1 internal server error response has a 4xx status code
+func (o *CbExclusionsQueryV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cb exclusions query v1 internal server error response has a 5xx status code
+func (o *CbExclusionsQueryV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cb exclusions query v1 internal server error response a status code equal to that given
+func (o *CbExclusionsQueryV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cb exclusions query v1 internal server error response
+func (o *CbExclusionsQueryV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *CbExclusionsQueryV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /exclusions/queries/cert-based-exclusions/v1][%d] cbExclusionsQueryV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CbExclusionsQueryV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /exclusions/queries/cert-based-exclusions/v1][%d] cbExclusionsQueryV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CbExclusionsQueryV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CbExclusionsQueryV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/certificate_based_exclusions/cb_exclusions_update_v1_responses.go b/falcon/client/certificate_based_exclusions/cb_exclusions_update_v1_responses.go
index 10be3976..989fcd4b 100644
--- a/falcon/client/certificate_based_exclusions/cb_exclusions_update_v1_responses.go
+++ b/falcon/client/certificate_based_exclusions/cb_exclusions_update_v1_responses.go
@@ -55,6 +55,12 @@ func (o *CbExclusionsUpdateV1Reader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewCbExclusionsUpdateV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /exclusions/entities/cert-based-exclusions/v1] cb-exclusions.update.v1", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *CbExclusionsUpdateV1TooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewCbExclusionsUpdateV1InternalServerError creates a CbExclusionsUpdateV1InternalServerError with default headers values
+func NewCbExclusionsUpdateV1InternalServerError() *CbExclusionsUpdateV1InternalServerError {
+ return &CbExclusionsUpdateV1InternalServerError{}
+}
+
+/*
+CbExclusionsUpdateV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CbExclusionsUpdateV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cb exclusions update v1 internal server error response has a 2xx status code
+func (o *CbExclusionsUpdateV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cb exclusions update v1 internal server error response has a 3xx status code
+func (o *CbExclusionsUpdateV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cb exclusions update v1 internal server error response has a 4xx status code
+func (o *CbExclusionsUpdateV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cb exclusions update v1 internal server error response has a 5xx status code
+func (o *CbExclusionsUpdateV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cb exclusions update v1 internal server error response a status code equal to that given
+func (o *CbExclusionsUpdateV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cb exclusions update v1 internal server error response
+func (o *CbExclusionsUpdateV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *CbExclusionsUpdateV1InternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /exclusions/entities/cert-based-exclusions/v1][%d] cbExclusionsUpdateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CbExclusionsUpdateV1InternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /exclusions/entities/cert-based-exclusions/v1][%d] cbExclusionsUpdateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CbExclusionsUpdateV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CbExclusionsUpdateV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/certificate_based_exclusions/certificates_get_v1_responses.go b/falcon/client/certificate_based_exclusions/certificates_get_v1_responses.go
index 147e231b..ef5b6f9b 100644
--- a/falcon/client/certificate_based_exclusions/certificates_get_v1_responses.go
+++ b/falcon/client/certificate_based_exclusions/certificates_get_v1_responses.go
@@ -55,6 +55,12 @@ func (o *CertificatesGetV1Reader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewCertificatesGetV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /exclusions/entities/certificates/v1] certificates.get.v1", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *CertificatesGetV1TooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewCertificatesGetV1InternalServerError creates a CertificatesGetV1InternalServerError with default headers values
+func NewCertificatesGetV1InternalServerError() *CertificatesGetV1InternalServerError {
+ return &CertificatesGetV1InternalServerError{}
+}
+
+/*
+CertificatesGetV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CertificatesGetV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this certificates get v1 internal server error response has a 2xx status code
+func (o *CertificatesGetV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this certificates get v1 internal server error response has a 3xx status code
+func (o *CertificatesGetV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this certificates get v1 internal server error response has a 4xx status code
+func (o *CertificatesGetV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this certificates get v1 internal server error response has a 5xx status code
+func (o *CertificatesGetV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this certificates get v1 internal server error response a status code equal to that given
+func (o *CertificatesGetV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the certificates get v1 internal server error response
+func (o *CertificatesGetV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *CertificatesGetV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /exclusions/entities/certificates/v1][%d] certificatesGetV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CertificatesGetV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /exclusions/entities/certificates/v1][%d] certificatesGetV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CertificatesGetV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CertificatesGetV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/compliance_assessments/ext_aggregate_cluster_assessments_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_cluster_assessments_parameters.go
index bc62cb2e..34144616 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_cluster_assessments_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_cluster_assessments_parameters.go
@@ -64,13 +64,13 @@ type ExtAggregateClusterAssessmentsParams struct {
/* Filter.
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
+ cloud_info.cluster_name: Kubernetes cluster name
cloud_info.namespace: Kubernetes namespace
cid: Customer ID
- compliance_finding.framework: Compliance finding framework (available values: CIS)
cloud_info.cloud_account_id: Cloud account ID
- cloud_info.cluster_name: Kubernetes cluster name
- cloud_info.cloud_region: Cloud region
cloud_info.cloud_provider: Cloud provider
+ cloud_info.cloud_region: Cloud region
+ compliance_finding.framework: Compliance finding framework (available values: CIS)
*/
Filter *string
diff --git a/falcon/client/compliance_assessments/ext_aggregate_failed_containers_by_rules_path_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_failed_containers_by_rules_path_parameters.go
index d7365092..21d1f8f0 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_failed_containers_by_rules_path_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_failed_containers_by_rules_path_parameters.go
@@ -64,21 +64,21 @@ type ExtAggregateFailedContainersByRulesPathParams struct {
/* Filter.
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
+ compliance_finding.name: Compliance finding Name
+ cloud_info.namespace: Kubernetes namespace
+ cloud_info.cloud_provider: Cloud provider
+ compliance_finding.framework: Compliance finding framework (available values: CIS)
+ compliance_finding.id: Compliance finding ID
image_digest: Image digest (sha256 digest)
+ cloud_info.cloud_region: Cloud region
image_registry: Image registry
- cloud_info.cloud_provider: Cloud provider
compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
- cloud_info.namespace: Kubernetes namespace
- image_id: Image ID
- cloud_info.cluster_name: Kubernetes cluster name
- compliance_finding.name: Compliance finding Name
- cid: Customer ID
- cloud_info.cloud_account_id: Cloud account ID
- compliance_finding.id: Compliance finding ID
image_repository: Image repository
+ cid: Customer ID
+ image_id: Image ID
image_tag: Image tag
- cloud_info.cloud_region: Cloud region
- compliance_finding.framework: Compliance finding framework (available values: CIS)
+ cloud_info.cloud_account_id: Cloud account ID
+ cloud_info.cluster_name: Kubernetes cluster name
*/
Filter *string
diff --git a/falcon/client/compliance_assessments/ext_aggregate_failed_containers_count_by_severity_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_failed_containers_count_by_severity_parameters.go
index ebb6fe1d..4e5b451e 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_failed_containers_count_by_severity_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_failed_containers_count_by_severity_parameters.go
@@ -64,20 +64,20 @@ type ExtAggregateFailedContainersCountBySeverityParams struct {
/* Filter.
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
+ cloud_info.namespace: Kubernetes namespace
+ compliance_finding.framework: Compliance finding framework (available values: CIS)
+ cloud_info.cluster_name: Kubernetes cluster name
+ cloud_info.cloud_provider: Cloud provider
image_repository: Image repository
+ cid: Customer ID
image_tag: Image tag
image_registry: Image registry
- cloud_info.cloud_region: Cloud region
- cloud_info.cloud_account_id: Cloud account ID
compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
- compliance_finding.framework: Compliance finding framework (available values: CIS)
- cloud_info.namespace: Kubernetes namespace
image_digest: Image digest (sha256 digest)
- cloud_info.cloud_provider: Cloud provider
+ cloud_info.cloud_account_id: Cloud account ID
+ cloud_info.cloud_region: Cloud region
image_id: Image ID
- cloud_info.cluster_name: Kubernetes cluster name
compliance_finding.name: Compliance finding Name
- cid: Customer ID
compliance_finding.id: Compliance finding ID
*/
diff --git a/falcon/client/compliance_assessments/ext_aggregate_failed_images_by_rules_path_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_failed_images_by_rules_path_parameters.go
index 14ef5ff3..b5c6655c 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_failed_images_by_rules_path_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_failed_images_by_rules_path_parameters.go
@@ -64,21 +64,21 @@ type ExtAggregateFailedImagesByRulesPathParams struct {
/* Filter.
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
- cloud_info.cloud_provider: Cloud provider
+ compliance_finding.id: Compliance finding ID
+ compliance_finding.name: Compliance finding Name
compliance_finding.framework: Compliance finding framework (available values: CIS)
- image_registry: Image registry
- cloud_info.cloud_account_id: Cloud account ID
- compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
cloud_info.namespace: Kubernetes namespace
+ image_repository: Image repository
image_digest: Image digest (sha256 digest)
- compliance_finding.name: Compliance finding Name
- cid: Customer ID
- compliance_finding.id: Compliance finding ID
- cloud_info.cluster_name: Kubernetes cluster name
image_tag: Image tag
- cloud_info.cloud_region: Cloud region
image_id: Image ID
- image_repository: Image repository
+ image_registry: Image registry
+ cloud_info.cloud_account_id: Cloud account ID
+ cloud_info.cloud_region: Cloud region
+ cid: Customer ID
+ compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
+ cloud_info.cluster_name: Kubernetes cluster name
+ cloud_info.cloud_provider: Cloud provider
*/
Filter *string
diff --git a/falcon/client/compliance_assessments/ext_aggregate_failed_images_count_by_severity_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_failed_images_count_by_severity_parameters.go
index 0ef3e04a..f0efee7b 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_failed_images_count_by_severity_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_failed_images_count_by_severity_parameters.go
@@ -64,21 +64,21 @@ type ExtAggregateFailedImagesCountBySeverityParams struct {
/* Filter.
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
- cloud_info.cloud_account_id: Cloud account ID
- cloud_info.cloud_provider: Cloud provider
- cid: Customer ID
- cloud_info.namespace: Kubernetes namespace
- image_tag: Image tag
- cloud_info.cluster_name: Kubernetes cluster name
- compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
- compliance_finding.framework: Compliance finding framework (available values: CIS)
- compliance_finding.id: Compliance finding ID
- image_repository: Image repository
- cloud_info.cloud_region: Cloud region
compliance_finding.name: Compliance finding Name
image_registry: Image registry
+ cloud_info.cluster_name: Kubernetes cluster name
+ compliance_finding.id: Compliance finding ID
image_id: Image ID
+ image_tag: Image tag
+ cloud_info.cloud_account_id: Cloud account ID
+ compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
+ cloud_info.namespace: Kubernetes namespace
image_digest: Image digest (sha256 digest)
+ cloud_info.cloud_provider: Cloud provider
+ cloud_info.cloud_region: Cloud region
+ compliance_finding.framework: Compliance finding framework (available values: CIS)
+ image_repository: Image repository
+ cid: Customer ID
*/
Filter *string
diff --git a/falcon/client/compliance_assessments/ext_aggregate_failed_rules_by_clusters_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_failed_rules_by_clusters_parameters.go
index adff535a..74cad887 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_failed_rules_by_clusters_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_failed_rules_by_clusters_parameters.go
@@ -65,20 +65,20 @@ type ExtAggregateFailedRulesByClustersParams struct {
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
image_registry: Image registry
- cid: Customer ID
- cloud_info.cloud_region: Cloud region
- image_id: Image ID
- asset_type: asset type (container, image)
- cloud_info.cloud_account_id: Cloud account ID
- cloud_info.cloud_provider: Cloud provider
- image_repository: Image repository
+ compliance_finding.framework: Compliance finding framework (available values: CIS)
+ compliance_finding.id: Compliance finding ID
image_tag: Image tag
- image_digest: Image digest (sha256 digest)
+ compliance_finding.name: Compliance finding Name
+ image_repository: Image repository
cloud_info.cluster_name: Kubernetes cluster name
+ image_digest: Image digest (sha256 digest)
+ cloud_info.cloud_provider: Cloud provider
+ image_id: Image ID
+ cloud_info.cloud_region: Cloud region
+ cid: Customer ID
compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
- compliance_finding.id: Compliance finding ID
- compliance_finding.name: Compliance finding Name
- compliance_finding.framework: Compliance finding framework (available values: CIS)
+ asset_type: asset type (container, image)
+ cloud_info.cloud_account_id: Cloud account ID
*/
Filter *string
diff --git a/falcon/client/compliance_assessments/ext_aggregate_failed_rules_by_images_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_failed_rules_by_images_parameters.go
index c22bd9c5..f6b5e4b0 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_failed_rules_by_images_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_failed_rules_by_images_parameters.go
@@ -64,22 +64,22 @@ type ExtAggregateFailedRulesByImagesParams struct {
/* Filter.
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
- cloud_info.cloud_provider: Cloud provider
- image_digest: Image digest (sha256 digest)
cloud_info.cloud_account_id: Cloud account ID
- compliance_finding.id: Compliance finding ID
- image_id: Image ID
+ cloud_info.cloud_provider: Cloud provider
+ cloud_info.cloud_region: Cloud region
compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
+ image_repository: Image repository
+ compliance_finding.framework: Compliance finding framework (available values: CIS)
+ image_id: Image ID
+ image_registry: Image registry
asset_type: asset type (container, image)
- cloud_info.cloud_region: Cloud region
+ compliance_finding.name: Compliance finding Name
+ compliance_finding.id: Compliance finding ID
cid: Customer ID
- cloud_info.namespace: Kubernetes namespace
image_tag: Image tag
+ cloud_info.namespace: Kubernetes namespace
+ image_digest: Image digest (sha256 digest)
cloud_info.cluster_name: Kubernetes cluster name
- compliance_finding.framework: Compliance finding framework (available values: CIS)
- image_repository: Image repository
- image_registry: Image registry
- compliance_finding.name: Compliance finding Name
*/
Filter *string
diff --git a/falcon/client/compliance_assessments/ext_aggregate_failed_rules_count_by_severity_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_failed_rules_count_by_severity_parameters.go
index e9291a75..e7c67594 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_failed_rules_count_by_severity_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_failed_rules_count_by_severity_parameters.go
@@ -64,21 +64,21 @@ type ExtAggregateFailedRulesCountBySeverityParams struct {
/* Filter.
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
- cid: Customer ID
- image_registry: Image registry
image_digest: Image digest (sha256 digest)
- compliance_finding.name: Compliance finding Name
- compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
- cloud_info.cloud_account_id: Cloud account ID
- cloud_info.cloud_provider: Cloud provider
- cloud_info.cloud_region: Cloud region
- image_id: Image ID
cloud_info.cluster_name: Kubernetes cluster name
+ image_registry: Image registry
+ image_id: Image ID
image_tag: Image tag
compliance_finding.framework: Compliance finding framework (available values: CIS)
- asset_type: asset type (container, image)
- compliance_finding.id: Compliance finding ID
image_repository: Image repository
+ compliance_finding.id: Compliance finding ID
+ asset_type: asset type (container, image)
+ cloud_info.cloud_account_id: Cloud account ID
+ cid: Customer ID
+ compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
+ compliance_finding.name: Compliance finding Name
+ cloud_info.cloud_provider: Cloud provider
+ cloud_info.cloud_region: Cloud region
*/
Filter *string
diff --git a/falcon/client/compliance_assessments/ext_aggregate_image_assessments_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_image_assessments_parameters.go
index 42f60c6f..67ae8fb1 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_image_assessments_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_image_assessments_parameters.go
@@ -70,22 +70,22 @@ type ExtAggregateImageAssessmentsParams struct {
/* Filter.
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
- image_digest: Image digest (sha256 digest)
- cloud_info.cluster_name: Kubernetes cluster name
- compliance_finding.framework: Compliance finding framework (available values: CIS)
cid: Customer ID
- compliance_finding.id: Compliance finding ID
+ compliance_finding.framework: Compliance finding framework (available values: CIS)
+ image_digest: Image digest (sha256 digest)
+ cloud_info.cloud_provider: Cloud provider
cloud_info.namespace: Kubernetes namespace
- image_repository: Image repository
- compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
- cloud_info.cloud_account_id: Cloud account ID
+ asset_type: asset type (container, image)
+ cloud_info.cloud_region: Cloud region
image_registry: Image registry
+ image_repository: Image repository
image_id: Image ID
image_tag: Image tag
+ cloud_info.cloud_account_id: Cloud account ID
+ cloud_info.cluster_name: Kubernetes cluster name
+ compliance_finding.id: Compliance finding ID
+ compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
compliance_finding.name: Compliance finding Name
- asset_type: asset type (container, image)
- cloud_info.cloud_provider: Cloud provider
- cloud_info.cloud_region: Cloud region
*/
Filter *string
diff --git a/falcon/client/compliance_assessments/ext_aggregate_rules_assessments_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_rules_assessments_parameters.go
index 483e5ba9..5d33894d 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_rules_assessments_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_rules_assessments_parameters.go
@@ -64,20 +64,20 @@ type ExtAggregateRulesAssessmentsParams struct {
/* Filter.
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
- compliance_finding.name: Compliance finding Name
+ cloud_info.cloud_account_id: Cloud account ID
cloud_info.cloud_provider: Cloud provider
- image_repository: Image repository
- cloud_info.cluster_name: Kubernetes cluster name
compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
- cloud_info.cloud_account_id: Cloud account ID
- image_digest: Image digest (sha256 digest)
- image_registry: Image registry
- compliance_finding.id: Compliance finding ID
- image_id: Image ID
image_tag: Image tag
compliance_finding.framework: Compliance finding framework (available values: CIS)
- cid: Customer ID
+ image_repository: Image repository
+ compliance_finding.id: Compliance finding ID
cloud_info.cloud_region: Cloud region
+ image_id: Image ID
+ image_registry: Image registry
+ compliance_finding.name: Compliance finding Name
+ image_digest: Image digest (sha256 digest)
+ cloud_info.cluster_name: Kubernetes cluster name
+ cid: Customer ID
*/
Filter *string
diff --git a/falcon/client/compliance_assessments/ext_aggregate_rules_by_status_parameters.go b/falcon/client/compliance_assessments/ext_aggregate_rules_by_status_parameters.go
index 673a9eae..ce7fc082 100644
--- a/falcon/client/compliance_assessments/ext_aggregate_rules_by_status_parameters.go
+++ b/falcon/client/compliance_assessments/ext_aggregate_rules_by_status_parameters.go
@@ -64,23 +64,23 @@ type ExtAggregateRulesByStatusParams struct {
/* Filter.
Filter results using a query in Falcon Query Language (FQL). Supported Filters:
+ cloud_info.cluster_name: Kubernetes cluster name
+ compliance_finding.id: Compliance finding ID
+ cloud_info.cloud_provider: Cloud provider
+ compliance_finding.name: Compliance finding Name
compliance_finding.framework: Compliance finding framework (available values: CIS)
- asset_type: asset type (container, image)
- cloud_info.cloud_region: Cloud region
container_name: Container name
- image_repository: Image repository
container_id: Container ID
- compliance_finding.id: Compliance finding ID
- image_digest: Image digest (sha256 digest)
- cloud_info.cluster_name: Kubernetes cluster name
- cid: Customer ID
image_registry: Image registry
+ compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
+ image_digest: Image digest (sha256 digest)
image_id: Image ID
- cloud_info.cloud_account_id: Cloud account ID
- cloud_info.cloud_provider: Cloud provider
image_tag: Image tag
- compliance_finding.name: Compliance finding Name
- compliance_finding.severity: Compliance finding severity; available values: 4, 3, 2, 1 (4: critical, 3: high, 2: medium, 1:low)
+ image_repository: Image repository
+ asset_type: asset type (container, image)
+ cloud_info.cloud_account_id: Cloud account ID
+ cloud_info.cloud_region: Cloud region
+ cid: Customer ID
*/
Filter *string
diff --git a/falcon/client/configuration_assessment/get_rule_details_responses.go b/falcon/client/configuration_assessment/get_rule_details_responses.go
index 21cfbca3..b211e31c 100644
--- a/falcon/client/configuration_assessment/get_rule_details_responses.go
+++ b/falcon/client/configuration_assessment/get_rule_details_responses.go
@@ -43,6 +43,12 @@ func (o *GetRuleDetailsReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetRuleDetailsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /configuration-assessment/entities/rule-details/v1] getRuleDetails", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetRuleDetailsTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewGetRuleDetailsInternalServerError creates a GetRuleDetailsInternalServerError with default headers values
+func NewGetRuleDetailsInternalServerError() *GetRuleDetailsInternalServerError {
+ return &GetRuleDetailsInternalServerError{}
+}
+
+/*
+GetRuleDetailsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetRuleDetailsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get rule details internal server error response has a 2xx status code
+func (o *GetRuleDetailsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get rule details internal server error response has a 3xx status code
+func (o *GetRuleDetailsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get rule details internal server error response has a 4xx status code
+func (o *GetRuleDetailsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get rule details internal server error response has a 5xx status code
+func (o *GetRuleDetailsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get rule details internal server error response a status code equal to that given
+func (o *GetRuleDetailsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get rule details internal server error response
+func (o *GetRuleDetailsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetRuleDetailsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /configuration-assessment/entities/rule-details/v1][%d] getRuleDetailsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRuleDetailsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /configuration-assessment/entities/rule-details/v1][%d] getRuleDetailsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRuleDetailsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetRuleDetailsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/container_images/aggregate_image_count_parameters.go b/falcon/client/container_images/aggregate_image_count_parameters.go
index a7e7a32e..3adbe4ee 100644
--- a/falcon/client/container_images/aggregate_image_count_parameters.go
+++ b/falcon/client/container_images/aggregate_image_count_parameters.go
@@ -63,7 +63,7 @@ type AggregateImageCountParams struct {
/* Filter.
- Filter images using a query in Falcon Query Language (FQL). Supported filters: arch,base_os,cid,container_id,container_running_status,cps_rating,crowdstrike_user,cve_id,detection_count,detection_name,detection_severity,first_seen,image_digest,image_id,layer_digest,package_name_version,registry,repository,tag,vulnerability_count,vulnerability_severity
+ Filter images using a query in Falcon Query Language (FQL). Supported filters: arch,base_os,cid,container_id,container_running_status,cps_rating,crowdstrike_user,cve_id,detection_count,detection_name,detection_severity,first_seen,image_digest,image_id,include_base_image_vuln,layer_digest,package_name_version,registry,repository,source,tag,vulnerability_count,vulnerability_severity
*/
Filter *string
diff --git a/falcon/client/container_images/combined_base_images_parameters.go b/falcon/client/container_images/combined_base_images_parameters.go
new file mode 100644
index 00000000..5d7c79b3
--- /dev/null
+++ b/falcon/client/container_images/combined_base_images_parameters.go
@@ -0,0 +1,163 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package container_images
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewCombinedBaseImagesParams creates a new CombinedBaseImagesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCombinedBaseImagesParams() *CombinedBaseImagesParams {
+ return &CombinedBaseImagesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCombinedBaseImagesParamsWithTimeout creates a new CombinedBaseImagesParams object
+// with the ability to set a timeout on a request.
+func NewCombinedBaseImagesParamsWithTimeout(timeout time.Duration) *CombinedBaseImagesParams {
+ return &CombinedBaseImagesParams{
+ timeout: timeout,
+ }
+}
+
+// NewCombinedBaseImagesParamsWithContext creates a new CombinedBaseImagesParams object
+// with the ability to set a context for a request.
+func NewCombinedBaseImagesParamsWithContext(ctx context.Context) *CombinedBaseImagesParams {
+ return &CombinedBaseImagesParams{
+ Context: ctx,
+ }
+}
+
+// NewCombinedBaseImagesParamsWithHTTPClient creates a new CombinedBaseImagesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCombinedBaseImagesParamsWithHTTPClient(client *http.Client) *CombinedBaseImagesParams {
+ return &CombinedBaseImagesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CombinedBaseImagesParams contains all the parameters to send to the API endpoint
+
+ for the combined base images operation.
+
+ Typically these are written to a http.Request.
+*/
+type CombinedBaseImagesParams struct {
+
+ /* Filter.
+
+ Search base images using a query in Falcon Query Language (FQL). Supported filters: image_digest,image_id,registry,repository,tag
+ */
+ Filter *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the combined base images params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CombinedBaseImagesParams) WithDefaults() *CombinedBaseImagesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the combined base images params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CombinedBaseImagesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the combined base images params
+func (o *CombinedBaseImagesParams) WithTimeout(timeout time.Duration) *CombinedBaseImagesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the combined base images params
+func (o *CombinedBaseImagesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the combined base images params
+func (o *CombinedBaseImagesParams) WithContext(ctx context.Context) *CombinedBaseImagesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the combined base images params
+func (o *CombinedBaseImagesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the combined base images params
+func (o *CombinedBaseImagesParams) WithHTTPClient(client *http.Client) *CombinedBaseImagesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the combined base images params
+func (o *CombinedBaseImagesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithFilter adds the filter to the combined base images params
+func (o *CombinedBaseImagesParams) WithFilter(filter *string) *CombinedBaseImagesParams {
+ o.SetFilter(filter)
+ return o
+}
+
+// SetFilter adds the filter to the combined base images params
+func (o *CombinedBaseImagesParams) SetFilter(filter *string) {
+ o.Filter = filter
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CombinedBaseImagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Filter != nil {
+
+ // query param filter
+ var qrFilter string
+
+ if o.Filter != nil {
+ qrFilter = *o.Filter
+ }
+ qFilter := qrFilter
+ if qFilter != "" {
+
+ if err := r.SetQueryParam("filter", qFilter); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/container_images/combined_base_images_responses.go b/falcon/client/container_images/combined_base_images_responses.go
new file mode 100644
index 00000000..fb483a4e
--- /dev/null
+++ b/falcon/client/container_images/combined_base_images_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package container_images
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CombinedBaseImagesReader is a Reader for the CombinedBaseImages structure.
+type CombinedBaseImagesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CombinedBaseImagesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCombinedBaseImagesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCombinedBaseImagesBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCombinedBaseImagesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCombinedBaseImagesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCombinedBaseImagesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /container-security/combined/base-images/v1] CombinedBaseImages", response, response.Code())
+ }
+}
+
+// NewCombinedBaseImagesOK creates a CombinedBaseImagesOK with default headers values
+func NewCombinedBaseImagesOK() *CombinedBaseImagesOK {
+ return &CombinedBaseImagesOK{}
+}
+
+/*
+CombinedBaseImagesOK describes a response with status code 200, with default header values.
+
+Created
+*/
+type CombinedBaseImagesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CoreEntitiesResponse
+}
+
+// IsSuccess returns true when this combined base images o k response has a 2xx status code
+func (o *CombinedBaseImagesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this combined base images o k response has a 3xx status code
+func (o *CombinedBaseImagesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined base images o k response has a 4xx status code
+func (o *CombinedBaseImagesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this combined base images o k response has a 5xx status code
+func (o *CombinedBaseImagesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this combined base images o k response a status code equal to that given
+func (o *CombinedBaseImagesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the combined base images o k response
+func (o *CombinedBaseImagesOK) Code() int {
+ return 200
+}
+
+func (o *CombinedBaseImagesOK) Error() string {
+ return fmt.Sprintf("[GET /container-security/combined/base-images/v1][%d] combinedBaseImagesOK %+v", 200, o.Payload)
+}
+
+func (o *CombinedBaseImagesOK) String() string {
+ return fmt.Sprintf("[GET /container-security/combined/base-images/v1][%d] combinedBaseImagesOK %+v", 200, o.Payload)
+}
+
+func (o *CombinedBaseImagesOK) GetPayload() *models.CoreEntitiesResponse {
+ return o.Payload
+}
+
+func (o *CombinedBaseImagesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CoreEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCombinedBaseImagesBadRequest creates a CombinedBaseImagesBadRequest with default headers values
+func NewCombinedBaseImagesBadRequest() *CombinedBaseImagesBadRequest {
+ return &CombinedBaseImagesBadRequest{}
+}
+
+/*
+CombinedBaseImagesBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CombinedBaseImagesBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CoreEntitiesResponse
+}
+
+// IsSuccess returns true when this combined base images bad request response has a 2xx status code
+func (o *CombinedBaseImagesBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined base images bad request response has a 3xx status code
+func (o *CombinedBaseImagesBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined base images bad request response has a 4xx status code
+func (o *CombinedBaseImagesBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this combined base images bad request response has a 5xx status code
+func (o *CombinedBaseImagesBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this combined base images bad request response a status code equal to that given
+func (o *CombinedBaseImagesBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the combined base images bad request response
+func (o *CombinedBaseImagesBadRequest) Code() int {
+ return 400
+}
+
+func (o *CombinedBaseImagesBadRequest) Error() string {
+ return fmt.Sprintf("[GET /container-security/combined/base-images/v1][%d] combinedBaseImagesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CombinedBaseImagesBadRequest) String() string {
+ return fmt.Sprintf("[GET /container-security/combined/base-images/v1][%d] combinedBaseImagesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CombinedBaseImagesBadRequest) GetPayload() *models.CoreEntitiesResponse {
+ return o.Payload
+}
+
+func (o *CombinedBaseImagesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CoreEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCombinedBaseImagesForbidden creates a CombinedBaseImagesForbidden with default headers values
+func NewCombinedBaseImagesForbidden() *CombinedBaseImagesForbidden {
+ return &CombinedBaseImagesForbidden{}
+}
+
+/*
+CombinedBaseImagesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CombinedBaseImagesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaAPIError
+}
+
+// IsSuccess returns true when this combined base images forbidden response has a 2xx status code
+func (o *CombinedBaseImagesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined base images forbidden response has a 3xx status code
+func (o *CombinedBaseImagesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined base images forbidden response has a 4xx status code
+func (o *CombinedBaseImagesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this combined base images forbidden response has a 5xx status code
+func (o *CombinedBaseImagesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this combined base images forbidden response a status code equal to that given
+func (o *CombinedBaseImagesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the combined base images forbidden response
+func (o *CombinedBaseImagesForbidden) Code() int {
+ return 403
+}
+
+func (o *CombinedBaseImagesForbidden) Error() string {
+ return fmt.Sprintf("[GET /container-security/combined/base-images/v1][%d] combinedBaseImagesForbidden %+v", 403, o.Payload)
+}
+
+func (o *CombinedBaseImagesForbidden) String() string {
+ return fmt.Sprintf("[GET /container-security/combined/base-images/v1][%d] combinedBaseImagesForbidden %+v", 403, o.Payload)
+}
+
+func (o *CombinedBaseImagesForbidden) GetPayload() *models.MsaAPIError {
+ return o.Payload
+}
+
+func (o *CombinedBaseImagesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaAPIError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCombinedBaseImagesTooManyRequests creates a CombinedBaseImagesTooManyRequests with default headers values
+func NewCombinedBaseImagesTooManyRequests() *CombinedBaseImagesTooManyRequests {
+ return &CombinedBaseImagesTooManyRequests{}
+}
+
+/*
+CombinedBaseImagesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CombinedBaseImagesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this combined base images too many requests response has a 2xx status code
+func (o *CombinedBaseImagesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined base images too many requests response has a 3xx status code
+func (o *CombinedBaseImagesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined base images too many requests response has a 4xx status code
+func (o *CombinedBaseImagesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this combined base images too many requests response has a 5xx status code
+func (o *CombinedBaseImagesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this combined base images too many requests response a status code equal to that given
+func (o *CombinedBaseImagesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the combined base images too many requests response
+func (o *CombinedBaseImagesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CombinedBaseImagesTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /container-security/combined/base-images/v1][%d] combinedBaseImagesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CombinedBaseImagesTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /container-security/combined/base-images/v1][%d] combinedBaseImagesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CombinedBaseImagesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CombinedBaseImagesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCombinedBaseImagesInternalServerError creates a CombinedBaseImagesInternalServerError with default headers values
+func NewCombinedBaseImagesInternalServerError() *CombinedBaseImagesInternalServerError {
+ return &CombinedBaseImagesInternalServerError{}
+}
+
+/*
+CombinedBaseImagesInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CombinedBaseImagesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CoreEntitiesResponse
+}
+
+// IsSuccess returns true when this combined base images internal server error response has a 2xx status code
+func (o *CombinedBaseImagesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined base images internal server error response has a 3xx status code
+func (o *CombinedBaseImagesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined base images internal server error response has a 4xx status code
+func (o *CombinedBaseImagesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this combined base images internal server error response has a 5xx status code
+func (o *CombinedBaseImagesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this combined base images internal server error response a status code equal to that given
+func (o *CombinedBaseImagesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the combined base images internal server error response
+func (o *CombinedBaseImagesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CombinedBaseImagesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /container-security/combined/base-images/v1][%d] combinedBaseImagesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CombinedBaseImagesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /container-security/combined/base-images/v1][%d] combinedBaseImagesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CombinedBaseImagesInternalServerError) GetPayload() *models.CoreEntitiesResponse {
+ return o.Payload
+}
+
+func (o *CombinedBaseImagesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CoreEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/container_images/combined_image_issues_summary_parameters.go b/falcon/client/container_images/combined_image_issues_summary_parameters.go
index 309177db..38b96bf5 100644
--- a/falcon/client/container_images/combined_image_issues_summary_parameters.go
+++ b/falcon/client/container_images/combined_image_issues_summary_parameters.go
@@ -14,6 +14,7 @@ import (
"github.com/go-openapi/runtime"
cr "github.com/go-openapi/runtime/client"
"github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
)
// NewCombinedImageIssuesSummaryParams creates a new CombinedImageIssuesSummaryParams object,
@@ -67,6 +68,12 @@ type CombinedImageIssuesSummaryParams struct {
*/
Cid string
+ /* IncludeBaseImageVuln.
+
+ include base image vulnerabilities
+ */
+ IncludeBaseImageVuln *bool
+
/* Registry.
registry name
@@ -149,6 +156,17 @@ func (o *CombinedImageIssuesSummaryParams) SetCid(cid string) {
o.Cid = cid
}
+// WithIncludeBaseImageVuln adds the includeBaseImageVuln to the combined image issues summary params
+func (o *CombinedImageIssuesSummaryParams) WithIncludeBaseImageVuln(includeBaseImageVuln *bool) *CombinedImageIssuesSummaryParams {
+ o.SetIncludeBaseImageVuln(includeBaseImageVuln)
+ return o
+}
+
+// SetIncludeBaseImageVuln adds the includeBaseImageVuln to the combined image issues summary params
+func (o *CombinedImageIssuesSummaryParams) SetIncludeBaseImageVuln(includeBaseImageVuln *bool) {
+ o.IncludeBaseImageVuln = includeBaseImageVuln
+}
+
// WithRegistry adds the registry to the combined image issues summary params
func (o *CombinedImageIssuesSummaryParams) WithRegistry(registry string) *CombinedImageIssuesSummaryParams {
o.SetRegistry(registry)
@@ -200,6 +218,23 @@ func (o *CombinedImageIssuesSummaryParams) WriteToRequest(r runtime.ClientReques
}
}
+ if o.IncludeBaseImageVuln != nil {
+
+ // query param include_base_image_vuln
+ var qrIncludeBaseImageVuln bool
+
+ if o.IncludeBaseImageVuln != nil {
+ qrIncludeBaseImageVuln = *o.IncludeBaseImageVuln
+ }
+ qIncludeBaseImageVuln := swag.FormatBool(qrIncludeBaseImageVuln)
+ if qIncludeBaseImageVuln != "" {
+
+ if err := r.SetQueryParam("include_base_image_vuln", qIncludeBaseImageVuln); err != nil {
+ return err
+ }
+ }
+ }
+
// query param registry
qrRegistry := o.Registry
qRegistry := qrRegistry
diff --git a/falcon/client/container_images/combined_image_vulnerability_summary_parameters.go b/falcon/client/container_images/combined_image_vulnerability_summary_parameters.go
index 5d536624..bffd13e7 100644
--- a/falcon/client/container_images/combined_image_vulnerability_summary_parameters.go
+++ b/falcon/client/container_images/combined_image_vulnerability_summary_parameters.go
@@ -14,6 +14,7 @@ import (
"github.com/go-openapi/runtime"
cr "github.com/go-openapi/runtime/client"
"github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
)
// NewCombinedImageVulnerabilitySummaryParams creates a new CombinedImageVulnerabilitySummaryParams object,
@@ -67,6 +68,12 @@ type CombinedImageVulnerabilitySummaryParams struct {
*/
Cid string
+ /* IncludeBaseImageVuln.
+
+ include base image vulnerabilities
+ */
+ IncludeBaseImageVuln *bool
+
/* Registry.
registry name
@@ -149,6 +156,17 @@ func (o *CombinedImageVulnerabilitySummaryParams) SetCid(cid string) {
o.Cid = cid
}
+// WithIncludeBaseImageVuln adds the includeBaseImageVuln to the combined image vulnerability summary params
+func (o *CombinedImageVulnerabilitySummaryParams) WithIncludeBaseImageVuln(includeBaseImageVuln *bool) *CombinedImageVulnerabilitySummaryParams {
+ o.SetIncludeBaseImageVuln(includeBaseImageVuln)
+ return o
+}
+
+// SetIncludeBaseImageVuln adds the includeBaseImageVuln to the combined image vulnerability summary params
+func (o *CombinedImageVulnerabilitySummaryParams) SetIncludeBaseImageVuln(includeBaseImageVuln *bool) {
+ o.IncludeBaseImageVuln = includeBaseImageVuln
+}
+
// WithRegistry adds the registry to the combined image vulnerability summary params
func (o *CombinedImageVulnerabilitySummaryParams) WithRegistry(registry string) *CombinedImageVulnerabilitySummaryParams {
o.SetRegistry(registry)
@@ -200,6 +218,23 @@ func (o *CombinedImageVulnerabilitySummaryParams) WriteToRequest(r runtime.Clien
}
}
+ if o.IncludeBaseImageVuln != nil {
+
+ // query param include_base_image_vuln
+ var qrIncludeBaseImageVuln bool
+
+ if o.IncludeBaseImageVuln != nil {
+ qrIncludeBaseImageVuln = *o.IncludeBaseImageVuln
+ }
+ qIncludeBaseImageVuln := swag.FormatBool(qrIncludeBaseImageVuln)
+ if qIncludeBaseImageVuln != "" {
+
+ if err := r.SetQueryParam("include_base_image_vuln", qIncludeBaseImageVuln); err != nil {
+ return err
+ }
+ }
+ }
+
// query param registry
qrRegistry := o.Registry
qRegistry := qrRegistry
diff --git a/falcon/client/container_images/container_images_client.go b/falcon/client/container_images/container_images_client.go
index c7aa8191..7c244a64 100644
--- a/falcon/client/container_images/container_images_client.go
+++ b/falcon/client/container_images/container_images_client.go
@@ -38,6 +38,8 @@ type ClientService interface {
AggregateImageCountByState(params *AggregateImageCountByStateParams, opts ...ClientOption) (*AggregateImageCountByStateOK, error)
+ CombinedBaseImages(params *CombinedBaseImagesParams, opts ...ClientOption) (*CombinedBaseImagesOK, error)
+
CombinedImageByVulnerabilityCount(params *CombinedImageByVulnerabilityCountParams, opts ...ClientOption) (*CombinedImageByVulnerabilityCountOK, error)
CombinedImageDetail(params *CombinedImageDetailParams, opts ...ClientOption) (*CombinedImageDetailOK, error)
@@ -46,6 +48,10 @@ type ClientService interface {
CombinedImageVulnerabilitySummary(params *CombinedImageVulnerabilitySummaryParams, opts ...ClientOption) (*CombinedImageVulnerabilitySummaryOK, error)
+ CreateBaseImagesEntities(params *CreateBaseImagesEntitiesParams, opts ...ClientOption) (*CreateBaseImagesEntitiesOK, error)
+
+ DeleteBaseImages(params *DeleteBaseImagesParams, opts ...ClientOption) (*DeleteBaseImagesOK, error)
+
GetCombinedImages(params *GetCombinedImagesParams, opts ...ClientOption) (*GetCombinedImagesOK, error)
ReadCombinedImagesExport(params *ReadCombinedImagesExportParams, opts ...ClientOption) (*ReadCombinedImagesExportOK, error)
@@ -205,6 +211,44 @@ func (a *Client) AggregateImageCountByState(params *AggregateImageCountByStatePa
panic(msg)
}
+/*
+CombinedBaseImages retrieves base images for provided filter
+*/
+func (a *Client) CombinedBaseImages(params *CombinedBaseImagesParams, opts ...ClientOption) (*CombinedBaseImagesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCombinedBaseImagesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "CombinedBaseImages",
+ Method: "GET",
+ PathPattern: "/container-security/combined/base-images/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CombinedBaseImagesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*CombinedBaseImagesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for CombinedBaseImages: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
/*
CombinedImageByVulnerabilityCount retrieves top x images with the most vulnerabilities
*/
@@ -357,6 +401,82 @@ func (a *Client) CombinedImageVulnerabilitySummary(params *CombinedImageVulnerab
panic(msg)
}
+/*
+CreateBaseImagesEntities creates base images using the provided details
+*/
+func (a *Client) CreateBaseImagesEntities(params *CreateBaseImagesEntitiesParams, opts ...ClientOption) (*CreateBaseImagesEntitiesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCreateBaseImagesEntitiesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "CreateBaseImagesEntities",
+ Method: "POST",
+ PathPattern: "/container-security/entities/base-images/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CreateBaseImagesEntitiesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*CreateBaseImagesEntitiesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for CreateBaseImagesEntities: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+DeleteBaseImages deletes base images by base image uuid
+*/
+func (a *Client) DeleteBaseImages(params *DeleteBaseImagesParams, opts ...ClientOption) (*DeleteBaseImagesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDeleteBaseImagesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "DeleteBaseImages",
+ Method: "DELETE",
+ PathPattern: "/container-security/entities/base-images/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DeleteBaseImagesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DeleteBaseImagesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for DeleteBaseImages: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
/*
GetCombinedImages gets image assessment results by providing an f q l filter and paging details
*/
diff --git a/falcon/client/container_images/create_base_images_entities_parameters.go b/falcon/client/container_images/create_base_images_entities_parameters.go
new file mode 100644
index 00000000..bb7d36ae
--- /dev/null
+++ b/falcon/client/container_images/create_base_images_entities_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package container_images
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewCreateBaseImagesEntitiesParams creates a new CreateBaseImagesEntitiesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCreateBaseImagesEntitiesParams() *CreateBaseImagesEntitiesParams {
+ return &CreateBaseImagesEntitiesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCreateBaseImagesEntitiesParamsWithTimeout creates a new CreateBaseImagesEntitiesParams object
+// with the ability to set a timeout on a request.
+func NewCreateBaseImagesEntitiesParamsWithTimeout(timeout time.Duration) *CreateBaseImagesEntitiesParams {
+ return &CreateBaseImagesEntitiesParams{
+ timeout: timeout,
+ }
+}
+
+// NewCreateBaseImagesEntitiesParamsWithContext creates a new CreateBaseImagesEntitiesParams object
+// with the ability to set a context for a request.
+func NewCreateBaseImagesEntitiesParamsWithContext(ctx context.Context) *CreateBaseImagesEntitiesParams {
+ return &CreateBaseImagesEntitiesParams{
+ Context: ctx,
+ }
+}
+
+// NewCreateBaseImagesEntitiesParamsWithHTTPClient creates a new CreateBaseImagesEntitiesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCreateBaseImagesEntitiesParamsWithHTTPClient(client *http.Client) *CreateBaseImagesEntitiesParams {
+ return &CreateBaseImagesEntitiesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CreateBaseImagesEntitiesParams contains all the parameters to send to the API endpoint
+
+ for the create base images entities operation.
+
+ Typically these are written to a http.Request.
+*/
+type CreateBaseImagesEntitiesParams struct {
+
+ // Body.
+ Body *models.ModelsCreateBaseImagesRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the create base images entities params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateBaseImagesEntitiesParams) WithDefaults() *CreateBaseImagesEntitiesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the create base images entities params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateBaseImagesEntitiesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the create base images entities params
+func (o *CreateBaseImagesEntitiesParams) WithTimeout(timeout time.Duration) *CreateBaseImagesEntitiesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the create base images entities params
+func (o *CreateBaseImagesEntitiesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the create base images entities params
+func (o *CreateBaseImagesEntitiesParams) WithContext(ctx context.Context) *CreateBaseImagesEntitiesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the create base images entities params
+func (o *CreateBaseImagesEntitiesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the create base images entities params
+func (o *CreateBaseImagesEntitiesParams) WithHTTPClient(client *http.Client) *CreateBaseImagesEntitiesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the create base images entities params
+func (o *CreateBaseImagesEntitiesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the create base images entities params
+func (o *CreateBaseImagesEntitiesParams) WithBody(body *models.ModelsCreateBaseImagesRequest) *CreateBaseImagesEntitiesParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the create base images entities params
+func (o *CreateBaseImagesEntitiesParams) SetBody(body *models.ModelsCreateBaseImagesRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CreateBaseImagesEntitiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/container_images/create_base_images_entities_responses.go b/falcon/client/container_images/create_base_images_entities_responses.go
new file mode 100644
index 00000000..58026e26
--- /dev/null
+++ b/falcon/client/container_images/create_base_images_entities_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package container_images
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CreateBaseImagesEntitiesReader is a Reader for the CreateBaseImagesEntities structure.
+type CreateBaseImagesEntitiesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CreateBaseImagesEntitiesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCreateBaseImagesEntitiesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCreateBaseImagesEntitiesBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCreateBaseImagesEntitiesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCreateBaseImagesEntitiesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCreateBaseImagesEntitiesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /container-security/entities/base-images/v1] CreateBaseImagesEntities", response, response.Code())
+ }
+}
+
+// NewCreateBaseImagesEntitiesOK creates a CreateBaseImagesEntitiesOK with default headers values
+func NewCreateBaseImagesEntitiesOK() *CreateBaseImagesEntitiesOK {
+ return &CreateBaseImagesEntitiesOK{}
+}
+
+/*
+CreateBaseImagesEntitiesOK describes a response with status code 200, with default header values.
+
+Created
+*/
+type CreateBaseImagesEntitiesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CoreEntitiesResponse
+}
+
+// IsSuccess returns true when this create base images entities o k response has a 2xx status code
+func (o *CreateBaseImagesEntitiesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this create base images entities o k response has a 3xx status code
+func (o *CreateBaseImagesEntitiesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create base images entities o k response has a 4xx status code
+func (o *CreateBaseImagesEntitiesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create base images entities o k response has a 5xx status code
+func (o *CreateBaseImagesEntitiesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create base images entities o k response a status code equal to that given
+func (o *CreateBaseImagesEntitiesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the create base images entities o k response
+func (o *CreateBaseImagesEntitiesOK) Code() int {
+ return 200
+}
+
+func (o *CreateBaseImagesEntitiesOK) Error() string {
+ return fmt.Sprintf("[POST /container-security/entities/base-images/v1][%d] createBaseImagesEntitiesOK %+v", 200, o.Payload)
+}
+
+func (o *CreateBaseImagesEntitiesOK) String() string {
+ return fmt.Sprintf("[POST /container-security/entities/base-images/v1][%d] createBaseImagesEntitiesOK %+v", 200, o.Payload)
+}
+
+func (o *CreateBaseImagesEntitiesOK) GetPayload() *models.CoreEntitiesResponse {
+ return o.Payload
+}
+
+func (o *CreateBaseImagesEntitiesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CoreEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateBaseImagesEntitiesBadRequest creates a CreateBaseImagesEntitiesBadRequest with default headers values
+func NewCreateBaseImagesEntitiesBadRequest() *CreateBaseImagesEntitiesBadRequest {
+ return &CreateBaseImagesEntitiesBadRequest{}
+}
+
+/*
+CreateBaseImagesEntitiesBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CreateBaseImagesEntitiesBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CoreEntitiesResponse
+}
+
+// IsSuccess returns true when this create base images entities bad request response has a 2xx status code
+func (o *CreateBaseImagesEntitiesBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create base images entities bad request response has a 3xx status code
+func (o *CreateBaseImagesEntitiesBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create base images entities bad request response has a 4xx status code
+func (o *CreateBaseImagesEntitiesBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create base images entities bad request response has a 5xx status code
+func (o *CreateBaseImagesEntitiesBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create base images entities bad request response a status code equal to that given
+func (o *CreateBaseImagesEntitiesBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the create base images entities bad request response
+func (o *CreateBaseImagesEntitiesBadRequest) Code() int {
+ return 400
+}
+
+func (o *CreateBaseImagesEntitiesBadRequest) Error() string {
+ return fmt.Sprintf("[POST /container-security/entities/base-images/v1][%d] createBaseImagesEntitiesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CreateBaseImagesEntitiesBadRequest) String() string {
+ return fmt.Sprintf("[POST /container-security/entities/base-images/v1][%d] createBaseImagesEntitiesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CreateBaseImagesEntitiesBadRequest) GetPayload() *models.CoreEntitiesResponse {
+ return o.Payload
+}
+
+func (o *CreateBaseImagesEntitiesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CoreEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateBaseImagesEntitiesForbidden creates a CreateBaseImagesEntitiesForbidden with default headers values
+func NewCreateBaseImagesEntitiesForbidden() *CreateBaseImagesEntitiesForbidden {
+ return &CreateBaseImagesEntitiesForbidden{}
+}
+
+/*
+CreateBaseImagesEntitiesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CreateBaseImagesEntitiesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaAPIError
+}
+
+// IsSuccess returns true when this create base images entities forbidden response has a 2xx status code
+func (o *CreateBaseImagesEntitiesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create base images entities forbidden response has a 3xx status code
+func (o *CreateBaseImagesEntitiesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create base images entities forbidden response has a 4xx status code
+func (o *CreateBaseImagesEntitiesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create base images entities forbidden response has a 5xx status code
+func (o *CreateBaseImagesEntitiesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create base images entities forbidden response a status code equal to that given
+func (o *CreateBaseImagesEntitiesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the create base images entities forbidden response
+func (o *CreateBaseImagesEntitiesForbidden) Code() int {
+ return 403
+}
+
+func (o *CreateBaseImagesEntitiesForbidden) Error() string {
+ return fmt.Sprintf("[POST /container-security/entities/base-images/v1][%d] createBaseImagesEntitiesForbidden %+v", 403, o.Payload)
+}
+
+func (o *CreateBaseImagesEntitiesForbidden) String() string {
+ return fmt.Sprintf("[POST /container-security/entities/base-images/v1][%d] createBaseImagesEntitiesForbidden %+v", 403, o.Payload)
+}
+
+func (o *CreateBaseImagesEntitiesForbidden) GetPayload() *models.MsaAPIError {
+ return o.Payload
+}
+
+func (o *CreateBaseImagesEntitiesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaAPIError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateBaseImagesEntitiesTooManyRequests creates a CreateBaseImagesEntitiesTooManyRequests with default headers values
+func NewCreateBaseImagesEntitiesTooManyRequests() *CreateBaseImagesEntitiesTooManyRequests {
+ return &CreateBaseImagesEntitiesTooManyRequests{}
+}
+
+/*
+CreateBaseImagesEntitiesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CreateBaseImagesEntitiesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create base images entities too many requests response has a 2xx status code
+func (o *CreateBaseImagesEntitiesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create base images entities too many requests response has a 3xx status code
+func (o *CreateBaseImagesEntitiesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create base images entities too many requests response has a 4xx status code
+func (o *CreateBaseImagesEntitiesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create base images entities too many requests response has a 5xx status code
+func (o *CreateBaseImagesEntitiesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create base images entities too many requests response a status code equal to that given
+func (o *CreateBaseImagesEntitiesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the create base images entities too many requests response
+func (o *CreateBaseImagesEntitiesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CreateBaseImagesEntitiesTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /container-security/entities/base-images/v1][%d] createBaseImagesEntitiesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CreateBaseImagesEntitiesTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /container-security/entities/base-images/v1][%d] createBaseImagesEntitiesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CreateBaseImagesEntitiesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateBaseImagesEntitiesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateBaseImagesEntitiesInternalServerError creates a CreateBaseImagesEntitiesInternalServerError with default headers values
+func NewCreateBaseImagesEntitiesInternalServerError() *CreateBaseImagesEntitiesInternalServerError {
+ return &CreateBaseImagesEntitiesInternalServerError{}
+}
+
+/*
+CreateBaseImagesEntitiesInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CreateBaseImagesEntitiesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CoreEntitiesResponse
+}
+
+// IsSuccess returns true when this create base images entities internal server error response has a 2xx status code
+func (o *CreateBaseImagesEntitiesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create base images entities internal server error response has a 3xx status code
+func (o *CreateBaseImagesEntitiesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create base images entities internal server error response has a 4xx status code
+func (o *CreateBaseImagesEntitiesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create base images entities internal server error response has a 5xx status code
+func (o *CreateBaseImagesEntitiesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create base images entities internal server error response a status code equal to that given
+func (o *CreateBaseImagesEntitiesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create base images entities internal server error response
+func (o *CreateBaseImagesEntitiesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateBaseImagesEntitiesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /container-security/entities/base-images/v1][%d] createBaseImagesEntitiesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateBaseImagesEntitiesInternalServerError) String() string {
+ return fmt.Sprintf("[POST /container-security/entities/base-images/v1][%d] createBaseImagesEntitiesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateBaseImagesEntitiesInternalServerError) GetPayload() *models.CoreEntitiesResponse {
+ return o.Payload
+}
+
+func (o *CreateBaseImagesEntitiesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CoreEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/container_images/delete_base_images_parameters.go b/falcon/client/container_images/delete_base_images_parameters.go
new file mode 100644
index 00000000..84a1f390
--- /dev/null
+++ b/falcon/client/container_images/delete_base_images_parameters.go
@@ -0,0 +1,175 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package container_images
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewDeleteBaseImagesParams creates a new DeleteBaseImagesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDeleteBaseImagesParams() *DeleteBaseImagesParams {
+ return &DeleteBaseImagesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDeleteBaseImagesParamsWithTimeout creates a new DeleteBaseImagesParams object
+// with the ability to set a timeout on a request.
+func NewDeleteBaseImagesParamsWithTimeout(timeout time.Duration) *DeleteBaseImagesParams {
+ return &DeleteBaseImagesParams{
+ timeout: timeout,
+ }
+}
+
+// NewDeleteBaseImagesParamsWithContext creates a new DeleteBaseImagesParams object
+// with the ability to set a context for a request.
+func NewDeleteBaseImagesParamsWithContext(ctx context.Context) *DeleteBaseImagesParams {
+ return &DeleteBaseImagesParams{
+ Context: ctx,
+ }
+}
+
+// NewDeleteBaseImagesParamsWithHTTPClient creates a new DeleteBaseImagesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDeleteBaseImagesParamsWithHTTPClient(client *http.Client) *DeleteBaseImagesParams {
+ return &DeleteBaseImagesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DeleteBaseImagesParams contains all the parameters to send to the API endpoint
+
+ for the delete base images operation.
+
+ Typically these are written to a http.Request.
+*/
+type DeleteBaseImagesParams struct {
+
+ /* Ids.
+
+ BaseImageIDs
+ */
+ Ids []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the delete base images params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteBaseImagesParams) WithDefaults() *DeleteBaseImagesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the delete base images params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteBaseImagesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the delete base images params
+func (o *DeleteBaseImagesParams) WithTimeout(timeout time.Duration) *DeleteBaseImagesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the delete base images params
+func (o *DeleteBaseImagesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the delete base images params
+func (o *DeleteBaseImagesParams) WithContext(ctx context.Context) *DeleteBaseImagesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the delete base images params
+func (o *DeleteBaseImagesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the delete base images params
+func (o *DeleteBaseImagesParams) WithHTTPClient(client *http.Client) *DeleteBaseImagesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the delete base images params
+func (o *DeleteBaseImagesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIds adds the ids to the delete base images params
+func (o *DeleteBaseImagesParams) WithIds(ids []string) *DeleteBaseImagesParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the delete base images params
+func (o *DeleteBaseImagesParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DeleteBaseImagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamDeleteBaseImages binds the parameter ids
+func (o *DeleteBaseImagesParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "csv"
+ idsIS := swag.JoinByFormat(idsIC, "csv")
+
+ return idsIS
+}
diff --git a/falcon/client/container_images/delete_base_images_responses.go b/falcon/client/container_images/delete_base_images_responses.go
new file mode 100644
index 00000000..762bdc9d
--- /dev/null
+++ b/falcon/client/container_images/delete_base_images_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package container_images
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DeleteBaseImagesReader is a Reader for the DeleteBaseImages structure.
+type DeleteBaseImagesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DeleteBaseImagesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewDeleteBaseImagesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewDeleteBaseImagesBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewDeleteBaseImagesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDeleteBaseImagesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDeleteBaseImagesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /container-security/entities/base-images/v1] DeleteBaseImages", response, response.Code())
+ }
+}
+
+// NewDeleteBaseImagesOK creates a DeleteBaseImagesOK with default headers values
+func NewDeleteBaseImagesOK() *DeleteBaseImagesOK {
+ return &DeleteBaseImagesOK{}
+}
+
+/*
+DeleteBaseImagesOK describes a response with status code 200, with default header values.
+
+Created
+*/
+type DeleteBaseImagesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CoreEntitiesResponse
+}
+
+// IsSuccess returns true when this delete base images o k response has a 2xx status code
+func (o *DeleteBaseImagesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this delete base images o k response has a 3xx status code
+func (o *DeleteBaseImagesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete base images o k response has a 4xx status code
+func (o *DeleteBaseImagesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete base images o k response has a 5xx status code
+func (o *DeleteBaseImagesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete base images o k response a status code equal to that given
+func (o *DeleteBaseImagesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the delete base images o k response
+func (o *DeleteBaseImagesOK) Code() int {
+ return 200
+}
+
+func (o *DeleteBaseImagesOK) Error() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/base-images/v1][%d] deleteBaseImagesOK %+v", 200, o.Payload)
+}
+
+func (o *DeleteBaseImagesOK) String() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/base-images/v1][%d] deleteBaseImagesOK %+v", 200, o.Payload)
+}
+
+func (o *DeleteBaseImagesOK) GetPayload() *models.CoreEntitiesResponse {
+ return o.Payload
+}
+
+func (o *DeleteBaseImagesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CoreEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteBaseImagesBadRequest creates a DeleteBaseImagesBadRequest with default headers values
+func NewDeleteBaseImagesBadRequest() *DeleteBaseImagesBadRequest {
+ return &DeleteBaseImagesBadRequest{}
+}
+
+/*
+DeleteBaseImagesBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type DeleteBaseImagesBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CoreEntitiesResponse
+}
+
+// IsSuccess returns true when this delete base images bad request response has a 2xx status code
+func (o *DeleteBaseImagesBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete base images bad request response has a 3xx status code
+func (o *DeleteBaseImagesBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete base images bad request response has a 4xx status code
+func (o *DeleteBaseImagesBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete base images bad request response has a 5xx status code
+func (o *DeleteBaseImagesBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete base images bad request response a status code equal to that given
+func (o *DeleteBaseImagesBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the delete base images bad request response
+func (o *DeleteBaseImagesBadRequest) Code() int {
+ return 400
+}
+
+func (o *DeleteBaseImagesBadRequest) Error() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/base-images/v1][%d] deleteBaseImagesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteBaseImagesBadRequest) String() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/base-images/v1][%d] deleteBaseImagesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteBaseImagesBadRequest) GetPayload() *models.CoreEntitiesResponse {
+ return o.Payload
+}
+
+func (o *DeleteBaseImagesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CoreEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteBaseImagesForbidden creates a DeleteBaseImagesForbidden with default headers values
+func NewDeleteBaseImagesForbidden() *DeleteBaseImagesForbidden {
+ return &DeleteBaseImagesForbidden{}
+}
+
+/*
+DeleteBaseImagesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DeleteBaseImagesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaAPIError
+}
+
+// IsSuccess returns true when this delete base images forbidden response has a 2xx status code
+func (o *DeleteBaseImagesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete base images forbidden response has a 3xx status code
+func (o *DeleteBaseImagesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete base images forbidden response has a 4xx status code
+func (o *DeleteBaseImagesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete base images forbidden response has a 5xx status code
+func (o *DeleteBaseImagesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete base images forbidden response a status code equal to that given
+func (o *DeleteBaseImagesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the delete base images forbidden response
+func (o *DeleteBaseImagesForbidden) Code() int {
+ return 403
+}
+
+func (o *DeleteBaseImagesForbidden) Error() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/base-images/v1][%d] deleteBaseImagesForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteBaseImagesForbidden) String() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/base-images/v1][%d] deleteBaseImagesForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteBaseImagesForbidden) GetPayload() *models.MsaAPIError {
+ return o.Payload
+}
+
+func (o *DeleteBaseImagesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaAPIError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteBaseImagesTooManyRequests creates a DeleteBaseImagesTooManyRequests with default headers values
+func NewDeleteBaseImagesTooManyRequests() *DeleteBaseImagesTooManyRequests {
+ return &DeleteBaseImagesTooManyRequests{}
+}
+
+/*
+DeleteBaseImagesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DeleteBaseImagesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete base images too many requests response has a 2xx status code
+func (o *DeleteBaseImagesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete base images too many requests response has a 3xx status code
+func (o *DeleteBaseImagesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete base images too many requests response has a 4xx status code
+func (o *DeleteBaseImagesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete base images too many requests response has a 5xx status code
+func (o *DeleteBaseImagesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete base images too many requests response a status code equal to that given
+func (o *DeleteBaseImagesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the delete base images too many requests response
+func (o *DeleteBaseImagesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DeleteBaseImagesTooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/base-images/v1][%d] deleteBaseImagesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteBaseImagesTooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/base-images/v1][%d] deleteBaseImagesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteBaseImagesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteBaseImagesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteBaseImagesInternalServerError creates a DeleteBaseImagesInternalServerError with default headers values
+func NewDeleteBaseImagesInternalServerError() *DeleteBaseImagesInternalServerError {
+ return &DeleteBaseImagesInternalServerError{}
+}
+
+/*
+DeleteBaseImagesInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type DeleteBaseImagesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CoreEntitiesResponse
+}
+
+// IsSuccess returns true when this delete base images internal server error response has a 2xx status code
+func (o *DeleteBaseImagesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete base images internal server error response has a 3xx status code
+func (o *DeleteBaseImagesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete base images internal server error response has a 4xx status code
+func (o *DeleteBaseImagesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete base images internal server error response has a 5xx status code
+func (o *DeleteBaseImagesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete base images internal server error response a status code equal to that given
+func (o *DeleteBaseImagesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete base images internal server error response
+func (o *DeleteBaseImagesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteBaseImagesInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/base-images/v1][%d] deleteBaseImagesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteBaseImagesInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/base-images/v1][%d] deleteBaseImagesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteBaseImagesInternalServerError) GetPayload() *models.CoreEntitiesResponse {
+ return o.Payload
+}
+
+func (o *DeleteBaseImagesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CoreEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/container_images/get_combined_images_parameters.go b/falcon/client/container_images/get_combined_images_parameters.go
index 4468c8dc..a02b7fb7 100644
--- a/falcon/client/container_images/get_combined_images_parameters.go
+++ b/falcon/client/container_images/get_combined_images_parameters.go
@@ -82,7 +82,7 @@ type GetCombinedImagesParams struct {
/* Sort.
- The fields to sort the records on. Supported columns: [first_seen highest_detection_severity highest_vulnerability_severity image_digest image_id registry repository tag]
+ The fields to sort the records on. Supported columns: [first_seen highest_detection_severity highest_vulnerability_severity image_digest image_id registry repository source tag]
*/
Sort *string
diff --git a/falcon/client/container_images/read_combined_images_export_parameters.go b/falcon/client/container_images/read_combined_images_export_parameters.go
index 7ea77ae2..df300d00 100644
--- a/falcon/client/container_images/read_combined_images_export_parameters.go
+++ b/falcon/client/container_images/read_combined_images_export_parameters.go
@@ -76,7 +76,7 @@ type ReadCombinedImagesExportParams struct {
/* Filter.
- Filter images using a query in Falcon Query Language (FQL). Supported filters: arch,base_os,cid,container_id,container_running_status,cps_rating,crowdstrike_user,cve_id,detection_count,detection_name,detection_severity,first_seen,image_digest,image_id,layer_digest,package_name_version,registry,repository,tag,vulnerability_count,vulnerability_severity
+ Filter images using a query in Falcon Query Language (FQL). Supported filters: arch,base_os,cid,container_id,container_running_status,cps_rating,crowdstrike_user,cve_id,detection_count,detection_name,detection_severity,first_seen,image_digest,image_id,include_base_image_vuln,layer_digest,package_name_version,registry,repository,source,tag,vulnerability_count,vulnerability_severity
*/
Filter *string
@@ -94,7 +94,7 @@ type ReadCombinedImagesExportParams struct {
/* Sort.
- The fields to sort the records on. Supported columns: [base_os cid detections firstScanned first_seen highest_cps_current_rating highest_detection_severity highest_vulnerability_severity image_digest image_id last_seen layers_with_vulnerabilities packages registry repository tag vulnerabilities]
+ The fields to sort the records on. Supported columns: [base_os cid detections firstScanned first_seen highest_cps_current_rating highest_detection_severity highest_vulnerability_severity image_digest image_id last_seen layers_with_vulnerabilities packages registry repository source tag vulnerabilities]
*/
Sort *string
diff --git a/falcon/client/container_vulnerabilities/read_combined_vulnerabilities_details_parameters.go b/falcon/client/container_vulnerabilities/read_combined_vulnerabilities_details_parameters.go
index ab4fe2a5..985ad8f7 100644
--- a/falcon/client/container_vulnerabilities/read_combined_vulnerabilities_details_parameters.go
+++ b/falcon/client/container_vulnerabilities/read_combined_vulnerabilities_details_parameters.go
@@ -64,7 +64,7 @@ type ReadCombinedVulnerabilitiesDetailsParams struct {
/* Filter.
- Filter the vulnerabilities using a query in Falcon Query Language (FQL). Supported vulnerability filters: cid,cps_rating,cve_id,cvss_score,exploited_status,exploited_status_name,is_zero_day,remediation_available,severity
+ Filter the vulnerabilities using a query in Falcon Query Language (FQL). Supported vulnerability filters: cid,cps_rating,cve_id,cvss_score,exploited_status,exploited_status_name,include_base_image_vuln,is_zero_day,remediation_available,severity
*/
Filter *string
diff --git a/falcon/client/container_vulnerabilities/read_combined_vulnerabilities_parameters.go b/falcon/client/container_vulnerabilities/read_combined_vulnerabilities_parameters.go
index 4aa48129..a9abf61e 100644
--- a/falcon/client/container_vulnerabilities/read_combined_vulnerabilities_parameters.go
+++ b/falcon/client/container_vulnerabilities/read_combined_vulnerabilities_parameters.go
@@ -64,7 +64,7 @@ type ReadCombinedVulnerabilitiesParams struct {
/* Filter.
- Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,package_name_version,registry,repository,severity,tag
+ Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,include_base_image_vuln,package_name_version,registry,repository,severity,tag
*/
Filter *string
diff --git a/falcon/client/container_vulnerabilities/read_vulnerability_count_by_actively_exploited_parameters.go b/falcon/client/container_vulnerabilities/read_vulnerability_count_by_actively_exploited_parameters.go
index 5f3a1c6d..2a3a767d 100644
--- a/falcon/client/container_vulnerabilities/read_vulnerability_count_by_actively_exploited_parameters.go
+++ b/falcon/client/container_vulnerabilities/read_vulnerability_count_by_actively_exploited_parameters.go
@@ -64,7 +64,7 @@ type ReadVulnerabilityCountByActivelyExploitedParams struct {
/* Filter.
- Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,package_name_version,registry,repository,severity,tag
+ Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,include_base_image_vuln,package_name_version,registry,repository,severity,tag
*/
Filter *string
diff --git a/falcon/client/container_vulnerabilities/read_vulnerability_count_by_c_p_s_rating_parameters.go b/falcon/client/container_vulnerabilities/read_vulnerability_count_by_c_p_s_rating_parameters.go
index 10cb3b69..29096ccb 100644
--- a/falcon/client/container_vulnerabilities/read_vulnerability_count_by_c_p_s_rating_parameters.go
+++ b/falcon/client/container_vulnerabilities/read_vulnerability_count_by_c_p_s_rating_parameters.go
@@ -64,7 +64,7 @@ type ReadVulnerabilityCountByCPSRatingParams struct {
/* Filter.
- Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,package_name_version,registry,repository,severity,tag
+ Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,include_base_image_vuln,package_name_version,registry,repository,severity,tag
*/
Filter *string
diff --git a/falcon/client/container_vulnerabilities/read_vulnerability_count_by_c_v_s_s_score_parameters.go b/falcon/client/container_vulnerabilities/read_vulnerability_count_by_c_v_s_s_score_parameters.go
index 745cc4e5..98cbf91a 100644
--- a/falcon/client/container_vulnerabilities/read_vulnerability_count_by_c_v_s_s_score_parameters.go
+++ b/falcon/client/container_vulnerabilities/read_vulnerability_count_by_c_v_s_s_score_parameters.go
@@ -64,7 +64,7 @@ type ReadVulnerabilityCountByCVSSScoreParams struct {
/* Filter.
- Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,package_name_version,registry,repository,severity,tag
+ Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,include_base_image_vuln,package_name_version,registry,repository,severity,tag
*/
Filter *string
diff --git a/falcon/client/container_vulnerabilities/read_vulnerability_count_by_severity_parameters.go b/falcon/client/container_vulnerabilities/read_vulnerability_count_by_severity_parameters.go
index 44f777d1..ca210e16 100644
--- a/falcon/client/container_vulnerabilities/read_vulnerability_count_by_severity_parameters.go
+++ b/falcon/client/container_vulnerabilities/read_vulnerability_count_by_severity_parameters.go
@@ -64,7 +64,7 @@ type ReadVulnerabilityCountBySeverityParams struct {
/* Filter.
- Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,package_name_version,registry,repository,severity,tag
+ Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,include_base_image_vuln,package_name_version,registry,repository,severity,tag
*/
Filter *string
diff --git a/falcon/client/container_vulnerabilities/read_vulnerability_count_parameters.go b/falcon/client/container_vulnerabilities/read_vulnerability_count_parameters.go
index 38715fb6..3e78696d 100644
--- a/falcon/client/container_vulnerabilities/read_vulnerability_count_parameters.go
+++ b/falcon/client/container_vulnerabilities/read_vulnerability_count_parameters.go
@@ -64,7 +64,7 @@ type ReadVulnerabilityCountParams struct {
/* Filter.
- Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,package_name_version,registry,repository,severity,tag
+ Filter vulnerabilities using a query in Falcon Query Language (FQL). Supported filters: base_os,cid,container_id,container_running_status,containers_impacted_range,cps_rating,cve_id,cvss_score,description,exploited_status,exploited_status_name,fix_status,image_digest,image_id,images_impacted_range,include_base_image_vuln,package_name_version,registry,repository,severity,tag
*/
Filter *string
diff --git a/falcon/client/crowd_strike_api_specification_client.go b/falcon/client/crowd_strike_api_specification_client.go
index 1ba776f9..8c8947ea 100644
--- a/falcon/client/crowd_strike_api_specification_client.go
+++ b/falcon/client/crowd_strike_api_specification_client.go
@@ -10,6 +10,7 @@ import (
httptransport "github.com/go-openapi/runtime/client"
"github.com/go-openapi/strfmt"
+ "github.com/crowdstrike/gofalcon/falcon/client/a_s_p_m"
"github.com/crowdstrike/gofalcon/falcon/client/alerts"
"github.com/crowdstrike/gofalcon/falcon/client/api_integrations"
"github.com/crowdstrike/gofalcon/falcon/client/certificate_based_exclusions"
@@ -29,10 +30,12 @@ import (
"github.com/crowdstrike/gofalcon/falcon/client/custom_storage"
"github.com/crowdstrike/gofalcon/falcon/client/d4c_registration"
"github.com/crowdstrike/gofalcon/falcon/client/datascanner"
+ "github.com/crowdstrike/gofalcon/falcon/client/delivery_settings"
"github.com/crowdstrike/gofalcon/falcon/client/detects"
"github.com/crowdstrike/gofalcon/falcon/client/device_control_policies"
"github.com/crowdstrike/gofalcon/falcon/client/discover"
"github.com/crowdstrike/gofalcon/falcon/client/discover_iot"
+ "github.com/crowdstrike/gofalcon/falcon/client/downloads_api"
"github.com/crowdstrike/gofalcon/falcon/client/drift_indicators"
"github.com/crowdstrike/gofalcon/falcon/client/event_schema"
"github.com/crowdstrike/gofalcon/falcon/client/event_streams"
@@ -47,9 +50,11 @@ import (
"github.com/crowdstrike/gofalcon/falcon/client/firewall_management"
"github.com/crowdstrike/gofalcon/falcon/client/firewall_policies"
"github.com/crowdstrike/gofalcon/falcon/client/foundry_logscale"
+ "github.com/crowdstrike/gofalcon/falcon/client/handle"
"github.com/crowdstrike/gofalcon/falcon/client/host_group"
"github.com/crowdstrike/gofalcon/falcon/client/host_migration"
"github.com/crowdstrike/gofalcon/falcon/client/hosts"
+ "github.com/crowdstrike/gofalcon/falcon/client/humio_auth_proxy"
"github.com/crowdstrike/gofalcon/falcon/client/identity_entities"
"github.com/crowdstrike/gofalcon/falcon/client/identity_protection"
"github.com/crowdstrike/gofalcon/falcon/client/image_assessment_policies"
@@ -68,10 +73,12 @@ import (
"github.com/crowdstrike/gofalcon/falcon/client/mssp"
"github.com/crowdstrike/gofalcon/falcon/client/oauth2"
"github.com/crowdstrike/gofalcon/falcon/client/ods"
+ "github.com/crowdstrike/gofalcon/falcon/client/operations"
"github.com/crowdstrike/gofalcon/falcon/client/overwatch_dashboard"
"github.com/crowdstrike/gofalcon/falcon/client/prevention_policies"
"github.com/crowdstrike/gofalcon/falcon/client/quarantine"
"github.com/crowdstrike/gofalcon/falcon/client/quick_scan"
+ "github.com/crowdstrike/gofalcon/falcon/client/quick_scan_pro"
"github.com/crowdstrike/gofalcon/falcon/client/real_time_response"
"github.com/crowdstrike/gofalcon/falcon/client/real_time_response_admin"
"github.com/crowdstrike/gofalcon/falcon/client/real_time_response_audit"
@@ -83,6 +90,7 @@ import (
"github.com/crowdstrike/gofalcon/falcon/client/scheduled_reports"
"github.com/crowdstrike/gofalcon/falcon/client/sensor_download"
"github.com/crowdstrike/gofalcon/falcon/client/sensor_update_policies"
+ "github.com/crowdstrike/gofalcon/falcon/client/sensor_usage_api"
"github.com/crowdstrike/gofalcon/falcon/client/sensor_visibility_exclusions"
"github.com/crowdstrike/gofalcon/falcon/client/spotlight_evaluation_logic"
"github.com/crowdstrike/gofalcon/falcon/client/spotlight_vulnerabilities"
@@ -136,6 +144,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *CrowdStrik
cli := new(CrowdStrikeAPISpecification)
cli.Transport = transport
+ cli.Aspm = a_s_p_m.New(transport, formats)
cli.Alerts = alerts.New(transport, formats)
cli.APIIntegrations = api_integrations.New(transport, formats)
cli.CertificateBasedExclusions = certificate_based_exclusions.New(transport, formats)
@@ -155,10 +164,12 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *CrowdStrik
cli.CustomStorage = custom_storage.New(transport, formats)
cli.D4cRegistration = d4c_registration.New(transport, formats)
cli.Datascanner = datascanner.New(transport, formats)
+ cli.DeliverySettings = delivery_settings.New(transport, formats)
cli.Detects = detects.New(transport, formats)
cli.DeviceControlPolicies = device_control_policies.New(transport, formats)
cli.Discover = discover.New(transport, formats)
cli.DiscoverIot = discover_iot.New(transport, formats)
+ cli.DownloadsAPI = downloads_api.New(transport, formats)
cli.DriftIndicators = drift_indicators.New(transport, formats)
cli.EventSchema = event_schema.New(transport, formats)
cli.EventStreams = event_streams.New(transport, formats)
@@ -173,9 +184,11 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *CrowdStrik
cli.FirewallManagement = firewall_management.New(transport, formats)
cli.FirewallPolicies = firewall_policies.New(transport, formats)
cli.FoundryLogscale = foundry_logscale.New(transport, formats)
+ cli.Handle = handle.New(transport, formats)
cli.HostGroup = host_group.New(transport, formats)
cli.HostMigration = host_migration.New(transport, formats)
cli.Hosts = hosts.New(transport, formats)
+ cli.HumioAuthProxy = humio_auth_proxy.New(transport, formats)
cli.IdentityEntities = identity_entities.New(transport, formats)
cli.IdentityProtection = identity_protection.New(transport, formats)
cli.ImageAssessmentPolicies = image_assessment_policies.New(transport, formats)
@@ -194,10 +207,12 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *CrowdStrik
cli.Mssp = mssp.New(transport, formats)
cli.Oauth2 = oauth2.New(transport, formats)
cli.Ods = ods.New(transport, formats)
+ cli.Operations = operations.New(transport, formats)
cli.OverwatchDashboard = overwatch_dashboard.New(transport, formats)
cli.PreventionPolicies = prevention_policies.New(transport, formats)
cli.Quarantine = quarantine.New(transport, formats)
cli.QuickScan = quick_scan.New(transport, formats)
+ cli.QuickScanPro = quick_scan_pro.New(transport, formats)
cli.RealTimeResponse = real_time_response.New(transport, formats)
cli.RealTimeResponseAdmin = real_time_response_admin.New(transport, formats)
cli.RealTimeResponseAudit = real_time_response_audit.New(transport, formats)
@@ -209,6 +224,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *CrowdStrik
cli.ScheduledReports = scheduled_reports.New(transport, formats)
cli.SensorDownload = sensor_download.New(transport, formats)
cli.SensorUpdatePolicies = sensor_update_policies.New(transport, formats)
+ cli.SensorUsageAPI = sensor_usage_api.New(transport, formats)
cli.SensorVisibilityExclusions = sensor_visibility_exclusions.New(transport, formats)
cli.SpotlightEvaluationLogic = spotlight_evaluation_logic.New(transport, formats)
cli.SpotlightVulnerabilities = spotlight_vulnerabilities.New(transport, formats)
@@ -262,6 +278,8 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
// CrowdStrikeAPISpecification is a client for crowd strike API specification
type CrowdStrikeAPISpecification struct {
+ Aspm a_s_p_m.ClientService
+
Alerts alerts.ClientService
APIIntegrations api_integrations.ClientService
@@ -300,6 +318,8 @@ type CrowdStrikeAPISpecification struct {
Datascanner datascanner.ClientService
+ DeliverySettings delivery_settings.ClientService
+
Detects detects.ClientService
DeviceControlPolicies device_control_policies.ClientService
@@ -308,6 +328,8 @@ type CrowdStrikeAPISpecification struct {
DiscoverIot discover_iot.ClientService
+ DownloadsAPI downloads_api.ClientService
+
DriftIndicators drift_indicators.ClientService
EventSchema event_schema.ClientService
@@ -336,12 +358,16 @@ type CrowdStrikeAPISpecification struct {
FoundryLogscale foundry_logscale.ClientService
+ Handle handle.ClientService
+
HostGroup host_group.ClientService
HostMigration host_migration.ClientService
Hosts hosts.ClientService
+ HumioAuthProxy humio_auth_proxy.ClientService
+
IdentityEntities identity_entities.ClientService
IdentityProtection identity_protection.ClientService
@@ -378,6 +404,8 @@ type CrowdStrikeAPISpecification struct {
Ods ods.ClientService
+ Operations operations.ClientService
+
OverwatchDashboard overwatch_dashboard.ClientService
PreventionPolicies prevention_policies.ClientService
@@ -386,6 +414,8 @@ type CrowdStrikeAPISpecification struct {
QuickScan quick_scan.ClientService
+ QuickScanPro quick_scan_pro.ClientService
+
RealTimeResponse real_time_response.ClientService
RealTimeResponseAdmin real_time_response_admin.ClientService
@@ -408,6 +438,8 @@ type CrowdStrikeAPISpecification struct {
SensorUpdatePolicies sensor_update_policies.ClientService
+ SensorUsageAPI sensor_usage_api.ClientService
+
SensorVisibilityExclusions sensor_visibility_exclusions.ClientService
SpotlightEvaluationLogic spotlight_evaluation_logic.ClientService
@@ -432,6 +464,7 @@ type CrowdStrikeAPISpecification struct {
// SetTransport changes the transport on the client and all its subresources
func (c *CrowdStrikeAPISpecification) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
+ c.Aspm.SetTransport(transport)
c.Alerts.SetTransport(transport)
c.APIIntegrations.SetTransport(transport)
c.CertificateBasedExclusions.SetTransport(transport)
@@ -451,10 +484,12 @@ func (c *CrowdStrikeAPISpecification) SetTransport(transport runtime.ClientTrans
c.CustomStorage.SetTransport(transport)
c.D4cRegistration.SetTransport(transport)
c.Datascanner.SetTransport(transport)
+ c.DeliverySettings.SetTransport(transport)
c.Detects.SetTransport(transport)
c.DeviceControlPolicies.SetTransport(transport)
c.Discover.SetTransport(transport)
c.DiscoverIot.SetTransport(transport)
+ c.DownloadsAPI.SetTransport(transport)
c.DriftIndicators.SetTransport(transport)
c.EventSchema.SetTransport(transport)
c.EventStreams.SetTransport(transport)
@@ -469,9 +504,11 @@ func (c *CrowdStrikeAPISpecification) SetTransport(transport runtime.ClientTrans
c.FirewallManagement.SetTransport(transport)
c.FirewallPolicies.SetTransport(transport)
c.FoundryLogscale.SetTransport(transport)
+ c.Handle.SetTransport(transport)
c.HostGroup.SetTransport(transport)
c.HostMigration.SetTransport(transport)
c.Hosts.SetTransport(transport)
+ c.HumioAuthProxy.SetTransport(transport)
c.IdentityEntities.SetTransport(transport)
c.IdentityProtection.SetTransport(transport)
c.ImageAssessmentPolicies.SetTransport(transport)
@@ -490,10 +527,12 @@ func (c *CrowdStrikeAPISpecification) SetTransport(transport runtime.ClientTrans
c.Mssp.SetTransport(transport)
c.Oauth2.SetTransport(transport)
c.Ods.SetTransport(transport)
+ c.Operations.SetTransport(transport)
c.OverwatchDashboard.SetTransport(transport)
c.PreventionPolicies.SetTransport(transport)
c.Quarantine.SetTransport(transport)
c.QuickScan.SetTransport(transport)
+ c.QuickScanPro.SetTransport(transport)
c.RealTimeResponse.SetTransport(transport)
c.RealTimeResponseAdmin.SetTransport(transport)
c.RealTimeResponseAudit.SetTransport(transport)
@@ -505,6 +544,7 @@ func (c *CrowdStrikeAPISpecification) SetTransport(transport runtime.ClientTrans
c.ScheduledReports.SetTransport(transport)
c.SensorDownload.SetTransport(transport)
c.SensorUpdatePolicies.SetTransport(transport)
+ c.SensorUsageAPI.SetTransport(transport)
c.SensorVisibilityExclusions.SetTransport(transport)
c.SpotlightEvaluationLogic.SetTransport(transport)
c.SpotlightVulnerabilities.SetTransport(transport)
diff --git a/falcon/client/cspm_registration/get_c_s_p_m_aws_account_scripts_attachment_parameters.go b/falcon/client/cspm_registration/get_c_s_p_m_aws_account_scripts_attachment_parameters.go
index 9286b6c2..b13baf60 100644
--- a/falcon/client/cspm_registration/get_c_s_p_m_aws_account_scripts_attachment_parameters.go
+++ b/falcon/client/cspm_registration/get_c_s_p_m_aws_account_scripts_attachment_parameters.go
@@ -89,6 +89,15 @@ type GetCSPMAwsAccountScriptsAttachmentParams struct {
*/
CustomRoleName *string
+ // DspmEnabled.
+ DspmEnabled *string
+
+ // DspmRegions.
+ DspmRegions []string
+
+ // DspmRole.
+ DspmRole *string
+
/* Ids.
AWS account IDs
@@ -221,6 +230,39 @@ func (o *GetCSPMAwsAccountScriptsAttachmentParams) SetCustomRoleName(customRoleN
o.CustomRoleName = customRoleName
}
+// WithDspmEnabled adds the dspmEnabled to the get c s p m aws account scripts attachment params
+func (o *GetCSPMAwsAccountScriptsAttachmentParams) WithDspmEnabled(dspmEnabled *string) *GetCSPMAwsAccountScriptsAttachmentParams {
+ o.SetDspmEnabled(dspmEnabled)
+ return o
+}
+
+// SetDspmEnabled adds the dspmEnabled to the get c s p m aws account scripts attachment params
+func (o *GetCSPMAwsAccountScriptsAttachmentParams) SetDspmEnabled(dspmEnabled *string) {
+ o.DspmEnabled = dspmEnabled
+}
+
+// WithDspmRegions adds the dspmRegions to the get c s p m aws account scripts attachment params
+func (o *GetCSPMAwsAccountScriptsAttachmentParams) WithDspmRegions(dspmRegions []string) *GetCSPMAwsAccountScriptsAttachmentParams {
+ o.SetDspmRegions(dspmRegions)
+ return o
+}
+
+// SetDspmRegions adds the dspmRegions to the get c s p m aws account scripts attachment params
+func (o *GetCSPMAwsAccountScriptsAttachmentParams) SetDspmRegions(dspmRegions []string) {
+ o.DspmRegions = dspmRegions
+}
+
+// WithDspmRole adds the dspmRole to the get c s p m aws account scripts attachment params
+func (o *GetCSPMAwsAccountScriptsAttachmentParams) WithDspmRole(dspmRole *string) *GetCSPMAwsAccountScriptsAttachmentParams {
+ o.SetDspmRole(dspmRole)
+ return o
+}
+
+// SetDspmRole adds the dspmRole to the get c s p m aws account scripts attachment params
+func (o *GetCSPMAwsAccountScriptsAttachmentParams) SetDspmRole(dspmRole *string) {
+ o.DspmRole = dspmRole
+}
+
// WithIds adds the ids to the get c s p m aws account scripts attachment params
func (o *GetCSPMAwsAccountScriptsAttachmentParams) WithIds(ids []string) *GetCSPMAwsAccountScriptsAttachmentParams {
o.SetIds(ids)
@@ -363,6 +405,51 @@ func (o *GetCSPMAwsAccountScriptsAttachmentParams) WriteToRequest(r runtime.Clie
}
}
+ if o.DspmEnabled != nil {
+
+ // query param dspm_enabled
+ var qrDspmEnabled string
+
+ if o.DspmEnabled != nil {
+ qrDspmEnabled = *o.DspmEnabled
+ }
+ qDspmEnabled := qrDspmEnabled
+ if qDspmEnabled != "" {
+
+ if err := r.SetQueryParam("dspm_enabled", qDspmEnabled); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.DspmRegions != nil {
+
+ // binding items for dspm_regions
+ joinedDspmRegions := o.bindParamDspmRegions(reg)
+
+ // query array param dspm_regions
+ if err := r.SetQueryParam("dspm_regions", joinedDspmRegions...); err != nil {
+ return err
+ }
+ }
+
+ if o.DspmRole != nil {
+
+ // query param dspm_role
+ var qrDspmRole string
+
+ if o.DspmRole != nil {
+ qrDspmRole = *o.DspmRole
+ }
+ qDspmRole := qrDspmRole
+ if qDspmRole != "" {
+
+ if err := r.SetQueryParam("dspm_role", qDspmRole); err != nil {
+ return err
+ }
+ }
+ }
+
if o.Ids != nil {
// binding items for ids
@@ -465,6 +552,23 @@ func (o *GetCSPMAwsAccountScriptsAttachmentParams) bindParamAccounts(formats str
return accountsIS
}
+// bindParamGetCSPMAwsAccountScriptsAttachment binds the parameter dspm_regions
+func (o *GetCSPMAwsAccountScriptsAttachmentParams) bindParamDspmRegions(formats strfmt.Registry) []string {
+ dspmRegionsIR := o.DspmRegions
+
+ var dspmRegionsIC []string
+ for _, dspmRegionsIIR := range dspmRegionsIR { // explode []string
+
+ dspmRegionsIIV := dspmRegionsIIR // string as string
+ dspmRegionsIC = append(dspmRegionsIC, dspmRegionsIIV)
+ }
+
+ // items.CollectionFormat: "csv"
+ dspmRegionsIS := swag.JoinByFormat(dspmRegionsIC, "csv")
+
+ return dspmRegionsIS
+}
+
// bindParamGetCSPMAwsAccountScriptsAttachment binds the parameter ids
func (o *GetCSPMAwsAccountScriptsAttachmentParams) bindParamIds(formats strfmt.Registry) []string {
idsIR := o.Ids
diff --git a/falcon/client/custom_ioa/create_rule_group_mixin0_responses.go b/falcon/client/custom_ioa/create_rule_group_mixin0_responses.go
index 691e8c6a..5017cdc5 100644
--- a/falcon/client/custom_ioa/create_rule_group_mixin0_responses.go
+++ b/falcon/client/custom_ioa/create_rule_group_mixin0_responses.go
@@ -49,6 +49,12 @@ func (o *CreateRuleGroupMixin0Reader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewCreateRuleGroupMixin0InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /ioarules/entities/rule-groups/v1] create-rule-groupMixin0", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *CreateRuleGroupMixin0TooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewCreateRuleGroupMixin0InternalServerError creates a CreateRuleGroupMixin0InternalServerError with default headers values
+func NewCreateRuleGroupMixin0InternalServerError() *CreateRuleGroupMixin0InternalServerError {
+ return &CreateRuleGroupMixin0InternalServerError{}
+}
+
+/*
+CreateRuleGroupMixin0InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CreateRuleGroupMixin0InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create rule group mixin0 internal server error response has a 2xx status code
+func (o *CreateRuleGroupMixin0InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create rule group mixin0 internal server error response has a 3xx status code
+func (o *CreateRuleGroupMixin0InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create rule group mixin0 internal server error response has a 4xx status code
+func (o *CreateRuleGroupMixin0InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create rule group mixin0 internal server error response has a 5xx status code
+func (o *CreateRuleGroupMixin0InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create rule group mixin0 internal server error response a status code equal to that given
+func (o *CreateRuleGroupMixin0InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create rule group mixin0 internal server error response
+func (o *CreateRuleGroupMixin0InternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateRuleGroupMixin0InternalServerError) Error() string {
+ return fmt.Sprintf("[POST /ioarules/entities/rule-groups/v1][%d] createRuleGroupMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateRuleGroupMixin0InternalServerError) String() string {
+ return fmt.Sprintf("[POST /ioarules/entities/rule-groups/v1][%d] createRuleGroupMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateRuleGroupMixin0InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateRuleGroupMixin0InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/create_rule_responses.go b/falcon/client/custom_ioa/create_rule_responses.go
index f7a301c6..b73a46b7 100644
--- a/falcon/client/custom_ioa/create_rule_responses.go
+++ b/falcon/client/custom_ioa/create_rule_responses.go
@@ -49,6 +49,12 @@ func (o *CreateRuleReader) ReadResponse(response runtime.ClientResponse, consume
return nil, err
}
return nil, result
+ case 500:
+ result := NewCreateRuleInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /ioarules/entities/rules/v1] create-rule", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *CreateRuleTooManyRequests) readResponse(response runtime.ClientResponse
return nil
}
+
+// NewCreateRuleInternalServerError creates a CreateRuleInternalServerError with default headers values
+func NewCreateRuleInternalServerError() *CreateRuleInternalServerError {
+ return &CreateRuleInternalServerError{}
+}
+
+/*
+CreateRuleInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CreateRuleInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create rule internal server error response has a 2xx status code
+func (o *CreateRuleInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create rule internal server error response has a 3xx status code
+func (o *CreateRuleInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create rule internal server error response has a 4xx status code
+func (o *CreateRuleInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create rule internal server error response has a 5xx status code
+func (o *CreateRuleInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create rule internal server error response a status code equal to that given
+func (o *CreateRuleInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create rule internal server error response
+func (o *CreateRuleInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateRuleInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /ioarules/entities/rules/v1][%d] createRuleInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateRuleInternalServerError) String() string {
+ return fmt.Sprintf("[POST /ioarules/entities/rules/v1][%d] createRuleInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateRuleInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateRuleInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/delete_rule_groups_mixin0_responses.go b/falcon/client/custom_ioa/delete_rule_groups_mixin0_responses.go
index cfb43161..822ba4ef 100644
--- a/falcon/client/custom_ioa/delete_rule_groups_mixin0_responses.go
+++ b/falcon/client/custom_ioa/delete_rule_groups_mixin0_responses.go
@@ -49,6 +49,12 @@ func (o *DeleteRuleGroupsMixin0Reader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteRuleGroupsMixin0InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /ioarules/entities/rule-groups/v1] delete-rule-groupsMixin0", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *DeleteRuleGroupsMixin0TooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewDeleteRuleGroupsMixin0InternalServerError creates a DeleteRuleGroupsMixin0InternalServerError with default headers values
+func NewDeleteRuleGroupsMixin0InternalServerError() *DeleteRuleGroupsMixin0InternalServerError {
+ return &DeleteRuleGroupsMixin0InternalServerError{}
+}
+
+/*
+DeleteRuleGroupsMixin0InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteRuleGroupsMixin0InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete rule groups mixin0 internal server error response has a 2xx status code
+func (o *DeleteRuleGroupsMixin0InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete rule groups mixin0 internal server error response has a 3xx status code
+func (o *DeleteRuleGroupsMixin0InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete rule groups mixin0 internal server error response has a 4xx status code
+func (o *DeleteRuleGroupsMixin0InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete rule groups mixin0 internal server error response has a 5xx status code
+func (o *DeleteRuleGroupsMixin0InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete rule groups mixin0 internal server error response a status code equal to that given
+func (o *DeleteRuleGroupsMixin0InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete rule groups mixin0 internal server error response
+func (o *DeleteRuleGroupsMixin0InternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteRuleGroupsMixin0InternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /ioarules/entities/rule-groups/v1][%d] deleteRuleGroupsMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteRuleGroupsMixin0InternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /ioarules/entities/rule-groups/v1][%d] deleteRuleGroupsMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteRuleGroupsMixin0InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteRuleGroupsMixin0InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/delete_rules_responses.go b/falcon/client/custom_ioa/delete_rules_responses.go
index b4d548d0..c5fb904a 100644
--- a/falcon/client/custom_ioa/delete_rules_responses.go
+++ b/falcon/client/custom_ioa/delete_rules_responses.go
@@ -49,6 +49,12 @@ func (o *DeleteRulesReader) ReadResponse(response runtime.ClientResponse, consum
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteRulesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /ioarules/entities/rules/v1] delete-rules", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *DeleteRulesTooManyRequests) readResponse(response runtime.ClientRespons
return nil
}
+
+// NewDeleteRulesInternalServerError creates a DeleteRulesInternalServerError with default headers values
+func NewDeleteRulesInternalServerError() *DeleteRulesInternalServerError {
+ return &DeleteRulesInternalServerError{}
+}
+
+/*
+DeleteRulesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteRulesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete rules internal server error response has a 2xx status code
+func (o *DeleteRulesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete rules internal server error response has a 3xx status code
+func (o *DeleteRulesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete rules internal server error response has a 4xx status code
+func (o *DeleteRulesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete rules internal server error response has a 5xx status code
+func (o *DeleteRulesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete rules internal server error response a status code equal to that given
+func (o *DeleteRulesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete rules internal server error response
+func (o *DeleteRulesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteRulesInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /ioarules/entities/rules/v1][%d] deleteRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteRulesInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /ioarules/entities/rules/v1][%d] deleteRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteRulesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteRulesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/get_patterns_responses.go b/falcon/client/custom_ioa/get_patterns_responses.go
index 7871ea22..ba8563e1 100644
--- a/falcon/client/custom_ioa/get_patterns_responses.go
+++ b/falcon/client/custom_ioa/get_patterns_responses.go
@@ -43,6 +43,12 @@ func (o *GetPatternsReader) ReadResponse(response runtime.ClientResponse, consum
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetPatternsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/entities/pattern-severities/v1] get-patterns", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetPatternsTooManyRequests) readResponse(response runtime.ClientRespons
return nil
}
+
+// NewGetPatternsInternalServerError creates a GetPatternsInternalServerError with default headers values
+func NewGetPatternsInternalServerError() *GetPatternsInternalServerError {
+ return &GetPatternsInternalServerError{}
+}
+
+/*
+GetPatternsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetPatternsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get patterns internal server error response has a 2xx status code
+func (o *GetPatternsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get patterns internal server error response has a 3xx status code
+func (o *GetPatternsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get patterns internal server error response has a 4xx status code
+func (o *GetPatternsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get patterns internal server error response has a 5xx status code
+func (o *GetPatternsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get patterns internal server error response a status code equal to that given
+func (o *GetPatternsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get patterns internal server error response
+func (o *GetPatternsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetPatternsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/entities/pattern-severities/v1][%d] getPatternsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetPatternsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/entities/pattern-severities/v1][%d] getPatternsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetPatternsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetPatternsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/get_platforms_mixin0_responses.go b/falcon/client/custom_ioa/get_platforms_mixin0_responses.go
index ee76626b..c1ce1153 100644
--- a/falcon/client/custom_ioa/get_platforms_mixin0_responses.go
+++ b/falcon/client/custom_ioa/get_platforms_mixin0_responses.go
@@ -43,6 +43,12 @@ func (o *GetPlatformsMixin0Reader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetPlatformsMixin0InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/entities/platforms/v1] get-platformsMixin0", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetPlatformsMixin0TooManyRequests) readResponse(response runtime.Client
return nil
}
+
+// NewGetPlatformsMixin0InternalServerError creates a GetPlatformsMixin0InternalServerError with default headers values
+func NewGetPlatformsMixin0InternalServerError() *GetPlatformsMixin0InternalServerError {
+ return &GetPlatformsMixin0InternalServerError{}
+}
+
+/*
+GetPlatformsMixin0InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetPlatformsMixin0InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get platforms mixin0 internal server error response has a 2xx status code
+func (o *GetPlatformsMixin0InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get platforms mixin0 internal server error response has a 3xx status code
+func (o *GetPlatformsMixin0InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get platforms mixin0 internal server error response has a 4xx status code
+func (o *GetPlatformsMixin0InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get platforms mixin0 internal server error response has a 5xx status code
+func (o *GetPlatformsMixin0InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get platforms mixin0 internal server error response a status code equal to that given
+func (o *GetPlatformsMixin0InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get platforms mixin0 internal server error response
+func (o *GetPlatformsMixin0InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetPlatformsMixin0InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/entities/platforms/v1][%d] getPlatformsMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetPlatformsMixin0InternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/entities/platforms/v1][%d] getPlatformsMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetPlatformsMixin0InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetPlatformsMixin0InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/get_rule_groups_mixin0_responses.go b/falcon/client/custom_ioa/get_rule_groups_mixin0_responses.go
index ecf595b7..2fffffa1 100644
--- a/falcon/client/custom_ioa/get_rule_groups_mixin0_responses.go
+++ b/falcon/client/custom_ioa/get_rule_groups_mixin0_responses.go
@@ -49,6 +49,12 @@ func (o *GetRuleGroupsMixin0Reader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetRuleGroupsMixin0InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/entities/rule-groups/v1] get-rule-groupsMixin0", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetRuleGroupsMixin0TooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewGetRuleGroupsMixin0InternalServerError creates a GetRuleGroupsMixin0InternalServerError with default headers values
+func NewGetRuleGroupsMixin0InternalServerError() *GetRuleGroupsMixin0InternalServerError {
+ return &GetRuleGroupsMixin0InternalServerError{}
+}
+
+/*
+GetRuleGroupsMixin0InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetRuleGroupsMixin0InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get rule groups mixin0 internal server error response has a 2xx status code
+func (o *GetRuleGroupsMixin0InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get rule groups mixin0 internal server error response has a 3xx status code
+func (o *GetRuleGroupsMixin0InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get rule groups mixin0 internal server error response has a 4xx status code
+func (o *GetRuleGroupsMixin0InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get rule groups mixin0 internal server error response has a 5xx status code
+func (o *GetRuleGroupsMixin0InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get rule groups mixin0 internal server error response a status code equal to that given
+func (o *GetRuleGroupsMixin0InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get rule groups mixin0 internal server error response
+func (o *GetRuleGroupsMixin0InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetRuleGroupsMixin0InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/entities/rule-groups/v1][%d] getRuleGroupsMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRuleGroupsMixin0InternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/entities/rule-groups/v1][%d] getRuleGroupsMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRuleGroupsMixin0InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetRuleGroupsMixin0InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/get_rule_types_responses.go b/falcon/client/custom_ioa/get_rule_types_responses.go
index c9f3112e..97e3f8a6 100644
--- a/falcon/client/custom_ioa/get_rule_types_responses.go
+++ b/falcon/client/custom_ioa/get_rule_types_responses.go
@@ -49,6 +49,12 @@ func (o *GetRuleTypesReader) ReadResponse(response runtime.ClientResponse, consu
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetRuleTypesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/entities/rule-types/v1] get-rule-types", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetRuleTypesTooManyRequests) readResponse(response runtime.ClientRespon
return nil
}
+
+// NewGetRuleTypesInternalServerError creates a GetRuleTypesInternalServerError with default headers values
+func NewGetRuleTypesInternalServerError() *GetRuleTypesInternalServerError {
+ return &GetRuleTypesInternalServerError{}
+}
+
+/*
+GetRuleTypesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetRuleTypesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get rule types internal server error response has a 2xx status code
+func (o *GetRuleTypesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get rule types internal server error response has a 3xx status code
+func (o *GetRuleTypesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get rule types internal server error response has a 4xx status code
+func (o *GetRuleTypesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get rule types internal server error response has a 5xx status code
+func (o *GetRuleTypesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get rule types internal server error response a status code equal to that given
+func (o *GetRuleTypesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get rule types internal server error response
+func (o *GetRuleTypesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetRuleTypesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/entities/rule-types/v1][%d] getRuleTypesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRuleTypesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/entities/rule-types/v1][%d] getRuleTypesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRuleTypesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetRuleTypesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/get_rules_get_responses.go b/falcon/client/custom_ioa/get_rules_get_responses.go
index fb6c6019..3d32c70c 100644
--- a/falcon/client/custom_ioa/get_rules_get_responses.go
+++ b/falcon/client/custom_ioa/get_rules_get_responses.go
@@ -49,6 +49,12 @@ func (o *GetRulesGetReader) ReadResponse(response runtime.ClientResponse, consum
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetRulesGetInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /ioarules/entities/rules/GET/v1] get-rules-get", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetRulesGetTooManyRequests) readResponse(response runtime.ClientRespons
return nil
}
+
+// NewGetRulesGetInternalServerError creates a GetRulesGetInternalServerError with default headers values
+func NewGetRulesGetInternalServerError() *GetRulesGetInternalServerError {
+ return &GetRulesGetInternalServerError{}
+}
+
+/*
+GetRulesGetInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetRulesGetInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get rules get internal server error response has a 2xx status code
+func (o *GetRulesGetInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get rules get internal server error response has a 3xx status code
+func (o *GetRulesGetInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get rules get internal server error response has a 4xx status code
+func (o *GetRulesGetInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get rules get internal server error response has a 5xx status code
+func (o *GetRulesGetInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get rules get internal server error response a status code equal to that given
+func (o *GetRulesGetInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get rules get internal server error response
+func (o *GetRulesGetInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetRulesGetInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /ioarules/entities/rules/GET/v1][%d] getRulesGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRulesGetInternalServerError) String() string {
+ return fmt.Sprintf("[POST /ioarules/entities/rules/GET/v1][%d] getRulesGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRulesGetInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetRulesGetInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/get_rules_mixin0_responses.go b/falcon/client/custom_ioa/get_rules_mixin0_responses.go
index fcad1284..5fdde671 100644
--- a/falcon/client/custom_ioa/get_rules_mixin0_responses.go
+++ b/falcon/client/custom_ioa/get_rules_mixin0_responses.go
@@ -49,6 +49,12 @@ func (o *GetRulesMixin0Reader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetRulesMixin0InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/entities/rules/v1] get-rulesMixin0", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetRulesMixin0TooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewGetRulesMixin0InternalServerError creates a GetRulesMixin0InternalServerError with default headers values
+func NewGetRulesMixin0InternalServerError() *GetRulesMixin0InternalServerError {
+ return &GetRulesMixin0InternalServerError{}
+}
+
+/*
+GetRulesMixin0InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetRulesMixin0InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get rules mixin0 internal server error response has a 2xx status code
+func (o *GetRulesMixin0InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get rules mixin0 internal server error response has a 3xx status code
+func (o *GetRulesMixin0InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get rules mixin0 internal server error response has a 4xx status code
+func (o *GetRulesMixin0InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get rules mixin0 internal server error response has a 5xx status code
+func (o *GetRulesMixin0InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get rules mixin0 internal server error response a status code equal to that given
+func (o *GetRulesMixin0InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get rules mixin0 internal server error response
+func (o *GetRulesMixin0InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetRulesMixin0InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/entities/rules/v1][%d] getRulesMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRulesMixin0InternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/entities/rules/v1][%d] getRulesMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRulesMixin0InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetRulesMixin0InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/query_patterns_responses.go b/falcon/client/custom_ioa/query_patterns_responses.go
index dcda7e42..ad8dd11e 100644
--- a/falcon/client/custom_ioa/query_patterns_responses.go
+++ b/falcon/client/custom_ioa/query_patterns_responses.go
@@ -43,6 +43,12 @@ func (o *QueryPatternsReader) ReadResponse(response runtime.ClientResponse, cons
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryPatternsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/queries/pattern-severities/v1] query-patterns", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryPatternsTooManyRequests) readResponse(response runtime.ClientRespo
return nil
}
+
+// NewQueryPatternsInternalServerError creates a QueryPatternsInternalServerError with default headers values
+func NewQueryPatternsInternalServerError() *QueryPatternsInternalServerError {
+ return &QueryPatternsInternalServerError{}
+}
+
+/*
+QueryPatternsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryPatternsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query patterns internal server error response has a 2xx status code
+func (o *QueryPatternsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query patterns internal server error response has a 3xx status code
+func (o *QueryPatternsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query patterns internal server error response has a 4xx status code
+func (o *QueryPatternsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query patterns internal server error response has a 5xx status code
+func (o *QueryPatternsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query patterns internal server error response a status code equal to that given
+func (o *QueryPatternsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query patterns internal server error response
+func (o *QueryPatternsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryPatternsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/queries/pattern-severities/v1][%d] queryPatternsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryPatternsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/queries/pattern-severities/v1][%d] queryPatternsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryPatternsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryPatternsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/query_platforms_mixin0_responses.go b/falcon/client/custom_ioa/query_platforms_mixin0_responses.go
index 9c1576b1..49082b58 100644
--- a/falcon/client/custom_ioa/query_platforms_mixin0_responses.go
+++ b/falcon/client/custom_ioa/query_platforms_mixin0_responses.go
@@ -43,6 +43,12 @@ func (o *QueryPlatformsMixin0Reader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryPlatformsMixin0InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/queries/platforms/v1] query-platformsMixin0", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryPlatformsMixin0TooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewQueryPlatformsMixin0InternalServerError creates a QueryPlatformsMixin0InternalServerError with default headers values
+func NewQueryPlatformsMixin0InternalServerError() *QueryPlatformsMixin0InternalServerError {
+ return &QueryPlatformsMixin0InternalServerError{}
+}
+
+/*
+QueryPlatformsMixin0InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryPlatformsMixin0InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query platforms mixin0 internal server error response has a 2xx status code
+func (o *QueryPlatformsMixin0InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query platforms mixin0 internal server error response has a 3xx status code
+func (o *QueryPlatformsMixin0InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query platforms mixin0 internal server error response has a 4xx status code
+func (o *QueryPlatformsMixin0InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query platforms mixin0 internal server error response has a 5xx status code
+func (o *QueryPlatformsMixin0InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query platforms mixin0 internal server error response a status code equal to that given
+func (o *QueryPlatformsMixin0InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query platforms mixin0 internal server error response
+func (o *QueryPlatformsMixin0InternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryPlatformsMixin0InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/queries/platforms/v1][%d] queryPlatformsMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryPlatformsMixin0InternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/queries/platforms/v1][%d] queryPlatformsMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryPlatformsMixin0InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryPlatformsMixin0InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/query_rule_groups_full_parameters.go b/falcon/client/custom_ioa/query_rule_groups_full_parameters.go
index 6d8f7ee8..7041aeb3 100644
--- a/falcon/client/custom_ioa/query_rule_groups_full_parameters.go
+++ b/falcon/client/custom_ioa/query_rule_groups_full_parameters.go
@@ -88,7 +88,7 @@ type QueryRuleGroupsFullParams struct {
/* Sort.
- Possible order by fields: {created_on, modified_by, modified_on, enabled, name, created_by}
+ Possible order by fields: {created_by, created_on, enabled, modified_by, modified_on, name}
*/
Sort *string
diff --git a/falcon/client/custom_ioa/query_rule_groups_full_responses.go b/falcon/client/custom_ioa/query_rule_groups_full_responses.go
index 346a62e5..301c1ac2 100644
--- a/falcon/client/custom_ioa/query_rule_groups_full_responses.go
+++ b/falcon/client/custom_ioa/query_rule_groups_full_responses.go
@@ -49,6 +49,12 @@ func (o *QueryRuleGroupsFullReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryRuleGroupsFullInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/queries/rule-groups-full/v1] query-rule-groups-full", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryRuleGroupsFullTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewQueryRuleGroupsFullInternalServerError creates a QueryRuleGroupsFullInternalServerError with default headers values
+func NewQueryRuleGroupsFullInternalServerError() *QueryRuleGroupsFullInternalServerError {
+ return &QueryRuleGroupsFullInternalServerError{}
+}
+
+/*
+QueryRuleGroupsFullInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryRuleGroupsFullInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query rule groups full internal server error response has a 2xx status code
+func (o *QueryRuleGroupsFullInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query rule groups full internal server error response has a 3xx status code
+func (o *QueryRuleGroupsFullInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query rule groups full internal server error response has a 4xx status code
+func (o *QueryRuleGroupsFullInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query rule groups full internal server error response has a 5xx status code
+func (o *QueryRuleGroupsFullInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query rule groups full internal server error response a status code equal to that given
+func (o *QueryRuleGroupsFullInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query rule groups full internal server error response
+func (o *QueryRuleGroupsFullInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryRuleGroupsFullInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/queries/rule-groups-full/v1][%d] queryRuleGroupsFullInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRuleGroupsFullInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/queries/rule-groups-full/v1][%d] queryRuleGroupsFullInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRuleGroupsFullInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryRuleGroupsFullInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/query_rule_groups_mixin0_parameters.go b/falcon/client/custom_ioa/query_rule_groups_mixin0_parameters.go
index ad52d859..4f261f4c 100644
--- a/falcon/client/custom_ioa/query_rule_groups_mixin0_parameters.go
+++ b/falcon/client/custom_ioa/query_rule_groups_mixin0_parameters.go
@@ -88,7 +88,7 @@ type QueryRuleGroupsMixin0Params struct {
/* Sort.
- Possible order by fields: {created_on, modified_by, modified_on, enabled, name, created_by}
+ Possible order by fields: {created_by, created_on, enabled, modified_by, modified_on, name}
*/
Sort *string
diff --git a/falcon/client/custom_ioa/query_rule_groups_mixin0_responses.go b/falcon/client/custom_ioa/query_rule_groups_mixin0_responses.go
index 56fc0f3a..aa861e07 100644
--- a/falcon/client/custom_ioa/query_rule_groups_mixin0_responses.go
+++ b/falcon/client/custom_ioa/query_rule_groups_mixin0_responses.go
@@ -49,6 +49,12 @@ func (o *QueryRuleGroupsMixin0Reader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryRuleGroupsMixin0InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/queries/rule-groups/v1] query-rule-groupsMixin0", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryRuleGroupsMixin0TooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewQueryRuleGroupsMixin0InternalServerError creates a QueryRuleGroupsMixin0InternalServerError with default headers values
+func NewQueryRuleGroupsMixin0InternalServerError() *QueryRuleGroupsMixin0InternalServerError {
+ return &QueryRuleGroupsMixin0InternalServerError{}
+}
+
+/*
+QueryRuleGroupsMixin0InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryRuleGroupsMixin0InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query rule groups mixin0 internal server error response has a 2xx status code
+func (o *QueryRuleGroupsMixin0InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query rule groups mixin0 internal server error response has a 3xx status code
+func (o *QueryRuleGroupsMixin0InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query rule groups mixin0 internal server error response has a 4xx status code
+func (o *QueryRuleGroupsMixin0InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query rule groups mixin0 internal server error response has a 5xx status code
+func (o *QueryRuleGroupsMixin0InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query rule groups mixin0 internal server error response a status code equal to that given
+func (o *QueryRuleGroupsMixin0InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query rule groups mixin0 internal server error response
+func (o *QueryRuleGroupsMixin0InternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryRuleGroupsMixin0InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/queries/rule-groups/v1][%d] queryRuleGroupsMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRuleGroupsMixin0InternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/queries/rule-groups/v1][%d] queryRuleGroupsMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRuleGroupsMixin0InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryRuleGroupsMixin0InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/query_rule_types_responses.go b/falcon/client/custom_ioa/query_rule_types_responses.go
index 93ff34db..8e3a95c1 100644
--- a/falcon/client/custom_ioa/query_rule_types_responses.go
+++ b/falcon/client/custom_ioa/query_rule_types_responses.go
@@ -43,6 +43,12 @@ func (o *QueryRuleTypesReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryRuleTypesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/queries/rule-types/v1] query-rule-types", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryRuleTypesTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewQueryRuleTypesInternalServerError creates a QueryRuleTypesInternalServerError with default headers values
+func NewQueryRuleTypesInternalServerError() *QueryRuleTypesInternalServerError {
+ return &QueryRuleTypesInternalServerError{}
+}
+
+/*
+QueryRuleTypesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryRuleTypesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query rule types internal server error response has a 2xx status code
+func (o *QueryRuleTypesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query rule types internal server error response has a 3xx status code
+func (o *QueryRuleTypesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query rule types internal server error response has a 4xx status code
+func (o *QueryRuleTypesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query rule types internal server error response has a 5xx status code
+func (o *QueryRuleTypesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query rule types internal server error response a status code equal to that given
+func (o *QueryRuleTypesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query rule types internal server error response
+func (o *QueryRuleTypesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryRuleTypesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/queries/rule-types/v1][%d] queryRuleTypesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRuleTypesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/queries/rule-types/v1][%d] queryRuleTypesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRuleTypesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryRuleTypesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/query_rules_mixin0_parameters.go b/falcon/client/custom_ioa/query_rules_mixin0_parameters.go
index 95e186c6..3c94f276 100644
--- a/falcon/client/custom_ioa/query_rules_mixin0_parameters.go
+++ b/falcon/client/custom_ioa/query_rules_mixin0_parameters.go
@@ -88,7 +88,7 @@ type QueryRulesMixin0Params struct {
/* Sort.
- Possible order by fields: {rules.enabled, rules.created_by, rules.current_version.pattern_severity, rules.current_version.modified_by, rules.current_version.action_label, rules.current_version.modified_on, rules.ruletype_name, rules.created_on, rules.current_version.name, rules.current_version.description}
+ Possible order by fields: {rules.created_by, rules.created_on, rules.current_version.action_label, rules.current_version.description, rules.current_version.modified_by, rules.current_version.modified_on, rules.current_version.name, rules.current_version.pattern_severity, rules.enabled, rules.ruletype_name}
*/
Sort *string
diff --git a/falcon/client/custom_ioa/query_rules_mixin0_responses.go b/falcon/client/custom_ioa/query_rules_mixin0_responses.go
index 3e3b38ba..af8e7c4f 100644
--- a/falcon/client/custom_ioa/query_rules_mixin0_responses.go
+++ b/falcon/client/custom_ioa/query_rules_mixin0_responses.go
@@ -49,6 +49,12 @@ func (o *QueryRulesMixin0Reader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryRulesMixin0InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ioarules/queries/rules/v1] query-rulesMixin0", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryRulesMixin0TooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewQueryRulesMixin0InternalServerError creates a QueryRulesMixin0InternalServerError with default headers values
+func NewQueryRulesMixin0InternalServerError() *QueryRulesMixin0InternalServerError {
+ return &QueryRulesMixin0InternalServerError{}
+}
+
+/*
+QueryRulesMixin0InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryRulesMixin0InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query rules mixin0 internal server error response has a 2xx status code
+func (o *QueryRulesMixin0InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query rules mixin0 internal server error response has a 3xx status code
+func (o *QueryRulesMixin0InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query rules mixin0 internal server error response has a 4xx status code
+func (o *QueryRulesMixin0InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query rules mixin0 internal server error response has a 5xx status code
+func (o *QueryRulesMixin0InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query rules mixin0 internal server error response a status code equal to that given
+func (o *QueryRulesMixin0InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query rules mixin0 internal server error response
+func (o *QueryRulesMixin0InternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryRulesMixin0InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ioarules/queries/rules/v1][%d] queryRulesMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRulesMixin0InternalServerError) String() string {
+ return fmt.Sprintf("[GET /ioarules/queries/rules/v1][%d] queryRulesMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRulesMixin0InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryRulesMixin0InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/update_rule_group_mixin0_responses.go b/falcon/client/custom_ioa/update_rule_group_mixin0_responses.go
index 9eaf808c..cc179f85 100644
--- a/falcon/client/custom_ioa/update_rule_group_mixin0_responses.go
+++ b/falcon/client/custom_ioa/update_rule_group_mixin0_responses.go
@@ -49,6 +49,12 @@ func (o *UpdateRuleGroupMixin0Reader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateRuleGroupMixin0InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /ioarules/entities/rule-groups/v1] update-rule-groupMixin0", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *UpdateRuleGroupMixin0TooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewUpdateRuleGroupMixin0InternalServerError creates a UpdateRuleGroupMixin0InternalServerError with default headers values
+func NewUpdateRuleGroupMixin0InternalServerError() *UpdateRuleGroupMixin0InternalServerError {
+ return &UpdateRuleGroupMixin0InternalServerError{}
+}
+
+/*
+UpdateRuleGroupMixin0InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateRuleGroupMixin0InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update rule group mixin0 internal server error response has a 2xx status code
+func (o *UpdateRuleGroupMixin0InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update rule group mixin0 internal server error response has a 3xx status code
+func (o *UpdateRuleGroupMixin0InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update rule group mixin0 internal server error response has a 4xx status code
+func (o *UpdateRuleGroupMixin0InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update rule group mixin0 internal server error response has a 5xx status code
+func (o *UpdateRuleGroupMixin0InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update rule group mixin0 internal server error response a status code equal to that given
+func (o *UpdateRuleGroupMixin0InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update rule group mixin0 internal server error response
+func (o *UpdateRuleGroupMixin0InternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateRuleGroupMixin0InternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /ioarules/entities/rule-groups/v1][%d] updateRuleGroupMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateRuleGroupMixin0InternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /ioarules/entities/rule-groups/v1][%d] updateRuleGroupMixin0InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateRuleGroupMixin0InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateRuleGroupMixin0InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/update_rules_responses.go b/falcon/client/custom_ioa/update_rules_responses.go
index de71258c..86f54901 100644
--- a/falcon/client/custom_ioa/update_rules_responses.go
+++ b/falcon/client/custom_ioa/update_rules_responses.go
@@ -49,6 +49,12 @@ func (o *UpdateRulesReader) ReadResponse(response runtime.ClientResponse, consum
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateRulesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /ioarules/entities/rules/v1] update-rules", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *UpdateRulesTooManyRequests) readResponse(response runtime.ClientRespons
return nil
}
+
+// NewUpdateRulesInternalServerError creates a UpdateRulesInternalServerError with default headers values
+func NewUpdateRulesInternalServerError() *UpdateRulesInternalServerError {
+ return &UpdateRulesInternalServerError{}
+}
+
+/*
+UpdateRulesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateRulesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update rules internal server error response has a 2xx status code
+func (o *UpdateRulesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update rules internal server error response has a 3xx status code
+func (o *UpdateRulesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update rules internal server error response has a 4xx status code
+func (o *UpdateRulesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update rules internal server error response has a 5xx status code
+func (o *UpdateRulesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update rules internal server error response a status code equal to that given
+func (o *UpdateRulesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update rules internal server error response
+func (o *UpdateRulesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateRulesInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /ioarules/entities/rules/v1][%d] updateRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateRulesInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /ioarules/entities/rules/v1][%d] updateRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateRulesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateRulesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/update_rules_v2_responses.go b/falcon/client/custom_ioa/update_rules_v2_responses.go
index aa931b73..8a070c5a 100644
--- a/falcon/client/custom_ioa/update_rules_v2_responses.go
+++ b/falcon/client/custom_ioa/update_rules_v2_responses.go
@@ -49,6 +49,12 @@ func (o *UpdateRulesV2Reader) ReadResponse(response runtime.ClientResponse, cons
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateRulesV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /ioarules/entities/rules/v2] update-rules-v2", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *UpdateRulesV2TooManyRequests) readResponse(response runtime.ClientRespo
return nil
}
+
+// NewUpdateRulesV2InternalServerError creates a UpdateRulesV2InternalServerError with default headers values
+func NewUpdateRulesV2InternalServerError() *UpdateRulesV2InternalServerError {
+ return &UpdateRulesV2InternalServerError{}
+}
+
+/*
+UpdateRulesV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateRulesV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update rules v2 internal server error response has a 2xx status code
+func (o *UpdateRulesV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update rules v2 internal server error response has a 3xx status code
+func (o *UpdateRulesV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update rules v2 internal server error response has a 4xx status code
+func (o *UpdateRulesV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update rules v2 internal server error response has a 5xx status code
+func (o *UpdateRulesV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update rules v2 internal server error response a status code equal to that given
+func (o *UpdateRulesV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update rules v2 internal server error response
+func (o *UpdateRulesV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateRulesV2InternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /ioarules/entities/rules/v2][%d] updateRulesV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateRulesV2InternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /ioarules/entities/rules/v2][%d] updateRulesV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateRulesV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateRulesV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_ioa/validate_responses.go b/falcon/client/custom_ioa/validate_responses.go
index 534e76ad..f80d78d0 100644
--- a/falcon/client/custom_ioa/validate_responses.go
+++ b/falcon/client/custom_ioa/validate_responses.go
@@ -43,12 +43,24 @@ func (o *ValidateReader) ReadResponse(response runtime.ClientResponse, consumer
return nil, err
}
return nil, result
+ case 422:
+ result := NewValidateUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
case 429:
result := NewValidateTooManyRequests()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return nil, result
+ case 500:
+ result := NewValidateInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /ioarules/entities/rules/validate/v1] validate", response, response.Code())
}
@@ -384,6 +396,116 @@ func (o *ValidateNotFound) readResponse(response runtime.ClientResponse, consume
return nil
}
+// NewValidateUnprocessableEntity creates a ValidateUnprocessableEntity with default headers values
+func NewValidateUnprocessableEntity() *ValidateUnprocessableEntity {
+ return &ValidateUnprocessableEntity{}
+}
+
+/*
+ValidateUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity
+*/
+type ValidateUnprocessableEntity struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this validate unprocessable entity response has a 2xx status code
+func (o *ValidateUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this validate unprocessable entity response has a 3xx status code
+func (o *ValidateUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this validate unprocessable entity response has a 4xx status code
+func (o *ValidateUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this validate unprocessable entity response has a 5xx status code
+func (o *ValidateUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this validate unprocessable entity response a status code equal to that given
+func (o *ValidateUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the validate unprocessable entity response
+func (o *ValidateUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *ValidateUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /ioarules/entities/rules/validate/v1][%d] validateUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *ValidateUnprocessableEntity) String() string {
+ return fmt.Sprintf("[POST /ioarules/entities/rules/validate/v1][%d] validateUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *ValidateUnprocessableEntity) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *ValidateUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
// NewValidateTooManyRequests creates a ValidateTooManyRequests with default headers values
func NewValidateTooManyRequests() *ValidateTooManyRequests {
return &ValidateTooManyRequests{}
@@ -508,3 +630,113 @@ func (o *ValidateTooManyRequests) readResponse(response runtime.ClientResponse,
return nil
}
+
+// NewValidateInternalServerError creates a ValidateInternalServerError with default headers values
+func NewValidateInternalServerError() *ValidateInternalServerError {
+ return &ValidateInternalServerError{}
+}
+
+/*
+ValidateInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ValidateInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this validate internal server error response has a 2xx status code
+func (o *ValidateInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this validate internal server error response has a 3xx status code
+func (o *ValidateInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this validate internal server error response has a 4xx status code
+func (o *ValidateInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this validate internal server error response has a 5xx status code
+func (o *ValidateInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this validate internal server error response a status code equal to that given
+func (o *ValidateInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the validate internal server error response
+func (o *ValidateInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ValidateInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /ioarules/entities/rules/validate/v1][%d] validateInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ValidateInternalServerError) String() string {
+ return fmt.Sprintf("[POST /ioarules/entities/rules/validate/v1][%d] validateInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ValidateInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ValidateInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/custom_storage_client.go b/falcon/client/custom_storage/custom_storage_client.go
index 1c2a6328..3ff90a7a 100644
--- a/falcon/client/custom_storage/custom_storage_client.go
+++ b/falcon/client/custom_storage/custom_storage_client.go
@@ -31,6 +31,18 @@ type ClientOption func(*runtime.ClientOperation)
// ClientService is the interface for Client methods
type ClientService interface {
+ DeleteVersionedObject(params *DeleteVersionedObjectParams, opts ...ClientOption) (*DeleteVersionedObjectOK, error)
+
+ GetVersionedObject(params *GetVersionedObjectParams, writer io.Writer, opts ...ClientOption) (*GetVersionedObjectOK, error)
+
+ GetVersionedObjectMetadata(params *GetVersionedObjectMetadataParams, opts ...ClientOption) (*GetVersionedObjectMetadataOK, error)
+
+ ListObjectsByVersion(params *ListObjectsByVersionParams, opts ...ClientOption) (*ListObjectsByVersionOK, error)
+
+ PutObjectByVersion(params *PutObjectByVersionParams, opts ...ClientOption) (*PutObjectByVersionOK, error)
+
+ SearchObjectsByVersion(params *SearchObjectsByVersionParams, opts ...ClientOption) (*SearchObjectsByVersionOK, error)
+
Delete(params *DeleteParams, opts ...ClientOption) (*DeleteOK, error)
Get(params *GetParams, writer io.Writer, opts ...ClientOption) (*GetOK, error)
@@ -46,6 +58,234 @@ type ClientService interface {
SetTransport(transport runtime.ClientTransport)
}
+/*
+DeleteVersionedObject deletes the specified versioned object
+*/
+func (a *Client) DeleteVersionedObject(params *DeleteVersionedObjectParams, opts ...ClientOption) (*DeleteVersionedObjectOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDeleteVersionedObjectParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "DeleteVersionedObject",
+ Method: "DELETE",
+ PathPattern: "/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DeleteVersionedObjectReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DeleteVersionedObjectOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for DeleteVersionedObject: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetVersionedObject gets the bytes for the specified object
+*/
+func (a *Client) GetVersionedObject(params *GetVersionedObjectParams, writer io.Writer, opts ...ClientOption) (*GetVersionedObjectOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetVersionedObjectParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetVersionedObject",
+ Method: "GET",
+ PathPattern: "/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}",
+ ProducesMediaTypes: []string{"application/json", "application/octet-stream"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetVersionedObjectReader{formats: a.formats, writer: writer},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetVersionedObjectOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetVersionedObject: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetVersionedObjectMetadata gets the metadata for the specified object
+*/
+func (a *Client) GetVersionedObjectMetadata(params *GetVersionedObjectMetadataParams, opts ...ClientOption) (*GetVersionedObjectMetadataOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetVersionedObjectMetadataParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetVersionedObjectMetadata",
+ Method: "GET",
+ PathPattern: "/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetVersionedObjectMetadataReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetVersionedObjectMetadataOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetVersionedObjectMetadata: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ListObjectsByVersion lists the object keys in the specified collection in alphabetical order
+*/
+func (a *Client) ListObjectsByVersion(params *ListObjectsByVersionParams, opts ...ClientOption) (*ListObjectsByVersionOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewListObjectsByVersionParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "ListObjectsByVersion",
+ Method: "GET",
+ PathPattern: "/customobjects/v1/collections/{collection_name}/{collection_version}/objects",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &ListObjectsByVersionReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*ListObjectsByVersionOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for ListObjectsByVersion: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+PutObjectByVersion puts the specified new object at the given key or overwrite an existing object at the given key
+*/
+func (a *Client) PutObjectByVersion(params *PutObjectByVersionParams, opts ...ClientOption) (*PutObjectByVersionOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewPutObjectByVersionParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "PutObjectByVersion",
+ Method: "PUT",
+ PathPattern: "/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json", "application/octet-stream"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &PutObjectByVersionReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*PutObjectByVersionOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for PutObjectByVersion: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+SearchObjectsByVersion searches for objects that match the specified filter criteria returns metadata not actual objects
+*/
+func (a *Client) SearchObjectsByVersion(params *SearchObjectsByVersionParams, opts ...ClientOption) (*SearchObjectsByVersionOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewSearchObjectsByVersionParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "SearchObjectsByVersion",
+ Method: "POST",
+ PathPattern: "/customobjects/v1/collections/{collection_name}/{collection_version}/objects",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json", "application/octet-stream"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &SearchObjectsByVersionReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*SearchObjectsByVersionOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for SearchObjectsByVersion: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
/*
Delete deletes the specified object
*/
diff --git a/falcon/client/custom_storage/delete_responses.go b/falcon/client/custom_storage/delete_responses.go
index 850679e2..9fe16446 100644
--- a/falcon/client/custom_storage/delete_responses.go
+++ b/falcon/client/custom_storage/delete_responses.go
@@ -43,6 +43,12 @@ func (o *DeleteReader) ReadResponse(response runtime.ClientResponse, consumer ru
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /customobjects/v1/collections/{collection_name}/objects/{object_key}] delete", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *DeleteTooManyRequests) readResponse(response runtime.ClientResponse, co
return nil
}
+
+// NewDeleteInternalServerError creates a DeleteInternalServerError with default headers values
+func NewDeleteInternalServerError() *DeleteInternalServerError {
+ return &DeleteInternalServerError{}
+}
+
+/*
+DeleteInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete internal server error response has a 2xx status code
+func (o *DeleteInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete internal server error response has a 3xx status code
+func (o *DeleteInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete internal server error response has a 4xx status code
+func (o *DeleteInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete internal server error response has a 5xx status code
+func (o *DeleteInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete internal server error response a status code equal to that given
+func (o *DeleteInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete internal server error response
+func (o *DeleteInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /customobjects/v1/collections/{collection_name}/objects/{object_key}][%d] deleteInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /customobjects/v1/collections/{collection_name}/objects/{object_key}][%d] deleteInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/delete_versioned_object_parameters.go b/falcon/client/custom_storage/delete_versioned_object_parameters.go
new file mode 100644
index 00000000..fcef2006
--- /dev/null
+++ b/falcon/client/custom_storage/delete_versioned_object_parameters.go
@@ -0,0 +1,221 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewDeleteVersionedObjectParams creates a new DeleteVersionedObjectParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDeleteVersionedObjectParams() *DeleteVersionedObjectParams {
+ return &DeleteVersionedObjectParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDeleteVersionedObjectParamsWithTimeout creates a new DeleteVersionedObjectParams object
+// with the ability to set a timeout on a request.
+func NewDeleteVersionedObjectParamsWithTimeout(timeout time.Duration) *DeleteVersionedObjectParams {
+ return &DeleteVersionedObjectParams{
+ timeout: timeout,
+ }
+}
+
+// NewDeleteVersionedObjectParamsWithContext creates a new DeleteVersionedObjectParams object
+// with the ability to set a context for a request.
+func NewDeleteVersionedObjectParamsWithContext(ctx context.Context) *DeleteVersionedObjectParams {
+ return &DeleteVersionedObjectParams{
+ Context: ctx,
+ }
+}
+
+// NewDeleteVersionedObjectParamsWithHTTPClient creates a new DeleteVersionedObjectParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDeleteVersionedObjectParamsWithHTTPClient(client *http.Client) *DeleteVersionedObjectParams {
+ return &DeleteVersionedObjectParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DeleteVersionedObjectParams contains all the parameters to send to the API endpoint
+
+ for the delete versioned object operation.
+
+ Typically these are written to a http.Request.
+*/
+type DeleteVersionedObjectParams struct {
+
+ /* CollectionName.
+
+ The name of the collection
+ */
+ CollectionName string
+
+ /* CollectionVersion.
+
+ The version of the collection
+ */
+ CollectionVersion string
+
+ /* DryRun.
+
+ If false, run the operation as normal. If true, validate that the request *would* succeed, but don't execute it.
+ */
+ DryRun bool
+
+ /* ObjectKey.
+
+ The object key
+ */
+ ObjectKey string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the delete versioned object params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteVersionedObjectParams) WithDefaults() *DeleteVersionedObjectParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the delete versioned object params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteVersionedObjectParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the delete versioned object params
+func (o *DeleteVersionedObjectParams) WithTimeout(timeout time.Duration) *DeleteVersionedObjectParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the delete versioned object params
+func (o *DeleteVersionedObjectParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the delete versioned object params
+func (o *DeleteVersionedObjectParams) WithContext(ctx context.Context) *DeleteVersionedObjectParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the delete versioned object params
+func (o *DeleteVersionedObjectParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the delete versioned object params
+func (o *DeleteVersionedObjectParams) WithHTTPClient(client *http.Client) *DeleteVersionedObjectParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the delete versioned object params
+func (o *DeleteVersionedObjectParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithCollectionName adds the collectionName to the delete versioned object params
+func (o *DeleteVersionedObjectParams) WithCollectionName(collectionName string) *DeleteVersionedObjectParams {
+ o.SetCollectionName(collectionName)
+ return o
+}
+
+// SetCollectionName adds the collectionName to the delete versioned object params
+func (o *DeleteVersionedObjectParams) SetCollectionName(collectionName string) {
+ o.CollectionName = collectionName
+}
+
+// WithCollectionVersion adds the collectionVersion to the delete versioned object params
+func (o *DeleteVersionedObjectParams) WithCollectionVersion(collectionVersion string) *DeleteVersionedObjectParams {
+ o.SetCollectionVersion(collectionVersion)
+ return o
+}
+
+// SetCollectionVersion adds the collectionVersion to the delete versioned object params
+func (o *DeleteVersionedObjectParams) SetCollectionVersion(collectionVersion string) {
+ o.CollectionVersion = collectionVersion
+}
+
+// WithDryRun adds the dryRun to the delete versioned object params
+func (o *DeleteVersionedObjectParams) WithDryRun(dryRun bool) *DeleteVersionedObjectParams {
+ o.SetDryRun(dryRun)
+ return o
+}
+
+// SetDryRun adds the dryRun to the delete versioned object params
+func (o *DeleteVersionedObjectParams) SetDryRun(dryRun bool) {
+ o.DryRun = dryRun
+}
+
+// WithObjectKey adds the objectKey to the delete versioned object params
+func (o *DeleteVersionedObjectParams) WithObjectKey(objectKey string) *DeleteVersionedObjectParams {
+ o.SetObjectKey(objectKey)
+ return o
+}
+
+// SetObjectKey adds the objectKey to the delete versioned object params
+func (o *DeleteVersionedObjectParams) SetObjectKey(objectKey string) {
+ o.ObjectKey = objectKey
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DeleteVersionedObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param collection_name
+ if err := r.SetPathParam("collection_name", o.CollectionName); err != nil {
+ return err
+ }
+
+ // path param collection_version
+ if err := r.SetPathParam("collection_version", o.CollectionVersion); err != nil {
+ return err
+ }
+
+ // query param dry_run
+ qrDryRun := o.DryRun
+ qDryRun := swag.FormatBool(qrDryRun)
+
+ if err := r.SetQueryParam("dry_run", qDryRun); err != nil {
+ return err
+ }
+
+ // path param object_key
+ if err := r.SetPathParam("object_key", o.ObjectKey); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/custom_storage/delete_versioned_object_responses.go b/falcon/client/custom_storage/delete_versioned_object_responses.go
new file mode 100644
index 00000000..c41baabb
--- /dev/null
+++ b/falcon/client/custom_storage/delete_versioned_object_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DeleteVersionedObjectReader is a Reader for the DeleteVersionedObject structure.
+type DeleteVersionedObjectReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DeleteVersionedObjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewDeleteVersionedObjectOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewDeleteVersionedObjectForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDeleteVersionedObjectTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDeleteVersionedObjectInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}] DeleteVersionedObject", response, response.Code())
+ }
+}
+
+// NewDeleteVersionedObjectOK creates a DeleteVersionedObjectOK with default headers values
+func NewDeleteVersionedObjectOK() *DeleteVersionedObjectOK {
+ return &DeleteVersionedObjectOK{}
+}
+
+/*
+DeleteVersionedObjectOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type DeleteVersionedObjectOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CustomStorageResponse
+}
+
+// IsSuccess returns true when this delete versioned object o k response has a 2xx status code
+func (o *DeleteVersionedObjectOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this delete versioned object o k response has a 3xx status code
+func (o *DeleteVersionedObjectOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete versioned object o k response has a 4xx status code
+func (o *DeleteVersionedObjectOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete versioned object o k response has a 5xx status code
+func (o *DeleteVersionedObjectOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete versioned object o k response a status code equal to that given
+func (o *DeleteVersionedObjectOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the delete versioned object o k response
+func (o *DeleteVersionedObjectOK) Code() int {
+ return 200
+}
+
+func (o *DeleteVersionedObjectOK) Error() string {
+ return fmt.Sprintf("[DELETE /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] deleteVersionedObjectOK %+v", 200, o.Payload)
+}
+
+func (o *DeleteVersionedObjectOK) String() string {
+ return fmt.Sprintf("[DELETE /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] deleteVersionedObjectOK %+v", 200, o.Payload)
+}
+
+func (o *DeleteVersionedObjectOK) GetPayload() *models.CustomStorageResponse {
+ return o.Payload
+}
+
+func (o *DeleteVersionedObjectOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CustomStorageResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteVersionedObjectForbidden creates a DeleteVersionedObjectForbidden with default headers values
+func NewDeleteVersionedObjectForbidden() *DeleteVersionedObjectForbidden {
+ return &DeleteVersionedObjectForbidden{}
+}
+
+/*
+DeleteVersionedObjectForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DeleteVersionedObjectForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete versioned object forbidden response has a 2xx status code
+func (o *DeleteVersionedObjectForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete versioned object forbidden response has a 3xx status code
+func (o *DeleteVersionedObjectForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete versioned object forbidden response has a 4xx status code
+func (o *DeleteVersionedObjectForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete versioned object forbidden response has a 5xx status code
+func (o *DeleteVersionedObjectForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete versioned object forbidden response a status code equal to that given
+func (o *DeleteVersionedObjectForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the delete versioned object forbidden response
+func (o *DeleteVersionedObjectForbidden) Code() int {
+ return 403
+}
+
+func (o *DeleteVersionedObjectForbidden) Error() string {
+ return fmt.Sprintf("[DELETE /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] deleteVersionedObjectForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteVersionedObjectForbidden) String() string {
+ return fmt.Sprintf("[DELETE /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] deleteVersionedObjectForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteVersionedObjectForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteVersionedObjectForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteVersionedObjectTooManyRequests creates a DeleteVersionedObjectTooManyRequests with default headers values
+func NewDeleteVersionedObjectTooManyRequests() *DeleteVersionedObjectTooManyRequests {
+ return &DeleteVersionedObjectTooManyRequests{}
+}
+
+/*
+DeleteVersionedObjectTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DeleteVersionedObjectTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete versioned object too many requests response has a 2xx status code
+func (o *DeleteVersionedObjectTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete versioned object too many requests response has a 3xx status code
+func (o *DeleteVersionedObjectTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete versioned object too many requests response has a 4xx status code
+func (o *DeleteVersionedObjectTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete versioned object too many requests response has a 5xx status code
+func (o *DeleteVersionedObjectTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete versioned object too many requests response a status code equal to that given
+func (o *DeleteVersionedObjectTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the delete versioned object too many requests response
+func (o *DeleteVersionedObjectTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DeleteVersionedObjectTooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] deleteVersionedObjectTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteVersionedObjectTooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] deleteVersionedObjectTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteVersionedObjectTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteVersionedObjectTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteVersionedObjectInternalServerError creates a DeleteVersionedObjectInternalServerError with default headers values
+func NewDeleteVersionedObjectInternalServerError() *DeleteVersionedObjectInternalServerError {
+ return &DeleteVersionedObjectInternalServerError{}
+}
+
+/*
+DeleteVersionedObjectInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteVersionedObjectInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete versioned object internal server error response has a 2xx status code
+func (o *DeleteVersionedObjectInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete versioned object internal server error response has a 3xx status code
+func (o *DeleteVersionedObjectInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete versioned object internal server error response has a 4xx status code
+func (o *DeleteVersionedObjectInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete versioned object internal server error response has a 5xx status code
+func (o *DeleteVersionedObjectInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete versioned object internal server error response a status code equal to that given
+func (o *DeleteVersionedObjectInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete versioned object internal server error response
+func (o *DeleteVersionedObjectInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteVersionedObjectInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] deleteVersionedObjectInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteVersionedObjectInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] deleteVersionedObjectInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteVersionedObjectInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteVersionedObjectInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/get_responses.go b/falcon/client/custom_storage/get_responses.go
index 87893f63..4b489635 100644
--- a/falcon/client/custom_storage/get_responses.go
+++ b/falcon/client/custom_storage/get_responses.go
@@ -44,6 +44,12 @@ func (o *GetReader) ReadResponse(response runtime.ClientResponse, consumer runti
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /customobjects/v1/collections/{collection_name}/objects/{object_key}] get", response, response.Code())
}
@@ -394,3 +400,113 @@ func (o *GetTooManyRequests) readResponse(response runtime.ClientResponse, consu
return nil
}
+
+// NewGetInternalServerError creates a GetInternalServerError with default headers values
+func NewGetInternalServerError() *GetInternalServerError {
+ return &GetInternalServerError{}
+}
+
+/*
+GetInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get internal server error response has a 2xx status code
+func (o *GetInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get internal server error response has a 3xx status code
+func (o *GetInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get internal server error response has a 4xx status code
+func (o *GetInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get internal server error response has a 5xx status code
+func (o *GetInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get internal server error response a status code equal to that given
+func (o *GetInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get internal server error response
+func (o *GetInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/objects/{object_key}][%d] getInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetInternalServerError) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/objects/{object_key}][%d] getInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/get_versioned_object_metadata_parameters.go b/falcon/client/custom_storage/get_versioned_object_metadata_parameters.go
new file mode 100644
index 00000000..0ccdae5f
--- /dev/null
+++ b/falcon/client/custom_storage/get_versioned_object_metadata_parameters.go
@@ -0,0 +1,195 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetVersionedObjectMetadataParams creates a new GetVersionedObjectMetadataParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetVersionedObjectMetadataParams() *GetVersionedObjectMetadataParams {
+ return &GetVersionedObjectMetadataParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetVersionedObjectMetadataParamsWithTimeout creates a new GetVersionedObjectMetadataParams object
+// with the ability to set a timeout on a request.
+func NewGetVersionedObjectMetadataParamsWithTimeout(timeout time.Duration) *GetVersionedObjectMetadataParams {
+ return &GetVersionedObjectMetadataParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetVersionedObjectMetadataParamsWithContext creates a new GetVersionedObjectMetadataParams object
+// with the ability to set a context for a request.
+func NewGetVersionedObjectMetadataParamsWithContext(ctx context.Context) *GetVersionedObjectMetadataParams {
+ return &GetVersionedObjectMetadataParams{
+ Context: ctx,
+ }
+}
+
+// NewGetVersionedObjectMetadataParamsWithHTTPClient creates a new GetVersionedObjectMetadataParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetVersionedObjectMetadataParamsWithHTTPClient(client *http.Client) *GetVersionedObjectMetadataParams {
+ return &GetVersionedObjectMetadataParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetVersionedObjectMetadataParams contains all the parameters to send to the API endpoint
+
+ for the get versioned object metadata operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetVersionedObjectMetadataParams struct {
+
+ /* CollectionName.
+
+ The name of the collection
+ */
+ CollectionName string
+
+ /* CollectionVersion.
+
+ The version of the collection
+ */
+ CollectionVersion string
+
+ /* ObjectKey.
+
+ The object key
+ */
+ ObjectKey string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get versioned object metadata params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetVersionedObjectMetadataParams) WithDefaults() *GetVersionedObjectMetadataParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get versioned object metadata params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetVersionedObjectMetadataParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) WithTimeout(timeout time.Duration) *GetVersionedObjectMetadataParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) WithContext(ctx context.Context) *GetVersionedObjectMetadataParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) WithHTTPClient(client *http.Client) *GetVersionedObjectMetadataParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithCollectionName adds the collectionName to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) WithCollectionName(collectionName string) *GetVersionedObjectMetadataParams {
+ o.SetCollectionName(collectionName)
+ return o
+}
+
+// SetCollectionName adds the collectionName to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) SetCollectionName(collectionName string) {
+ o.CollectionName = collectionName
+}
+
+// WithCollectionVersion adds the collectionVersion to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) WithCollectionVersion(collectionVersion string) *GetVersionedObjectMetadataParams {
+ o.SetCollectionVersion(collectionVersion)
+ return o
+}
+
+// SetCollectionVersion adds the collectionVersion to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) SetCollectionVersion(collectionVersion string) {
+ o.CollectionVersion = collectionVersion
+}
+
+// WithObjectKey adds the objectKey to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) WithObjectKey(objectKey string) *GetVersionedObjectMetadataParams {
+ o.SetObjectKey(objectKey)
+ return o
+}
+
+// SetObjectKey adds the objectKey to the get versioned object metadata params
+func (o *GetVersionedObjectMetadataParams) SetObjectKey(objectKey string) {
+ o.ObjectKey = objectKey
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetVersionedObjectMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param collection_name
+ if err := r.SetPathParam("collection_name", o.CollectionName); err != nil {
+ return err
+ }
+
+ // path param collection_version
+ if err := r.SetPathParam("collection_version", o.CollectionVersion); err != nil {
+ return err
+ }
+
+ // path param object_key
+ if err := r.SetPathParam("object_key", o.ObjectKey); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/custom_storage/get_versioned_object_metadata_responses.go b/falcon/client/custom_storage/get_versioned_object_metadata_responses.go
new file mode 100644
index 00000000..c774f404
--- /dev/null
+++ b/falcon/client/custom_storage/get_versioned_object_metadata_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetVersionedObjectMetadataReader is a Reader for the GetVersionedObjectMetadata structure.
+type GetVersionedObjectMetadataReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetVersionedObjectMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetVersionedObjectMetadataOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewGetVersionedObjectMetadataForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetVersionedObjectMetadataTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetVersionedObjectMetadataInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata] GetVersionedObjectMetadata", response, response.Code())
+ }
+}
+
+// NewGetVersionedObjectMetadataOK creates a GetVersionedObjectMetadataOK with default headers values
+func NewGetVersionedObjectMetadataOK() *GetVersionedObjectMetadataOK {
+ return &GetVersionedObjectMetadataOK{}
+}
+
+/*
+GetVersionedObjectMetadataOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetVersionedObjectMetadataOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CustomStorageResponse
+}
+
+// IsSuccess returns true when this get versioned object metadata o k response has a 2xx status code
+func (o *GetVersionedObjectMetadataOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get versioned object metadata o k response has a 3xx status code
+func (o *GetVersionedObjectMetadataOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get versioned object metadata o k response has a 4xx status code
+func (o *GetVersionedObjectMetadataOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get versioned object metadata o k response has a 5xx status code
+func (o *GetVersionedObjectMetadataOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get versioned object metadata o k response a status code equal to that given
+func (o *GetVersionedObjectMetadataOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get versioned object metadata o k response
+func (o *GetVersionedObjectMetadataOK) Code() int {
+ return 200
+}
+
+func (o *GetVersionedObjectMetadataOK) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata][%d] getVersionedObjectMetadataOK %+v", 200, o.Payload)
+}
+
+func (o *GetVersionedObjectMetadataOK) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata][%d] getVersionedObjectMetadataOK %+v", 200, o.Payload)
+}
+
+func (o *GetVersionedObjectMetadataOK) GetPayload() *models.CustomStorageResponse {
+ return o.Payload
+}
+
+func (o *GetVersionedObjectMetadataOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CustomStorageResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetVersionedObjectMetadataForbidden creates a GetVersionedObjectMetadataForbidden with default headers values
+func NewGetVersionedObjectMetadataForbidden() *GetVersionedObjectMetadataForbidden {
+ return &GetVersionedObjectMetadataForbidden{}
+}
+
+/*
+GetVersionedObjectMetadataForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetVersionedObjectMetadataForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get versioned object metadata forbidden response has a 2xx status code
+func (o *GetVersionedObjectMetadataForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get versioned object metadata forbidden response has a 3xx status code
+func (o *GetVersionedObjectMetadataForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get versioned object metadata forbidden response has a 4xx status code
+func (o *GetVersionedObjectMetadataForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get versioned object metadata forbidden response has a 5xx status code
+func (o *GetVersionedObjectMetadataForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get versioned object metadata forbidden response a status code equal to that given
+func (o *GetVersionedObjectMetadataForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get versioned object metadata forbidden response
+func (o *GetVersionedObjectMetadataForbidden) Code() int {
+ return 403
+}
+
+func (o *GetVersionedObjectMetadataForbidden) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata][%d] getVersionedObjectMetadataForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetVersionedObjectMetadataForbidden) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata][%d] getVersionedObjectMetadataForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetVersionedObjectMetadataForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetVersionedObjectMetadataForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetVersionedObjectMetadataTooManyRequests creates a GetVersionedObjectMetadataTooManyRequests with default headers values
+func NewGetVersionedObjectMetadataTooManyRequests() *GetVersionedObjectMetadataTooManyRequests {
+ return &GetVersionedObjectMetadataTooManyRequests{}
+}
+
+/*
+GetVersionedObjectMetadataTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetVersionedObjectMetadataTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get versioned object metadata too many requests response has a 2xx status code
+func (o *GetVersionedObjectMetadataTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get versioned object metadata too many requests response has a 3xx status code
+func (o *GetVersionedObjectMetadataTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get versioned object metadata too many requests response has a 4xx status code
+func (o *GetVersionedObjectMetadataTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get versioned object metadata too many requests response has a 5xx status code
+func (o *GetVersionedObjectMetadataTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get versioned object metadata too many requests response a status code equal to that given
+func (o *GetVersionedObjectMetadataTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get versioned object metadata too many requests response
+func (o *GetVersionedObjectMetadataTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetVersionedObjectMetadataTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata][%d] getVersionedObjectMetadataTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetVersionedObjectMetadataTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata][%d] getVersionedObjectMetadataTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetVersionedObjectMetadataTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetVersionedObjectMetadataTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetVersionedObjectMetadataInternalServerError creates a GetVersionedObjectMetadataInternalServerError with default headers values
+func NewGetVersionedObjectMetadataInternalServerError() *GetVersionedObjectMetadataInternalServerError {
+ return &GetVersionedObjectMetadataInternalServerError{}
+}
+
+/*
+GetVersionedObjectMetadataInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetVersionedObjectMetadataInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get versioned object metadata internal server error response has a 2xx status code
+func (o *GetVersionedObjectMetadataInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get versioned object metadata internal server error response has a 3xx status code
+func (o *GetVersionedObjectMetadataInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get versioned object metadata internal server error response has a 4xx status code
+func (o *GetVersionedObjectMetadataInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get versioned object metadata internal server error response has a 5xx status code
+func (o *GetVersionedObjectMetadataInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get versioned object metadata internal server error response a status code equal to that given
+func (o *GetVersionedObjectMetadataInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get versioned object metadata internal server error response
+func (o *GetVersionedObjectMetadataInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetVersionedObjectMetadataInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata][%d] getVersionedObjectMetadataInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetVersionedObjectMetadataInternalServerError) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata][%d] getVersionedObjectMetadataInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetVersionedObjectMetadataInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetVersionedObjectMetadataInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/get_versioned_object_parameters.go b/falcon/client/custom_storage/get_versioned_object_parameters.go
new file mode 100644
index 00000000..1c57b2ec
--- /dev/null
+++ b/falcon/client/custom_storage/get_versioned_object_parameters.go
@@ -0,0 +1,195 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetVersionedObjectParams creates a new GetVersionedObjectParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetVersionedObjectParams() *GetVersionedObjectParams {
+ return &GetVersionedObjectParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetVersionedObjectParamsWithTimeout creates a new GetVersionedObjectParams object
+// with the ability to set a timeout on a request.
+func NewGetVersionedObjectParamsWithTimeout(timeout time.Duration) *GetVersionedObjectParams {
+ return &GetVersionedObjectParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetVersionedObjectParamsWithContext creates a new GetVersionedObjectParams object
+// with the ability to set a context for a request.
+func NewGetVersionedObjectParamsWithContext(ctx context.Context) *GetVersionedObjectParams {
+ return &GetVersionedObjectParams{
+ Context: ctx,
+ }
+}
+
+// NewGetVersionedObjectParamsWithHTTPClient creates a new GetVersionedObjectParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetVersionedObjectParamsWithHTTPClient(client *http.Client) *GetVersionedObjectParams {
+ return &GetVersionedObjectParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetVersionedObjectParams contains all the parameters to send to the API endpoint
+
+ for the get versioned object operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetVersionedObjectParams struct {
+
+ /* CollectionName.
+
+ The name of the collection
+ */
+ CollectionName string
+
+ /* CollectionVersion.
+
+ The version of the collection
+ */
+ CollectionVersion string
+
+ /* ObjectKey.
+
+ The object key
+ */
+ ObjectKey string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get versioned object params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetVersionedObjectParams) WithDefaults() *GetVersionedObjectParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get versioned object params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetVersionedObjectParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get versioned object params
+func (o *GetVersionedObjectParams) WithTimeout(timeout time.Duration) *GetVersionedObjectParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get versioned object params
+func (o *GetVersionedObjectParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get versioned object params
+func (o *GetVersionedObjectParams) WithContext(ctx context.Context) *GetVersionedObjectParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get versioned object params
+func (o *GetVersionedObjectParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get versioned object params
+func (o *GetVersionedObjectParams) WithHTTPClient(client *http.Client) *GetVersionedObjectParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get versioned object params
+func (o *GetVersionedObjectParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithCollectionName adds the collectionName to the get versioned object params
+func (o *GetVersionedObjectParams) WithCollectionName(collectionName string) *GetVersionedObjectParams {
+ o.SetCollectionName(collectionName)
+ return o
+}
+
+// SetCollectionName adds the collectionName to the get versioned object params
+func (o *GetVersionedObjectParams) SetCollectionName(collectionName string) {
+ o.CollectionName = collectionName
+}
+
+// WithCollectionVersion adds the collectionVersion to the get versioned object params
+func (o *GetVersionedObjectParams) WithCollectionVersion(collectionVersion string) *GetVersionedObjectParams {
+ o.SetCollectionVersion(collectionVersion)
+ return o
+}
+
+// SetCollectionVersion adds the collectionVersion to the get versioned object params
+func (o *GetVersionedObjectParams) SetCollectionVersion(collectionVersion string) {
+ o.CollectionVersion = collectionVersion
+}
+
+// WithObjectKey adds the objectKey to the get versioned object params
+func (o *GetVersionedObjectParams) WithObjectKey(objectKey string) *GetVersionedObjectParams {
+ o.SetObjectKey(objectKey)
+ return o
+}
+
+// SetObjectKey adds the objectKey to the get versioned object params
+func (o *GetVersionedObjectParams) SetObjectKey(objectKey string) {
+ o.ObjectKey = objectKey
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetVersionedObjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param collection_name
+ if err := r.SetPathParam("collection_name", o.CollectionName); err != nil {
+ return err
+ }
+
+ // path param collection_version
+ if err := r.SetPathParam("collection_version", o.CollectionVersion); err != nil {
+ return err
+ }
+
+ // path param object_key
+ if err := r.SetPathParam("object_key", o.ObjectKey); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/custom_storage/get_versioned_object_responses.go b/falcon/client/custom_storage/get_versioned_object_responses.go
new file mode 100644
index 00000000..475e2f06
--- /dev/null
+++ b/falcon/client/custom_storage/get_versioned_object_responses.go
@@ -0,0 +1,512 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetVersionedObjectReader is a Reader for the GetVersionedObject structure.
+type GetVersionedObjectReader struct {
+ formats strfmt.Registry
+ writer io.Writer
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetVersionedObjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetVersionedObjectOK(o.writer)
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewGetVersionedObjectForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetVersionedObjectTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetVersionedObjectInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}] GetVersionedObject", response, response.Code())
+ }
+}
+
+// NewGetVersionedObjectOK creates a GetVersionedObjectOK with default headers values
+func NewGetVersionedObjectOK(writer io.Writer) *GetVersionedObjectOK {
+ return &GetVersionedObjectOK{
+
+ Payload: writer,
+ }
+}
+
+/*
+GetVersionedObjectOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetVersionedObjectOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload io.Writer
+}
+
+// IsSuccess returns true when this get versioned object o k response has a 2xx status code
+func (o *GetVersionedObjectOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get versioned object o k response has a 3xx status code
+func (o *GetVersionedObjectOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get versioned object o k response has a 4xx status code
+func (o *GetVersionedObjectOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get versioned object o k response has a 5xx status code
+func (o *GetVersionedObjectOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get versioned object o k response a status code equal to that given
+func (o *GetVersionedObjectOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get versioned object o k response
+func (o *GetVersionedObjectOK) Code() int {
+ return 200
+}
+
+func (o *GetVersionedObjectOK) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] getVersionedObjectOK %+v", 200, o.Payload)
+}
+
+func (o *GetVersionedObjectOK) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] getVersionedObjectOK %+v", 200, o.Payload)
+}
+
+func (o *GetVersionedObjectOK) GetPayload() io.Writer {
+ return o.Payload
+}
+
+func (o *GetVersionedObjectOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetVersionedObjectForbidden creates a GetVersionedObjectForbidden with default headers values
+func NewGetVersionedObjectForbidden() *GetVersionedObjectForbidden {
+ return &GetVersionedObjectForbidden{}
+}
+
+/*
+GetVersionedObjectForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetVersionedObjectForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get versioned object forbidden response has a 2xx status code
+func (o *GetVersionedObjectForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get versioned object forbidden response has a 3xx status code
+func (o *GetVersionedObjectForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get versioned object forbidden response has a 4xx status code
+func (o *GetVersionedObjectForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get versioned object forbidden response has a 5xx status code
+func (o *GetVersionedObjectForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get versioned object forbidden response a status code equal to that given
+func (o *GetVersionedObjectForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get versioned object forbidden response
+func (o *GetVersionedObjectForbidden) Code() int {
+ return 403
+}
+
+func (o *GetVersionedObjectForbidden) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] getVersionedObjectForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetVersionedObjectForbidden) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] getVersionedObjectForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetVersionedObjectForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetVersionedObjectForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetVersionedObjectTooManyRequests creates a GetVersionedObjectTooManyRequests with default headers values
+func NewGetVersionedObjectTooManyRequests() *GetVersionedObjectTooManyRequests {
+ return &GetVersionedObjectTooManyRequests{}
+}
+
+/*
+GetVersionedObjectTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetVersionedObjectTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get versioned object too many requests response has a 2xx status code
+func (o *GetVersionedObjectTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get versioned object too many requests response has a 3xx status code
+func (o *GetVersionedObjectTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get versioned object too many requests response has a 4xx status code
+func (o *GetVersionedObjectTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get versioned object too many requests response has a 5xx status code
+func (o *GetVersionedObjectTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get versioned object too many requests response a status code equal to that given
+func (o *GetVersionedObjectTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get versioned object too many requests response
+func (o *GetVersionedObjectTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetVersionedObjectTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] getVersionedObjectTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetVersionedObjectTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] getVersionedObjectTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetVersionedObjectTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetVersionedObjectTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetVersionedObjectInternalServerError creates a GetVersionedObjectInternalServerError with default headers values
+func NewGetVersionedObjectInternalServerError() *GetVersionedObjectInternalServerError {
+ return &GetVersionedObjectInternalServerError{}
+}
+
+/*
+GetVersionedObjectInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetVersionedObjectInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get versioned object internal server error response has a 2xx status code
+func (o *GetVersionedObjectInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get versioned object internal server error response has a 3xx status code
+func (o *GetVersionedObjectInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get versioned object internal server error response has a 4xx status code
+func (o *GetVersionedObjectInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get versioned object internal server error response has a 5xx status code
+func (o *GetVersionedObjectInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get versioned object internal server error response a status code equal to that given
+func (o *GetVersionedObjectInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get versioned object internal server error response
+func (o *GetVersionedObjectInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetVersionedObjectInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] getVersionedObjectInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetVersionedObjectInternalServerError) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] getVersionedObjectInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetVersionedObjectInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetVersionedObjectInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/list_objects_by_version_parameters.go b/falcon/client/custom_storage/list_objects_by_version_parameters.go
new file mode 100644
index 00000000..14d88baa
--- /dev/null
+++ b/falcon/client/custom_storage/list_objects_by_version_parameters.go
@@ -0,0 +1,249 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewListObjectsByVersionParams creates a new ListObjectsByVersionParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewListObjectsByVersionParams() *ListObjectsByVersionParams {
+ return &ListObjectsByVersionParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewListObjectsByVersionParamsWithTimeout creates a new ListObjectsByVersionParams object
+// with the ability to set a timeout on a request.
+func NewListObjectsByVersionParamsWithTimeout(timeout time.Duration) *ListObjectsByVersionParams {
+ return &ListObjectsByVersionParams{
+ timeout: timeout,
+ }
+}
+
+// NewListObjectsByVersionParamsWithContext creates a new ListObjectsByVersionParams object
+// with the ability to set a context for a request.
+func NewListObjectsByVersionParamsWithContext(ctx context.Context) *ListObjectsByVersionParams {
+ return &ListObjectsByVersionParams{
+ Context: ctx,
+ }
+}
+
+// NewListObjectsByVersionParamsWithHTTPClient creates a new ListObjectsByVersionParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewListObjectsByVersionParamsWithHTTPClient(client *http.Client) *ListObjectsByVersionParams {
+ return &ListObjectsByVersionParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+ListObjectsByVersionParams contains all the parameters to send to the API endpoint
+
+ for the list objects by version operation.
+
+ Typically these are written to a http.Request.
+*/
+type ListObjectsByVersionParams struct {
+
+ /* CollectionName.
+
+ The name of the collection
+ */
+ CollectionName string
+
+ /* CollectionVersion.
+
+ The version of the collection
+ */
+ CollectionVersion string
+
+ /* End.
+
+ The end key to end listing to
+ */
+ End string
+
+ /* Limit.
+
+ The limit of results to return
+ */
+ Limit int64
+
+ /* Start.
+
+ The start key to start listing from
+ */
+ Start string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the list objects by version params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ListObjectsByVersionParams) WithDefaults() *ListObjectsByVersionParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the list objects by version params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ListObjectsByVersionParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the list objects by version params
+func (o *ListObjectsByVersionParams) WithTimeout(timeout time.Duration) *ListObjectsByVersionParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the list objects by version params
+func (o *ListObjectsByVersionParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the list objects by version params
+func (o *ListObjectsByVersionParams) WithContext(ctx context.Context) *ListObjectsByVersionParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the list objects by version params
+func (o *ListObjectsByVersionParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the list objects by version params
+func (o *ListObjectsByVersionParams) WithHTTPClient(client *http.Client) *ListObjectsByVersionParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the list objects by version params
+func (o *ListObjectsByVersionParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithCollectionName adds the collectionName to the list objects by version params
+func (o *ListObjectsByVersionParams) WithCollectionName(collectionName string) *ListObjectsByVersionParams {
+ o.SetCollectionName(collectionName)
+ return o
+}
+
+// SetCollectionName adds the collectionName to the list objects by version params
+func (o *ListObjectsByVersionParams) SetCollectionName(collectionName string) {
+ o.CollectionName = collectionName
+}
+
+// WithCollectionVersion adds the collectionVersion to the list objects by version params
+func (o *ListObjectsByVersionParams) WithCollectionVersion(collectionVersion string) *ListObjectsByVersionParams {
+ o.SetCollectionVersion(collectionVersion)
+ return o
+}
+
+// SetCollectionVersion adds the collectionVersion to the list objects by version params
+func (o *ListObjectsByVersionParams) SetCollectionVersion(collectionVersion string) {
+ o.CollectionVersion = collectionVersion
+}
+
+// WithEnd adds the end to the list objects by version params
+func (o *ListObjectsByVersionParams) WithEnd(end string) *ListObjectsByVersionParams {
+ o.SetEnd(end)
+ return o
+}
+
+// SetEnd adds the end to the list objects by version params
+func (o *ListObjectsByVersionParams) SetEnd(end string) {
+ o.End = end
+}
+
+// WithLimit adds the limit to the list objects by version params
+func (o *ListObjectsByVersionParams) WithLimit(limit int64) *ListObjectsByVersionParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the list objects by version params
+func (o *ListObjectsByVersionParams) SetLimit(limit int64) {
+ o.Limit = limit
+}
+
+// WithStart adds the start to the list objects by version params
+func (o *ListObjectsByVersionParams) WithStart(start string) *ListObjectsByVersionParams {
+ o.SetStart(start)
+ return o
+}
+
+// SetStart adds the start to the list objects by version params
+func (o *ListObjectsByVersionParams) SetStart(start string) {
+ o.Start = start
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *ListObjectsByVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param collection_name
+ if err := r.SetPathParam("collection_name", o.CollectionName); err != nil {
+ return err
+ }
+
+ // path param collection_version
+ if err := r.SetPathParam("collection_version", o.CollectionVersion); err != nil {
+ return err
+ }
+
+ // query param end
+ qrEnd := o.End
+ qEnd := qrEnd
+
+ if err := r.SetQueryParam("end", qEnd); err != nil {
+ return err
+ }
+
+ // query param limit
+ qrLimit := o.Limit
+ qLimit := swag.FormatInt64(qrLimit)
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+
+ // query param start
+ qrStart := o.Start
+ qStart := qrStart
+
+ if err := r.SetQueryParam("start", qStart); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/custom_storage/list_objects_by_version_responses.go b/falcon/client/custom_storage/list_objects_by_version_responses.go
new file mode 100644
index 00000000..2f64270a
--- /dev/null
+++ b/falcon/client/custom_storage/list_objects_by_version_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// ListObjectsByVersionReader is a Reader for the ListObjectsByVersion structure.
+type ListObjectsByVersionReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *ListObjectsByVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewListObjectsByVersionOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewListObjectsByVersionForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewListObjectsByVersionTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewListObjectsByVersionInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects] ListObjectsByVersion", response, response.Code())
+ }
+}
+
+// NewListObjectsByVersionOK creates a ListObjectsByVersionOK with default headers values
+func NewListObjectsByVersionOK() *ListObjectsByVersionOK {
+ return &ListObjectsByVersionOK{}
+}
+
+/*
+ListObjectsByVersionOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type ListObjectsByVersionOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CustomStorageObjectKeys
+}
+
+// IsSuccess returns true when this list objects by version o k response has a 2xx status code
+func (o *ListObjectsByVersionOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this list objects by version o k response has a 3xx status code
+func (o *ListObjectsByVersionOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list objects by version o k response has a 4xx status code
+func (o *ListObjectsByVersionOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this list objects by version o k response has a 5xx status code
+func (o *ListObjectsByVersionOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list objects by version o k response a status code equal to that given
+func (o *ListObjectsByVersionOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the list objects by version o k response
+func (o *ListObjectsByVersionOK) Code() int {
+ return 200
+}
+
+func (o *ListObjectsByVersionOK) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] listObjectsByVersionOK %+v", 200, o.Payload)
+}
+
+func (o *ListObjectsByVersionOK) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] listObjectsByVersionOK %+v", 200, o.Payload)
+}
+
+func (o *ListObjectsByVersionOK) GetPayload() *models.CustomStorageObjectKeys {
+ return o.Payload
+}
+
+func (o *ListObjectsByVersionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CustomStorageObjectKeys)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListObjectsByVersionForbidden creates a ListObjectsByVersionForbidden with default headers values
+func NewListObjectsByVersionForbidden() *ListObjectsByVersionForbidden {
+ return &ListObjectsByVersionForbidden{}
+}
+
+/*
+ListObjectsByVersionForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type ListObjectsByVersionForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this list objects by version forbidden response has a 2xx status code
+func (o *ListObjectsByVersionForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list objects by version forbidden response has a 3xx status code
+func (o *ListObjectsByVersionForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list objects by version forbidden response has a 4xx status code
+func (o *ListObjectsByVersionForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this list objects by version forbidden response has a 5xx status code
+func (o *ListObjectsByVersionForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list objects by version forbidden response a status code equal to that given
+func (o *ListObjectsByVersionForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the list objects by version forbidden response
+func (o *ListObjectsByVersionForbidden) Code() int {
+ return 403
+}
+
+func (o *ListObjectsByVersionForbidden) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] listObjectsByVersionForbidden %+v", 403, o.Payload)
+}
+
+func (o *ListObjectsByVersionForbidden) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] listObjectsByVersionForbidden %+v", 403, o.Payload)
+}
+
+func (o *ListObjectsByVersionForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ListObjectsByVersionForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListObjectsByVersionTooManyRequests creates a ListObjectsByVersionTooManyRequests with default headers values
+func NewListObjectsByVersionTooManyRequests() *ListObjectsByVersionTooManyRequests {
+ return &ListObjectsByVersionTooManyRequests{}
+}
+
+/*
+ListObjectsByVersionTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type ListObjectsByVersionTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this list objects by version too many requests response has a 2xx status code
+func (o *ListObjectsByVersionTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list objects by version too many requests response has a 3xx status code
+func (o *ListObjectsByVersionTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list objects by version too many requests response has a 4xx status code
+func (o *ListObjectsByVersionTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this list objects by version too many requests response has a 5xx status code
+func (o *ListObjectsByVersionTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list objects by version too many requests response a status code equal to that given
+func (o *ListObjectsByVersionTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the list objects by version too many requests response
+func (o *ListObjectsByVersionTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *ListObjectsByVersionTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] listObjectsByVersionTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ListObjectsByVersionTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] listObjectsByVersionTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ListObjectsByVersionTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ListObjectsByVersionTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListObjectsByVersionInternalServerError creates a ListObjectsByVersionInternalServerError with default headers values
+func NewListObjectsByVersionInternalServerError() *ListObjectsByVersionInternalServerError {
+ return &ListObjectsByVersionInternalServerError{}
+}
+
+/*
+ListObjectsByVersionInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ListObjectsByVersionInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this list objects by version internal server error response has a 2xx status code
+func (o *ListObjectsByVersionInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list objects by version internal server error response has a 3xx status code
+func (o *ListObjectsByVersionInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list objects by version internal server error response has a 4xx status code
+func (o *ListObjectsByVersionInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this list objects by version internal server error response has a 5xx status code
+func (o *ListObjectsByVersionInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this list objects by version internal server error response a status code equal to that given
+func (o *ListObjectsByVersionInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the list objects by version internal server error response
+func (o *ListObjectsByVersionInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ListObjectsByVersionInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] listObjectsByVersionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ListObjectsByVersionInternalServerError) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] listObjectsByVersionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ListObjectsByVersionInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ListObjectsByVersionInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/list_responses.go b/falcon/client/custom_storage/list_responses.go
index 517e3689..198a99a1 100644
--- a/falcon/client/custom_storage/list_responses.go
+++ b/falcon/client/custom_storage/list_responses.go
@@ -43,6 +43,12 @@ func (o *ListReader) ReadResponse(response runtime.ClientResponse, consumer runt
return nil, err
}
return nil, result
+ case 500:
+ result := NewListInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /customobjects/v1/collections/{collection_name}/objects] list", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *ListTooManyRequests) readResponse(response runtime.ClientResponse, cons
return nil
}
+
+// NewListInternalServerError creates a ListInternalServerError with default headers values
+func NewListInternalServerError() *ListInternalServerError {
+ return &ListInternalServerError{}
+}
+
+/*
+ListInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ListInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this list internal server error response has a 2xx status code
+func (o *ListInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list internal server error response has a 3xx status code
+func (o *ListInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list internal server error response has a 4xx status code
+func (o *ListInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this list internal server error response has a 5xx status code
+func (o *ListInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this list internal server error response a status code equal to that given
+func (o *ListInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the list internal server error response
+func (o *ListInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ListInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/objects][%d] listInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ListInternalServerError) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/objects][%d] listInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ListInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ListInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/metadata_responses.go b/falcon/client/custom_storage/metadata_responses.go
index 0aa85e39..388fe000 100644
--- a/falcon/client/custom_storage/metadata_responses.go
+++ b/falcon/client/custom_storage/metadata_responses.go
@@ -43,6 +43,12 @@ func (o *MetadataReader) ReadResponse(response runtime.ClientResponse, consumer
return nil, err
}
return nil, result
+ case 500:
+ result := NewMetadataInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /customobjects/v1/collections/{collection_name}/objects/{object_key}/metadata] metadata", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *MetadataTooManyRequests) readResponse(response runtime.ClientResponse,
return nil
}
+
+// NewMetadataInternalServerError creates a MetadataInternalServerError with default headers values
+func NewMetadataInternalServerError() *MetadataInternalServerError {
+ return &MetadataInternalServerError{}
+}
+
+/*
+MetadataInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type MetadataInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this metadata internal server error response has a 2xx status code
+func (o *MetadataInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this metadata internal server error response has a 3xx status code
+func (o *MetadataInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this metadata internal server error response has a 4xx status code
+func (o *MetadataInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this metadata internal server error response has a 5xx status code
+func (o *MetadataInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this metadata internal server error response a status code equal to that given
+func (o *MetadataInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the metadata internal server error response
+func (o *MetadataInternalServerError) Code() int {
+ return 500
+}
+
+func (o *MetadataInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/objects/{object_key}/metadata][%d] metadataInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *MetadataInternalServerError) String() string {
+ return fmt.Sprintf("[GET /customobjects/v1/collections/{collection_name}/objects/{object_key}/metadata][%d] metadataInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *MetadataInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *MetadataInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/put_object_by_version_parameters.go b/falcon/client/custom_storage/put_object_by_version_parameters.go
new file mode 100644
index 00000000..e0670e37
--- /dev/null
+++ b/falcon/client/custom_storage/put_object_by_version_parameters.go
@@ -0,0 +1,243 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "io"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewPutObjectByVersionParams creates a new PutObjectByVersionParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewPutObjectByVersionParams() *PutObjectByVersionParams {
+ return &PutObjectByVersionParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewPutObjectByVersionParamsWithTimeout creates a new PutObjectByVersionParams object
+// with the ability to set a timeout on a request.
+func NewPutObjectByVersionParamsWithTimeout(timeout time.Duration) *PutObjectByVersionParams {
+ return &PutObjectByVersionParams{
+ timeout: timeout,
+ }
+}
+
+// NewPutObjectByVersionParamsWithContext creates a new PutObjectByVersionParams object
+// with the ability to set a context for a request.
+func NewPutObjectByVersionParamsWithContext(ctx context.Context) *PutObjectByVersionParams {
+ return &PutObjectByVersionParams{
+ Context: ctx,
+ }
+}
+
+// NewPutObjectByVersionParamsWithHTTPClient creates a new PutObjectByVersionParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewPutObjectByVersionParamsWithHTTPClient(client *http.Client) *PutObjectByVersionParams {
+ return &PutObjectByVersionParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+PutObjectByVersionParams contains all the parameters to send to the API endpoint
+
+ for the put object by version operation.
+
+ Typically these are written to a http.Request.
+*/
+type PutObjectByVersionParams struct {
+
+ // Body.
+ //
+ // Format: binary
+ Body io.ReadCloser
+
+ /* CollectionName.
+
+ The name of the collection
+ */
+ CollectionName string
+
+ /* CollectionVersion.
+
+ The version of the collection
+ */
+ CollectionVersion string
+
+ /* DryRun.
+
+ If false, run the operation as normal. If true, validate that the request *would* succeed, but don't execute it.
+ */
+ DryRun bool
+
+ /* ObjectKey.
+
+ The object key
+ */
+ ObjectKey string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the put object by version params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PutObjectByVersionParams) WithDefaults() *PutObjectByVersionParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the put object by version params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PutObjectByVersionParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the put object by version params
+func (o *PutObjectByVersionParams) WithTimeout(timeout time.Duration) *PutObjectByVersionParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the put object by version params
+func (o *PutObjectByVersionParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the put object by version params
+func (o *PutObjectByVersionParams) WithContext(ctx context.Context) *PutObjectByVersionParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the put object by version params
+func (o *PutObjectByVersionParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the put object by version params
+func (o *PutObjectByVersionParams) WithHTTPClient(client *http.Client) *PutObjectByVersionParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the put object by version params
+func (o *PutObjectByVersionParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the put object by version params
+func (o *PutObjectByVersionParams) WithBody(body io.ReadCloser) *PutObjectByVersionParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the put object by version params
+func (o *PutObjectByVersionParams) SetBody(body io.ReadCloser) {
+ o.Body = body
+}
+
+// WithCollectionName adds the collectionName to the put object by version params
+func (o *PutObjectByVersionParams) WithCollectionName(collectionName string) *PutObjectByVersionParams {
+ o.SetCollectionName(collectionName)
+ return o
+}
+
+// SetCollectionName adds the collectionName to the put object by version params
+func (o *PutObjectByVersionParams) SetCollectionName(collectionName string) {
+ o.CollectionName = collectionName
+}
+
+// WithCollectionVersion adds the collectionVersion to the put object by version params
+func (o *PutObjectByVersionParams) WithCollectionVersion(collectionVersion string) *PutObjectByVersionParams {
+ o.SetCollectionVersion(collectionVersion)
+ return o
+}
+
+// SetCollectionVersion adds the collectionVersion to the put object by version params
+func (o *PutObjectByVersionParams) SetCollectionVersion(collectionVersion string) {
+ o.CollectionVersion = collectionVersion
+}
+
+// WithDryRun adds the dryRun to the put object by version params
+func (o *PutObjectByVersionParams) WithDryRun(dryRun bool) *PutObjectByVersionParams {
+ o.SetDryRun(dryRun)
+ return o
+}
+
+// SetDryRun adds the dryRun to the put object by version params
+func (o *PutObjectByVersionParams) SetDryRun(dryRun bool) {
+ o.DryRun = dryRun
+}
+
+// WithObjectKey adds the objectKey to the put object by version params
+func (o *PutObjectByVersionParams) WithObjectKey(objectKey string) *PutObjectByVersionParams {
+ o.SetObjectKey(objectKey)
+ return o
+}
+
+// SetObjectKey adds the objectKey to the put object by version params
+func (o *PutObjectByVersionParams) SetObjectKey(objectKey string) {
+ o.ObjectKey = objectKey
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *PutObjectByVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ // path param collection_name
+ if err := r.SetPathParam("collection_name", o.CollectionName); err != nil {
+ return err
+ }
+
+ // path param collection_version
+ if err := r.SetPathParam("collection_version", o.CollectionVersion); err != nil {
+ return err
+ }
+
+ // query param dry_run
+ qrDryRun := o.DryRun
+ qDryRun := swag.FormatBool(qrDryRun)
+
+ if err := r.SetQueryParam("dry_run", qDryRun); err != nil {
+ return err
+ }
+
+ // path param object_key
+ if err := r.SetPathParam("object_key", o.ObjectKey); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/custom_storage/put_object_by_version_responses.go b/falcon/client/custom_storage/put_object_by_version_responses.go
new file mode 100644
index 00000000..012a937f
--- /dev/null
+++ b/falcon/client/custom_storage/put_object_by_version_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// PutObjectByVersionReader is a Reader for the PutObjectByVersion structure.
+type PutObjectByVersionReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *PutObjectByVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewPutObjectByVersionOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewPutObjectByVersionForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewPutObjectByVersionTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewPutObjectByVersionInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PUT /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}] PutObjectByVersion", response, response.Code())
+ }
+}
+
+// NewPutObjectByVersionOK creates a PutObjectByVersionOK with default headers values
+func NewPutObjectByVersionOK() *PutObjectByVersionOK {
+ return &PutObjectByVersionOK{}
+}
+
+/*
+PutObjectByVersionOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type PutObjectByVersionOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CustomStorageResponse
+}
+
+// IsSuccess returns true when this put object by version o k response has a 2xx status code
+func (o *PutObjectByVersionOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this put object by version o k response has a 3xx status code
+func (o *PutObjectByVersionOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this put object by version o k response has a 4xx status code
+func (o *PutObjectByVersionOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this put object by version o k response has a 5xx status code
+func (o *PutObjectByVersionOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this put object by version o k response a status code equal to that given
+func (o *PutObjectByVersionOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the put object by version o k response
+func (o *PutObjectByVersionOK) Code() int {
+ return 200
+}
+
+func (o *PutObjectByVersionOK) Error() string {
+ return fmt.Sprintf("[PUT /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] putObjectByVersionOK %+v", 200, o.Payload)
+}
+
+func (o *PutObjectByVersionOK) String() string {
+ return fmt.Sprintf("[PUT /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] putObjectByVersionOK %+v", 200, o.Payload)
+}
+
+func (o *PutObjectByVersionOK) GetPayload() *models.CustomStorageResponse {
+ return o.Payload
+}
+
+func (o *PutObjectByVersionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CustomStorageResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPutObjectByVersionForbidden creates a PutObjectByVersionForbidden with default headers values
+func NewPutObjectByVersionForbidden() *PutObjectByVersionForbidden {
+ return &PutObjectByVersionForbidden{}
+}
+
+/*
+PutObjectByVersionForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type PutObjectByVersionForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this put object by version forbidden response has a 2xx status code
+func (o *PutObjectByVersionForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this put object by version forbidden response has a 3xx status code
+func (o *PutObjectByVersionForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this put object by version forbidden response has a 4xx status code
+func (o *PutObjectByVersionForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this put object by version forbidden response has a 5xx status code
+func (o *PutObjectByVersionForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this put object by version forbidden response a status code equal to that given
+func (o *PutObjectByVersionForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the put object by version forbidden response
+func (o *PutObjectByVersionForbidden) Code() int {
+ return 403
+}
+
+func (o *PutObjectByVersionForbidden) Error() string {
+ return fmt.Sprintf("[PUT /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] putObjectByVersionForbidden %+v", 403, o.Payload)
+}
+
+func (o *PutObjectByVersionForbidden) String() string {
+ return fmt.Sprintf("[PUT /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] putObjectByVersionForbidden %+v", 403, o.Payload)
+}
+
+func (o *PutObjectByVersionForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *PutObjectByVersionForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPutObjectByVersionTooManyRequests creates a PutObjectByVersionTooManyRequests with default headers values
+func NewPutObjectByVersionTooManyRequests() *PutObjectByVersionTooManyRequests {
+ return &PutObjectByVersionTooManyRequests{}
+}
+
+/*
+PutObjectByVersionTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type PutObjectByVersionTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this put object by version too many requests response has a 2xx status code
+func (o *PutObjectByVersionTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this put object by version too many requests response has a 3xx status code
+func (o *PutObjectByVersionTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this put object by version too many requests response has a 4xx status code
+func (o *PutObjectByVersionTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this put object by version too many requests response has a 5xx status code
+func (o *PutObjectByVersionTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this put object by version too many requests response a status code equal to that given
+func (o *PutObjectByVersionTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the put object by version too many requests response
+func (o *PutObjectByVersionTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *PutObjectByVersionTooManyRequests) Error() string {
+ return fmt.Sprintf("[PUT /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] putObjectByVersionTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *PutObjectByVersionTooManyRequests) String() string {
+ return fmt.Sprintf("[PUT /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] putObjectByVersionTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *PutObjectByVersionTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *PutObjectByVersionTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPutObjectByVersionInternalServerError creates a PutObjectByVersionInternalServerError with default headers values
+func NewPutObjectByVersionInternalServerError() *PutObjectByVersionInternalServerError {
+ return &PutObjectByVersionInternalServerError{}
+}
+
+/*
+PutObjectByVersionInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type PutObjectByVersionInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this put object by version internal server error response has a 2xx status code
+func (o *PutObjectByVersionInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this put object by version internal server error response has a 3xx status code
+func (o *PutObjectByVersionInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this put object by version internal server error response has a 4xx status code
+func (o *PutObjectByVersionInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this put object by version internal server error response has a 5xx status code
+func (o *PutObjectByVersionInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this put object by version internal server error response a status code equal to that given
+func (o *PutObjectByVersionInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the put object by version internal server error response
+func (o *PutObjectByVersionInternalServerError) Code() int {
+ return 500
+}
+
+func (o *PutObjectByVersionInternalServerError) Error() string {
+ return fmt.Sprintf("[PUT /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] putObjectByVersionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *PutObjectByVersionInternalServerError) String() string {
+ return fmt.Sprintf("[PUT /customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}][%d] putObjectByVersionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *PutObjectByVersionInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *PutObjectByVersionInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/search_objects_by_version_parameters.go b/falcon/client/custom_storage/search_objects_by_version_parameters.go
new file mode 100644
index 00000000..86b9fcbc
--- /dev/null
+++ b/falcon/client/custom_storage/search_objects_by_version_parameters.go
@@ -0,0 +1,285 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewSearchObjectsByVersionParams creates a new SearchObjectsByVersionParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewSearchObjectsByVersionParams() *SearchObjectsByVersionParams {
+ return &SearchObjectsByVersionParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewSearchObjectsByVersionParamsWithTimeout creates a new SearchObjectsByVersionParams object
+// with the ability to set a timeout on a request.
+func NewSearchObjectsByVersionParamsWithTimeout(timeout time.Duration) *SearchObjectsByVersionParams {
+ return &SearchObjectsByVersionParams{
+ timeout: timeout,
+ }
+}
+
+// NewSearchObjectsByVersionParamsWithContext creates a new SearchObjectsByVersionParams object
+// with the ability to set a context for a request.
+func NewSearchObjectsByVersionParamsWithContext(ctx context.Context) *SearchObjectsByVersionParams {
+ return &SearchObjectsByVersionParams{
+ Context: ctx,
+ }
+}
+
+// NewSearchObjectsByVersionParamsWithHTTPClient creates a new SearchObjectsByVersionParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewSearchObjectsByVersionParamsWithHTTPClient(client *http.Client) *SearchObjectsByVersionParams {
+ return &SearchObjectsByVersionParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+SearchObjectsByVersionParams contains all the parameters to send to the API endpoint
+
+ for the search objects by version operation.
+
+ Typically these are written to a http.Request.
+*/
+type SearchObjectsByVersionParams struct {
+
+ /* CollectionName.
+
+ The name of the collection
+ */
+ CollectionName string
+
+ /* CollectionVersion.
+
+ The version of the collection
+ */
+ CollectionVersion string
+
+ /* Filter.
+
+ The filter to limit the returned results.
+ */
+ Filter string
+
+ /* Limit.
+
+ The limit of results to return
+ */
+ Limit int64
+
+ /* Offset.
+
+ The offset of results to return
+ */
+ Offset int64
+
+ /* Sort.
+
+ The sort order for the returned results.
+ */
+ Sort *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the search objects by version params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *SearchObjectsByVersionParams) WithDefaults() *SearchObjectsByVersionParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the search objects by version params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *SearchObjectsByVersionParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the search objects by version params
+func (o *SearchObjectsByVersionParams) WithTimeout(timeout time.Duration) *SearchObjectsByVersionParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the search objects by version params
+func (o *SearchObjectsByVersionParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the search objects by version params
+func (o *SearchObjectsByVersionParams) WithContext(ctx context.Context) *SearchObjectsByVersionParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the search objects by version params
+func (o *SearchObjectsByVersionParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the search objects by version params
+func (o *SearchObjectsByVersionParams) WithHTTPClient(client *http.Client) *SearchObjectsByVersionParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the search objects by version params
+func (o *SearchObjectsByVersionParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithCollectionName adds the collectionName to the search objects by version params
+func (o *SearchObjectsByVersionParams) WithCollectionName(collectionName string) *SearchObjectsByVersionParams {
+ o.SetCollectionName(collectionName)
+ return o
+}
+
+// SetCollectionName adds the collectionName to the search objects by version params
+func (o *SearchObjectsByVersionParams) SetCollectionName(collectionName string) {
+ o.CollectionName = collectionName
+}
+
+// WithCollectionVersion adds the collectionVersion to the search objects by version params
+func (o *SearchObjectsByVersionParams) WithCollectionVersion(collectionVersion string) *SearchObjectsByVersionParams {
+ o.SetCollectionVersion(collectionVersion)
+ return o
+}
+
+// SetCollectionVersion adds the collectionVersion to the search objects by version params
+func (o *SearchObjectsByVersionParams) SetCollectionVersion(collectionVersion string) {
+ o.CollectionVersion = collectionVersion
+}
+
+// WithFilter adds the filter to the search objects by version params
+func (o *SearchObjectsByVersionParams) WithFilter(filter string) *SearchObjectsByVersionParams {
+ o.SetFilter(filter)
+ return o
+}
+
+// SetFilter adds the filter to the search objects by version params
+func (o *SearchObjectsByVersionParams) SetFilter(filter string) {
+ o.Filter = filter
+}
+
+// WithLimit adds the limit to the search objects by version params
+func (o *SearchObjectsByVersionParams) WithLimit(limit int64) *SearchObjectsByVersionParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the search objects by version params
+func (o *SearchObjectsByVersionParams) SetLimit(limit int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the search objects by version params
+func (o *SearchObjectsByVersionParams) WithOffset(offset int64) *SearchObjectsByVersionParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the search objects by version params
+func (o *SearchObjectsByVersionParams) SetOffset(offset int64) {
+ o.Offset = offset
+}
+
+// WithSort adds the sort to the search objects by version params
+func (o *SearchObjectsByVersionParams) WithSort(sort *string) *SearchObjectsByVersionParams {
+ o.SetSort(sort)
+ return o
+}
+
+// SetSort adds the sort to the search objects by version params
+func (o *SearchObjectsByVersionParams) SetSort(sort *string) {
+ o.Sort = sort
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *SearchObjectsByVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param collection_name
+ if err := r.SetPathParam("collection_name", o.CollectionName); err != nil {
+ return err
+ }
+
+ // path param collection_version
+ if err := r.SetPathParam("collection_version", o.CollectionVersion); err != nil {
+ return err
+ }
+
+ // query param filter
+ qrFilter := o.Filter
+ qFilter := qrFilter
+ if qFilter != "" {
+
+ if err := r.SetQueryParam("filter", qFilter); err != nil {
+ return err
+ }
+ }
+
+ // query param limit
+ qrLimit := o.Limit
+ qLimit := swag.FormatInt64(qrLimit)
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+
+ // query param offset
+ qrOffset := o.Offset
+ qOffset := swag.FormatInt64(qrOffset)
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+
+ if o.Sort != nil {
+
+ // query param sort
+ var qrSort string
+
+ if o.Sort != nil {
+ qrSort = *o.Sort
+ }
+ qSort := qrSort
+ if qSort != "" {
+
+ if err := r.SetQueryParam("sort", qSort); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/custom_storage/search_objects_by_version_responses.go b/falcon/client/custom_storage/search_objects_by_version_responses.go
new file mode 100644
index 00000000..15b0383b
--- /dev/null
+++ b/falcon/client/custom_storage/search_objects_by_version_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package custom_storage
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// SearchObjectsByVersionReader is a Reader for the SearchObjectsByVersion structure.
+type SearchObjectsByVersionReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *SearchObjectsByVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewSearchObjectsByVersionOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewSearchObjectsByVersionForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewSearchObjectsByVersionTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewSearchObjectsByVersionInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /customobjects/v1/collections/{collection_name}/{collection_version}/objects] SearchObjectsByVersion", response, response.Code())
+ }
+}
+
+// NewSearchObjectsByVersionOK creates a SearchObjectsByVersionOK with default headers values
+func NewSearchObjectsByVersionOK() *SearchObjectsByVersionOK {
+ return &SearchObjectsByVersionOK{}
+}
+
+/*
+SearchObjectsByVersionOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type SearchObjectsByVersionOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CustomStorageResponse
+}
+
+// IsSuccess returns true when this search objects by version o k response has a 2xx status code
+func (o *SearchObjectsByVersionOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this search objects by version o k response has a 3xx status code
+func (o *SearchObjectsByVersionOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this search objects by version o k response has a 4xx status code
+func (o *SearchObjectsByVersionOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this search objects by version o k response has a 5xx status code
+func (o *SearchObjectsByVersionOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this search objects by version o k response a status code equal to that given
+func (o *SearchObjectsByVersionOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the search objects by version o k response
+func (o *SearchObjectsByVersionOK) Code() int {
+ return 200
+}
+
+func (o *SearchObjectsByVersionOK) Error() string {
+ return fmt.Sprintf("[POST /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] searchObjectsByVersionOK %+v", 200, o.Payload)
+}
+
+func (o *SearchObjectsByVersionOK) String() string {
+ return fmt.Sprintf("[POST /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] searchObjectsByVersionOK %+v", 200, o.Payload)
+}
+
+func (o *SearchObjectsByVersionOK) GetPayload() *models.CustomStorageResponse {
+ return o.Payload
+}
+
+func (o *SearchObjectsByVersionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CustomStorageResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewSearchObjectsByVersionForbidden creates a SearchObjectsByVersionForbidden with default headers values
+func NewSearchObjectsByVersionForbidden() *SearchObjectsByVersionForbidden {
+ return &SearchObjectsByVersionForbidden{}
+}
+
+/*
+SearchObjectsByVersionForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type SearchObjectsByVersionForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this search objects by version forbidden response has a 2xx status code
+func (o *SearchObjectsByVersionForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this search objects by version forbidden response has a 3xx status code
+func (o *SearchObjectsByVersionForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this search objects by version forbidden response has a 4xx status code
+func (o *SearchObjectsByVersionForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this search objects by version forbidden response has a 5xx status code
+func (o *SearchObjectsByVersionForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this search objects by version forbidden response a status code equal to that given
+func (o *SearchObjectsByVersionForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the search objects by version forbidden response
+func (o *SearchObjectsByVersionForbidden) Code() int {
+ return 403
+}
+
+func (o *SearchObjectsByVersionForbidden) Error() string {
+ return fmt.Sprintf("[POST /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] searchObjectsByVersionForbidden %+v", 403, o.Payload)
+}
+
+func (o *SearchObjectsByVersionForbidden) String() string {
+ return fmt.Sprintf("[POST /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] searchObjectsByVersionForbidden %+v", 403, o.Payload)
+}
+
+func (o *SearchObjectsByVersionForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *SearchObjectsByVersionForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewSearchObjectsByVersionTooManyRequests creates a SearchObjectsByVersionTooManyRequests with default headers values
+func NewSearchObjectsByVersionTooManyRequests() *SearchObjectsByVersionTooManyRequests {
+ return &SearchObjectsByVersionTooManyRequests{}
+}
+
+/*
+SearchObjectsByVersionTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type SearchObjectsByVersionTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this search objects by version too many requests response has a 2xx status code
+func (o *SearchObjectsByVersionTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this search objects by version too many requests response has a 3xx status code
+func (o *SearchObjectsByVersionTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this search objects by version too many requests response has a 4xx status code
+func (o *SearchObjectsByVersionTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this search objects by version too many requests response has a 5xx status code
+func (o *SearchObjectsByVersionTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this search objects by version too many requests response a status code equal to that given
+func (o *SearchObjectsByVersionTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the search objects by version too many requests response
+func (o *SearchObjectsByVersionTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *SearchObjectsByVersionTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] searchObjectsByVersionTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *SearchObjectsByVersionTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] searchObjectsByVersionTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *SearchObjectsByVersionTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *SearchObjectsByVersionTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewSearchObjectsByVersionInternalServerError creates a SearchObjectsByVersionInternalServerError with default headers values
+func NewSearchObjectsByVersionInternalServerError() *SearchObjectsByVersionInternalServerError {
+ return &SearchObjectsByVersionInternalServerError{}
+}
+
+/*
+SearchObjectsByVersionInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type SearchObjectsByVersionInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this search objects by version internal server error response has a 2xx status code
+func (o *SearchObjectsByVersionInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this search objects by version internal server error response has a 3xx status code
+func (o *SearchObjectsByVersionInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this search objects by version internal server error response has a 4xx status code
+func (o *SearchObjectsByVersionInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this search objects by version internal server error response has a 5xx status code
+func (o *SearchObjectsByVersionInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this search objects by version internal server error response a status code equal to that given
+func (o *SearchObjectsByVersionInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the search objects by version internal server error response
+func (o *SearchObjectsByVersionInternalServerError) Code() int {
+ return 500
+}
+
+func (o *SearchObjectsByVersionInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] searchObjectsByVersionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *SearchObjectsByVersionInternalServerError) String() string {
+ return fmt.Sprintf("[POST /customobjects/v1/collections/{collection_name}/{collection_version}/objects][%d] searchObjectsByVersionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *SearchObjectsByVersionInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *SearchObjectsByVersionInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/search_responses.go b/falcon/client/custom_storage/search_responses.go
index fa489088..70f394f6 100644
--- a/falcon/client/custom_storage/search_responses.go
+++ b/falcon/client/custom_storage/search_responses.go
@@ -43,6 +43,12 @@ func (o *SearchReader) ReadResponse(response runtime.ClientResponse, consumer ru
return nil, err
}
return nil, result
+ case 500:
+ result := NewSearchInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /customobjects/v1/collections/{collection_name}/objects] search", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *SearchTooManyRequests) readResponse(response runtime.ClientResponse, co
return nil
}
+
+// NewSearchInternalServerError creates a SearchInternalServerError with default headers values
+func NewSearchInternalServerError() *SearchInternalServerError {
+ return &SearchInternalServerError{}
+}
+
+/*
+SearchInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type SearchInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this search internal server error response has a 2xx status code
+func (o *SearchInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this search internal server error response has a 3xx status code
+func (o *SearchInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this search internal server error response has a 4xx status code
+func (o *SearchInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this search internal server error response has a 5xx status code
+func (o *SearchInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this search internal server error response a status code equal to that given
+func (o *SearchInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the search internal server error response
+func (o *SearchInternalServerError) Code() int {
+ return 500
+}
+
+func (o *SearchInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /customobjects/v1/collections/{collection_name}/objects][%d] searchInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *SearchInternalServerError) String() string {
+ return fmt.Sprintf("[POST /customobjects/v1/collections/{collection_name}/objects][%d] searchInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *SearchInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *SearchInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/custom_storage/upload_responses.go b/falcon/client/custom_storage/upload_responses.go
index 885590af..c8496936 100644
--- a/falcon/client/custom_storage/upload_responses.go
+++ b/falcon/client/custom_storage/upload_responses.go
@@ -43,6 +43,12 @@ func (o *UploadReader) ReadResponse(response runtime.ClientResponse, consumer ru
return nil, err
}
return nil, result
+ case 500:
+ result := NewUploadInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PUT /customobjects/v1/collections/{collection_name}/objects/{object_key}] upload", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *UploadTooManyRequests) readResponse(response runtime.ClientResponse, co
return nil
}
+
+// NewUploadInternalServerError creates a UploadInternalServerError with default headers values
+func NewUploadInternalServerError() *UploadInternalServerError {
+ return &UploadInternalServerError{}
+}
+
+/*
+UploadInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UploadInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this upload internal server error response has a 2xx status code
+func (o *UploadInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upload internal server error response has a 3xx status code
+func (o *UploadInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload internal server error response has a 4xx status code
+func (o *UploadInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upload internal server error response has a 5xx status code
+func (o *UploadInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this upload internal server error response a status code equal to that given
+func (o *UploadInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the upload internal server error response
+func (o *UploadInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UploadInternalServerError) Error() string {
+ return fmt.Sprintf("[PUT /customobjects/v1/collections/{collection_name}/objects/{object_key}][%d] uploadInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UploadInternalServerError) String() string {
+ return fmt.Sprintf("[PUT /customobjects/v1/collections/{collection_name}/objects/{object_key}][%d] uploadInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UploadInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UploadInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/d4c_registration/get_d4_c_a_w_s_account_scripts_attachment_parameters.go b/falcon/client/d4c_registration/get_d4_c_a_w_s_account_scripts_attachment_parameters.go
index 85f5cee1..6d2405b5 100644
--- a/falcon/client/d4c_registration/get_d4_c_a_w_s_account_scripts_attachment_parameters.go
+++ b/falcon/client/d4c_registration/get_d4_c_a_w_s_account_scripts_attachment_parameters.go
@@ -83,6 +83,15 @@ type GetD4CAWSAccountScriptsAttachmentParams struct {
*/
CustomRoleName *string
+ // DspmEnabled.
+ DspmEnabled *string
+
+ // DspmRegions.
+ DspmRegions []string
+
+ // DspmRole.
+ DspmRole *string
+
/* Ids.
AWS account IDs
@@ -217,6 +226,39 @@ func (o *GetD4CAWSAccountScriptsAttachmentParams) SetCustomRoleName(customRoleNa
o.CustomRoleName = customRoleName
}
+// WithDspmEnabled adds the dspmEnabled to the get d4 c a w s account scripts attachment params
+func (o *GetD4CAWSAccountScriptsAttachmentParams) WithDspmEnabled(dspmEnabled *string) *GetD4CAWSAccountScriptsAttachmentParams {
+ o.SetDspmEnabled(dspmEnabled)
+ return o
+}
+
+// SetDspmEnabled adds the dspmEnabled to the get d4 c a w s account scripts attachment params
+func (o *GetD4CAWSAccountScriptsAttachmentParams) SetDspmEnabled(dspmEnabled *string) {
+ o.DspmEnabled = dspmEnabled
+}
+
+// WithDspmRegions adds the dspmRegions to the get d4 c a w s account scripts attachment params
+func (o *GetD4CAWSAccountScriptsAttachmentParams) WithDspmRegions(dspmRegions []string) *GetD4CAWSAccountScriptsAttachmentParams {
+ o.SetDspmRegions(dspmRegions)
+ return o
+}
+
+// SetDspmRegions adds the dspmRegions to the get d4 c a w s account scripts attachment params
+func (o *GetD4CAWSAccountScriptsAttachmentParams) SetDspmRegions(dspmRegions []string) {
+ o.DspmRegions = dspmRegions
+}
+
+// WithDspmRole adds the dspmRole to the get d4 c a w s account scripts attachment params
+func (o *GetD4CAWSAccountScriptsAttachmentParams) WithDspmRole(dspmRole *string) *GetD4CAWSAccountScriptsAttachmentParams {
+ o.SetDspmRole(dspmRole)
+ return o
+}
+
+// SetDspmRole adds the dspmRole to the get d4 c a w s account scripts attachment params
+func (o *GetD4CAWSAccountScriptsAttachmentParams) SetDspmRole(dspmRole *string) {
+ o.DspmRole = dspmRole
+}
+
// WithIds adds the ids to the get d4 c a w s account scripts attachment params
func (o *GetD4CAWSAccountScriptsAttachmentParams) WithIds(ids []string) *GetD4CAWSAccountScriptsAttachmentParams {
o.SetIds(ids)
@@ -342,6 +384,51 @@ func (o *GetD4CAWSAccountScriptsAttachmentParams) WriteToRequest(r runtime.Clien
}
}
+ if o.DspmEnabled != nil {
+
+ // query param dspm_enabled
+ var qrDspmEnabled string
+
+ if o.DspmEnabled != nil {
+ qrDspmEnabled = *o.DspmEnabled
+ }
+ qDspmEnabled := qrDspmEnabled
+ if qDspmEnabled != "" {
+
+ if err := r.SetQueryParam("dspm_enabled", qDspmEnabled); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.DspmRegions != nil {
+
+ // binding items for dspm_regions
+ joinedDspmRegions := o.bindParamDspmRegions(reg)
+
+ // query array param dspm_regions
+ if err := r.SetQueryParam("dspm_regions", joinedDspmRegions...); err != nil {
+ return err
+ }
+ }
+
+ if o.DspmRole != nil {
+
+ // query param dspm_role
+ var qrDspmRole string
+
+ if o.DspmRole != nil {
+ qrDspmRole = *o.DspmRole
+ }
+ qDspmRole := qrDspmRole
+ if qDspmRole != "" {
+
+ if err := r.SetQueryParam("dspm_role", qDspmRole); err != nil {
+ return err
+ }
+ }
+ }
+
if o.Ids != nil {
// binding items for ids
@@ -444,6 +531,23 @@ func (o *GetD4CAWSAccountScriptsAttachmentParams) bindParamAccounts(formats strf
return accountsIS
}
+// bindParamGetD4CAWSAccountScriptsAttachment binds the parameter dspm_regions
+func (o *GetD4CAWSAccountScriptsAttachmentParams) bindParamDspmRegions(formats strfmt.Registry) []string {
+ dspmRegionsIR := o.DspmRegions
+
+ var dspmRegionsIC []string
+ for _, dspmRegionsIIR := range dspmRegionsIR { // explode []string
+
+ dspmRegionsIIV := dspmRegionsIIR // string as string
+ dspmRegionsIC = append(dspmRegionsIC, dspmRegionsIIV)
+ }
+
+ // items.CollectionFormat: "csv"
+ dspmRegionsIS := swag.JoinByFormat(dspmRegionsIC, "csv")
+
+ return dspmRegionsIS
+}
+
// bindParamGetD4CAWSAccountScriptsAttachment binds the parameter ids
func (o *GetD4CAWSAccountScriptsAttachmentParams) bindParamIds(formats strfmt.Registry) []string {
idsIR := o.Ids
diff --git a/falcon/client/d4c_registration/get_horizon_d4_c_scripts_responses.go b/falcon/client/d4c_registration/get_horizon_d4_c_scripts_responses.go
index 7c3a19cf..42653f94 100644
--- a/falcon/client/d4c_registration/get_horizon_d4_c_scripts_responses.go
+++ b/falcon/client/d4c_registration/get_horizon_d4_c_scripts_responses.go
@@ -43,6 +43,12 @@ func (o *GetHorizonD4CScriptsReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetHorizonD4CScriptsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /settings-discover/entities/gen/scripts/v1] GetHorizonD4CScripts", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetHorizonD4CScriptsTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewGetHorizonD4CScriptsInternalServerError creates a GetHorizonD4CScriptsInternalServerError with default headers values
+func NewGetHorizonD4CScriptsInternalServerError() *GetHorizonD4CScriptsInternalServerError {
+ return &GetHorizonD4CScriptsInternalServerError{}
+}
+
+/*
+GetHorizonD4CScriptsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetHorizonD4CScriptsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get horizon d4 c scripts internal server error response has a 2xx status code
+func (o *GetHorizonD4CScriptsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get horizon d4 c scripts internal server error response has a 3xx status code
+func (o *GetHorizonD4CScriptsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get horizon d4 c scripts internal server error response has a 4xx status code
+func (o *GetHorizonD4CScriptsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get horizon d4 c scripts internal server error response has a 5xx status code
+func (o *GetHorizonD4CScriptsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get horizon d4 c scripts internal server error response a status code equal to that given
+func (o *GetHorizonD4CScriptsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get horizon d4 c scripts internal server error response
+func (o *GetHorizonD4CScriptsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetHorizonD4CScriptsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /settings-discover/entities/gen/scripts/v1][%d] getHorizonD4CScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetHorizonD4CScriptsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /settings-discover/entities/gen/scripts/v1][%d] getHorizonD4CScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetHorizonD4CScriptsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetHorizonD4CScriptsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/datascanner/datascanner_client.go b/falcon/client/datascanner/datascanner_client.go
index 728e5117..70eaf826 100644
--- a/falcon/client/datascanner/datascanner_client.go
+++ b/falcon/client/datascanner/datascanner_client.go
@@ -127,7 +127,7 @@ func (a *Client) UpdateDataScannerTasks(params *UpdateDataScannerTasksParams, op
ID: "update-data-scanner-tasks",
Method: "PATCH",
PathPattern: "/data-security-dspm/entities/scanner-tasks/v1",
- ProducesMediaTypes: []string{"application/json"},
+ ProducesMediaTypes: []string{"text/plain"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/falcon/client/datascanner/update_data_scanner_tasks_parameters.go b/falcon/client/datascanner/update_data_scanner_tasks_parameters.go
index a537dc7b..542cf700 100644
--- a/falcon/client/datascanner/update_data_scanner_tasks_parameters.go
+++ b/falcon/client/datascanner/update_data_scanner_tasks_parameters.go
@@ -61,6 +61,12 @@ UpdateDataScannerTasksParams contains all the parameters to send to the API endp
*/
type UpdateDataScannerTasksParams struct {
+ /* XMachineID.
+
+ Provider ID of machine
+ */
+ XMachineID string
+
/* XScannerID.
ID of the data scanner
@@ -120,6 +126,17 @@ func (o *UpdateDataScannerTasksParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
+// WithXMachineID adds the xMachineID to the update data scanner tasks params
+func (o *UpdateDataScannerTasksParams) WithXMachineID(xMachineID string) *UpdateDataScannerTasksParams {
+ o.SetXMachineID(xMachineID)
+ return o
+}
+
+// SetXMachineID adds the xMachineId to the update data scanner tasks params
+func (o *UpdateDataScannerTasksParams) SetXMachineID(xMachineID string) {
+ o.XMachineID = xMachineID
+}
+
// WithXScannerID adds the xScannerID to the update data scanner tasks params
func (o *UpdateDataScannerTasksParams) WithXScannerID(xScannerID string) *UpdateDataScannerTasksParams {
o.SetXScannerID(xScannerID)
@@ -139,6 +156,11 @@ func (o *UpdateDataScannerTasksParams) WriteToRequest(r runtime.ClientRequest, r
}
var res []error
+ // header param X-Machine-Id
+ if err := r.SetHeaderParam("X-Machine-Id", o.XMachineID); err != nil {
+ return err
+ }
+
// header param X-Scanner-Id
if err := r.SetHeaderParam("X-Scanner-Id", o.XScannerID); err != nil {
return err
diff --git a/falcon/client/delivery_settings/delivery_settings_client.go b/falcon/client/delivery_settings/delivery_settings_client.go
new file mode 100644
index 00000000..0ef50d40
--- /dev/null
+++ b/falcon/client/delivery_settings/delivery_settings_client.go
@@ -0,0 +1,119 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package delivery_settings
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new delivery settings API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for delivery settings API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetDeliverySettings(params *GetDeliverySettingsParams, opts ...ClientOption) (*GetDeliverySettingsOK, error)
+
+ PostDeliverySettings(params *PostDeliverySettingsParams, opts ...ClientOption) (*PostDeliverySettingsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+GetDeliverySettings gets delivery settings
+*/
+func (a *Client) GetDeliverySettings(params *GetDeliverySettingsParams, opts ...ClientOption) (*GetDeliverySettingsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetDeliverySettingsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetDeliverySettings",
+ Method: "GET",
+ PathPattern: "/delivery-settings/entities/delivery-settings/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetDeliverySettingsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetDeliverySettingsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetDeliverySettings: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+PostDeliverySettings creates delivery settings
+*/
+func (a *Client) PostDeliverySettings(params *PostDeliverySettingsParams, opts ...ClientOption) (*PostDeliverySettingsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewPostDeliverySettingsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "PostDeliverySettings",
+ Method: "POST",
+ PathPattern: "/delivery-settings/entities/delivery-settings/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &PostDeliverySettingsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*PostDeliverySettingsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for PostDeliverySettings: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/falcon/client/delivery_settings/get_delivery_settings_parameters.go b/falcon/client/delivery_settings/get_delivery_settings_parameters.go
new file mode 100644
index 00000000..32baaee9
--- /dev/null
+++ b/falcon/client/delivery_settings/get_delivery_settings_parameters.go
@@ -0,0 +1,128 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package delivery_settings
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetDeliverySettingsParams creates a new GetDeliverySettingsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetDeliverySettingsParams() *GetDeliverySettingsParams {
+ return &GetDeliverySettingsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetDeliverySettingsParamsWithTimeout creates a new GetDeliverySettingsParams object
+// with the ability to set a timeout on a request.
+func NewGetDeliverySettingsParamsWithTimeout(timeout time.Duration) *GetDeliverySettingsParams {
+ return &GetDeliverySettingsParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetDeliverySettingsParamsWithContext creates a new GetDeliverySettingsParams object
+// with the ability to set a context for a request.
+func NewGetDeliverySettingsParamsWithContext(ctx context.Context) *GetDeliverySettingsParams {
+ return &GetDeliverySettingsParams{
+ Context: ctx,
+ }
+}
+
+// NewGetDeliverySettingsParamsWithHTTPClient creates a new GetDeliverySettingsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetDeliverySettingsParamsWithHTTPClient(client *http.Client) *GetDeliverySettingsParams {
+ return &GetDeliverySettingsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetDeliverySettingsParams contains all the parameters to send to the API endpoint
+
+ for the get delivery settings operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetDeliverySettingsParams struct {
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get delivery settings params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetDeliverySettingsParams) WithDefaults() *GetDeliverySettingsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get delivery settings params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetDeliverySettingsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get delivery settings params
+func (o *GetDeliverySettingsParams) WithTimeout(timeout time.Duration) *GetDeliverySettingsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get delivery settings params
+func (o *GetDeliverySettingsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get delivery settings params
+func (o *GetDeliverySettingsParams) WithContext(ctx context.Context) *GetDeliverySettingsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get delivery settings params
+func (o *GetDeliverySettingsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get delivery settings params
+func (o *GetDeliverySettingsParams) WithHTTPClient(client *http.Client) *GetDeliverySettingsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get delivery settings params
+func (o *GetDeliverySettingsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetDeliverySettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/delivery_settings/get_delivery_settings_responses.go b/falcon/client/delivery_settings/get_delivery_settings_responses.go
new file mode 100644
index 00000000..9cc45b14
--- /dev/null
+++ b/falcon/client/delivery_settings/get_delivery_settings_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package delivery_settings
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetDeliverySettingsReader is a Reader for the GetDeliverySettings structure.
+type GetDeliverySettingsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetDeliverySettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetDeliverySettingsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewGetDeliverySettingsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetDeliverySettingsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetDeliverySettingsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetDeliverySettingsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /delivery-settings/entities/delivery-settings/v1] GetDeliverySettings", response, response.Code())
+ }
+}
+
+// NewGetDeliverySettingsOK creates a GetDeliverySettingsOK with default headers values
+func NewGetDeliverySettingsOK() *GetDeliverySettingsOK {
+ return &GetDeliverySettingsOK{}
+}
+
+/*
+GetDeliverySettingsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetDeliverySettingsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.ModelsDeliverySettingsEntityResponse
+}
+
+// IsSuccess returns true when this get delivery settings o k response has a 2xx status code
+func (o *GetDeliverySettingsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get delivery settings o k response has a 3xx status code
+func (o *GetDeliverySettingsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get delivery settings o k response has a 4xx status code
+func (o *GetDeliverySettingsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get delivery settings o k response has a 5xx status code
+func (o *GetDeliverySettingsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get delivery settings o k response a status code equal to that given
+func (o *GetDeliverySettingsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get delivery settings o k response
+func (o *GetDeliverySettingsOK) Code() int {
+ return 200
+}
+
+func (o *GetDeliverySettingsOK) Error() string {
+ return fmt.Sprintf("[GET /delivery-settings/entities/delivery-settings/v1][%d] getDeliverySettingsOK %+v", 200, o.Payload)
+}
+
+func (o *GetDeliverySettingsOK) String() string {
+ return fmt.Sprintf("[GET /delivery-settings/entities/delivery-settings/v1][%d] getDeliverySettingsOK %+v", 200, o.Payload)
+}
+
+func (o *GetDeliverySettingsOK) GetPayload() *models.ModelsDeliverySettingsEntityResponse {
+ return o.Payload
+}
+
+func (o *GetDeliverySettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.ModelsDeliverySettingsEntityResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetDeliverySettingsBadRequest creates a GetDeliverySettingsBadRequest with default headers values
+func NewGetDeliverySettingsBadRequest() *GetDeliverySettingsBadRequest {
+ return &GetDeliverySettingsBadRequest{}
+}
+
+/*
+GetDeliverySettingsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type GetDeliverySettingsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get delivery settings bad request response has a 2xx status code
+func (o *GetDeliverySettingsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get delivery settings bad request response has a 3xx status code
+func (o *GetDeliverySettingsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get delivery settings bad request response has a 4xx status code
+func (o *GetDeliverySettingsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get delivery settings bad request response has a 5xx status code
+func (o *GetDeliverySettingsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get delivery settings bad request response a status code equal to that given
+func (o *GetDeliverySettingsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the get delivery settings bad request response
+func (o *GetDeliverySettingsBadRequest) Code() int {
+ return 400
+}
+
+func (o *GetDeliverySettingsBadRequest) Error() string {
+ return fmt.Sprintf("[GET /delivery-settings/entities/delivery-settings/v1][%d] getDeliverySettingsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetDeliverySettingsBadRequest) String() string {
+ return fmt.Sprintf("[GET /delivery-settings/entities/delivery-settings/v1][%d] getDeliverySettingsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetDeliverySettingsBadRequest) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetDeliverySettingsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetDeliverySettingsForbidden creates a GetDeliverySettingsForbidden with default headers values
+func NewGetDeliverySettingsForbidden() *GetDeliverySettingsForbidden {
+ return &GetDeliverySettingsForbidden{}
+}
+
+/*
+GetDeliverySettingsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetDeliverySettingsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get delivery settings forbidden response has a 2xx status code
+func (o *GetDeliverySettingsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get delivery settings forbidden response has a 3xx status code
+func (o *GetDeliverySettingsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get delivery settings forbidden response has a 4xx status code
+func (o *GetDeliverySettingsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get delivery settings forbidden response has a 5xx status code
+func (o *GetDeliverySettingsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get delivery settings forbidden response a status code equal to that given
+func (o *GetDeliverySettingsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get delivery settings forbidden response
+func (o *GetDeliverySettingsForbidden) Code() int {
+ return 403
+}
+
+func (o *GetDeliverySettingsForbidden) Error() string {
+ return fmt.Sprintf("[GET /delivery-settings/entities/delivery-settings/v1][%d] getDeliverySettingsForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetDeliverySettingsForbidden) String() string {
+ return fmt.Sprintf("[GET /delivery-settings/entities/delivery-settings/v1][%d] getDeliverySettingsForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetDeliverySettingsForbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetDeliverySettingsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetDeliverySettingsTooManyRequests creates a GetDeliverySettingsTooManyRequests with default headers values
+func NewGetDeliverySettingsTooManyRequests() *GetDeliverySettingsTooManyRequests {
+ return &GetDeliverySettingsTooManyRequests{}
+}
+
+/*
+GetDeliverySettingsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetDeliverySettingsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get delivery settings too many requests response has a 2xx status code
+func (o *GetDeliverySettingsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get delivery settings too many requests response has a 3xx status code
+func (o *GetDeliverySettingsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get delivery settings too many requests response has a 4xx status code
+func (o *GetDeliverySettingsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get delivery settings too many requests response has a 5xx status code
+func (o *GetDeliverySettingsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get delivery settings too many requests response a status code equal to that given
+func (o *GetDeliverySettingsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get delivery settings too many requests response
+func (o *GetDeliverySettingsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetDeliverySettingsTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /delivery-settings/entities/delivery-settings/v1][%d] getDeliverySettingsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetDeliverySettingsTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /delivery-settings/entities/delivery-settings/v1][%d] getDeliverySettingsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetDeliverySettingsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetDeliverySettingsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetDeliverySettingsInternalServerError creates a GetDeliverySettingsInternalServerError with default headers values
+func NewGetDeliverySettingsInternalServerError() *GetDeliverySettingsInternalServerError {
+ return &GetDeliverySettingsInternalServerError{}
+}
+
+/*
+GetDeliverySettingsInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type GetDeliverySettingsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get delivery settings internal server error response has a 2xx status code
+func (o *GetDeliverySettingsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get delivery settings internal server error response has a 3xx status code
+func (o *GetDeliverySettingsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get delivery settings internal server error response has a 4xx status code
+func (o *GetDeliverySettingsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get delivery settings internal server error response has a 5xx status code
+func (o *GetDeliverySettingsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get delivery settings internal server error response a status code equal to that given
+func (o *GetDeliverySettingsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get delivery settings internal server error response
+func (o *GetDeliverySettingsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetDeliverySettingsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /delivery-settings/entities/delivery-settings/v1][%d] getDeliverySettingsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetDeliverySettingsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /delivery-settings/entities/delivery-settings/v1][%d] getDeliverySettingsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetDeliverySettingsInternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetDeliverySettingsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/delivery_settings/post_delivery_settings_parameters.go b/falcon/client/delivery_settings/post_delivery_settings_parameters.go
new file mode 100644
index 00000000..d84c9a26
--- /dev/null
+++ b/falcon/client/delivery_settings/post_delivery_settings_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package delivery_settings
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewPostDeliverySettingsParams creates a new PostDeliverySettingsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewPostDeliverySettingsParams() *PostDeliverySettingsParams {
+ return &PostDeliverySettingsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewPostDeliverySettingsParamsWithTimeout creates a new PostDeliverySettingsParams object
+// with the ability to set a timeout on a request.
+func NewPostDeliverySettingsParamsWithTimeout(timeout time.Duration) *PostDeliverySettingsParams {
+ return &PostDeliverySettingsParams{
+ timeout: timeout,
+ }
+}
+
+// NewPostDeliverySettingsParamsWithContext creates a new PostDeliverySettingsParams object
+// with the ability to set a context for a request.
+func NewPostDeliverySettingsParamsWithContext(ctx context.Context) *PostDeliverySettingsParams {
+ return &PostDeliverySettingsParams{
+ Context: ctx,
+ }
+}
+
+// NewPostDeliverySettingsParamsWithHTTPClient creates a new PostDeliverySettingsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewPostDeliverySettingsParamsWithHTTPClient(client *http.Client) *PostDeliverySettingsParams {
+ return &PostDeliverySettingsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+PostDeliverySettingsParams contains all the parameters to send to the API endpoint
+
+ for the post delivery settings operation.
+
+ Typically these are written to a http.Request.
+*/
+type PostDeliverySettingsParams struct {
+
+ // Body.
+ Body *models.ModelsDeliverySettingsRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the post delivery settings params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostDeliverySettingsParams) WithDefaults() *PostDeliverySettingsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the post delivery settings params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostDeliverySettingsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the post delivery settings params
+func (o *PostDeliverySettingsParams) WithTimeout(timeout time.Duration) *PostDeliverySettingsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the post delivery settings params
+func (o *PostDeliverySettingsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the post delivery settings params
+func (o *PostDeliverySettingsParams) WithContext(ctx context.Context) *PostDeliverySettingsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the post delivery settings params
+func (o *PostDeliverySettingsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the post delivery settings params
+func (o *PostDeliverySettingsParams) WithHTTPClient(client *http.Client) *PostDeliverySettingsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the post delivery settings params
+func (o *PostDeliverySettingsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the post delivery settings params
+func (o *PostDeliverySettingsParams) WithBody(body *models.ModelsDeliverySettingsRequest) *PostDeliverySettingsParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the post delivery settings params
+func (o *PostDeliverySettingsParams) SetBody(body *models.ModelsDeliverySettingsRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *PostDeliverySettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/delivery_settings/post_delivery_settings_responses.go b/falcon/client/delivery_settings/post_delivery_settings_responses.go
new file mode 100644
index 00000000..e5e5467b
--- /dev/null
+++ b/falcon/client/delivery_settings/post_delivery_settings_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package delivery_settings
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// PostDeliverySettingsReader is a Reader for the PostDeliverySettings structure.
+type PostDeliverySettingsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *PostDeliverySettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewPostDeliverySettingsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewPostDeliverySettingsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewPostDeliverySettingsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewPostDeliverySettingsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewPostDeliverySettingsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /delivery-settings/entities/delivery-settings/v1] PostDeliverySettings", response, response.Code())
+ }
+}
+
+// NewPostDeliverySettingsOK creates a PostDeliverySettingsOK with default headers values
+func NewPostDeliverySettingsOK() *PostDeliverySettingsOK {
+ return &PostDeliverySettingsOK{}
+}
+
+/*
+PostDeliverySettingsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type PostDeliverySettingsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.ModelsDeliverySettingsEntityResponse
+}
+
+// IsSuccess returns true when this post delivery settings o k response has a 2xx status code
+func (o *PostDeliverySettingsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this post delivery settings o k response has a 3xx status code
+func (o *PostDeliverySettingsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this post delivery settings o k response has a 4xx status code
+func (o *PostDeliverySettingsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this post delivery settings o k response has a 5xx status code
+func (o *PostDeliverySettingsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this post delivery settings o k response a status code equal to that given
+func (o *PostDeliverySettingsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the post delivery settings o k response
+func (o *PostDeliverySettingsOK) Code() int {
+ return 200
+}
+
+func (o *PostDeliverySettingsOK) Error() string {
+ return fmt.Sprintf("[POST /delivery-settings/entities/delivery-settings/v1][%d] postDeliverySettingsOK %+v", 200, o.Payload)
+}
+
+func (o *PostDeliverySettingsOK) String() string {
+ return fmt.Sprintf("[POST /delivery-settings/entities/delivery-settings/v1][%d] postDeliverySettingsOK %+v", 200, o.Payload)
+}
+
+func (o *PostDeliverySettingsOK) GetPayload() *models.ModelsDeliverySettingsEntityResponse {
+ return o.Payload
+}
+
+func (o *PostDeliverySettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.ModelsDeliverySettingsEntityResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostDeliverySettingsBadRequest creates a PostDeliverySettingsBadRequest with default headers values
+func NewPostDeliverySettingsBadRequest() *PostDeliverySettingsBadRequest {
+ return &PostDeliverySettingsBadRequest{}
+}
+
+/*
+PostDeliverySettingsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type PostDeliverySettingsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this post delivery settings bad request response has a 2xx status code
+func (o *PostDeliverySettingsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this post delivery settings bad request response has a 3xx status code
+func (o *PostDeliverySettingsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this post delivery settings bad request response has a 4xx status code
+func (o *PostDeliverySettingsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this post delivery settings bad request response has a 5xx status code
+func (o *PostDeliverySettingsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this post delivery settings bad request response a status code equal to that given
+func (o *PostDeliverySettingsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the post delivery settings bad request response
+func (o *PostDeliverySettingsBadRequest) Code() int {
+ return 400
+}
+
+func (o *PostDeliverySettingsBadRequest) Error() string {
+ return fmt.Sprintf("[POST /delivery-settings/entities/delivery-settings/v1][%d] postDeliverySettingsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *PostDeliverySettingsBadRequest) String() string {
+ return fmt.Sprintf("[POST /delivery-settings/entities/delivery-settings/v1][%d] postDeliverySettingsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *PostDeliverySettingsBadRequest) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *PostDeliverySettingsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostDeliverySettingsForbidden creates a PostDeliverySettingsForbidden with default headers values
+func NewPostDeliverySettingsForbidden() *PostDeliverySettingsForbidden {
+ return &PostDeliverySettingsForbidden{}
+}
+
+/*
+PostDeliverySettingsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type PostDeliverySettingsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this post delivery settings forbidden response has a 2xx status code
+func (o *PostDeliverySettingsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this post delivery settings forbidden response has a 3xx status code
+func (o *PostDeliverySettingsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this post delivery settings forbidden response has a 4xx status code
+func (o *PostDeliverySettingsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this post delivery settings forbidden response has a 5xx status code
+func (o *PostDeliverySettingsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this post delivery settings forbidden response a status code equal to that given
+func (o *PostDeliverySettingsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the post delivery settings forbidden response
+func (o *PostDeliverySettingsForbidden) Code() int {
+ return 403
+}
+
+func (o *PostDeliverySettingsForbidden) Error() string {
+ return fmt.Sprintf("[POST /delivery-settings/entities/delivery-settings/v1][%d] postDeliverySettingsForbidden %+v", 403, o.Payload)
+}
+
+func (o *PostDeliverySettingsForbidden) String() string {
+ return fmt.Sprintf("[POST /delivery-settings/entities/delivery-settings/v1][%d] postDeliverySettingsForbidden %+v", 403, o.Payload)
+}
+
+func (o *PostDeliverySettingsForbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *PostDeliverySettingsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostDeliverySettingsTooManyRequests creates a PostDeliverySettingsTooManyRequests with default headers values
+func NewPostDeliverySettingsTooManyRequests() *PostDeliverySettingsTooManyRequests {
+ return &PostDeliverySettingsTooManyRequests{}
+}
+
+/*
+PostDeliverySettingsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type PostDeliverySettingsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this post delivery settings too many requests response has a 2xx status code
+func (o *PostDeliverySettingsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this post delivery settings too many requests response has a 3xx status code
+func (o *PostDeliverySettingsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this post delivery settings too many requests response has a 4xx status code
+func (o *PostDeliverySettingsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this post delivery settings too many requests response has a 5xx status code
+func (o *PostDeliverySettingsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this post delivery settings too many requests response a status code equal to that given
+func (o *PostDeliverySettingsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the post delivery settings too many requests response
+func (o *PostDeliverySettingsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *PostDeliverySettingsTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /delivery-settings/entities/delivery-settings/v1][%d] postDeliverySettingsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *PostDeliverySettingsTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /delivery-settings/entities/delivery-settings/v1][%d] postDeliverySettingsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *PostDeliverySettingsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *PostDeliverySettingsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostDeliverySettingsInternalServerError creates a PostDeliverySettingsInternalServerError with default headers values
+func NewPostDeliverySettingsInternalServerError() *PostDeliverySettingsInternalServerError {
+ return &PostDeliverySettingsInternalServerError{}
+}
+
+/*
+PostDeliverySettingsInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type PostDeliverySettingsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this post delivery settings internal server error response has a 2xx status code
+func (o *PostDeliverySettingsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this post delivery settings internal server error response has a 3xx status code
+func (o *PostDeliverySettingsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this post delivery settings internal server error response has a 4xx status code
+func (o *PostDeliverySettingsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this post delivery settings internal server error response has a 5xx status code
+func (o *PostDeliverySettingsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this post delivery settings internal server error response a status code equal to that given
+func (o *PostDeliverySettingsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the post delivery settings internal server error response
+func (o *PostDeliverySettingsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *PostDeliverySettingsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /delivery-settings/entities/delivery-settings/v1][%d] postDeliverySettingsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *PostDeliverySettingsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /delivery-settings/entities/delivery-settings/v1][%d] postDeliverySettingsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *PostDeliverySettingsInternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *PostDeliverySettingsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/downloads_api/download_file_parameters.go b/falcon/client/downloads_api/download_file_parameters.go
new file mode 100644
index 00000000..6e1fcdcf
--- /dev/null
+++ b/falcon/client/downloads_api/download_file_parameters.go
@@ -0,0 +1,183 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package downloads_api
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewDownloadFileParams creates a new DownloadFileParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDownloadFileParams() *DownloadFileParams {
+ return &DownloadFileParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDownloadFileParamsWithTimeout creates a new DownloadFileParams object
+// with the ability to set a timeout on a request.
+func NewDownloadFileParamsWithTimeout(timeout time.Duration) *DownloadFileParams {
+ return &DownloadFileParams{
+ timeout: timeout,
+ }
+}
+
+// NewDownloadFileParamsWithContext creates a new DownloadFileParams object
+// with the ability to set a context for a request.
+func NewDownloadFileParamsWithContext(ctx context.Context) *DownloadFileParams {
+ return &DownloadFileParams{
+ Context: ctx,
+ }
+}
+
+// NewDownloadFileParamsWithHTTPClient creates a new DownloadFileParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDownloadFileParamsWithHTTPClient(client *http.Client) *DownloadFileParams {
+ return &DownloadFileParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DownloadFileParams contains all the parameters to send to the API endpoint
+
+ for the download file operation.
+
+ Typically these are written to a http.Request.
+*/
+type DownloadFileParams struct {
+
+ /* FileName.
+
+ Name of the file to be downloaded
+ */
+ FileName string
+
+ /* FileVersion.
+
+ Version of the file to be downloaded
+ */
+ FileVersion string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the download file params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DownloadFileParams) WithDefaults() *DownloadFileParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the download file params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DownloadFileParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the download file params
+func (o *DownloadFileParams) WithTimeout(timeout time.Duration) *DownloadFileParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the download file params
+func (o *DownloadFileParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the download file params
+func (o *DownloadFileParams) WithContext(ctx context.Context) *DownloadFileParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the download file params
+func (o *DownloadFileParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the download file params
+func (o *DownloadFileParams) WithHTTPClient(client *http.Client) *DownloadFileParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the download file params
+func (o *DownloadFileParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithFileName adds the fileName to the download file params
+func (o *DownloadFileParams) WithFileName(fileName string) *DownloadFileParams {
+ o.SetFileName(fileName)
+ return o
+}
+
+// SetFileName adds the fileName to the download file params
+func (o *DownloadFileParams) SetFileName(fileName string) {
+ o.FileName = fileName
+}
+
+// WithFileVersion adds the fileVersion to the download file params
+func (o *DownloadFileParams) WithFileVersion(fileVersion string) *DownloadFileParams {
+ o.SetFileVersion(fileVersion)
+ return o
+}
+
+// SetFileVersion adds the fileVersion to the download file params
+func (o *DownloadFileParams) SetFileVersion(fileVersion string) {
+ o.FileVersion = fileVersion
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DownloadFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // query param file_name
+ qrFileName := o.FileName
+ qFileName := qrFileName
+ if qFileName != "" {
+
+ if err := r.SetQueryParam("file_name", qFileName); err != nil {
+ return err
+ }
+ }
+
+ // query param file_version
+ qrFileVersion := o.FileVersion
+ qFileVersion := qrFileVersion
+ if qFileVersion != "" {
+
+ if err := r.SetQueryParam("file_version", qFileVersion); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/downloads_api/download_file_responses.go b/falcon/client/downloads_api/download_file_responses.go
new file mode 100644
index 00000000..766c001c
--- /dev/null
+++ b/falcon/client/downloads_api/download_file_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package downloads_api
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DownloadFileReader is a Reader for the DownloadFile structure.
+type DownloadFileReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DownloadFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewDownloadFileOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewDownloadFileBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewDownloadFileUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewDownloadFileForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDownloadFileTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDownloadFileInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /csdownloads/entities/files/download/v1] DownloadFile", response, response.Code())
+ }
+}
+
+// NewDownloadFileOK creates a DownloadFileOK with default headers values
+func NewDownloadFileOK() *DownloadFileOK {
+ return &DownloadFileOK{}
+}
+
+/*
+DownloadFileOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type DownloadFileOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CommonEntitiesResponse
+}
+
+// IsSuccess returns true when this download file o k response has a 2xx status code
+func (o *DownloadFileOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this download file o k response has a 3xx status code
+func (o *DownloadFileOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download file o k response has a 4xx status code
+func (o *DownloadFileOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this download file o k response has a 5xx status code
+func (o *DownloadFileOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this download file o k response a status code equal to that given
+func (o *DownloadFileOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the download file o k response
+func (o *DownloadFileOK) Code() int {
+ return 200
+}
+
+func (o *DownloadFileOK) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileOK %+v", 200, o.Payload)
+}
+
+func (o *DownloadFileOK) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileOK %+v", 200, o.Payload)
+}
+
+func (o *DownloadFileOK) GetPayload() *models.CommonEntitiesResponse {
+ return o.Payload
+}
+
+func (o *DownloadFileOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CommonEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDownloadFileBadRequest creates a DownloadFileBadRequest with default headers values
+func NewDownloadFileBadRequest() *DownloadFileBadRequest {
+ return &DownloadFileBadRequest{}
+}
+
+/*
+DownloadFileBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type DownloadFileBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CommonEntitiesResponse
+}
+
+// IsSuccess returns true when this download file bad request response has a 2xx status code
+func (o *DownloadFileBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download file bad request response has a 3xx status code
+func (o *DownloadFileBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download file bad request response has a 4xx status code
+func (o *DownloadFileBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this download file bad request response has a 5xx status code
+func (o *DownloadFileBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this download file bad request response a status code equal to that given
+func (o *DownloadFileBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the download file bad request response
+func (o *DownloadFileBadRequest) Code() int {
+ return 400
+}
+
+func (o *DownloadFileBadRequest) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DownloadFileBadRequest) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DownloadFileBadRequest) GetPayload() *models.CommonEntitiesResponse {
+ return o.Payload
+}
+
+func (o *DownloadFileBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CommonEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDownloadFileUnauthorized creates a DownloadFileUnauthorized with default headers values
+func NewDownloadFileUnauthorized() *DownloadFileUnauthorized {
+ return &DownloadFileUnauthorized{}
+}
+
+/*
+DownloadFileUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type DownloadFileUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CommonEntitiesResponse
+}
+
+// IsSuccess returns true when this download file unauthorized response has a 2xx status code
+func (o *DownloadFileUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download file unauthorized response has a 3xx status code
+func (o *DownloadFileUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download file unauthorized response has a 4xx status code
+func (o *DownloadFileUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this download file unauthorized response has a 5xx status code
+func (o *DownloadFileUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this download file unauthorized response a status code equal to that given
+func (o *DownloadFileUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the download file unauthorized response
+func (o *DownloadFileUnauthorized) Code() int {
+ return 401
+}
+
+func (o *DownloadFileUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *DownloadFileUnauthorized) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *DownloadFileUnauthorized) GetPayload() *models.CommonEntitiesResponse {
+ return o.Payload
+}
+
+func (o *DownloadFileUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CommonEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDownloadFileForbidden creates a DownloadFileForbidden with default headers values
+func NewDownloadFileForbidden() *DownloadFileForbidden {
+ return &DownloadFileForbidden{}
+}
+
+/*
+DownloadFileForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DownloadFileForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CommonEntitiesResponse
+}
+
+// IsSuccess returns true when this download file forbidden response has a 2xx status code
+func (o *DownloadFileForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download file forbidden response has a 3xx status code
+func (o *DownloadFileForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download file forbidden response has a 4xx status code
+func (o *DownloadFileForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this download file forbidden response has a 5xx status code
+func (o *DownloadFileForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this download file forbidden response a status code equal to that given
+func (o *DownloadFileForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the download file forbidden response
+func (o *DownloadFileForbidden) Code() int {
+ return 403
+}
+
+func (o *DownloadFileForbidden) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileForbidden %+v", 403, o.Payload)
+}
+
+func (o *DownloadFileForbidden) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileForbidden %+v", 403, o.Payload)
+}
+
+func (o *DownloadFileForbidden) GetPayload() *models.CommonEntitiesResponse {
+ return o.Payload
+}
+
+func (o *DownloadFileForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CommonEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDownloadFileTooManyRequests creates a DownloadFileTooManyRequests with default headers values
+func NewDownloadFileTooManyRequests() *DownloadFileTooManyRequests {
+ return &DownloadFileTooManyRequests{}
+}
+
+/*
+DownloadFileTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DownloadFileTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this download file too many requests response has a 2xx status code
+func (o *DownloadFileTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download file too many requests response has a 3xx status code
+func (o *DownloadFileTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download file too many requests response has a 4xx status code
+func (o *DownloadFileTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this download file too many requests response has a 5xx status code
+func (o *DownloadFileTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this download file too many requests response a status code equal to that given
+func (o *DownloadFileTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the download file too many requests response
+func (o *DownloadFileTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DownloadFileTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DownloadFileTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DownloadFileTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DownloadFileTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDownloadFileInternalServerError creates a DownloadFileInternalServerError with default headers values
+func NewDownloadFileInternalServerError() *DownloadFileInternalServerError {
+ return &DownloadFileInternalServerError{}
+}
+
+/*
+DownloadFileInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type DownloadFileInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CommonEntitiesResponse
+}
+
+// IsSuccess returns true when this download file internal server error response has a 2xx status code
+func (o *DownloadFileInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download file internal server error response has a 3xx status code
+func (o *DownloadFileInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download file internal server error response has a 4xx status code
+func (o *DownloadFileInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this download file internal server error response has a 5xx status code
+func (o *DownloadFileInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this download file internal server error response a status code equal to that given
+func (o *DownloadFileInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the download file internal server error response
+func (o *DownloadFileInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DownloadFileInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DownloadFileInternalServerError) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/download/v1][%d] downloadFileInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DownloadFileInternalServerError) GetPayload() *models.CommonEntitiesResponse {
+ return o.Payload
+}
+
+func (o *DownloadFileInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CommonEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/downloads_api/downloads_api_client.go b/falcon/client/downloads_api/downloads_api_client.go
new file mode 100644
index 00000000..0ca53db3
--- /dev/null
+++ b/falcon/client/downloads_api/downloads_api_client.go
@@ -0,0 +1,119 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package downloads_api
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new downloads api API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for downloads api API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ DownloadFile(params *DownloadFileParams, opts ...ClientOption) (*DownloadFileOK, error)
+
+ EnumerateFile(params *EnumerateFileParams, opts ...ClientOption) (*EnumerateFileOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+DownloadFile gets pre signed URL for the file
+*/
+func (a *Client) DownloadFile(params *DownloadFileParams, opts ...ClientOption) (*DownloadFileOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDownloadFileParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "DownloadFile",
+ Method: "GET",
+ PathPattern: "/csdownloads/entities/files/download/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DownloadFileReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DownloadFileOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for DownloadFile: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+EnumerateFile enumerates a list of files available for c ID
+*/
+func (a *Client) EnumerateFile(params *EnumerateFileParams, opts ...ClientOption) (*EnumerateFileOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewEnumerateFileParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "EnumerateFile",
+ Method: "GET",
+ PathPattern: "/csdownloads/entities/files/enumerate/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &EnumerateFileReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*EnumerateFileOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for EnumerateFile: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/falcon/client/downloads_api/enumerate_file_parameters.go b/falcon/client/downloads_api/enumerate_file_parameters.go
new file mode 100644
index 00000000..4ef23c0e
--- /dev/null
+++ b/falcon/client/downloads_api/enumerate_file_parameters.go
@@ -0,0 +1,333 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package downloads_api
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewEnumerateFileParams creates a new EnumerateFileParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewEnumerateFileParams() *EnumerateFileParams {
+ return &EnumerateFileParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewEnumerateFileParamsWithTimeout creates a new EnumerateFileParams object
+// with the ability to set a timeout on a request.
+func NewEnumerateFileParamsWithTimeout(timeout time.Duration) *EnumerateFileParams {
+ return &EnumerateFileParams{
+ timeout: timeout,
+ }
+}
+
+// NewEnumerateFileParamsWithContext creates a new EnumerateFileParams object
+// with the ability to set a context for a request.
+func NewEnumerateFileParamsWithContext(ctx context.Context) *EnumerateFileParams {
+ return &EnumerateFileParams{
+ Context: ctx,
+ }
+}
+
+// NewEnumerateFileParamsWithHTTPClient creates a new EnumerateFileParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewEnumerateFileParamsWithHTTPClient(client *http.Client) *EnumerateFileParams {
+ return &EnumerateFileParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+EnumerateFileParams contains all the parameters to send to the API endpoint
+
+ for the enumerate file operation.
+
+ Typically these are written to a http.Request.
+*/
+type EnumerateFileParams struct {
+
+ /* Arch.
+
+ Apply filtering on architecture
+ */
+ Arch *string
+
+ /* Category.
+
+ Apply filtering on file category
+ */
+ Category *string
+
+ /* FileName.
+
+ Apply filtering on file name
+ */
+ FileName *string
+
+ /* FileVersion.
+
+ Apply filtering on file version
+ */
+ FileVersion *string
+
+ /* Os.
+
+ Apply filtering on operating system
+ */
+ Os *string
+
+ /* Platform.
+
+ Apply filtering on file platform
+ */
+ Platform *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the enumerate file params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *EnumerateFileParams) WithDefaults() *EnumerateFileParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the enumerate file params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *EnumerateFileParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the enumerate file params
+func (o *EnumerateFileParams) WithTimeout(timeout time.Duration) *EnumerateFileParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the enumerate file params
+func (o *EnumerateFileParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the enumerate file params
+func (o *EnumerateFileParams) WithContext(ctx context.Context) *EnumerateFileParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the enumerate file params
+func (o *EnumerateFileParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the enumerate file params
+func (o *EnumerateFileParams) WithHTTPClient(client *http.Client) *EnumerateFileParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the enumerate file params
+func (o *EnumerateFileParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithArch adds the arch to the enumerate file params
+func (o *EnumerateFileParams) WithArch(arch *string) *EnumerateFileParams {
+ o.SetArch(arch)
+ return o
+}
+
+// SetArch adds the arch to the enumerate file params
+func (o *EnumerateFileParams) SetArch(arch *string) {
+ o.Arch = arch
+}
+
+// WithCategory adds the category to the enumerate file params
+func (o *EnumerateFileParams) WithCategory(category *string) *EnumerateFileParams {
+ o.SetCategory(category)
+ return o
+}
+
+// SetCategory adds the category to the enumerate file params
+func (o *EnumerateFileParams) SetCategory(category *string) {
+ o.Category = category
+}
+
+// WithFileName adds the fileName to the enumerate file params
+func (o *EnumerateFileParams) WithFileName(fileName *string) *EnumerateFileParams {
+ o.SetFileName(fileName)
+ return o
+}
+
+// SetFileName adds the fileName to the enumerate file params
+func (o *EnumerateFileParams) SetFileName(fileName *string) {
+ o.FileName = fileName
+}
+
+// WithFileVersion adds the fileVersion to the enumerate file params
+func (o *EnumerateFileParams) WithFileVersion(fileVersion *string) *EnumerateFileParams {
+ o.SetFileVersion(fileVersion)
+ return o
+}
+
+// SetFileVersion adds the fileVersion to the enumerate file params
+func (o *EnumerateFileParams) SetFileVersion(fileVersion *string) {
+ o.FileVersion = fileVersion
+}
+
+// WithOs adds the os to the enumerate file params
+func (o *EnumerateFileParams) WithOs(os *string) *EnumerateFileParams {
+ o.SetOs(os)
+ return o
+}
+
+// SetOs adds the os to the enumerate file params
+func (o *EnumerateFileParams) SetOs(os *string) {
+ o.Os = os
+}
+
+// WithPlatform adds the platform to the enumerate file params
+func (o *EnumerateFileParams) WithPlatform(platform *string) *EnumerateFileParams {
+ o.SetPlatform(platform)
+ return o
+}
+
+// SetPlatform adds the platform to the enumerate file params
+func (o *EnumerateFileParams) SetPlatform(platform *string) {
+ o.Platform = platform
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *EnumerateFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Arch != nil {
+
+ // query param arch
+ var qrArch string
+
+ if o.Arch != nil {
+ qrArch = *o.Arch
+ }
+ qArch := qrArch
+ if qArch != "" {
+
+ if err := r.SetQueryParam("arch", qArch); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Category != nil {
+
+ // query param category
+ var qrCategory string
+
+ if o.Category != nil {
+ qrCategory = *o.Category
+ }
+ qCategory := qrCategory
+ if qCategory != "" {
+
+ if err := r.SetQueryParam("category", qCategory); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.FileName != nil {
+
+ // query param file_name
+ var qrFileName string
+
+ if o.FileName != nil {
+ qrFileName = *o.FileName
+ }
+ qFileName := qrFileName
+ if qFileName != "" {
+
+ if err := r.SetQueryParam("file_name", qFileName); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.FileVersion != nil {
+
+ // query param file_version
+ var qrFileVersion string
+
+ if o.FileVersion != nil {
+ qrFileVersion = *o.FileVersion
+ }
+ qFileVersion := qrFileVersion
+ if qFileVersion != "" {
+
+ if err := r.SetQueryParam("file_version", qFileVersion); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Os != nil {
+
+ // query param os
+ var qrOs string
+
+ if o.Os != nil {
+ qrOs = *o.Os
+ }
+ qOs := qrOs
+ if qOs != "" {
+
+ if err := r.SetQueryParam("os", qOs); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Platform != nil {
+
+ // query param platform
+ var qrPlatform string
+
+ if o.Platform != nil {
+ qrPlatform = *o.Platform
+ }
+ qPlatform := qrPlatform
+ if qPlatform != "" {
+
+ if err := r.SetQueryParam("platform", qPlatform); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/downloads_api/enumerate_file_responses.go b/falcon/client/downloads_api/enumerate_file_responses.go
new file mode 100644
index 00000000..b887929a
--- /dev/null
+++ b/falcon/client/downloads_api/enumerate_file_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package downloads_api
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// EnumerateFileReader is a Reader for the EnumerateFile structure.
+type EnumerateFileReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *EnumerateFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewEnumerateFileOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewEnumerateFileBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewEnumerateFileUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewEnumerateFileForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewEnumerateFileTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewEnumerateFileInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /csdownloads/entities/files/enumerate/v1] EnumerateFile", response, response.Code())
+ }
+}
+
+// NewEnumerateFileOK creates a EnumerateFileOK with default headers values
+func NewEnumerateFileOK() *EnumerateFileOK {
+ return &EnumerateFileOK{}
+}
+
+/*
+EnumerateFileOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type EnumerateFileOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CommonEntitiesResponse
+}
+
+// IsSuccess returns true when this enumerate file o k response has a 2xx status code
+func (o *EnumerateFileOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this enumerate file o k response has a 3xx status code
+func (o *EnumerateFileOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this enumerate file o k response has a 4xx status code
+func (o *EnumerateFileOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this enumerate file o k response has a 5xx status code
+func (o *EnumerateFileOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this enumerate file o k response a status code equal to that given
+func (o *EnumerateFileOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the enumerate file o k response
+func (o *EnumerateFileOK) Code() int {
+ return 200
+}
+
+func (o *EnumerateFileOK) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileOK %+v", 200, o.Payload)
+}
+
+func (o *EnumerateFileOK) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileOK %+v", 200, o.Payload)
+}
+
+func (o *EnumerateFileOK) GetPayload() *models.CommonEntitiesResponse {
+ return o.Payload
+}
+
+func (o *EnumerateFileOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CommonEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewEnumerateFileBadRequest creates a EnumerateFileBadRequest with default headers values
+func NewEnumerateFileBadRequest() *EnumerateFileBadRequest {
+ return &EnumerateFileBadRequest{}
+}
+
+/*
+EnumerateFileBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type EnumerateFileBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CommonEntitiesResponse
+}
+
+// IsSuccess returns true when this enumerate file bad request response has a 2xx status code
+func (o *EnumerateFileBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this enumerate file bad request response has a 3xx status code
+func (o *EnumerateFileBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this enumerate file bad request response has a 4xx status code
+func (o *EnumerateFileBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this enumerate file bad request response has a 5xx status code
+func (o *EnumerateFileBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this enumerate file bad request response a status code equal to that given
+func (o *EnumerateFileBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the enumerate file bad request response
+func (o *EnumerateFileBadRequest) Code() int {
+ return 400
+}
+
+func (o *EnumerateFileBadRequest) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileBadRequest %+v", 400, o.Payload)
+}
+
+func (o *EnumerateFileBadRequest) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileBadRequest %+v", 400, o.Payload)
+}
+
+func (o *EnumerateFileBadRequest) GetPayload() *models.CommonEntitiesResponse {
+ return o.Payload
+}
+
+func (o *EnumerateFileBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CommonEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewEnumerateFileUnauthorized creates a EnumerateFileUnauthorized with default headers values
+func NewEnumerateFileUnauthorized() *EnumerateFileUnauthorized {
+ return &EnumerateFileUnauthorized{}
+}
+
+/*
+EnumerateFileUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type EnumerateFileUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CommonEntitiesResponse
+}
+
+// IsSuccess returns true when this enumerate file unauthorized response has a 2xx status code
+func (o *EnumerateFileUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this enumerate file unauthorized response has a 3xx status code
+func (o *EnumerateFileUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this enumerate file unauthorized response has a 4xx status code
+func (o *EnumerateFileUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this enumerate file unauthorized response has a 5xx status code
+func (o *EnumerateFileUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this enumerate file unauthorized response a status code equal to that given
+func (o *EnumerateFileUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the enumerate file unauthorized response
+func (o *EnumerateFileUnauthorized) Code() int {
+ return 401
+}
+
+func (o *EnumerateFileUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *EnumerateFileUnauthorized) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *EnumerateFileUnauthorized) GetPayload() *models.CommonEntitiesResponse {
+ return o.Payload
+}
+
+func (o *EnumerateFileUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CommonEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewEnumerateFileForbidden creates a EnumerateFileForbidden with default headers values
+func NewEnumerateFileForbidden() *EnumerateFileForbidden {
+ return &EnumerateFileForbidden{}
+}
+
+/*
+EnumerateFileForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type EnumerateFileForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CommonEntitiesResponse
+}
+
+// IsSuccess returns true when this enumerate file forbidden response has a 2xx status code
+func (o *EnumerateFileForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this enumerate file forbidden response has a 3xx status code
+func (o *EnumerateFileForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this enumerate file forbidden response has a 4xx status code
+func (o *EnumerateFileForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this enumerate file forbidden response has a 5xx status code
+func (o *EnumerateFileForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this enumerate file forbidden response a status code equal to that given
+func (o *EnumerateFileForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the enumerate file forbidden response
+func (o *EnumerateFileForbidden) Code() int {
+ return 403
+}
+
+func (o *EnumerateFileForbidden) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileForbidden %+v", 403, o.Payload)
+}
+
+func (o *EnumerateFileForbidden) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileForbidden %+v", 403, o.Payload)
+}
+
+func (o *EnumerateFileForbidden) GetPayload() *models.CommonEntitiesResponse {
+ return o.Payload
+}
+
+func (o *EnumerateFileForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CommonEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewEnumerateFileTooManyRequests creates a EnumerateFileTooManyRequests with default headers values
+func NewEnumerateFileTooManyRequests() *EnumerateFileTooManyRequests {
+ return &EnumerateFileTooManyRequests{}
+}
+
+/*
+EnumerateFileTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type EnumerateFileTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this enumerate file too many requests response has a 2xx status code
+func (o *EnumerateFileTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this enumerate file too many requests response has a 3xx status code
+func (o *EnumerateFileTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this enumerate file too many requests response has a 4xx status code
+func (o *EnumerateFileTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this enumerate file too many requests response has a 5xx status code
+func (o *EnumerateFileTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this enumerate file too many requests response a status code equal to that given
+func (o *EnumerateFileTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the enumerate file too many requests response
+func (o *EnumerateFileTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *EnumerateFileTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *EnumerateFileTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *EnumerateFileTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *EnumerateFileTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewEnumerateFileInternalServerError creates a EnumerateFileInternalServerError with default headers values
+func NewEnumerateFileInternalServerError() *EnumerateFileInternalServerError {
+ return &EnumerateFileInternalServerError{}
+}
+
+/*
+EnumerateFileInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type EnumerateFileInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.CommonEntitiesResponse
+}
+
+// IsSuccess returns true when this enumerate file internal server error response has a 2xx status code
+func (o *EnumerateFileInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this enumerate file internal server error response has a 3xx status code
+func (o *EnumerateFileInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this enumerate file internal server error response has a 4xx status code
+func (o *EnumerateFileInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this enumerate file internal server error response has a 5xx status code
+func (o *EnumerateFileInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this enumerate file internal server error response a status code equal to that given
+func (o *EnumerateFileInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the enumerate file internal server error response
+func (o *EnumerateFileInternalServerError) Code() int {
+ return 500
+}
+
+func (o *EnumerateFileInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *EnumerateFileInternalServerError) String() string {
+ return fmt.Sprintf("[GET /csdownloads/entities/files/enumerate/v1][%d] enumerateFileInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *EnumerateFileInternalServerError) GetPayload() *models.CommonEntitiesResponse {
+ return o.Payload
+}
+
+func (o *EnumerateFileInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.CommonEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/exposure_management/combined_ecosystem_subsidiaries_parameters.go b/falcon/client/exposure_management/combined_ecosystem_subsidiaries_parameters.go
new file mode 100644
index 00000000..77bf214f
--- /dev/null
+++ b/falcon/client/exposure_management/combined_ecosystem_subsidiaries_parameters.go
@@ -0,0 +1,282 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package exposure_management
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewCombinedEcosystemSubsidiariesParams creates a new CombinedEcosystemSubsidiariesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCombinedEcosystemSubsidiariesParams() *CombinedEcosystemSubsidiariesParams {
+ return &CombinedEcosystemSubsidiariesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCombinedEcosystemSubsidiariesParamsWithTimeout creates a new CombinedEcosystemSubsidiariesParams object
+// with the ability to set a timeout on a request.
+func NewCombinedEcosystemSubsidiariesParamsWithTimeout(timeout time.Duration) *CombinedEcosystemSubsidiariesParams {
+ return &CombinedEcosystemSubsidiariesParams{
+ timeout: timeout,
+ }
+}
+
+// NewCombinedEcosystemSubsidiariesParamsWithContext creates a new CombinedEcosystemSubsidiariesParams object
+// with the ability to set a context for a request.
+func NewCombinedEcosystemSubsidiariesParamsWithContext(ctx context.Context) *CombinedEcosystemSubsidiariesParams {
+ return &CombinedEcosystemSubsidiariesParams{
+ Context: ctx,
+ }
+}
+
+// NewCombinedEcosystemSubsidiariesParamsWithHTTPClient creates a new CombinedEcosystemSubsidiariesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCombinedEcosystemSubsidiariesParamsWithHTTPClient(client *http.Client) *CombinedEcosystemSubsidiariesParams {
+ return &CombinedEcosystemSubsidiariesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CombinedEcosystemSubsidiariesParams contains all the parameters to send to the API endpoint
+
+ for the combined ecosystem subsidiaries operation.
+
+ Typically these are written to a http.Request.
+*/
+type CombinedEcosystemSubsidiariesParams struct {
+
+ /* Limit.
+
+ The maximum number of subsidiaries to return in the response.
+
+ Default: 100
+ */
+ Limit *int64
+
+ /* Offset.
+
+ Starting index of result set from which to return subsidiaries
+ */
+ Offset *int64
+
+ /* Sort.
+
+ The field by which to sort the list of subsidiaries. Possible values:
Sort order can be specified by appending "asc" or "desc" to the field name (e.g. "name|asc" or "primary_domain|desc").
+ */
+ Sort *string
+
+ /* VersionID.
+
+ The version ID of the ecosystem subsidiaries data, represented as a hash string. This parameter is required to ensure data consistency and prevent stale data. If a new version of the ecosystem subsidiaries data is written, the version ID will be updated. By including this parameter in the request, the client can ensure that the response will be invalidated if a new version is written.
+ */
+ VersionID *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the combined ecosystem subsidiaries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CombinedEcosystemSubsidiariesParams) WithDefaults() *CombinedEcosystemSubsidiariesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the combined ecosystem subsidiaries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CombinedEcosystemSubsidiariesParams) SetDefaults() {
+ var (
+ limitDefault = int64(100)
+
+ offsetDefault = int64(0)
+ )
+
+ val := CombinedEcosystemSubsidiariesParams{
+ Limit: &limitDefault,
+ Offset: &offsetDefault,
+ }
+
+ val.timeout = o.timeout
+ val.Context = o.Context
+ val.HTTPClient = o.HTTPClient
+ *o = val
+}
+
+// WithTimeout adds the timeout to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) WithTimeout(timeout time.Duration) *CombinedEcosystemSubsidiariesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) WithContext(ctx context.Context) *CombinedEcosystemSubsidiariesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) WithHTTPClient(client *http.Client) *CombinedEcosystemSubsidiariesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithLimit adds the limit to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) WithLimit(limit *int64) *CombinedEcosystemSubsidiariesParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) WithOffset(offset *int64) *CombinedEcosystemSubsidiariesParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WithSort adds the sort to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) WithSort(sort *string) *CombinedEcosystemSubsidiariesParams {
+ o.SetSort(sort)
+ return o
+}
+
+// SetSort adds the sort to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) SetSort(sort *string) {
+ o.Sort = sort
+}
+
+// WithVersionID adds the versionID to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) WithVersionID(versionID *string) *CombinedEcosystemSubsidiariesParams {
+ o.SetVersionID(versionID)
+ return o
+}
+
+// SetVersionID adds the versionId to the combined ecosystem subsidiaries params
+func (o *CombinedEcosystemSubsidiariesParams) SetVersionID(versionID *string) {
+ o.VersionID = versionID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CombinedEcosystemSubsidiariesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Sort != nil {
+
+ // query param sort
+ var qrSort string
+
+ if o.Sort != nil {
+ qrSort = *o.Sort
+ }
+ qSort := qrSort
+ if qSort != "" {
+
+ if err := r.SetQueryParam("sort", qSort); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.VersionID != nil {
+
+ // query param version_id
+ var qrVersionID string
+
+ if o.VersionID != nil {
+ qrVersionID = *o.VersionID
+ }
+ qVersionID := qrVersionID
+ if qVersionID != "" {
+
+ if err := r.SetQueryParam("version_id", qVersionID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/exposure_management/combined_ecosystem_subsidiaries_responses.go b/falcon/client/exposure_management/combined_ecosystem_subsidiaries_responses.go
new file mode 100644
index 00000000..0ad2ef44
--- /dev/null
+++ b/falcon/client/exposure_management/combined_ecosystem_subsidiaries_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package exposure_management
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CombinedEcosystemSubsidiariesReader is a Reader for the CombinedEcosystemSubsidiaries structure.
+type CombinedEcosystemSubsidiariesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CombinedEcosystemSubsidiariesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCombinedEcosystemSubsidiariesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCombinedEcosystemSubsidiariesBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCombinedEcosystemSubsidiariesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCombinedEcosystemSubsidiariesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCombinedEcosystemSubsidiariesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /fem/combined/ecosystem-subsidiaries/v1] combined-ecosystem-subsidiaries", response, response.Code())
+ }
+}
+
+// NewCombinedEcosystemSubsidiariesOK creates a CombinedEcosystemSubsidiariesOK with default headers values
+func NewCombinedEcosystemSubsidiariesOK() *CombinedEcosystemSubsidiariesOK {
+ return &CombinedEcosystemSubsidiariesOK{}
+}
+
+/*
+CombinedEcosystemSubsidiariesOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type CombinedEcosystemSubsidiariesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainFemEcosystemSubsidiariesEntitiesResponse
+}
+
+// IsSuccess returns true when this combined ecosystem subsidiaries o k response has a 2xx status code
+func (o *CombinedEcosystemSubsidiariesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this combined ecosystem subsidiaries o k response has a 3xx status code
+func (o *CombinedEcosystemSubsidiariesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined ecosystem subsidiaries o k response has a 4xx status code
+func (o *CombinedEcosystemSubsidiariesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this combined ecosystem subsidiaries o k response has a 5xx status code
+func (o *CombinedEcosystemSubsidiariesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this combined ecosystem subsidiaries o k response a status code equal to that given
+func (o *CombinedEcosystemSubsidiariesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the combined ecosystem subsidiaries o k response
+func (o *CombinedEcosystemSubsidiariesOK) Code() int {
+ return 200
+}
+
+func (o *CombinedEcosystemSubsidiariesOK) Error() string {
+ return fmt.Sprintf("[GET /fem/combined/ecosystem-subsidiaries/v1][%d] combinedEcosystemSubsidiariesOK %+v", 200, o.Payload)
+}
+
+func (o *CombinedEcosystemSubsidiariesOK) String() string {
+ return fmt.Sprintf("[GET /fem/combined/ecosystem-subsidiaries/v1][%d] combinedEcosystemSubsidiariesOK %+v", 200, o.Payload)
+}
+
+func (o *CombinedEcosystemSubsidiariesOK) GetPayload() *models.DomainFemEcosystemSubsidiariesEntitiesResponse {
+ return o.Payload
+}
+
+func (o *CombinedEcosystemSubsidiariesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainFemEcosystemSubsidiariesEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCombinedEcosystemSubsidiariesBadRequest creates a CombinedEcosystemSubsidiariesBadRequest with default headers values
+func NewCombinedEcosystemSubsidiariesBadRequest() *CombinedEcosystemSubsidiariesBadRequest {
+ return &CombinedEcosystemSubsidiariesBadRequest{}
+}
+
+/*
+CombinedEcosystemSubsidiariesBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CombinedEcosystemSubsidiariesBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainFemEcosystemSubsidiariesResponseFields
+}
+
+// IsSuccess returns true when this combined ecosystem subsidiaries bad request response has a 2xx status code
+func (o *CombinedEcosystemSubsidiariesBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined ecosystem subsidiaries bad request response has a 3xx status code
+func (o *CombinedEcosystemSubsidiariesBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined ecosystem subsidiaries bad request response has a 4xx status code
+func (o *CombinedEcosystemSubsidiariesBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this combined ecosystem subsidiaries bad request response has a 5xx status code
+func (o *CombinedEcosystemSubsidiariesBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this combined ecosystem subsidiaries bad request response a status code equal to that given
+func (o *CombinedEcosystemSubsidiariesBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the combined ecosystem subsidiaries bad request response
+func (o *CombinedEcosystemSubsidiariesBadRequest) Code() int {
+ return 400
+}
+
+func (o *CombinedEcosystemSubsidiariesBadRequest) Error() string {
+ return fmt.Sprintf("[GET /fem/combined/ecosystem-subsidiaries/v1][%d] combinedEcosystemSubsidiariesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CombinedEcosystemSubsidiariesBadRequest) String() string {
+ return fmt.Sprintf("[GET /fem/combined/ecosystem-subsidiaries/v1][%d] combinedEcosystemSubsidiariesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CombinedEcosystemSubsidiariesBadRequest) GetPayload() *models.DomainFemEcosystemSubsidiariesResponseFields {
+ return o.Payload
+}
+
+func (o *CombinedEcosystemSubsidiariesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainFemEcosystemSubsidiariesResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCombinedEcosystemSubsidiariesForbidden creates a CombinedEcosystemSubsidiariesForbidden with default headers values
+func NewCombinedEcosystemSubsidiariesForbidden() *CombinedEcosystemSubsidiariesForbidden {
+ return &CombinedEcosystemSubsidiariesForbidden{}
+}
+
+/*
+CombinedEcosystemSubsidiariesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CombinedEcosystemSubsidiariesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this combined ecosystem subsidiaries forbidden response has a 2xx status code
+func (o *CombinedEcosystemSubsidiariesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined ecosystem subsidiaries forbidden response has a 3xx status code
+func (o *CombinedEcosystemSubsidiariesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined ecosystem subsidiaries forbidden response has a 4xx status code
+func (o *CombinedEcosystemSubsidiariesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this combined ecosystem subsidiaries forbidden response has a 5xx status code
+func (o *CombinedEcosystemSubsidiariesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this combined ecosystem subsidiaries forbidden response a status code equal to that given
+func (o *CombinedEcosystemSubsidiariesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the combined ecosystem subsidiaries forbidden response
+func (o *CombinedEcosystemSubsidiariesForbidden) Code() int {
+ return 403
+}
+
+func (o *CombinedEcosystemSubsidiariesForbidden) Error() string {
+ return fmt.Sprintf("[GET /fem/combined/ecosystem-subsidiaries/v1][%d] combinedEcosystemSubsidiariesForbidden %+v", 403, o.Payload)
+}
+
+func (o *CombinedEcosystemSubsidiariesForbidden) String() string {
+ return fmt.Sprintf("[GET /fem/combined/ecosystem-subsidiaries/v1][%d] combinedEcosystemSubsidiariesForbidden %+v", 403, o.Payload)
+}
+
+func (o *CombinedEcosystemSubsidiariesForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CombinedEcosystemSubsidiariesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCombinedEcosystemSubsidiariesTooManyRequests creates a CombinedEcosystemSubsidiariesTooManyRequests with default headers values
+func NewCombinedEcosystemSubsidiariesTooManyRequests() *CombinedEcosystemSubsidiariesTooManyRequests {
+ return &CombinedEcosystemSubsidiariesTooManyRequests{}
+}
+
+/*
+CombinedEcosystemSubsidiariesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CombinedEcosystemSubsidiariesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this combined ecosystem subsidiaries too many requests response has a 2xx status code
+func (o *CombinedEcosystemSubsidiariesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined ecosystem subsidiaries too many requests response has a 3xx status code
+func (o *CombinedEcosystemSubsidiariesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined ecosystem subsidiaries too many requests response has a 4xx status code
+func (o *CombinedEcosystemSubsidiariesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this combined ecosystem subsidiaries too many requests response has a 5xx status code
+func (o *CombinedEcosystemSubsidiariesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this combined ecosystem subsidiaries too many requests response a status code equal to that given
+func (o *CombinedEcosystemSubsidiariesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the combined ecosystem subsidiaries too many requests response
+func (o *CombinedEcosystemSubsidiariesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CombinedEcosystemSubsidiariesTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /fem/combined/ecosystem-subsidiaries/v1][%d] combinedEcosystemSubsidiariesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CombinedEcosystemSubsidiariesTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /fem/combined/ecosystem-subsidiaries/v1][%d] combinedEcosystemSubsidiariesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CombinedEcosystemSubsidiariesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CombinedEcosystemSubsidiariesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCombinedEcosystemSubsidiariesInternalServerError creates a CombinedEcosystemSubsidiariesInternalServerError with default headers values
+func NewCombinedEcosystemSubsidiariesInternalServerError() *CombinedEcosystemSubsidiariesInternalServerError {
+ return &CombinedEcosystemSubsidiariesInternalServerError{}
+}
+
+/*
+CombinedEcosystemSubsidiariesInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CombinedEcosystemSubsidiariesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainFemEcosystemSubsidiariesResponseFields
+}
+
+// IsSuccess returns true when this combined ecosystem subsidiaries internal server error response has a 2xx status code
+func (o *CombinedEcosystemSubsidiariesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined ecosystem subsidiaries internal server error response has a 3xx status code
+func (o *CombinedEcosystemSubsidiariesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined ecosystem subsidiaries internal server error response has a 4xx status code
+func (o *CombinedEcosystemSubsidiariesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this combined ecosystem subsidiaries internal server error response has a 5xx status code
+func (o *CombinedEcosystemSubsidiariesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this combined ecosystem subsidiaries internal server error response a status code equal to that given
+func (o *CombinedEcosystemSubsidiariesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the combined ecosystem subsidiaries internal server error response
+func (o *CombinedEcosystemSubsidiariesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CombinedEcosystemSubsidiariesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fem/combined/ecosystem-subsidiaries/v1][%d] combinedEcosystemSubsidiariesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CombinedEcosystemSubsidiariesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fem/combined/ecosystem-subsidiaries/v1][%d] combinedEcosystemSubsidiariesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CombinedEcosystemSubsidiariesInternalServerError) GetPayload() *models.DomainFemEcosystemSubsidiariesResponseFields {
+ return o.Payload
+}
+
+func (o *CombinedEcosystemSubsidiariesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainFemEcosystemSubsidiariesResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/exposure_management/delete_external_assets_parameters.go b/falcon/client/exposure_management/delete_external_assets_parameters.go
new file mode 100644
index 00000000..da9df8e9
--- /dev/null
+++ b/falcon/client/exposure_management/delete_external_assets_parameters.go
@@ -0,0 +1,196 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package exposure_management
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewDeleteExternalAssetsParams creates a new DeleteExternalAssetsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDeleteExternalAssetsParams() *DeleteExternalAssetsParams {
+ return &DeleteExternalAssetsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDeleteExternalAssetsParamsWithTimeout creates a new DeleteExternalAssetsParams object
+// with the ability to set a timeout on a request.
+func NewDeleteExternalAssetsParamsWithTimeout(timeout time.Duration) *DeleteExternalAssetsParams {
+ return &DeleteExternalAssetsParams{
+ timeout: timeout,
+ }
+}
+
+// NewDeleteExternalAssetsParamsWithContext creates a new DeleteExternalAssetsParams object
+// with the ability to set a context for a request.
+func NewDeleteExternalAssetsParamsWithContext(ctx context.Context) *DeleteExternalAssetsParams {
+ return &DeleteExternalAssetsParams{
+ Context: ctx,
+ }
+}
+
+// NewDeleteExternalAssetsParamsWithHTTPClient creates a new DeleteExternalAssetsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDeleteExternalAssetsParamsWithHTTPClient(client *http.Client) *DeleteExternalAssetsParams {
+ return &DeleteExternalAssetsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DeleteExternalAssetsParams contains all the parameters to send to the API endpoint
+
+ for the delete external assets operation.
+
+ Typically these are written to a http.Request.
+*/
+type DeleteExternalAssetsParams struct {
+
+ // Body.
+ Body *models.DomainExternalAssetAPIDeleteRequestV1
+
+ /* Ids.
+
+ One or more asset IDs (max: 100).
+ */
+ Ids []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the delete external assets params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteExternalAssetsParams) WithDefaults() *DeleteExternalAssetsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the delete external assets params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteExternalAssetsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the delete external assets params
+func (o *DeleteExternalAssetsParams) WithTimeout(timeout time.Duration) *DeleteExternalAssetsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the delete external assets params
+func (o *DeleteExternalAssetsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the delete external assets params
+func (o *DeleteExternalAssetsParams) WithContext(ctx context.Context) *DeleteExternalAssetsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the delete external assets params
+func (o *DeleteExternalAssetsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the delete external assets params
+func (o *DeleteExternalAssetsParams) WithHTTPClient(client *http.Client) *DeleteExternalAssetsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the delete external assets params
+func (o *DeleteExternalAssetsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the delete external assets params
+func (o *DeleteExternalAssetsParams) WithBody(body *models.DomainExternalAssetAPIDeleteRequestV1) *DeleteExternalAssetsParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the delete external assets params
+func (o *DeleteExternalAssetsParams) SetBody(body *models.DomainExternalAssetAPIDeleteRequestV1) {
+ o.Body = body
+}
+
+// WithIds adds the ids to the delete external assets params
+func (o *DeleteExternalAssetsParams) WithIds(ids []string) *DeleteExternalAssetsParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the delete external assets params
+func (o *DeleteExternalAssetsParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DeleteExternalAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamDeleteExternalAssets binds the parameter ids
+func (o *DeleteExternalAssetsParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ idsIS := swag.JoinByFormat(idsIC, "multi")
+
+ return idsIS
+}
diff --git a/falcon/client/exposure_management/delete_external_assets_responses.go b/falcon/client/exposure_management/delete_external_assets_responses.go
new file mode 100644
index 00000000..bc0fd226
--- /dev/null
+++ b/falcon/client/exposure_management/delete_external_assets_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package exposure_management
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DeleteExternalAssetsReader is a Reader for the DeleteExternalAssets structure.
+type DeleteExternalAssetsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DeleteExternalAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewDeleteExternalAssetsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewDeleteExternalAssetsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewDeleteExternalAssetsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDeleteExternalAssetsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDeleteExternalAssetsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /fem/entities/external-assets/v1] delete-external-assets", response, response.Code())
+ }
+}
+
+// NewDeleteExternalAssetsOK creates a DeleteExternalAssetsOK with default headers values
+func NewDeleteExternalAssetsOK() *DeleteExternalAssetsOK {
+ return &DeleteExternalAssetsOK{}
+}
+
+/*
+DeleteExternalAssetsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type DeleteExternalAssetsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecQueryResponse
+}
+
+// IsSuccess returns true when this delete external assets o k response has a 2xx status code
+func (o *DeleteExternalAssetsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this delete external assets o k response has a 3xx status code
+func (o *DeleteExternalAssetsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete external assets o k response has a 4xx status code
+func (o *DeleteExternalAssetsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete external assets o k response has a 5xx status code
+func (o *DeleteExternalAssetsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete external assets o k response a status code equal to that given
+func (o *DeleteExternalAssetsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the delete external assets o k response
+func (o *DeleteExternalAssetsOK) Code() int {
+ return 200
+}
+
+func (o *DeleteExternalAssetsOK) Error() string {
+ return fmt.Sprintf("[DELETE /fem/entities/external-assets/v1][%d] deleteExternalAssetsOK %+v", 200, o.Payload)
+}
+
+func (o *DeleteExternalAssetsOK) String() string {
+ return fmt.Sprintf("[DELETE /fem/entities/external-assets/v1][%d] deleteExternalAssetsOK %+v", 200, o.Payload)
+}
+
+func (o *DeleteExternalAssetsOK) GetPayload() *models.MsaspecQueryResponse {
+ return o.Payload
+}
+
+func (o *DeleteExternalAssetsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecQueryResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteExternalAssetsBadRequest creates a DeleteExternalAssetsBadRequest with default headers values
+func NewDeleteExternalAssetsBadRequest() *DeleteExternalAssetsBadRequest {
+ return &DeleteExternalAssetsBadRequest{}
+}
+
+/*
+DeleteExternalAssetsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type DeleteExternalAssetsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this delete external assets bad request response has a 2xx status code
+func (o *DeleteExternalAssetsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete external assets bad request response has a 3xx status code
+func (o *DeleteExternalAssetsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete external assets bad request response has a 4xx status code
+func (o *DeleteExternalAssetsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete external assets bad request response has a 5xx status code
+func (o *DeleteExternalAssetsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete external assets bad request response a status code equal to that given
+func (o *DeleteExternalAssetsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the delete external assets bad request response
+func (o *DeleteExternalAssetsBadRequest) Code() int {
+ return 400
+}
+
+func (o *DeleteExternalAssetsBadRequest) Error() string {
+ return fmt.Sprintf("[DELETE /fem/entities/external-assets/v1][%d] deleteExternalAssetsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteExternalAssetsBadRequest) String() string {
+ return fmt.Sprintf("[DELETE /fem/entities/external-assets/v1][%d] deleteExternalAssetsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *DeleteExternalAssetsBadRequest) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *DeleteExternalAssetsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteExternalAssetsForbidden creates a DeleteExternalAssetsForbidden with default headers values
+func NewDeleteExternalAssetsForbidden() *DeleteExternalAssetsForbidden {
+ return &DeleteExternalAssetsForbidden{}
+}
+
+/*
+DeleteExternalAssetsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DeleteExternalAssetsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete external assets forbidden response has a 2xx status code
+func (o *DeleteExternalAssetsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete external assets forbidden response has a 3xx status code
+func (o *DeleteExternalAssetsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete external assets forbidden response has a 4xx status code
+func (o *DeleteExternalAssetsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete external assets forbidden response has a 5xx status code
+func (o *DeleteExternalAssetsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete external assets forbidden response a status code equal to that given
+func (o *DeleteExternalAssetsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the delete external assets forbidden response
+func (o *DeleteExternalAssetsForbidden) Code() int {
+ return 403
+}
+
+func (o *DeleteExternalAssetsForbidden) Error() string {
+ return fmt.Sprintf("[DELETE /fem/entities/external-assets/v1][%d] deleteExternalAssetsForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteExternalAssetsForbidden) String() string {
+ return fmt.Sprintf("[DELETE /fem/entities/external-assets/v1][%d] deleteExternalAssetsForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteExternalAssetsForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteExternalAssetsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteExternalAssetsTooManyRequests creates a DeleteExternalAssetsTooManyRequests with default headers values
+func NewDeleteExternalAssetsTooManyRequests() *DeleteExternalAssetsTooManyRequests {
+ return &DeleteExternalAssetsTooManyRequests{}
+}
+
+/*
+DeleteExternalAssetsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DeleteExternalAssetsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete external assets too many requests response has a 2xx status code
+func (o *DeleteExternalAssetsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete external assets too many requests response has a 3xx status code
+func (o *DeleteExternalAssetsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete external assets too many requests response has a 4xx status code
+func (o *DeleteExternalAssetsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete external assets too many requests response has a 5xx status code
+func (o *DeleteExternalAssetsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete external assets too many requests response a status code equal to that given
+func (o *DeleteExternalAssetsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the delete external assets too many requests response
+func (o *DeleteExternalAssetsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DeleteExternalAssetsTooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /fem/entities/external-assets/v1][%d] deleteExternalAssetsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteExternalAssetsTooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /fem/entities/external-assets/v1][%d] deleteExternalAssetsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteExternalAssetsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteExternalAssetsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteExternalAssetsInternalServerError creates a DeleteExternalAssetsInternalServerError with default headers values
+func NewDeleteExternalAssetsInternalServerError() *DeleteExternalAssetsInternalServerError {
+ return &DeleteExternalAssetsInternalServerError{}
+}
+
+/*
+DeleteExternalAssetsInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type DeleteExternalAssetsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this delete external assets internal server error response has a 2xx status code
+func (o *DeleteExternalAssetsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete external assets internal server error response has a 3xx status code
+func (o *DeleteExternalAssetsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete external assets internal server error response has a 4xx status code
+func (o *DeleteExternalAssetsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete external assets internal server error response has a 5xx status code
+func (o *DeleteExternalAssetsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete external assets internal server error response a status code equal to that given
+func (o *DeleteExternalAssetsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete external assets internal server error response
+func (o *DeleteExternalAssetsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteExternalAssetsInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /fem/entities/external-assets/v1][%d] deleteExternalAssetsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteExternalAssetsInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /fem/entities/external-assets/v1][%d] deleteExternalAssetsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteExternalAssetsInternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *DeleteExternalAssetsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/exposure_management/exposure_management_client.go b/falcon/client/exposure_management/exposure_management_client.go
index 9f209175..c2f5d815 100644
--- a/falcon/client/exposure_management/exposure_management_client.go
+++ b/falcon/client/exposure_management/exposure_management_client.go
@@ -36,10 +36,18 @@ type ClientService interface {
BlobPreviewExternalAssets(params *BlobPreviewExternalAssetsParams, opts ...ClientOption) (*BlobPreviewExternalAssetsOK, error)
+ CombinedEcosystemSubsidiaries(params *CombinedEcosystemSubsidiariesParams, opts ...ClientOption) (*CombinedEcosystemSubsidiariesOK, error)
+
+ DeleteExternalAssets(params *DeleteExternalAssetsParams, opts ...ClientOption) (*DeleteExternalAssetsOK, error)
+
+ GetEcosystemSubsidiaries(params *GetEcosystemSubsidiariesParams, opts ...ClientOption) (*GetEcosystemSubsidiariesOK, error)
+
GetExternalAssets(params *GetExternalAssetsParams, opts ...ClientOption) (*GetExternalAssetsOK, error)
PatchExternalAssets(params *PatchExternalAssetsParams, opts ...ClientOption) (*PatchExternalAssetsOK, error)
+ QueryEcosystemSubsidiaries(params *QueryEcosystemSubsidiariesParams, opts ...ClientOption) (*QueryEcosystemSubsidiariesOK, error)
+
QueryExternalAssets(params *QueryExternalAssetsParams, opts ...ClientOption) (*QueryExternalAssetsOK, error)
SetTransport(transport runtime.ClientTransport)
@@ -99,7 +107,7 @@ func (a *Client) BlobDownloadExternalAssets(params *BlobDownloadExternalAssetsPa
ID: "blob-download-external-assets",
Method: "GET",
PathPattern: "/fem/entities/blobs-download/v1",
- ProducesMediaTypes: []string{"application/octet-stream"},
+ ProducesMediaTypes: []string{"application/json", "application/octet-stream"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -165,6 +173,120 @@ func (a *Client) BlobPreviewExternalAssets(params *BlobPreviewExternalAssetsPara
panic(msg)
}
+/*
+CombinedEcosystemSubsidiaries retrieves a list of ecosystem subsidiaries with their detailed information
+*/
+func (a *Client) CombinedEcosystemSubsidiaries(params *CombinedEcosystemSubsidiariesParams, opts ...ClientOption) (*CombinedEcosystemSubsidiariesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCombinedEcosystemSubsidiariesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "combined-ecosystem-subsidiaries",
+ Method: "GET",
+ PathPattern: "/fem/combined/ecosystem-subsidiaries/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CombinedEcosystemSubsidiariesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*CombinedEcosystemSubsidiariesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for combined-ecosystem-subsidiaries: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+DeleteExternalAssets deletes multiple external assets
+*/
+func (a *Client) DeleteExternalAssets(params *DeleteExternalAssetsParams, opts ...ClientOption) (*DeleteExternalAssetsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDeleteExternalAssetsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "delete-external-assets",
+ Method: "DELETE",
+ PathPattern: "/fem/entities/external-assets/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DeleteExternalAssetsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DeleteExternalAssetsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for delete-external-assets: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetEcosystemSubsidiaries retrieves detailed information about ecosystem subsidiaries by ID
+*/
+func (a *Client) GetEcosystemSubsidiaries(params *GetEcosystemSubsidiariesParams, opts ...ClientOption) (*GetEcosystemSubsidiariesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetEcosystemSubsidiariesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "get-ecosystem-subsidiaries",
+ Method: "GET",
+ PathPattern: "/fem/entities/ecosystem-subsidiaries/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetEcosystemSubsidiariesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetEcosystemSubsidiariesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for get-ecosystem-subsidiaries: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
/*
GetExternalAssets gets details on external assets by providing one or more i ds
*/
@@ -241,6 +363,44 @@ func (a *Client) PatchExternalAssets(params *PatchExternalAssetsParams, opts ...
panic(msg)
}
+/*
+QueryEcosystemSubsidiaries retrieves a list of i ds for ecosystem subsidiaries use these i ds with the entities ecosystem subsidiaries v1 endpoints
+*/
+func (a *Client) QueryEcosystemSubsidiaries(params *QueryEcosystemSubsidiariesParams, opts ...ClientOption) (*QueryEcosystemSubsidiariesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewQueryEcosystemSubsidiariesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "query-ecosystem-subsidiaries",
+ Method: "GET",
+ PathPattern: "/fem/queries/ecosystem-subsidiaries/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &QueryEcosystemSubsidiariesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*QueryEcosystemSubsidiariesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for query-ecosystem-subsidiaries: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
/*
QueryExternalAssets gets a list of external asset i ds that match the provided filter conditions use these i ds with the entities external assets v1 endpoints
*/
diff --git a/falcon/client/exposure_management/get_ecosystem_subsidiaries_parameters.go b/falcon/client/exposure_management/get_ecosystem_subsidiaries_parameters.go
new file mode 100644
index 00000000..8b39a114
--- /dev/null
+++ b/falcon/client/exposure_management/get_ecosystem_subsidiaries_parameters.go
@@ -0,0 +1,209 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package exposure_management
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetEcosystemSubsidiariesParams creates a new GetEcosystemSubsidiariesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetEcosystemSubsidiariesParams() *GetEcosystemSubsidiariesParams {
+ return &GetEcosystemSubsidiariesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetEcosystemSubsidiariesParamsWithTimeout creates a new GetEcosystemSubsidiariesParams object
+// with the ability to set a timeout on a request.
+func NewGetEcosystemSubsidiariesParamsWithTimeout(timeout time.Duration) *GetEcosystemSubsidiariesParams {
+ return &GetEcosystemSubsidiariesParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetEcosystemSubsidiariesParamsWithContext creates a new GetEcosystemSubsidiariesParams object
+// with the ability to set a context for a request.
+func NewGetEcosystemSubsidiariesParamsWithContext(ctx context.Context) *GetEcosystemSubsidiariesParams {
+ return &GetEcosystemSubsidiariesParams{
+ Context: ctx,
+ }
+}
+
+// NewGetEcosystemSubsidiariesParamsWithHTTPClient creates a new GetEcosystemSubsidiariesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetEcosystemSubsidiariesParamsWithHTTPClient(client *http.Client) *GetEcosystemSubsidiariesParams {
+ return &GetEcosystemSubsidiariesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetEcosystemSubsidiariesParams contains all the parameters to send to the API endpoint
+
+ for the get ecosystem subsidiaries operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetEcosystemSubsidiariesParams struct {
+
+ /* Ids.
+
+ One or more asset IDs (max: 100). Find ecosystem subsidiary IDs with GET `/fem/entities/ecosystem-subsidiaries/v1`
+ */
+ Ids []string
+
+ /* VersionID.
+
+ The version ID of the ecosystem subsidiaries data, represented as a hash string. This parameter is required to ensure data consistency and prevent stale data. If a new version of the ecosystem subsidiaries data is written, the version ID will be updated. By including this parameter in the request, the client can ensure that the response will be invalidated if a new version is written.
+ */
+ VersionID *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get ecosystem subsidiaries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetEcosystemSubsidiariesParams) WithDefaults() *GetEcosystemSubsidiariesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get ecosystem subsidiaries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetEcosystemSubsidiariesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get ecosystem subsidiaries params
+func (o *GetEcosystemSubsidiariesParams) WithTimeout(timeout time.Duration) *GetEcosystemSubsidiariesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get ecosystem subsidiaries params
+func (o *GetEcosystemSubsidiariesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get ecosystem subsidiaries params
+func (o *GetEcosystemSubsidiariesParams) WithContext(ctx context.Context) *GetEcosystemSubsidiariesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get ecosystem subsidiaries params
+func (o *GetEcosystemSubsidiariesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get ecosystem subsidiaries params
+func (o *GetEcosystemSubsidiariesParams) WithHTTPClient(client *http.Client) *GetEcosystemSubsidiariesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get ecosystem subsidiaries params
+func (o *GetEcosystemSubsidiariesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIds adds the ids to the get ecosystem subsidiaries params
+func (o *GetEcosystemSubsidiariesParams) WithIds(ids []string) *GetEcosystemSubsidiariesParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the get ecosystem subsidiaries params
+func (o *GetEcosystemSubsidiariesParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WithVersionID adds the versionID to the get ecosystem subsidiaries params
+func (o *GetEcosystemSubsidiariesParams) WithVersionID(versionID *string) *GetEcosystemSubsidiariesParams {
+ o.SetVersionID(versionID)
+ return o
+}
+
+// SetVersionID adds the versionId to the get ecosystem subsidiaries params
+func (o *GetEcosystemSubsidiariesParams) SetVersionID(versionID *string) {
+ o.VersionID = versionID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetEcosystemSubsidiariesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if o.VersionID != nil {
+
+ // query param version_id
+ var qrVersionID string
+
+ if o.VersionID != nil {
+ qrVersionID = *o.VersionID
+ }
+ qVersionID := qrVersionID
+ if qVersionID != "" {
+
+ if err := r.SetQueryParam("version_id", qVersionID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamGetEcosystemSubsidiaries binds the parameter ids
+func (o *GetEcosystemSubsidiariesParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ idsIS := swag.JoinByFormat(idsIC, "multi")
+
+ return idsIS
+}
diff --git a/falcon/client/exposure_management/get_ecosystem_subsidiaries_responses.go b/falcon/client/exposure_management/get_ecosystem_subsidiaries_responses.go
new file mode 100644
index 00000000..4e378a4c
--- /dev/null
+++ b/falcon/client/exposure_management/get_ecosystem_subsidiaries_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package exposure_management
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetEcosystemSubsidiariesReader is a Reader for the GetEcosystemSubsidiaries structure.
+type GetEcosystemSubsidiariesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetEcosystemSubsidiariesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetEcosystemSubsidiariesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewGetEcosystemSubsidiariesBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetEcosystemSubsidiariesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetEcosystemSubsidiariesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetEcosystemSubsidiariesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /fem/entities/ecosystem-subsidiaries/v1] get-ecosystem-subsidiaries", response, response.Code())
+ }
+}
+
+// NewGetEcosystemSubsidiariesOK creates a GetEcosystemSubsidiariesOK with default headers values
+func NewGetEcosystemSubsidiariesOK() *GetEcosystemSubsidiariesOK {
+ return &GetEcosystemSubsidiariesOK{}
+}
+
+/*
+GetEcosystemSubsidiariesOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetEcosystemSubsidiariesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainFemEcosystemSubsidiariesEntitiesResponse
+}
+
+// IsSuccess returns true when this get ecosystem subsidiaries o k response has a 2xx status code
+func (o *GetEcosystemSubsidiariesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get ecosystem subsidiaries o k response has a 3xx status code
+func (o *GetEcosystemSubsidiariesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get ecosystem subsidiaries o k response has a 4xx status code
+func (o *GetEcosystemSubsidiariesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get ecosystem subsidiaries o k response has a 5xx status code
+func (o *GetEcosystemSubsidiariesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get ecosystem subsidiaries o k response a status code equal to that given
+func (o *GetEcosystemSubsidiariesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get ecosystem subsidiaries o k response
+func (o *GetEcosystemSubsidiariesOK) Code() int {
+ return 200
+}
+
+func (o *GetEcosystemSubsidiariesOK) Error() string {
+ return fmt.Sprintf("[GET /fem/entities/ecosystem-subsidiaries/v1][%d] getEcosystemSubsidiariesOK %+v", 200, o.Payload)
+}
+
+func (o *GetEcosystemSubsidiariesOK) String() string {
+ return fmt.Sprintf("[GET /fem/entities/ecosystem-subsidiaries/v1][%d] getEcosystemSubsidiariesOK %+v", 200, o.Payload)
+}
+
+func (o *GetEcosystemSubsidiariesOK) GetPayload() *models.DomainFemEcosystemSubsidiariesEntitiesResponse {
+ return o.Payload
+}
+
+func (o *GetEcosystemSubsidiariesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainFemEcosystemSubsidiariesEntitiesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetEcosystemSubsidiariesBadRequest creates a GetEcosystemSubsidiariesBadRequest with default headers values
+func NewGetEcosystemSubsidiariesBadRequest() *GetEcosystemSubsidiariesBadRequest {
+ return &GetEcosystemSubsidiariesBadRequest{}
+}
+
+/*
+GetEcosystemSubsidiariesBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type GetEcosystemSubsidiariesBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainFemEcosystemSubsidiariesResponseFields
+}
+
+// IsSuccess returns true when this get ecosystem subsidiaries bad request response has a 2xx status code
+func (o *GetEcosystemSubsidiariesBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get ecosystem subsidiaries bad request response has a 3xx status code
+func (o *GetEcosystemSubsidiariesBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get ecosystem subsidiaries bad request response has a 4xx status code
+func (o *GetEcosystemSubsidiariesBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get ecosystem subsidiaries bad request response has a 5xx status code
+func (o *GetEcosystemSubsidiariesBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get ecosystem subsidiaries bad request response a status code equal to that given
+func (o *GetEcosystemSubsidiariesBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the get ecosystem subsidiaries bad request response
+func (o *GetEcosystemSubsidiariesBadRequest) Code() int {
+ return 400
+}
+
+func (o *GetEcosystemSubsidiariesBadRequest) Error() string {
+ return fmt.Sprintf("[GET /fem/entities/ecosystem-subsidiaries/v1][%d] getEcosystemSubsidiariesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetEcosystemSubsidiariesBadRequest) String() string {
+ return fmt.Sprintf("[GET /fem/entities/ecosystem-subsidiaries/v1][%d] getEcosystemSubsidiariesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetEcosystemSubsidiariesBadRequest) GetPayload() *models.DomainFemEcosystemSubsidiariesResponseFields {
+ return o.Payload
+}
+
+func (o *GetEcosystemSubsidiariesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainFemEcosystemSubsidiariesResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetEcosystemSubsidiariesForbidden creates a GetEcosystemSubsidiariesForbidden with default headers values
+func NewGetEcosystemSubsidiariesForbidden() *GetEcosystemSubsidiariesForbidden {
+ return &GetEcosystemSubsidiariesForbidden{}
+}
+
+/*
+GetEcosystemSubsidiariesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetEcosystemSubsidiariesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get ecosystem subsidiaries forbidden response has a 2xx status code
+func (o *GetEcosystemSubsidiariesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get ecosystem subsidiaries forbidden response has a 3xx status code
+func (o *GetEcosystemSubsidiariesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get ecosystem subsidiaries forbidden response has a 4xx status code
+func (o *GetEcosystemSubsidiariesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get ecosystem subsidiaries forbidden response has a 5xx status code
+func (o *GetEcosystemSubsidiariesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get ecosystem subsidiaries forbidden response a status code equal to that given
+func (o *GetEcosystemSubsidiariesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get ecosystem subsidiaries forbidden response
+func (o *GetEcosystemSubsidiariesForbidden) Code() int {
+ return 403
+}
+
+func (o *GetEcosystemSubsidiariesForbidden) Error() string {
+ return fmt.Sprintf("[GET /fem/entities/ecosystem-subsidiaries/v1][%d] getEcosystemSubsidiariesForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetEcosystemSubsidiariesForbidden) String() string {
+ return fmt.Sprintf("[GET /fem/entities/ecosystem-subsidiaries/v1][%d] getEcosystemSubsidiariesForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetEcosystemSubsidiariesForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetEcosystemSubsidiariesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetEcosystemSubsidiariesTooManyRequests creates a GetEcosystemSubsidiariesTooManyRequests with default headers values
+func NewGetEcosystemSubsidiariesTooManyRequests() *GetEcosystemSubsidiariesTooManyRequests {
+ return &GetEcosystemSubsidiariesTooManyRequests{}
+}
+
+/*
+GetEcosystemSubsidiariesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetEcosystemSubsidiariesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get ecosystem subsidiaries too many requests response has a 2xx status code
+func (o *GetEcosystemSubsidiariesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get ecosystem subsidiaries too many requests response has a 3xx status code
+func (o *GetEcosystemSubsidiariesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get ecosystem subsidiaries too many requests response has a 4xx status code
+func (o *GetEcosystemSubsidiariesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get ecosystem subsidiaries too many requests response has a 5xx status code
+func (o *GetEcosystemSubsidiariesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get ecosystem subsidiaries too many requests response a status code equal to that given
+func (o *GetEcosystemSubsidiariesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get ecosystem subsidiaries too many requests response
+func (o *GetEcosystemSubsidiariesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetEcosystemSubsidiariesTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /fem/entities/ecosystem-subsidiaries/v1][%d] getEcosystemSubsidiariesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetEcosystemSubsidiariesTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /fem/entities/ecosystem-subsidiaries/v1][%d] getEcosystemSubsidiariesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetEcosystemSubsidiariesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetEcosystemSubsidiariesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetEcosystemSubsidiariesInternalServerError creates a GetEcosystemSubsidiariesInternalServerError with default headers values
+func NewGetEcosystemSubsidiariesInternalServerError() *GetEcosystemSubsidiariesInternalServerError {
+ return &GetEcosystemSubsidiariesInternalServerError{}
+}
+
+/*
+GetEcosystemSubsidiariesInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type GetEcosystemSubsidiariesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainFemEcosystemSubsidiariesResponseFields
+}
+
+// IsSuccess returns true when this get ecosystem subsidiaries internal server error response has a 2xx status code
+func (o *GetEcosystemSubsidiariesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get ecosystem subsidiaries internal server error response has a 3xx status code
+func (o *GetEcosystemSubsidiariesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get ecosystem subsidiaries internal server error response has a 4xx status code
+func (o *GetEcosystemSubsidiariesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get ecosystem subsidiaries internal server error response has a 5xx status code
+func (o *GetEcosystemSubsidiariesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get ecosystem subsidiaries internal server error response a status code equal to that given
+func (o *GetEcosystemSubsidiariesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get ecosystem subsidiaries internal server error response
+func (o *GetEcosystemSubsidiariesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetEcosystemSubsidiariesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fem/entities/ecosystem-subsidiaries/v1][%d] getEcosystemSubsidiariesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetEcosystemSubsidiariesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fem/entities/ecosystem-subsidiaries/v1][%d] getEcosystemSubsidiariesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetEcosystemSubsidiariesInternalServerError) GetPayload() *models.DomainFemEcosystemSubsidiariesResponseFields {
+ return o.Payload
+}
+
+func (o *GetEcosystemSubsidiariesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainFemEcosystemSubsidiariesResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/exposure_management/query_ecosystem_subsidiaries_parameters.go b/falcon/client/exposure_management/query_ecosystem_subsidiaries_parameters.go
new file mode 100644
index 00000000..6a216b51
--- /dev/null
+++ b/falcon/client/exposure_management/query_ecosystem_subsidiaries_parameters.go
@@ -0,0 +1,282 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package exposure_management
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewQueryEcosystemSubsidiariesParams creates a new QueryEcosystemSubsidiariesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewQueryEcosystemSubsidiariesParams() *QueryEcosystemSubsidiariesParams {
+ return &QueryEcosystemSubsidiariesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewQueryEcosystemSubsidiariesParamsWithTimeout creates a new QueryEcosystemSubsidiariesParams object
+// with the ability to set a timeout on a request.
+func NewQueryEcosystemSubsidiariesParamsWithTimeout(timeout time.Duration) *QueryEcosystemSubsidiariesParams {
+ return &QueryEcosystemSubsidiariesParams{
+ timeout: timeout,
+ }
+}
+
+// NewQueryEcosystemSubsidiariesParamsWithContext creates a new QueryEcosystemSubsidiariesParams object
+// with the ability to set a context for a request.
+func NewQueryEcosystemSubsidiariesParamsWithContext(ctx context.Context) *QueryEcosystemSubsidiariesParams {
+ return &QueryEcosystemSubsidiariesParams{
+ Context: ctx,
+ }
+}
+
+// NewQueryEcosystemSubsidiariesParamsWithHTTPClient creates a new QueryEcosystemSubsidiariesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewQueryEcosystemSubsidiariesParamsWithHTTPClient(client *http.Client) *QueryEcosystemSubsidiariesParams {
+ return &QueryEcosystemSubsidiariesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+QueryEcosystemSubsidiariesParams contains all the parameters to send to the API endpoint
+
+ for the query ecosystem subsidiaries operation.
+
+ Typically these are written to a http.Request.
+*/
+type QueryEcosystemSubsidiariesParams struct {
+
+ /* Limit.
+
+ The maximum number of IDs to return in the response.
+
+ Default: 100
+ */
+ Limit *int64
+
+ /* Offset.
+
+ Starting index of result set from which to return subsidiaries
+ */
+ Offset *int64
+
+ /* Sort.
+
+ The field by which to sort the list of IDs. Possible values:Sort order can be specified by appending "asc" or "desc" to the field name (e.g. "name|asc" or "primary_domain|desc").
+ */
+ Sort *string
+
+ /* VersionID.
+
+ The version ID of the ecosystem subsidiaries data, represented as a hash string. This parameter is required to ensure data consistency and prevent stale data. If a new version of the ecosystem subsidiaries data is written, the version ID will be updated. By including this parameter in the request, the client can ensure that the response will be invalidated if a new version is written.
+ */
+ VersionID *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the query ecosystem subsidiaries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *QueryEcosystemSubsidiariesParams) WithDefaults() *QueryEcosystemSubsidiariesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the query ecosystem subsidiaries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *QueryEcosystemSubsidiariesParams) SetDefaults() {
+ var (
+ limitDefault = int64(100)
+
+ offsetDefault = int64(0)
+ )
+
+ val := QueryEcosystemSubsidiariesParams{
+ Limit: &limitDefault,
+ Offset: &offsetDefault,
+ }
+
+ val.timeout = o.timeout
+ val.Context = o.Context
+ val.HTTPClient = o.HTTPClient
+ *o = val
+}
+
+// WithTimeout adds the timeout to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) WithTimeout(timeout time.Duration) *QueryEcosystemSubsidiariesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) WithContext(ctx context.Context) *QueryEcosystemSubsidiariesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) WithHTTPClient(client *http.Client) *QueryEcosystemSubsidiariesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithLimit adds the limit to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) WithLimit(limit *int64) *QueryEcosystemSubsidiariesParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) WithOffset(offset *int64) *QueryEcosystemSubsidiariesParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WithSort adds the sort to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) WithSort(sort *string) *QueryEcosystemSubsidiariesParams {
+ o.SetSort(sort)
+ return o
+}
+
+// SetSort adds the sort to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) SetSort(sort *string) {
+ o.Sort = sort
+}
+
+// WithVersionID adds the versionID to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) WithVersionID(versionID *string) *QueryEcosystemSubsidiariesParams {
+ o.SetVersionID(versionID)
+ return o
+}
+
+// SetVersionID adds the versionId to the query ecosystem subsidiaries params
+func (o *QueryEcosystemSubsidiariesParams) SetVersionID(versionID *string) {
+ o.VersionID = versionID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *QueryEcosystemSubsidiariesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Sort != nil {
+
+ // query param sort
+ var qrSort string
+
+ if o.Sort != nil {
+ qrSort = *o.Sort
+ }
+ qSort := qrSort
+ if qSort != "" {
+
+ if err := r.SetQueryParam("sort", qSort); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.VersionID != nil {
+
+ // query param version_id
+ var qrVersionID string
+
+ if o.VersionID != nil {
+ qrVersionID = *o.VersionID
+ }
+ qVersionID := qrVersionID
+ if qVersionID != "" {
+
+ if err := r.SetQueryParam("version_id", qVersionID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/exposure_management/query_ecosystem_subsidiaries_responses.go b/falcon/client/exposure_management/query_ecosystem_subsidiaries_responses.go
new file mode 100644
index 00000000..6d436b4c
--- /dev/null
+++ b/falcon/client/exposure_management/query_ecosystem_subsidiaries_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package exposure_management
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// QueryEcosystemSubsidiariesReader is a Reader for the QueryEcosystemSubsidiaries structure.
+type QueryEcosystemSubsidiariesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *QueryEcosystemSubsidiariesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewQueryEcosystemSubsidiariesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewQueryEcosystemSubsidiariesBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewQueryEcosystemSubsidiariesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewQueryEcosystemSubsidiariesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewQueryEcosystemSubsidiariesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /fem/queries/ecosystem-subsidiaries/v1] query-ecosystem-subsidiaries", response, response.Code())
+ }
+}
+
+// NewQueryEcosystemSubsidiariesOK creates a QueryEcosystemSubsidiariesOK with default headers values
+func NewQueryEcosystemSubsidiariesOK() *QueryEcosystemSubsidiariesOK {
+ return &QueryEcosystemSubsidiariesOK{}
+}
+
+/*
+QueryEcosystemSubsidiariesOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type QueryEcosystemSubsidiariesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainFemEcosystemSubsidiariesQueryResponse
+}
+
+// IsSuccess returns true when this query ecosystem subsidiaries o k response has a 2xx status code
+func (o *QueryEcosystemSubsidiariesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this query ecosystem subsidiaries o k response has a 3xx status code
+func (o *QueryEcosystemSubsidiariesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query ecosystem subsidiaries o k response has a 4xx status code
+func (o *QueryEcosystemSubsidiariesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query ecosystem subsidiaries o k response has a 5xx status code
+func (o *QueryEcosystemSubsidiariesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query ecosystem subsidiaries o k response a status code equal to that given
+func (o *QueryEcosystemSubsidiariesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the query ecosystem subsidiaries o k response
+func (o *QueryEcosystemSubsidiariesOK) Code() int {
+ return 200
+}
+
+func (o *QueryEcosystemSubsidiariesOK) Error() string {
+ return fmt.Sprintf("[GET /fem/queries/ecosystem-subsidiaries/v1][%d] queryEcosystemSubsidiariesOK %+v", 200, o.Payload)
+}
+
+func (o *QueryEcosystemSubsidiariesOK) String() string {
+ return fmt.Sprintf("[GET /fem/queries/ecosystem-subsidiaries/v1][%d] queryEcosystemSubsidiariesOK %+v", 200, o.Payload)
+}
+
+func (o *QueryEcosystemSubsidiariesOK) GetPayload() *models.DomainFemEcosystemSubsidiariesQueryResponse {
+ return o.Payload
+}
+
+func (o *QueryEcosystemSubsidiariesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainFemEcosystemSubsidiariesQueryResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryEcosystemSubsidiariesBadRequest creates a QueryEcosystemSubsidiariesBadRequest with default headers values
+func NewQueryEcosystemSubsidiariesBadRequest() *QueryEcosystemSubsidiariesBadRequest {
+ return &QueryEcosystemSubsidiariesBadRequest{}
+}
+
+/*
+QueryEcosystemSubsidiariesBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type QueryEcosystemSubsidiariesBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainFemEcosystemSubsidiariesResponseFields
+}
+
+// IsSuccess returns true when this query ecosystem subsidiaries bad request response has a 2xx status code
+func (o *QueryEcosystemSubsidiariesBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query ecosystem subsidiaries bad request response has a 3xx status code
+func (o *QueryEcosystemSubsidiariesBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query ecosystem subsidiaries bad request response has a 4xx status code
+func (o *QueryEcosystemSubsidiariesBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this query ecosystem subsidiaries bad request response has a 5xx status code
+func (o *QueryEcosystemSubsidiariesBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query ecosystem subsidiaries bad request response a status code equal to that given
+func (o *QueryEcosystemSubsidiariesBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the query ecosystem subsidiaries bad request response
+func (o *QueryEcosystemSubsidiariesBadRequest) Code() int {
+ return 400
+}
+
+func (o *QueryEcosystemSubsidiariesBadRequest) Error() string {
+ return fmt.Sprintf("[GET /fem/queries/ecosystem-subsidiaries/v1][%d] queryEcosystemSubsidiariesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *QueryEcosystemSubsidiariesBadRequest) String() string {
+ return fmt.Sprintf("[GET /fem/queries/ecosystem-subsidiaries/v1][%d] queryEcosystemSubsidiariesBadRequest %+v", 400, o.Payload)
+}
+
+func (o *QueryEcosystemSubsidiariesBadRequest) GetPayload() *models.DomainFemEcosystemSubsidiariesResponseFields {
+ return o.Payload
+}
+
+func (o *QueryEcosystemSubsidiariesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainFemEcosystemSubsidiariesResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryEcosystemSubsidiariesForbidden creates a QueryEcosystemSubsidiariesForbidden with default headers values
+func NewQueryEcosystemSubsidiariesForbidden() *QueryEcosystemSubsidiariesForbidden {
+ return &QueryEcosystemSubsidiariesForbidden{}
+}
+
+/*
+QueryEcosystemSubsidiariesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type QueryEcosystemSubsidiariesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query ecosystem subsidiaries forbidden response has a 2xx status code
+func (o *QueryEcosystemSubsidiariesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query ecosystem subsidiaries forbidden response has a 3xx status code
+func (o *QueryEcosystemSubsidiariesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query ecosystem subsidiaries forbidden response has a 4xx status code
+func (o *QueryEcosystemSubsidiariesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this query ecosystem subsidiaries forbidden response has a 5xx status code
+func (o *QueryEcosystemSubsidiariesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query ecosystem subsidiaries forbidden response a status code equal to that given
+func (o *QueryEcosystemSubsidiariesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the query ecosystem subsidiaries forbidden response
+func (o *QueryEcosystemSubsidiariesForbidden) Code() int {
+ return 403
+}
+
+func (o *QueryEcosystemSubsidiariesForbidden) Error() string {
+ return fmt.Sprintf("[GET /fem/queries/ecosystem-subsidiaries/v1][%d] queryEcosystemSubsidiariesForbidden %+v", 403, o.Payload)
+}
+
+func (o *QueryEcosystemSubsidiariesForbidden) String() string {
+ return fmt.Sprintf("[GET /fem/queries/ecosystem-subsidiaries/v1][%d] queryEcosystemSubsidiariesForbidden %+v", 403, o.Payload)
+}
+
+func (o *QueryEcosystemSubsidiariesForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryEcosystemSubsidiariesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryEcosystemSubsidiariesTooManyRequests creates a QueryEcosystemSubsidiariesTooManyRequests with default headers values
+func NewQueryEcosystemSubsidiariesTooManyRequests() *QueryEcosystemSubsidiariesTooManyRequests {
+ return &QueryEcosystemSubsidiariesTooManyRequests{}
+}
+
+/*
+QueryEcosystemSubsidiariesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type QueryEcosystemSubsidiariesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query ecosystem subsidiaries too many requests response has a 2xx status code
+func (o *QueryEcosystemSubsidiariesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query ecosystem subsidiaries too many requests response has a 3xx status code
+func (o *QueryEcosystemSubsidiariesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query ecosystem subsidiaries too many requests response has a 4xx status code
+func (o *QueryEcosystemSubsidiariesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this query ecosystem subsidiaries too many requests response has a 5xx status code
+func (o *QueryEcosystemSubsidiariesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query ecosystem subsidiaries too many requests response a status code equal to that given
+func (o *QueryEcosystemSubsidiariesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the query ecosystem subsidiaries too many requests response
+func (o *QueryEcosystemSubsidiariesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *QueryEcosystemSubsidiariesTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /fem/queries/ecosystem-subsidiaries/v1][%d] queryEcosystemSubsidiariesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *QueryEcosystemSubsidiariesTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /fem/queries/ecosystem-subsidiaries/v1][%d] queryEcosystemSubsidiariesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *QueryEcosystemSubsidiariesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryEcosystemSubsidiariesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryEcosystemSubsidiariesInternalServerError creates a QueryEcosystemSubsidiariesInternalServerError with default headers values
+func NewQueryEcosystemSubsidiariesInternalServerError() *QueryEcosystemSubsidiariesInternalServerError {
+ return &QueryEcosystemSubsidiariesInternalServerError{}
+}
+
+/*
+QueryEcosystemSubsidiariesInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type QueryEcosystemSubsidiariesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.DomainFemEcosystemSubsidiariesResponseFields
+}
+
+// IsSuccess returns true when this query ecosystem subsidiaries internal server error response has a 2xx status code
+func (o *QueryEcosystemSubsidiariesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query ecosystem subsidiaries internal server error response has a 3xx status code
+func (o *QueryEcosystemSubsidiariesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query ecosystem subsidiaries internal server error response has a 4xx status code
+func (o *QueryEcosystemSubsidiariesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query ecosystem subsidiaries internal server error response has a 5xx status code
+func (o *QueryEcosystemSubsidiariesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query ecosystem subsidiaries internal server error response a status code equal to that given
+func (o *QueryEcosystemSubsidiariesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query ecosystem subsidiaries internal server error response
+func (o *QueryEcosystemSubsidiariesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryEcosystemSubsidiariesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fem/queries/ecosystem-subsidiaries/v1][%d] queryEcosystemSubsidiariesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryEcosystemSubsidiariesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fem/queries/ecosystem-subsidiaries/v1][%d] queryEcosystemSubsidiariesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryEcosystemSubsidiariesInternalServerError) GetPayload() *models.DomainFemEcosystemSubsidiariesResponseFields {
+ return o.Payload
+}
+
+func (o *QueryEcosystemSubsidiariesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.DomainFemEcosystemSubsidiariesResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/aggregate_alerts_responses.go b/falcon/client/falcon_complete_dashboard/aggregate_alerts_responses.go
index bdceea34..c3ff3d90 100644
--- a/falcon/client/falcon_complete_dashboard/aggregate_alerts_responses.go
+++ b/falcon/client/falcon_complete_dashboard/aggregate_alerts_responses.go
@@ -43,6 +43,12 @@ func (o *AggregateAlertsReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateAlertsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /falcon-complete-dashboards/aggregates/alerts/GET/v1] AggregateAlerts", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregateAlertsTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewAggregateAlertsInternalServerError creates a AggregateAlertsInternalServerError with default headers values
+func NewAggregateAlertsInternalServerError() *AggregateAlertsInternalServerError {
+ return &AggregateAlertsInternalServerError{}
+}
+
+/*
+AggregateAlertsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateAlertsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate alerts internal server error response has a 2xx status code
+func (o *AggregateAlertsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate alerts internal server error response has a 3xx status code
+func (o *AggregateAlertsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate alerts internal server error response has a 4xx status code
+func (o *AggregateAlertsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate alerts internal server error response has a 5xx status code
+func (o *AggregateAlertsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate alerts internal server error response a status code equal to that given
+func (o *AggregateAlertsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate alerts internal server error response
+func (o *AggregateAlertsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateAlertsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/alerts/GET/v1][%d] aggregateAlertsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateAlertsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/alerts/GET/v1][%d] aggregateAlertsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateAlertsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateAlertsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/aggregate_allow_list_responses.go b/falcon/client/falcon_complete_dashboard/aggregate_allow_list_responses.go
index 67cbc602..ad32ff82 100644
--- a/falcon/client/falcon_complete_dashboard/aggregate_allow_list_responses.go
+++ b/falcon/client/falcon_complete_dashboard/aggregate_allow_list_responses.go
@@ -43,6 +43,12 @@ func (o *AggregateAllowListReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateAllowListInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /falcon-complete-dashboards/aggregates/allowlist/GET/v1] AggregateAllowList", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregateAllowListTooManyRequests) readResponse(response runtime.Client
return nil
}
+
+// NewAggregateAllowListInternalServerError creates a AggregateAllowListInternalServerError with default headers values
+func NewAggregateAllowListInternalServerError() *AggregateAllowListInternalServerError {
+ return &AggregateAllowListInternalServerError{}
+}
+
+/*
+AggregateAllowListInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateAllowListInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate allow list internal server error response has a 2xx status code
+func (o *AggregateAllowListInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate allow list internal server error response has a 3xx status code
+func (o *AggregateAllowListInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate allow list internal server error response has a 4xx status code
+func (o *AggregateAllowListInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate allow list internal server error response has a 5xx status code
+func (o *AggregateAllowListInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate allow list internal server error response a status code equal to that given
+func (o *AggregateAllowListInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate allow list internal server error response
+func (o *AggregateAllowListInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateAllowListInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/allowlist/GET/v1][%d] aggregateAllowListInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateAllowListInternalServerError) String() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/allowlist/GET/v1][%d] aggregateAllowListInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateAllowListInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateAllowListInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/aggregate_block_list_responses.go b/falcon/client/falcon_complete_dashboard/aggregate_block_list_responses.go
index cfb73436..7b5b5110 100644
--- a/falcon/client/falcon_complete_dashboard/aggregate_block_list_responses.go
+++ b/falcon/client/falcon_complete_dashboard/aggregate_block_list_responses.go
@@ -43,6 +43,12 @@ func (o *AggregateBlockListReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateBlockListInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /falcon-complete-dashboards/aggregates/blocklist/GET/v1] AggregateBlockList", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregateBlockListTooManyRequests) readResponse(response runtime.Client
return nil
}
+
+// NewAggregateBlockListInternalServerError creates a AggregateBlockListInternalServerError with default headers values
+func NewAggregateBlockListInternalServerError() *AggregateBlockListInternalServerError {
+ return &AggregateBlockListInternalServerError{}
+}
+
+/*
+AggregateBlockListInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateBlockListInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate block list internal server error response has a 2xx status code
+func (o *AggregateBlockListInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate block list internal server error response has a 3xx status code
+func (o *AggregateBlockListInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate block list internal server error response has a 4xx status code
+func (o *AggregateBlockListInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate block list internal server error response has a 5xx status code
+func (o *AggregateBlockListInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate block list internal server error response a status code equal to that given
+func (o *AggregateBlockListInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate block list internal server error response
+func (o *AggregateBlockListInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateBlockListInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/blocklist/GET/v1][%d] aggregateBlockListInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateBlockListInternalServerError) String() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/blocklist/GET/v1][%d] aggregateBlockListInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateBlockListInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateBlockListInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/aggregate_detections_responses.go b/falcon/client/falcon_complete_dashboard/aggregate_detections_responses.go
index 2ed80c04..cf22ef2c 100644
--- a/falcon/client/falcon_complete_dashboard/aggregate_detections_responses.go
+++ b/falcon/client/falcon_complete_dashboard/aggregate_detections_responses.go
@@ -43,6 +43,12 @@ func (o *AggregateDetectionsReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateDetectionsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /falcon-complete-dashboards/aggregates/detects/GET/v1] AggregateDetections", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregateDetectionsTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewAggregateDetectionsInternalServerError creates a AggregateDetectionsInternalServerError with default headers values
+func NewAggregateDetectionsInternalServerError() *AggregateDetectionsInternalServerError {
+ return &AggregateDetectionsInternalServerError{}
+}
+
+/*
+AggregateDetectionsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateDetectionsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate detections internal server error response has a 2xx status code
+func (o *AggregateDetectionsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate detections internal server error response has a 3xx status code
+func (o *AggregateDetectionsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate detections internal server error response has a 4xx status code
+func (o *AggregateDetectionsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate detections internal server error response has a 5xx status code
+func (o *AggregateDetectionsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate detections internal server error response a status code equal to that given
+func (o *AggregateDetectionsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate detections internal server error response
+func (o *AggregateDetectionsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateDetectionsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/detects/GET/v1][%d] aggregateDetectionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateDetectionsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/detects/GET/v1][%d] aggregateDetectionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateDetectionsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateDetectionsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/aggregate_device_count_collection_responses.go b/falcon/client/falcon_complete_dashboard/aggregate_device_count_collection_responses.go
index 0ba9abfa..506aa928 100644
--- a/falcon/client/falcon_complete_dashboard/aggregate_device_count_collection_responses.go
+++ b/falcon/client/falcon_complete_dashboard/aggregate_device_count_collection_responses.go
@@ -43,6 +43,12 @@ func (o *AggregateDeviceCountCollectionReader) ReadResponse(response runtime.Cli
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateDeviceCountCollectionInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /falcon-complete-dashboards/aggregates/devicecount-collections/GET/v1] AggregateDeviceCountCollection", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregateDeviceCountCollectionTooManyRequests) readResponse(response ru
return nil
}
+
+// NewAggregateDeviceCountCollectionInternalServerError creates a AggregateDeviceCountCollectionInternalServerError with default headers values
+func NewAggregateDeviceCountCollectionInternalServerError() *AggregateDeviceCountCollectionInternalServerError {
+ return &AggregateDeviceCountCollectionInternalServerError{}
+}
+
+/*
+AggregateDeviceCountCollectionInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateDeviceCountCollectionInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate device count collection internal server error response has a 2xx status code
+func (o *AggregateDeviceCountCollectionInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate device count collection internal server error response has a 3xx status code
+func (o *AggregateDeviceCountCollectionInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate device count collection internal server error response has a 4xx status code
+func (o *AggregateDeviceCountCollectionInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate device count collection internal server error response has a 5xx status code
+func (o *AggregateDeviceCountCollectionInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate device count collection internal server error response a status code equal to that given
+func (o *AggregateDeviceCountCollectionInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate device count collection internal server error response
+func (o *AggregateDeviceCountCollectionInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateDeviceCountCollectionInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/devicecount-collections/GET/v1][%d] aggregateDeviceCountCollectionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateDeviceCountCollectionInternalServerError) String() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/devicecount-collections/GET/v1][%d] aggregateDeviceCountCollectionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateDeviceCountCollectionInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateDeviceCountCollectionInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/aggregate_escalations_responses.go b/falcon/client/falcon_complete_dashboard/aggregate_escalations_responses.go
index f0c02ae4..29cebcf1 100644
--- a/falcon/client/falcon_complete_dashboard/aggregate_escalations_responses.go
+++ b/falcon/client/falcon_complete_dashboard/aggregate_escalations_responses.go
@@ -43,6 +43,12 @@ func (o *AggregateEscalationsReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateEscalationsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /falcon-complete-dashboards/aggregates/escalations/GET/v1] AggregateEscalations", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregateEscalationsTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewAggregateEscalationsInternalServerError creates a AggregateEscalationsInternalServerError with default headers values
+func NewAggregateEscalationsInternalServerError() *AggregateEscalationsInternalServerError {
+ return &AggregateEscalationsInternalServerError{}
+}
+
+/*
+AggregateEscalationsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateEscalationsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate escalations internal server error response has a 2xx status code
+func (o *AggregateEscalationsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate escalations internal server error response has a 3xx status code
+func (o *AggregateEscalationsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate escalations internal server error response has a 4xx status code
+func (o *AggregateEscalationsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate escalations internal server error response has a 5xx status code
+func (o *AggregateEscalationsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate escalations internal server error response a status code equal to that given
+func (o *AggregateEscalationsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate escalations internal server error response
+func (o *AggregateEscalationsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateEscalationsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/escalations/GET/v1][%d] aggregateEscalationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateEscalationsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/escalations/GET/v1][%d] aggregateEscalationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateEscalationsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateEscalationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/aggregate_f_c_incidents_responses.go b/falcon/client/falcon_complete_dashboard/aggregate_f_c_incidents_responses.go
index 10c18728..cc11439d 100644
--- a/falcon/client/falcon_complete_dashboard/aggregate_f_c_incidents_responses.go
+++ b/falcon/client/falcon_complete_dashboard/aggregate_f_c_incidents_responses.go
@@ -43,6 +43,12 @@ func (o *AggregateFCIncidentsReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateFCIncidentsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /falcon-complete-dashboards/aggregates/incidents/GET/v1] AggregateFCIncidents", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregateFCIncidentsTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewAggregateFCIncidentsInternalServerError creates a AggregateFCIncidentsInternalServerError with default headers values
+func NewAggregateFCIncidentsInternalServerError() *AggregateFCIncidentsInternalServerError {
+ return &AggregateFCIncidentsInternalServerError{}
+}
+
+/*
+AggregateFCIncidentsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateFCIncidentsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate f c incidents internal server error response has a 2xx status code
+func (o *AggregateFCIncidentsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate f c incidents internal server error response has a 3xx status code
+func (o *AggregateFCIncidentsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate f c incidents internal server error response has a 4xx status code
+func (o *AggregateFCIncidentsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate f c incidents internal server error response has a 5xx status code
+func (o *AggregateFCIncidentsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate f c incidents internal server error response a status code equal to that given
+func (o *AggregateFCIncidentsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate f c incidents internal server error response
+func (o *AggregateFCIncidentsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateFCIncidentsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/incidents/GET/v1][%d] aggregateFCIncidentsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateFCIncidentsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/incidents/GET/v1][%d] aggregateFCIncidentsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateFCIncidentsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateFCIncidentsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/aggregate_remediations_responses.go b/falcon/client/falcon_complete_dashboard/aggregate_remediations_responses.go
index 14140a34..a3b5d9f3 100644
--- a/falcon/client/falcon_complete_dashboard/aggregate_remediations_responses.go
+++ b/falcon/client/falcon_complete_dashboard/aggregate_remediations_responses.go
@@ -43,6 +43,12 @@ func (o *AggregateRemediationsReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateRemediationsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /falcon-complete-dashboards/aggregates/remediations/GET/v1] AggregateRemediations", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregateRemediationsTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewAggregateRemediationsInternalServerError creates a AggregateRemediationsInternalServerError with default headers values
+func NewAggregateRemediationsInternalServerError() *AggregateRemediationsInternalServerError {
+ return &AggregateRemediationsInternalServerError{}
+}
+
+/*
+AggregateRemediationsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateRemediationsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate remediations internal server error response has a 2xx status code
+func (o *AggregateRemediationsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate remediations internal server error response has a 3xx status code
+func (o *AggregateRemediationsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate remediations internal server error response has a 4xx status code
+func (o *AggregateRemediationsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate remediations internal server error response has a 5xx status code
+func (o *AggregateRemediationsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate remediations internal server error response a status code equal to that given
+func (o *AggregateRemediationsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate remediations internal server error response
+func (o *AggregateRemediationsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateRemediationsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/remediations/GET/v1][%d] aggregateRemediationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateRemediationsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /falcon-complete-dashboards/aggregates/remediations/GET/v1][%d] aggregateRemediationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateRemediationsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateRemediationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/get_device_count_collection_queries_by_filter_responses.go b/falcon/client/falcon_complete_dashboard/get_device_count_collection_queries_by_filter_responses.go
index 16120d5e..2c657c80 100644
--- a/falcon/client/falcon_complete_dashboard/get_device_count_collection_queries_by_filter_responses.go
+++ b/falcon/client/falcon_complete_dashboard/get_device_count_collection_queries_by_filter_responses.go
@@ -43,6 +43,12 @@ func (o *GetDeviceCountCollectionQueriesByFilterReader) ReadResponse(response ru
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetDeviceCountCollectionQueriesByFilterInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /falcon-complete-dashboards/queries/devicecount-collections/v1] GetDeviceCountCollectionQueriesByFilter", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetDeviceCountCollectionQueriesByFilterTooManyRequests) readResponse(re
return nil
}
+
+// NewGetDeviceCountCollectionQueriesByFilterInternalServerError creates a GetDeviceCountCollectionQueriesByFilterInternalServerError with default headers values
+func NewGetDeviceCountCollectionQueriesByFilterInternalServerError() *GetDeviceCountCollectionQueriesByFilterInternalServerError {
+ return &GetDeviceCountCollectionQueriesByFilterInternalServerError{}
+}
+
+/*
+GetDeviceCountCollectionQueriesByFilterInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetDeviceCountCollectionQueriesByFilterInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get device count collection queries by filter internal server error response has a 2xx status code
+func (o *GetDeviceCountCollectionQueriesByFilterInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get device count collection queries by filter internal server error response has a 3xx status code
+func (o *GetDeviceCountCollectionQueriesByFilterInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get device count collection queries by filter internal server error response has a 4xx status code
+func (o *GetDeviceCountCollectionQueriesByFilterInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get device count collection queries by filter internal server error response has a 5xx status code
+func (o *GetDeviceCountCollectionQueriesByFilterInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get device count collection queries by filter internal server error response a status code equal to that given
+func (o *GetDeviceCountCollectionQueriesByFilterInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get device count collection queries by filter internal server error response
+func (o *GetDeviceCountCollectionQueriesByFilterInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetDeviceCountCollectionQueriesByFilterInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/devicecount-collections/v1][%d] getDeviceCountCollectionQueriesByFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetDeviceCountCollectionQueriesByFilterInternalServerError) String() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/devicecount-collections/v1][%d] getDeviceCountCollectionQueriesByFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetDeviceCountCollectionQueriesByFilterInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetDeviceCountCollectionQueriesByFilterInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/query_alert_ids_by_filter_responses.go b/falcon/client/falcon_complete_dashboard/query_alert_ids_by_filter_responses.go
index 3ab2c100..7fe701a5 100644
--- a/falcon/client/falcon_complete_dashboard/query_alert_ids_by_filter_responses.go
+++ b/falcon/client/falcon_complete_dashboard/query_alert_ids_by_filter_responses.go
@@ -43,6 +43,12 @@ func (o *QueryAlertIdsByFilterReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryAlertIdsByFilterInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /falcon-complete-dashboards/queries/alerts/v1] QueryAlertIdsByFilter", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryAlertIdsByFilterTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewQueryAlertIdsByFilterInternalServerError creates a QueryAlertIdsByFilterInternalServerError with default headers values
+func NewQueryAlertIdsByFilterInternalServerError() *QueryAlertIdsByFilterInternalServerError {
+ return &QueryAlertIdsByFilterInternalServerError{}
+}
+
+/*
+QueryAlertIdsByFilterInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryAlertIdsByFilterInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query alert ids by filter internal server error response has a 2xx status code
+func (o *QueryAlertIdsByFilterInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query alert ids by filter internal server error response has a 3xx status code
+func (o *QueryAlertIdsByFilterInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query alert ids by filter internal server error response has a 4xx status code
+func (o *QueryAlertIdsByFilterInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query alert ids by filter internal server error response has a 5xx status code
+func (o *QueryAlertIdsByFilterInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query alert ids by filter internal server error response a status code equal to that given
+func (o *QueryAlertIdsByFilterInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query alert ids by filter internal server error response
+func (o *QueryAlertIdsByFilterInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryAlertIdsByFilterInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/alerts/v1][%d] queryAlertIdsByFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryAlertIdsByFilterInternalServerError) String() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/alerts/v1][%d] queryAlertIdsByFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryAlertIdsByFilterInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryAlertIdsByFilterInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/query_allow_list_filter_responses.go b/falcon/client/falcon_complete_dashboard/query_allow_list_filter_responses.go
index 73fb71e5..569c6858 100644
--- a/falcon/client/falcon_complete_dashboard/query_allow_list_filter_responses.go
+++ b/falcon/client/falcon_complete_dashboard/query_allow_list_filter_responses.go
@@ -43,6 +43,12 @@ func (o *QueryAllowListFilterReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryAllowListFilterInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /falcon-complete-dashboards/queries/allowlist/v1] QueryAllowListFilter", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryAllowListFilterTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewQueryAllowListFilterInternalServerError creates a QueryAllowListFilterInternalServerError with default headers values
+func NewQueryAllowListFilterInternalServerError() *QueryAllowListFilterInternalServerError {
+ return &QueryAllowListFilterInternalServerError{}
+}
+
+/*
+QueryAllowListFilterInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryAllowListFilterInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query allow list filter internal server error response has a 2xx status code
+func (o *QueryAllowListFilterInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query allow list filter internal server error response has a 3xx status code
+func (o *QueryAllowListFilterInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query allow list filter internal server error response has a 4xx status code
+func (o *QueryAllowListFilterInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query allow list filter internal server error response has a 5xx status code
+func (o *QueryAllowListFilterInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query allow list filter internal server error response a status code equal to that given
+func (o *QueryAllowListFilterInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query allow list filter internal server error response
+func (o *QueryAllowListFilterInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryAllowListFilterInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/allowlist/v1][%d] queryAllowListFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryAllowListFilterInternalServerError) String() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/allowlist/v1][%d] queryAllowListFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryAllowListFilterInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryAllowListFilterInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/query_block_list_filter_responses.go b/falcon/client/falcon_complete_dashboard/query_block_list_filter_responses.go
index 6de97164..20352fc6 100644
--- a/falcon/client/falcon_complete_dashboard/query_block_list_filter_responses.go
+++ b/falcon/client/falcon_complete_dashboard/query_block_list_filter_responses.go
@@ -43,6 +43,12 @@ func (o *QueryBlockListFilterReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryBlockListFilterInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /falcon-complete-dashboards/queries/blocklist/v1] QueryBlockListFilter", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryBlockListFilterTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewQueryBlockListFilterInternalServerError creates a QueryBlockListFilterInternalServerError with default headers values
+func NewQueryBlockListFilterInternalServerError() *QueryBlockListFilterInternalServerError {
+ return &QueryBlockListFilterInternalServerError{}
+}
+
+/*
+QueryBlockListFilterInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryBlockListFilterInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query block list filter internal server error response has a 2xx status code
+func (o *QueryBlockListFilterInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query block list filter internal server error response has a 3xx status code
+func (o *QueryBlockListFilterInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query block list filter internal server error response has a 4xx status code
+func (o *QueryBlockListFilterInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query block list filter internal server error response has a 5xx status code
+func (o *QueryBlockListFilterInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query block list filter internal server error response a status code equal to that given
+func (o *QueryBlockListFilterInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query block list filter internal server error response
+func (o *QueryBlockListFilterInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryBlockListFilterInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/blocklist/v1][%d] queryBlockListFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryBlockListFilterInternalServerError) String() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/blocklist/v1][%d] queryBlockListFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryBlockListFilterInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryBlockListFilterInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/query_detection_ids_by_filter_responses.go b/falcon/client/falcon_complete_dashboard/query_detection_ids_by_filter_responses.go
index 3588d315..a4474c7c 100644
--- a/falcon/client/falcon_complete_dashboard/query_detection_ids_by_filter_responses.go
+++ b/falcon/client/falcon_complete_dashboard/query_detection_ids_by_filter_responses.go
@@ -43,6 +43,12 @@ func (o *QueryDetectionIdsByFilterReader) ReadResponse(response runtime.ClientRe
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryDetectionIdsByFilterInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /falcon-complete-dashboards/queries/detects/v1] QueryDetectionIdsByFilter", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryDetectionIdsByFilterTooManyRequests) readResponse(response runtime
return nil
}
+
+// NewQueryDetectionIdsByFilterInternalServerError creates a QueryDetectionIdsByFilterInternalServerError with default headers values
+func NewQueryDetectionIdsByFilterInternalServerError() *QueryDetectionIdsByFilterInternalServerError {
+ return &QueryDetectionIdsByFilterInternalServerError{}
+}
+
+/*
+QueryDetectionIdsByFilterInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryDetectionIdsByFilterInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query detection ids by filter internal server error response has a 2xx status code
+func (o *QueryDetectionIdsByFilterInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query detection ids by filter internal server error response has a 3xx status code
+func (o *QueryDetectionIdsByFilterInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query detection ids by filter internal server error response has a 4xx status code
+func (o *QueryDetectionIdsByFilterInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query detection ids by filter internal server error response has a 5xx status code
+func (o *QueryDetectionIdsByFilterInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query detection ids by filter internal server error response a status code equal to that given
+func (o *QueryDetectionIdsByFilterInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query detection ids by filter internal server error response
+func (o *QueryDetectionIdsByFilterInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryDetectionIdsByFilterInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/detects/v1][%d] queryDetectionIdsByFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryDetectionIdsByFilterInternalServerError) String() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/detects/v1][%d] queryDetectionIdsByFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryDetectionIdsByFilterInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryDetectionIdsByFilterInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/query_escalations_filter_responses.go b/falcon/client/falcon_complete_dashboard/query_escalations_filter_responses.go
index 1d1f0f90..c5bf83ad 100644
--- a/falcon/client/falcon_complete_dashboard/query_escalations_filter_responses.go
+++ b/falcon/client/falcon_complete_dashboard/query_escalations_filter_responses.go
@@ -43,6 +43,12 @@ func (o *QueryEscalationsFilterReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryEscalationsFilterInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /falcon-complete-dashboards/queries/escalations/v1] QueryEscalationsFilter", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryEscalationsFilterTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewQueryEscalationsFilterInternalServerError creates a QueryEscalationsFilterInternalServerError with default headers values
+func NewQueryEscalationsFilterInternalServerError() *QueryEscalationsFilterInternalServerError {
+ return &QueryEscalationsFilterInternalServerError{}
+}
+
+/*
+QueryEscalationsFilterInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryEscalationsFilterInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query escalations filter internal server error response has a 2xx status code
+func (o *QueryEscalationsFilterInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query escalations filter internal server error response has a 3xx status code
+func (o *QueryEscalationsFilterInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query escalations filter internal server error response has a 4xx status code
+func (o *QueryEscalationsFilterInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query escalations filter internal server error response has a 5xx status code
+func (o *QueryEscalationsFilterInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query escalations filter internal server error response a status code equal to that given
+func (o *QueryEscalationsFilterInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query escalations filter internal server error response
+func (o *QueryEscalationsFilterInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryEscalationsFilterInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/escalations/v1][%d] queryEscalationsFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryEscalationsFilterInternalServerError) String() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/escalations/v1][%d] queryEscalationsFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryEscalationsFilterInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryEscalationsFilterInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/query_incident_ids_by_filter_responses.go b/falcon/client/falcon_complete_dashboard/query_incident_ids_by_filter_responses.go
index 8d0c1500..d3e5f590 100644
--- a/falcon/client/falcon_complete_dashboard/query_incident_ids_by_filter_responses.go
+++ b/falcon/client/falcon_complete_dashboard/query_incident_ids_by_filter_responses.go
@@ -43,6 +43,12 @@ func (o *QueryIncidentIdsByFilterReader) ReadResponse(response runtime.ClientRes
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryIncidentIdsByFilterInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /falcon-complete-dashboards/queries/incidents/v1] QueryIncidentIdsByFilter", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryIncidentIdsByFilterTooManyRequests) readResponse(response runtime.
return nil
}
+
+// NewQueryIncidentIdsByFilterInternalServerError creates a QueryIncidentIdsByFilterInternalServerError with default headers values
+func NewQueryIncidentIdsByFilterInternalServerError() *QueryIncidentIdsByFilterInternalServerError {
+ return &QueryIncidentIdsByFilterInternalServerError{}
+}
+
+/*
+QueryIncidentIdsByFilterInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryIncidentIdsByFilterInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query incident ids by filter internal server error response has a 2xx status code
+func (o *QueryIncidentIdsByFilterInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query incident ids by filter internal server error response has a 3xx status code
+func (o *QueryIncidentIdsByFilterInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query incident ids by filter internal server error response has a 4xx status code
+func (o *QueryIncidentIdsByFilterInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query incident ids by filter internal server error response has a 5xx status code
+func (o *QueryIncidentIdsByFilterInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query incident ids by filter internal server error response a status code equal to that given
+func (o *QueryIncidentIdsByFilterInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query incident ids by filter internal server error response
+func (o *QueryIncidentIdsByFilterInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryIncidentIdsByFilterInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/incidents/v1][%d] queryIncidentIdsByFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryIncidentIdsByFilterInternalServerError) String() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/incidents/v1][%d] queryIncidentIdsByFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryIncidentIdsByFilterInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryIncidentIdsByFilterInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_complete_dashboard/query_remediations_filter_responses.go b/falcon/client/falcon_complete_dashboard/query_remediations_filter_responses.go
index 32199d22..c3f8d45c 100644
--- a/falcon/client/falcon_complete_dashboard/query_remediations_filter_responses.go
+++ b/falcon/client/falcon_complete_dashboard/query_remediations_filter_responses.go
@@ -43,6 +43,12 @@ func (o *QueryRemediationsFilterReader) ReadResponse(response runtime.ClientResp
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryRemediationsFilterInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /falcon-complete-dashboards/queries/remediations/v1] QueryRemediationsFilter", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryRemediationsFilterTooManyRequests) readResponse(response runtime.C
return nil
}
+
+// NewQueryRemediationsFilterInternalServerError creates a QueryRemediationsFilterInternalServerError with default headers values
+func NewQueryRemediationsFilterInternalServerError() *QueryRemediationsFilterInternalServerError {
+ return &QueryRemediationsFilterInternalServerError{}
+}
+
+/*
+QueryRemediationsFilterInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryRemediationsFilterInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query remediations filter internal server error response has a 2xx status code
+func (o *QueryRemediationsFilterInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query remediations filter internal server error response has a 3xx status code
+func (o *QueryRemediationsFilterInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query remediations filter internal server error response has a 4xx status code
+func (o *QueryRemediationsFilterInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query remediations filter internal server error response has a 5xx status code
+func (o *QueryRemediationsFilterInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query remediations filter internal server error response a status code equal to that given
+func (o *QueryRemediationsFilterInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query remediations filter internal server error response
+func (o *QueryRemediationsFilterInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryRemediationsFilterInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/remediations/v1][%d] queryRemediationsFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRemediationsFilterInternalServerError) String() string {
+ return fmt.Sprintf("[GET /falcon-complete-dashboards/queries/remediations/v1][%d] queryRemediationsFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRemediationsFilterInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryRemediationsFilterInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_container_image/delete_registry_entities_responses.go b/falcon/client/falcon_container_image/delete_registry_entities_responses.go
index 4972e284..e2a203c9 100644
--- a/falcon/client/falcon_container_image/delete_registry_entities_responses.go
+++ b/falcon/client/falcon_container_image/delete_registry_entities_responses.go
@@ -43,6 +43,12 @@ func (o *DeleteRegistryEntitiesReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteRegistryEntitiesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /container-security/entities/registries/v1] DeleteRegistryEntities", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *DeleteRegistryEntitiesTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewDeleteRegistryEntitiesInternalServerError creates a DeleteRegistryEntitiesInternalServerError with default headers values
+func NewDeleteRegistryEntitiesInternalServerError() *DeleteRegistryEntitiesInternalServerError {
+ return &DeleteRegistryEntitiesInternalServerError{}
+}
+
+/*
+DeleteRegistryEntitiesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteRegistryEntitiesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete registry entities internal server error response has a 2xx status code
+func (o *DeleteRegistryEntitiesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete registry entities internal server error response has a 3xx status code
+func (o *DeleteRegistryEntitiesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete registry entities internal server error response has a 4xx status code
+func (o *DeleteRegistryEntitiesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete registry entities internal server error response has a 5xx status code
+func (o *DeleteRegistryEntitiesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete registry entities internal server error response a status code equal to that given
+func (o *DeleteRegistryEntitiesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete registry entities internal server error response
+func (o *DeleteRegistryEntitiesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteRegistryEntitiesInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/registries/v1][%d] deleteRegistryEntitiesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteRegistryEntitiesInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /container-security/entities/registries/v1][%d] deleteRegistryEntitiesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteRegistryEntitiesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteRegistryEntitiesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_container_image/download_export_file_parameters.go b/falcon/client/falcon_container_image/download_export_file_parameters.go
new file mode 100644
index 00000000..49682798
--- /dev/null
+++ b/falcon/client/falcon_container_image/download_export_file_parameters.go
@@ -0,0 +1,156 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package falcon_container_image
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewDownloadExportFileParams creates a new DownloadExportFileParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDownloadExportFileParams() *DownloadExportFileParams {
+ return &DownloadExportFileParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDownloadExportFileParamsWithTimeout creates a new DownloadExportFileParams object
+// with the ability to set a timeout on a request.
+func NewDownloadExportFileParamsWithTimeout(timeout time.Duration) *DownloadExportFileParams {
+ return &DownloadExportFileParams{
+ timeout: timeout,
+ }
+}
+
+// NewDownloadExportFileParamsWithContext creates a new DownloadExportFileParams object
+// with the ability to set a context for a request.
+func NewDownloadExportFileParamsWithContext(ctx context.Context) *DownloadExportFileParams {
+ return &DownloadExportFileParams{
+ Context: ctx,
+ }
+}
+
+// NewDownloadExportFileParamsWithHTTPClient creates a new DownloadExportFileParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDownloadExportFileParamsWithHTTPClient(client *http.Client) *DownloadExportFileParams {
+ return &DownloadExportFileParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DownloadExportFileParams contains all the parameters to send to the API endpoint
+
+ for the download export file operation.
+
+ Typically these are written to a http.Request.
+*/
+type DownloadExportFileParams struct {
+
+ /* ID.
+
+ Export job ID.
+ */
+ ID string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the download export file params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DownloadExportFileParams) WithDefaults() *DownloadExportFileParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the download export file params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DownloadExportFileParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the download export file params
+func (o *DownloadExportFileParams) WithTimeout(timeout time.Duration) *DownloadExportFileParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the download export file params
+func (o *DownloadExportFileParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the download export file params
+func (o *DownloadExportFileParams) WithContext(ctx context.Context) *DownloadExportFileParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the download export file params
+func (o *DownloadExportFileParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the download export file params
+func (o *DownloadExportFileParams) WithHTTPClient(client *http.Client) *DownloadExportFileParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the download export file params
+func (o *DownloadExportFileParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithID adds the id to the download export file params
+func (o *DownloadExportFileParams) WithID(id string) *DownloadExportFileParams {
+ o.SetID(id)
+ return o
+}
+
+// SetID adds the id to the download export file params
+func (o *DownloadExportFileParams) SetID(id string) {
+ o.ID = id
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DownloadExportFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // query param id
+ qrID := o.ID
+ qID := qrID
+ if qID != "" {
+
+ if err := r.SetQueryParam("id", qID); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/falcon_container_image/download_export_file_responses.go b/falcon/client/falcon_container_image/download_export_file_responses.go
new file mode 100644
index 00000000..01861e68
--- /dev/null
+++ b/falcon/client/falcon_container_image/download_export_file_responses.go
@@ -0,0 +1,624 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package falcon_container_image
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DownloadExportFileReader is a Reader for the DownloadExportFile structure.
+type DownloadExportFileReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DownloadExportFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewDownloadExportFileOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewDownloadExportFileForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewDownloadExportFileNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDownloadExportFileTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDownloadExportFileInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /container-security/entities/exports/files/v1] DownloadExportFile", response, response.Code())
+ }
+}
+
+// NewDownloadExportFileOK creates a DownloadExportFileOK with default headers values
+func NewDownloadExportFileOK() *DownloadExportFileOK {
+ return &DownloadExportFileOK{}
+}
+
+/*
+DownloadExportFileOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type DownloadExportFileOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload []int64
+}
+
+// IsSuccess returns true when this download export file o k response has a 2xx status code
+func (o *DownloadExportFileOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this download export file o k response has a 3xx status code
+func (o *DownloadExportFileOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download export file o k response has a 4xx status code
+func (o *DownloadExportFileOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this download export file o k response has a 5xx status code
+func (o *DownloadExportFileOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this download export file o k response a status code equal to that given
+func (o *DownloadExportFileOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the download export file o k response
+func (o *DownloadExportFileOK) Code() int {
+ return 200
+}
+
+func (o *DownloadExportFileOK) Error() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/files/v1][%d] downloadExportFileOK %+v", 200, o.Payload)
+}
+
+func (o *DownloadExportFileOK) String() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/files/v1][%d] downloadExportFileOK %+v", 200, o.Payload)
+}
+
+func (o *DownloadExportFileOK) GetPayload() []int64 {
+ return o.Payload
+}
+
+func (o *DownloadExportFileOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // response payload
+ if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDownloadExportFileForbidden creates a DownloadExportFileForbidden with default headers values
+func NewDownloadExportFileForbidden() *DownloadExportFileForbidden {
+ return &DownloadExportFileForbidden{}
+}
+
+/*
+DownloadExportFileForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DownloadExportFileForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this download export file forbidden response has a 2xx status code
+func (o *DownloadExportFileForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download export file forbidden response has a 3xx status code
+func (o *DownloadExportFileForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download export file forbidden response has a 4xx status code
+func (o *DownloadExportFileForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this download export file forbidden response has a 5xx status code
+func (o *DownloadExportFileForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this download export file forbidden response a status code equal to that given
+func (o *DownloadExportFileForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the download export file forbidden response
+func (o *DownloadExportFileForbidden) Code() int {
+ return 403
+}
+
+func (o *DownloadExportFileForbidden) Error() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/files/v1][%d] downloadExportFileForbidden %+v", 403, o.Payload)
+}
+
+func (o *DownloadExportFileForbidden) String() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/files/v1][%d] downloadExportFileForbidden %+v", 403, o.Payload)
+}
+
+func (o *DownloadExportFileForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DownloadExportFileForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDownloadExportFileNotFound creates a DownloadExportFileNotFound with default headers values
+func NewDownloadExportFileNotFound() *DownloadExportFileNotFound {
+ return &DownloadExportFileNotFound{}
+}
+
+/*
+DownloadExportFileNotFound describes a response with status code 404, with default header values.
+
+Not Found
+*/
+type DownloadExportFileNotFound struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this download export file not found response has a 2xx status code
+func (o *DownloadExportFileNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download export file not found response has a 3xx status code
+func (o *DownloadExportFileNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download export file not found response has a 4xx status code
+func (o *DownloadExportFileNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this download export file not found response has a 5xx status code
+func (o *DownloadExportFileNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this download export file not found response a status code equal to that given
+func (o *DownloadExportFileNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the download export file not found response
+func (o *DownloadExportFileNotFound) Code() int {
+ return 404
+}
+
+func (o *DownloadExportFileNotFound) Error() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/files/v1][%d] downloadExportFileNotFound %+v", 404, o.Payload)
+}
+
+func (o *DownloadExportFileNotFound) String() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/files/v1][%d] downloadExportFileNotFound %+v", 404, o.Payload)
+}
+
+func (o *DownloadExportFileNotFound) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *DownloadExportFileNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDownloadExportFileTooManyRequests creates a DownloadExportFileTooManyRequests with default headers values
+func NewDownloadExportFileTooManyRequests() *DownloadExportFileTooManyRequests {
+ return &DownloadExportFileTooManyRequests{}
+}
+
+/*
+DownloadExportFileTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DownloadExportFileTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this download export file too many requests response has a 2xx status code
+func (o *DownloadExportFileTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download export file too many requests response has a 3xx status code
+func (o *DownloadExportFileTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download export file too many requests response has a 4xx status code
+func (o *DownloadExportFileTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this download export file too many requests response has a 5xx status code
+func (o *DownloadExportFileTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this download export file too many requests response a status code equal to that given
+func (o *DownloadExportFileTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the download export file too many requests response
+func (o *DownloadExportFileTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DownloadExportFileTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/files/v1][%d] downloadExportFileTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DownloadExportFileTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/files/v1][%d] downloadExportFileTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DownloadExportFileTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DownloadExportFileTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDownloadExportFileInternalServerError creates a DownloadExportFileInternalServerError with default headers values
+func NewDownloadExportFileInternalServerError() *DownloadExportFileInternalServerError {
+ return &DownloadExportFileInternalServerError{}
+}
+
+/*
+DownloadExportFileInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type DownloadExportFileInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this download export file internal server error response has a 2xx status code
+func (o *DownloadExportFileInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download export file internal server error response has a 3xx status code
+func (o *DownloadExportFileInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download export file internal server error response has a 4xx status code
+func (o *DownloadExportFileInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this download export file internal server error response has a 5xx status code
+func (o *DownloadExportFileInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this download export file internal server error response a status code equal to that given
+func (o *DownloadExportFileInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the download export file internal server error response
+func (o *DownloadExportFileInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DownloadExportFileInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/files/v1][%d] downloadExportFileInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DownloadExportFileInternalServerError) String() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/files/v1][%d] downloadExportFileInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DownloadExportFileInternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *DownloadExportFileInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_container_image/falcon_container_image_client.go b/falcon/client/falcon_container_image/falcon_container_image_client.go
index 20ea9e68..2e545168 100644
--- a/falcon/client/falcon_container_image/falcon_container_image_client.go
+++ b/falcon/client/falcon_container_image/falcon_container_image_client.go
@@ -34,6 +34,14 @@ type ClientService interface {
DeleteRegistryEntities(params *DeleteRegistryEntitiesParams, opts ...ClientOption) (*DeleteRegistryEntitiesOK, error)
+ DownloadExportFile(params *DownloadExportFileParams, opts ...ClientOption) (*DownloadExportFileOK, error)
+
+ LaunchExportJob(params *LaunchExportJobParams, opts ...ClientOption) (*LaunchExportJobOK, error)
+
+ QueryExportJobs(params *QueryExportJobsParams, opts ...ClientOption) (*QueryExportJobsOK, error)
+
+ ReadExportJobs(params *ReadExportJobsParams, opts ...ClientOption) (*ReadExportJobsOK, error)
+
ReadRegistryEntities(params *ReadRegistryEntitiesParams, opts ...ClientOption) (*ReadRegistryEntitiesOK, error)
ReadRegistryEntitiesByUUID(params *ReadRegistryEntitiesByUUIDParams, opts ...ClientOption) (*ReadRegistryEntitiesByUUIDOK, error)
@@ -119,6 +127,158 @@ func (a *Client) DeleteRegistryEntities(params *DeleteRegistryEntitiesParams, op
panic(msg)
}
+/*
+DownloadExportFile downloads an export file
+*/
+func (a *Client) DownloadExportFile(params *DownloadExportFileParams, opts ...ClientOption) (*DownloadExportFileOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDownloadExportFileParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "DownloadExportFile",
+ Method: "GET",
+ PathPattern: "/container-security/entities/exports/files/v1",
+ ProducesMediaTypes: []string{"application/json", "application/octet-stream"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DownloadExportFileReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DownloadExportFileOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for DownloadExportFile: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+LaunchExportJob launches an export job of a container security resource maximum of 1 job in progress per resource
+*/
+func (a *Client) LaunchExportJob(params *LaunchExportJobParams, opts ...ClientOption) (*LaunchExportJobOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewLaunchExportJobParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "LaunchExportJob",
+ Method: "POST",
+ PathPattern: "/container-security/entities/exports/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &LaunchExportJobReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*LaunchExportJobOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for LaunchExportJob: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+QueryExportJobs queries export jobs entities
+*/
+func (a *Client) QueryExportJobs(params *QueryExportJobsParams, opts ...ClientOption) (*QueryExportJobsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewQueryExportJobsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "QueryExportJobs",
+ Method: "GET",
+ PathPattern: "/container-security/queries/exports/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &QueryExportJobsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*QueryExportJobsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for QueryExportJobs: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ReadExportJobs reads export jobs entities
+*/
+func (a *Client) ReadExportJobs(params *ReadExportJobsParams, opts ...ClientOption) (*ReadExportJobsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewReadExportJobsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "ReadExportJobs",
+ Method: "GET",
+ PathPattern: "/container-security/entities/exports/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &ReadExportJobsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*ReadExportJobsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for ReadExportJobs: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
/*
ReadRegistryEntities retrieves registry entities identified by the customer id
*/
diff --git a/falcon/client/falcon_container_image/launch_export_job_parameters.go b/falcon/client/falcon_container_image/launch_export_job_parameters.go
new file mode 100644
index 00000000..55148f92
--- /dev/null
+++ b/falcon/client/falcon_container_image/launch_export_job_parameters.go
@@ -0,0 +1,172 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package falcon_container_image
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewLaunchExportJobParams creates a new LaunchExportJobParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewLaunchExportJobParams() *LaunchExportJobParams {
+ return &LaunchExportJobParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewLaunchExportJobParamsWithTimeout creates a new LaunchExportJobParams object
+// with the ability to set a timeout on a request.
+func NewLaunchExportJobParamsWithTimeout(timeout time.Duration) *LaunchExportJobParams {
+ return &LaunchExportJobParams{
+ timeout: timeout,
+ }
+}
+
+// NewLaunchExportJobParamsWithContext creates a new LaunchExportJobParams object
+// with the ability to set a context for a request.
+func NewLaunchExportJobParamsWithContext(ctx context.Context) *LaunchExportJobParams {
+ return &LaunchExportJobParams{
+ Context: ctx,
+ }
+}
+
+// NewLaunchExportJobParamsWithHTTPClient creates a new LaunchExportJobParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewLaunchExportJobParamsWithHTTPClient(client *http.Client) *LaunchExportJobParams {
+ return &LaunchExportJobParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+LaunchExportJobParams contains all the parameters to send to the API endpoint
+
+ for the launch export job operation.
+
+ Typically these are written to a http.Request.
+*/
+type LaunchExportJobParams struct {
+
+ /* Body.
+
+ Supported resources:
+ - `assets.clusters`
+ - `assets.containers`
+ - `assets.deployments`
+ - `assets.images`
+ - `assets.namespaces`
+ - `assets.nodes`
+ - `assets.pods`
+ - `images.images-assessment-expanded`
+ - `images.images-assessment`
+ - `images.images-detections`
+ - `images.packages`
+ - `images.vulnerabilities`
+ - `investigate.container-alerts`
+ - `investigate.drift-indicators`
+ - `investigate.kubernetes-ioms`
+ - `investigate.runtime-detections`
+ - `investigate.unidentified-containers`
+ - `network.events`
+ - `policies.exclusions`
+ */
+ Body *models.ExportsLaunchExportRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the launch export job params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *LaunchExportJobParams) WithDefaults() *LaunchExportJobParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the launch export job params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *LaunchExportJobParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the launch export job params
+func (o *LaunchExportJobParams) WithTimeout(timeout time.Duration) *LaunchExportJobParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the launch export job params
+func (o *LaunchExportJobParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the launch export job params
+func (o *LaunchExportJobParams) WithContext(ctx context.Context) *LaunchExportJobParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the launch export job params
+func (o *LaunchExportJobParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the launch export job params
+func (o *LaunchExportJobParams) WithHTTPClient(client *http.Client) *LaunchExportJobParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the launch export job params
+func (o *LaunchExportJobParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the launch export job params
+func (o *LaunchExportJobParams) WithBody(body *models.ExportsLaunchExportRequest) *LaunchExportJobParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the launch export job params
+func (o *LaunchExportJobParams) SetBody(body *models.ExportsLaunchExportRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *LaunchExportJobParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/falcon_container_image/launch_export_job_responses.go b/falcon/client/falcon_container_image/launch_export_job_responses.go
new file mode 100644
index 00000000..9ad7b5ef
--- /dev/null
+++ b/falcon/client/falcon_container_image/launch_export_job_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package falcon_container_image
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// LaunchExportJobReader is a Reader for the LaunchExportJob structure.
+type LaunchExportJobReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *LaunchExportJobReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewLaunchExportJobOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewLaunchExportJobBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewLaunchExportJobForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewLaunchExportJobTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewLaunchExportJobInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /container-security/entities/exports/v1] LaunchExportJob", response, response.Code())
+ }
+}
+
+// NewLaunchExportJobOK creates a LaunchExportJobOK with default headers values
+func NewLaunchExportJobOK() *LaunchExportJobOK {
+ return &LaunchExportJobOK{}
+}
+
+/*
+LaunchExportJobOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type LaunchExportJobOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.ExportsLaunchExportResponse
+}
+
+// IsSuccess returns true when this launch export job o k response has a 2xx status code
+func (o *LaunchExportJobOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this launch export job o k response has a 3xx status code
+func (o *LaunchExportJobOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this launch export job o k response has a 4xx status code
+func (o *LaunchExportJobOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this launch export job o k response has a 5xx status code
+func (o *LaunchExportJobOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this launch export job o k response a status code equal to that given
+func (o *LaunchExportJobOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the launch export job o k response
+func (o *LaunchExportJobOK) Code() int {
+ return 200
+}
+
+func (o *LaunchExportJobOK) Error() string {
+ return fmt.Sprintf("[POST /container-security/entities/exports/v1][%d] launchExportJobOK %+v", 200, o.Payload)
+}
+
+func (o *LaunchExportJobOK) String() string {
+ return fmt.Sprintf("[POST /container-security/entities/exports/v1][%d] launchExportJobOK %+v", 200, o.Payload)
+}
+
+func (o *LaunchExportJobOK) GetPayload() *models.ExportsLaunchExportResponse {
+ return o.Payload
+}
+
+func (o *LaunchExportJobOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.ExportsLaunchExportResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewLaunchExportJobBadRequest creates a LaunchExportJobBadRequest with default headers values
+func NewLaunchExportJobBadRequest() *LaunchExportJobBadRequest {
+ return &LaunchExportJobBadRequest{}
+}
+
+/*
+LaunchExportJobBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type LaunchExportJobBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this launch export job bad request response has a 2xx status code
+func (o *LaunchExportJobBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this launch export job bad request response has a 3xx status code
+func (o *LaunchExportJobBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this launch export job bad request response has a 4xx status code
+func (o *LaunchExportJobBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this launch export job bad request response has a 5xx status code
+func (o *LaunchExportJobBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this launch export job bad request response a status code equal to that given
+func (o *LaunchExportJobBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the launch export job bad request response
+func (o *LaunchExportJobBadRequest) Code() int {
+ return 400
+}
+
+func (o *LaunchExportJobBadRequest) Error() string {
+ return fmt.Sprintf("[POST /container-security/entities/exports/v1][%d] launchExportJobBadRequest %+v", 400, o.Payload)
+}
+
+func (o *LaunchExportJobBadRequest) String() string {
+ return fmt.Sprintf("[POST /container-security/entities/exports/v1][%d] launchExportJobBadRequest %+v", 400, o.Payload)
+}
+
+func (o *LaunchExportJobBadRequest) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *LaunchExportJobBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewLaunchExportJobForbidden creates a LaunchExportJobForbidden with default headers values
+func NewLaunchExportJobForbidden() *LaunchExportJobForbidden {
+ return &LaunchExportJobForbidden{}
+}
+
+/*
+LaunchExportJobForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type LaunchExportJobForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this launch export job forbidden response has a 2xx status code
+func (o *LaunchExportJobForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this launch export job forbidden response has a 3xx status code
+func (o *LaunchExportJobForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this launch export job forbidden response has a 4xx status code
+func (o *LaunchExportJobForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this launch export job forbidden response has a 5xx status code
+func (o *LaunchExportJobForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this launch export job forbidden response a status code equal to that given
+func (o *LaunchExportJobForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the launch export job forbidden response
+func (o *LaunchExportJobForbidden) Code() int {
+ return 403
+}
+
+func (o *LaunchExportJobForbidden) Error() string {
+ return fmt.Sprintf("[POST /container-security/entities/exports/v1][%d] launchExportJobForbidden %+v", 403, o.Payload)
+}
+
+func (o *LaunchExportJobForbidden) String() string {
+ return fmt.Sprintf("[POST /container-security/entities/exports/v1][%d] launchExportJobForbidden %+v", 403, o.Payload)
+}
+
+func (o *LaunchExportJobForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *LaunchExportJobForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewLaunchExportJobTooManyRequests creates a LaunchExportJobTooManyRequests with default headers values
+func NewLaunchExportJobTooManyRequests() *LaunchExportJobTooManyRequests {
+ return &LaunchExportJobTooManyRequests{}
+}
+
+/*
+LaunchExportJobTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type LaunchExportJobTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this launch export job too many requests response has a 2xx status code
+func (o *LaunchExportJobTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this launch export job too many requests response has a 3xx status code
+func (o *LaunchExportJobTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this launch export job too many requests response has a 4xx status code
+func (o *LaunchExportJobTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this launch export job too many requests response has a 5xx status code
+func (o *LaunchExportJobTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this launch export job too many requests response a status code equal to that given
+func (o *LaunchExportJobTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the launch export job too many requests response
+func (o *LaunchExportJobTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *LaunchExportJobTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /container-security/entities/exports/v1][%d] launchExportJobTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *LaunchExportJobTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /container-security/entities/exports/v1][%d] launchExportJobTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *LaunchExportJobTooManyRequests) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *LaunchExportJobTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewLaunchExportJobInternalServerError creates a LaunchExportJobInternalServerError with default headers values
+func NewLaunchExportJobInternalServerError() *LaunchExportJobInternalServerError {
+ return &LaunchExportJobInternalServerError{}
+}
+
+/*
+LaunchExportJobInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type LaunchExportJobInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this launch export job internal server error response has a 2xx status code
+func (o *LaunchExportJobInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this launch export job internal server error response has a 3xx status code
+func (o *LaunchExportJobInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this launch export job internal server error response has a 4xx status code
+func (o *LaunchExportJobInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this launch export job internal server error response has a 5xx status code
+func (o *LaunchExportJobInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this launch export job internal server error response a status code equal to that given
+func (o *LaunchExportJobInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the launch export job internal server error response
+func (o *LaunchExportJobInternalServerError) Code() int {
+ return 500
+}
+
+func (o *LaunchExportJobInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /container-security/entities/exports/v1][%d] launchExportJobInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *LaunchExportJobInternalServerError) String() string {
+ return fmt.Sprintf("[POST /container-security/entities/exports/v1][%d] launchExportJobInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *LaunchExportJobInternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *LaunchExportJobInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_container_image/query_export_jobs_parameters.go b/falcon/client/falcon_container_image/query_export_jobs_parameters.go
new file mode 100644
index 00000000..d1fefafe
--- /dev/null
+++ b/falcon/client/falcon_container_image/query_export_jobs_parameters.go
@@ -0,0 +1,165 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package falcon_container_image
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewQueryExportJobsParams creates a new QueryExportJobsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewQueryExportJobsParams() *QueryExportJobsParams {
+ return &QueryExportJobsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewQueryExportJobsParamsWithTimeout creates a new QueryExportJobsParams object
+// with the ability to set a timeout on a request.
+func NewQueryExportJobsParamsWithTimeout(timeout time.Duration) *QueryExportJobsParams {
+ return &QueryExportJobsParams{
+ timeout: timeout,
+ }
+}
+
+// NewQueryExportJobsParamsWithContext creates a new QueryExportJobsParams object
+// with the ability to set a context for a request.
+func NewQueryExportJobsParamsWithContext(ctx context.Context) *QueryExportJobsParams {
+ return &QueryExportJobsParams{
+ Context: ctx,
+ }
+}
+
+// NewQueryExportJobsParamsWithHTTPClient creates a new QueryExportJobsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewQueryExportJobsParamsWithHTTPClient(client *http.Client) *QueryExportJobsParams {
+ return &QueryExportJobsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+QueryExportJobsParams contains all the parameters to send to the API endpoint
+
+ for the query export jobs operation.
+
+ Typically these are written to a http.Request.
+*/
+type QueryExportJobsParams struct {
+
+ /* Filter.
+
+ FQL query specifying the filter parameters. Only the last 100 jobs are returned. Supported filters:
+ - `resource`: (string)
+ - `status`: (string)
+ */
+ Filter *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the query export jobs params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *QueryExportJobsParams) WithDefaults() *QueryExportJobsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the query export jobs params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *QueryExportJobsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the query export jobs params
+func (o *QueryExportJobsParams) WithTimeout(timeout time.Duration) *QueryExportJobsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the query export jobs params
+func (o *QueryExportJobsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the query export jobs params
+func (o *QueryExportJobsParams) WithContext(ctx context.Context) *QueryExportJobsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the query export jobs params
+func (o *QueryExportJobsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the query export jobs params
+func (o *QueryExportJobsParams) WithHTTPClient(client *http.Client) *QueryExportJobsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the query export jobs params
+func (o *QueryExportJobsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithFilter adds the filter to the query export jobs params
+func (o *QueryExportJobsParams) WithFilter(filter *string) *QueryExportJobsParams {
+ o.SetFilter(filter)
+ return o
+}
+
+// SetFilter adds the filter to the query export jobs params
+func (o *QueryExportJobsParams) SetFilter(filter *string) {
+ o.Filter = filter
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *QueryExportJobsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Filter != nil {
+
+ // query param filter
+ var qrFilter string
+
+ if o.Filter != nil {
+ qrFilter = *o.Filter
+ }
+ qFilter := qrFilter
+ if qFilter != "" {
+
+ if err := r.SetQueryParam("filter", qFilter); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/falcon_container_image/query_export_jobs_responses.go b/falcon/client/falcon_container_image/query_export_jobs_responses.go
new file mode 100644
index 00000000..8be98089
--- /dev/null
+++ b/falcon/client/falcon_container_image/query_export_jobs_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package falcon_container_image
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// QueryExportJobsReader is a Reader for the QueryExportJobs structure.
+type QueryExportJobsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *QueryExportJobsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewQueryExportJobsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewQueryExportJobsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewQueryExportJobsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewQueryExportJobsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewQueryExportJobsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /container-security/queries/exports/v1] QueryExportJobs", response, response.Code())
+ }
+}
+
+// NewQueryExportJobsOK creates a QueryExportJobsOK with default headers values
+func NewQueryExportJobsOK() *QueryExportJobsOK {
+ return &QueryExportJobsOK{}
+}
+
+/*
+QueryExportJobsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type QueryExportJobsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecQueryResponse
+}
+
+// IsSuccess returns true when this query export jobs o k response has a 2xx status code
+func (o *QueryExportJobsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this query export jobs o k response has a 3xx status code
+func (o *QueryExportJobsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query export jobs o k response has a 4xx status code
+func (o *QueryExportJobsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query export jobs o k response has a 5xx status code
+func (o *QueryExportJobsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query export jobs o k response a status code equal to that given
+func (o *QueryExportJobsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the query export jobs o k response
+func (o *QueryExportJobsOK) Code() int {
+ return 200
+}
+
+func (o *QueryExportJobsOK) Error() string {
+ return fmt.Sprintf("[GET /container-security/queries/exports/v1][%d] queryExportJobsOK %+v", 200, o.Payload)
+}
+
+func (o *QueryExportJobsOK) String() string {
+ return fmt.Sprintf("[GET /container-security/queries/exports/v1][%d] queryExportJobsOK %+v", 200, o.Payload)
+}
+
+func (o *QueryExportJobsOK) GetPayload() *models.MsaspecQueryResponse {
+ return o.Payload
+}
+
+func (o *QueryExportJobsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecQueryResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryExportJobsBadRequest creates a QueryExportJobsBadRequest with default headers values
+func NewQueryExportJobsBadRequest() *QueryExportJobsBadRequest {
+ return &QueryExportJobsBadRequest{}
+}
+
+/*
+QueryExportJobsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type QueryExportJobsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this query export jobs bad request response has a 2xx status code
+func (o *QueryExportJobsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query export jobs bad request response has a 3xx status code
+func (o *QueryExportJobsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query export jobs bad request response has a 4xx status code
+func (o *QueryExportJobsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this query export jobs bad request response has a 5xx status code
+func (o *QueryExportJobsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query export jobs bad request response a status code equal to that given
+func (o *QueryExportJobsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the query export jobs bad request response
+func (o *QueryExportJobsBadRequest) Code() int {
+ return 400
+}
+
+func (o *QueryExportJobsBadRequest) Error() string {
+ return fmt.Sprintf("[GET /container-security/queries/exports/v1][%d] queryExportJobsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *QueryExportJobsBadRequest) String() string {
+ return fmt.Sprintf("[GET /container-security/queries/exports/v1][%d] queryExportJobsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *QueryExportJobsBadRequest) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *QueryExportJobsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryExportJobsForbidden creates a QueryExportJobsForbidden with default headers values
+func NewQueryExportJobsForbidden() *QueryExportJobsForbidden {
+ return &QueryExportJobsForbidden{}
+}
+
+/*
+QueryExportJobsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type QueryExportJobsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query export jobs forbidden response has a 2xx status code
+func (o *QueryExportJobsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query export jobs forbidden response has a 3xx status code
+func (o *QueryExportJobsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query export jobs forbidden response has a 4xx status code
+func (o *QueryExportJobsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this query export jobs forbidden response has a 5xx status code
+func (o *QueryExportJobsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query export jobs forbidden response a status code equal to that given
+func (o *QueryExportJobsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the query export jobs forbidden response
+func (o *QueryExportJobsForbidden) Code() int {
+ return 403
+}
+
+func (o *QueryExportJobsForbidden) Error() string {
+ return fmt.Sprintf("[GET /container-security/queries/exports/v1][%d] queryExportJobsForbidden %+v", 403, o.Payload)
+}
+
+func (o *QueryExportJobsForbidden) String() string {
+ return fmt.Sprintf("[GET /container-security/queries/exports/v1][%d] queryExportJobsForbidden %+v", 403, o.Payload)
+}
+
+func (o *QueryExportJobsForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryExportJobsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryExportJobsTooManyRequests creates a QueryExportJobsTooManyRequests with default headers values
+func NewQueryExportJobsTooManyRequests() *QueryExportJobsTooManyRequests {
+ return &QueryExportJobsTooManyRequests{}
+}
+
+/*
+QueryExportJobsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type QueryExportJobsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query export jobs too many requests response has a 2xx status code
+func (o *QueryExportJobsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query export jobs too many requests response has a 3xx status code
+func (o *QueryExportJobsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query export jobs too many requests response has a 4xx status code
+func (o *QueryExportJobsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this query export jobs too many requests response has a 5xx status code
+func (o *QueryExportJobsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query export jobs too many requests response a status code equal to that given
+func (o *QueryExportJobsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the query export jobs too many requests response
+func (o *QueryExportJobsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *QueryExportJobsTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /container-security/queries/exports/v1][%d] queryExportJobsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *QueryExportJobsTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /container-security/queries/exports/v1][%d] queryExportJobsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *QueryExportJobsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryExportJobsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryExportJobsInternalServerError creates a QueryExportJobsInternalServerError with default headers values
+func NewQueryExportJobsInternalServerError() *QueryExportJobsInternalServerError {
+ return &QueryExportJobsInternalServerError{}
+}
+
+/*
+QueryExportJobsInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type QueryExportJobsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this query export jobs internal server error response has a 2xx status code
+func (o *QueryExportJobsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query export jobs internal server error response has a 3xx status code
+func (o *QueryExportJobsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query export jobs internal server error response has a 4xx status code
+func (o *QueryExportJobsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query export jobs internal server error response has a 5xx status code
+func (o *QueryExportJobsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query export jobs internal server error response a status code equal to that given
+func (o *QueryExportJobsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query export jobs internal server error response
+func (o *QueryExportJobsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryExportJobsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /container-security/queries/exports/v1][%d] queryExportJobsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryExportJobsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /container-security/queries/exports/v1][%d] queryExportJobsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryExportJobsInternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *QueryExportJobsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falcon_container_image/read_export_jobs_parameters.go b/falcon/client/falcon_container_image/read_export_jobs_parameters.go
new file mode 100644
index 00000000..e6772bbc
--- /dev/null
+++ b/falcon/client/falcon_container_image/read_export_jobs_parameters.go
@@ -0,0 +1,175 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package falcon_container_image
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewReadExportJobsParams creates a new ReadExportJobsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewReadExportJobsParams() *ReadExportJobsParams {
+ return &ReadExportJobsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewReadExportJobsParamsWithTimeout creates a new ReadExportJobsParams object
+// with the ability to set a timeout on a request.
+func NewReadExportJobsParamsWithTimeout(timeout time.Duration) *ReadExportJobsParams {
+ return &ReadExportJobsParams{
+ timeout: timeout,
+ }
+}
+
+// NewReadExportJobsParamsWithContext creates a new ReadExportJobsParams object
+// with the ability to set a context for a request.
+func NewReadExportJobsParamsWithContext(ctx context.Context) *ReadExportJobsParams {
+ return &ReadExportJobsParams{
+ Context: ctx,
+ }
+}
+
+// NewReadExportJobsParamsWithHTTPClient creates a new ReadExportJobsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewReadExportJobsParamsWithHTTPClient(client *http.Client) *ReadExportJobsParams {
+ return &ReadExportJobsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+ReadExportJobsParams contains all the parameters to send to the API endpoint
+
+ for the read export jobs operation.
+
+ Typically these are written to a http.Request.
+*/
+type ReadExportJobsParams struct {
+
+ /* Ids.
+
+ Export Job IDs to read. Allowed up to 100 IDs per request.
+ */
+ Ids []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the read export jobs params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ReadExportJobsParams) WithDefaults() *ReadExportJobsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the read export jobs params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ReadExportJobsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the read export jobs params
+func (o *ReadExportJobsParams) WithTimeout(timeout time.Duration) *ReadExportJobsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the read export jobs params
+func (o *ReadExportJobsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the read export jobs params
+func (o *ReadExportJobsParams) WithContext(ctx context.Context) *ReadExportJobsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the read export jobs params
+func (o *ReadExportJobsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the read export jobs params
+func (o *ReadExportJobsParams) WithHTTPClient(client *http.Client) *ReadExportJobsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the read export jobs params
+func (o *ReadExportJobsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIds adds the ids to the read export jobs params
+func (o *ReadExportJobsParams) WithIds(ids []string) *ReadExportJobsParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the read export jobs params
+func (o *ReadExportJobsParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *ReadExportJobsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamReadExportJobs binds the parameter ids
+func (o *ReadExportJobsParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "csv"
+ idsIS := swag.JoinByFormat(idsIC, "csv")
+
+ return idsIS
+}
diff --git a/falcon/client/falcon_container_image/read_export_jobs_responses.go b/falcon/client/falcon_container_image/read_export_jobs_responses.go
new file mode 100644
index 00000000..7b6ea3a7
--- /dev/null
+++ b/falcon/client/falcon_container_image/read_export_jobs_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package falcon_container_image
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// ReadExportJobsReader is a Reader for the ReadExportJobs structure.
+type ReadExportJobsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *ReadExportJobsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewReadExportJobsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewReadExportJobsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewReadExportJobsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewReadExportJobsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewReadExportJobsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /container-security/entities/exports/v1] ReadExportJobs", response, response.Code())
+ }
+}
+
+// NewReadExportJobsOK creates a ReadExportJobsOK with default headers values
+func NewReadExportJobsOK() *ReadExportJobsOK {
+ return &ReadExportJobsOK{}
+}
+
+/*
+ReadExportJobsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type ReadExportJobsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.ExportsExportsResponse
+}
+
+// IsSuccess returns true when this read export jobs o k response has a 2xx status code
+func (o *ReadExportJobsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this read export jobs o k response has a 3xx status code
+func (o *ReadExportJobsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this read export jobs o k response has a 4xx status code
+func (o *ReadExportJobsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this read export jobs o k response has a 5xx status code
+func (o *ReadExportJobsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this read export jobs o k response a status code equal to that given
+func (o *ReadExportJobsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the read export jobs o k response
+func (o *ReadExportJobsOK) Code() int {
+ return 200
+}
+
+func (o *ReadExportJobsOK) Error() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/v1][%d] readExportJobsOK %+v", 200, o.Payload)
+}
+
+func (o *ReadExportJobsOK) String() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/v1][%d] readExportJobsOK %+v", 200, o.Payload)
+}
+
+func (o *ReadExportJobsOK) GetPayload() *models.ExportsExportsResponse {
+ return o.Payload
+}
+
+func (o *ReadExportJobsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.ExportsExportsResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewReadExportJobsBadRequest creates a ReadExportJobsBadRequest with default headers values
+func NewReadExportJobsBadRequest() *ReadExportJobsBadRequest {
+ return &ReadExportJobsBadRequest{}
+}
+
+/*
+ReadExportJobsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type ReadExportJobsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this read export jobs bad request response has a 2xx status code
+func (o *ReadExportJobsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this read export jobs bad request response has a 3xx status code
+func (o *ReadExportJobsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this read export jobs bad request response has a 4xx status code
+func (o *ReadExportJobsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this read export jobs bad request response has a 5xx status code
+func (o *ReadExportJobsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this read export jobs bad request response a status code equal to that given
+func (o *ReadExportJobsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the read export jobs bad request response
+func (o *ReadExportJobsBadRequest) Code() int {
+ return 400
+}
+
+func (o *ReadExportJobsBadRequest) Error() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/v1][%d] readExportJobsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ReadExportJobsBadRequest) String() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/v1][%d] readExportJobsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ReadExportJobsBadRequest) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *ReadExportJobsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewReadExportJobsForbidden creates a ReadExportJobsForbidden with default headers values
+func NewReadExportJobsForbidden() *ReadExportJobsForbidden {
+ return &ReadExportJobsForbidden{}
+}
+
+/*
+ReadExportJobsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type ReadExportJobsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this read export jobs forbidden response has a 2xx status code
+func (o *ReadExportJobsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this read export jobs forbidden response has a 3xx status code
+func (o *ReadExportJobsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this read export jobs forbidden response has a 4xx status code
+func (o *ReadExportJobsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this read export jobs forbidden response has a 5xx status code
+func (o *ReadExportJobsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this read export jobs forbidden response a status code equal to that given
+func (o *ReadExportJobsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the read export jobs forbidden response
+func (o *ReadExportJobsForbidden) Code() int {
+ return 403
+}
+
+func (o *ReadExportJobsForbidden) Error() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/v1][%d] readExportJobsForbidden %+v", 403, o.Payload)
+}
+
+func (o *ReadExportJobsForbidden) String() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/v1][%d] readExportJobsForbidden %+v", 403, o.Payload)
+}
+
+func (o *ReadExportJobsForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ReadExportJobsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewReadExportJobsTooManyRequests creates a ReadExportJobsTooManyRequests with default headers values
+func NewReadExportJobsTooManyRequests() *ReadExportJobsTooManyRequests {
+ return &ReadExportJobsTooManyRequests{}
+}
+
+/*
+ReadExportJobsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type ReadExportJobsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this read export jobs too many requests response has a 2xx status code
+func (o *ReadExportJobsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this read export jobs too many requests response has a 3xx status code
+func (o *ReadExportJobsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this read export jobs too many requests response has a 4xx status code
+func (o *ReadExportJobsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this read export jobs too many requests response has a 5xx status code
+func (o *ReadExportJobsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this read export jobs too many requests response a status code equal to that given
+func (o *ReadExportJobsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the read export jobs too many requests response
+func (o *ReadExportJobsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *ReadExportJobsTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/v1][%d] readExportJobsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ReadExportJobsTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/v1][%d] readExportJobsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *ReadExportJobsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ReadExportJobsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewReadExportJobsInternalServerError creates a ReadExportJobsInternalServerError with default headers values
+func NewReadExportJobsInternalServerError() *ReadExportJobsInternalServerError {
+ return &ReadExportJobsInternalServerError{}
+}
+
+/*
+ReadExportJobsInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type ReadExportJobsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this read export jobs internal server error response has a 2xx status code
+func (o *ReadExportJobsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this read export jobs internal server error response has a 3xx status code
+func (o *ReadExportJobsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this read export jobs internal server error response has a 4xx status code
+func (o *ReadExportJobsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this read export jobs internal server error response has a 5xx status code
+func (o *ReadExportJobsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this read export jobs internal server error response a status code equal to that given
+func (o *ReadExportJobsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the read export jobs internal server error response
+func (o *ReadExportJobsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ReadExportJobsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/v1][%d] readExportJobsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ReadExportJobsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /container-security/entities/exports/v1][%d] readExportJobsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ReadExportJobsInternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *ReadExportJobsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/falconx_sandbox/submit_parameters.go b/falcon/client/falconx_sandbox/submit_parameters.go
index 2eee702e..47327a0f 100644
--- a/falcon/client/falconx_sandbox/submit_parameters.go
+++ b/falcon/client/falconx_sandbox/submit_parameters.go
@@ -63,6 +63,12 @@ SubmitParams contains all the parameters to send to the API endpoint
*/
type SubmitParams struct {
+ /* Aid.
+
+ Agent ID
+ */
+ Aid *string
+
/* Body.
Submit either a URL or a sample SHA256 for sandbox analysis. The sample file must have been previously uploaded through `/samples/entities/samples/v2`. You must specify a JSON object that includes the `falconx.SubmissionParametersV1` key/value pairs shown below.
@@ -164,6 +170,17 @@ func (o *SubmitParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
+// WithAid adds the aid to the submit params
+func (o *SubmitParams) WithAid(aid *string) *SubmitParams {
+ o.SetAid(aid)
+ return o
+}
+
+// SetAid adds the aid to the submit params
+func (o *SubmitParams) SetAid(aid *string) {
+ o.Aid = aid
+}
+
// WithBody adds the body to the submit params
func (o *SubmitParams) WithBody(body *models.FalconxSubmissionParametersV1) *SubmitParams {
o.SetBody(body)
@@ -182,6 +199,23 @@ func (o *SubmitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regist
return err
}
var res []error
+
+ if o.Aid != nil {
+
+ // query param aid
+ var qrAid string
+
+ if o.Aid != nil {
+ qrAid = *o.Aid
+ }
+ qAid := qrAid
+ if qAid != "" {
+
+ if err := r.SetQueryParam("aid", qAid); err != nil {
+ return err
+ }
+ }
+ }
if o.Body != nil {
if err := r.SetBodyParam(o.Body); err != nil {
return err
diff --git a/falcon/client/firewall_management/aggregate_events_responses.go b/falcon/client/firewall_management/aggregate_events_responses.go
index 27469db4..e14891f1 100644
--- a/falcon/client/firewall_management/aggregate_events_responses.go
+++ b/falcon/client/firewall_management/aggregate_events_responses.go
@@ -49,6 +49,12 @@ func (o *AggregateEventsReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateEventsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /fwmgr/aggregates/events/GET/v1] aggregate-events", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *AggregateEventsTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewAggregateEventsInternalServerError creates a AggregateEventsInternalServerError with default headers values
+func NewAggregateEventsInternalServerError() *AggregateEventsInternalServerError {
+ return &AggregateEventsInternalServerError{}
+}
+
+/*
+AggregateEventsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateEventsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate events internal server error response has a 2xx status code
+func (o *AggregateEventsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate events internal server error response has a 3xx status code
+func (o *AggregateEventsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate events internal server error response has a 4xx status code
+func (o *AggregateEventsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate events internal server error response has a 5xx status code
+func (o *AggregateEventsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate events internal server error response a status code equal to that given
+func (o *AggregateEventsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate events internal server error response
+func (o *AggregateEventsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateEventsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /fwmgr/aggregates/events/GET/v1][%d] aggregateEventsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateEventsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /fwmgr/aggregates/events/GET/v1][%d] aggregateEventsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateEventsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateEventsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/aggregate_policy_rules_responses.go b/falcon/client/firewall_management/aggregate_policy_rules_responses.go
index caa36e9e..75d96b7c 100644
--- a/falcon/client/firewall_management/aggregate_policy_rules_responses.go
+++ b/falcon/client/firewall_management/aggregate_policy_rules_responses.go
@@ -49,6 +49,12 @@ func (o *AggregatePolicyRulesReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregatePolicyRulesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /fwmgr/aggregates/policy-rules/GET/v1] aggregate-policy-rules", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *AggregatePolicyRulesTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewAggregatePolicyRulesInternalServerError creates a AggregatePolicyRulesInternalServerError with default headers values
+func NewAggregatePolicyRulesInternalServerError() *AggregatePolicyRulesInternalServerError {
+ return &AggregatePolicyRulesInternalServerError{}
+}
+
+/*
+AggregatePolicyRulesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregatePolicyRulesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate policy rules internal server error response has a 2xx status code
+func (o *AggregatePolicyRulesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate policy rules internal server error response has a 3xx status code
+func (o *AggregatePolicyRulesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate policy rules internal server error response has a 4xx status code
+func (o *AggregatePolicyRulesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate policy rules internal server error response has a 5xx status code
+func (o *AggregatePolicyRulesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate policy rules internal server error response a status code equal to that given
+func (o *AggregatePolicyRulesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate policy rules internal server error response
+func (o *AggregatePolicyRulesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregatePolicyRulesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /fwmgr/aggregates/policy-rules/GET/v1][%d] aggregatePolicyRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatePolicyRulesInternalServerError) String() string {
+ return fmt.Sprintf("[POST /fwmgr/aggregates/policy-rules/GET/v1][%d] aggregatePolicyRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatePolicyRulesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregatePolicyRulesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/aggregate_rules_responses.go b/falcon/client/firewall_management/aggregate_rules_responses.go
index c964cfa8..68471c4a 100644
--- a/falcon/client/firewall_management/aggregate_rules_responses.go
+++ b/falcon/client/firewall_management/aggregate_rules_responses.go
@@ -49,6 +49,12 @@ func (o *AggregateRulesReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateRulesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /fwmgr/aggregates/rules/GET/v1] aggregate-rules", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *AggregateRulesTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewAggregateRulesInternalServerError creates a AggregateRulesInternalServerError with default headers values
+func NewAggregateRulesInternalServerError() *AggregateRulesInternalServerError {
+ return &AggregateRulesInternalServerError{}
+}
+
+/*
+AggregateRulesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateRulesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate rules internal server error response has a 2xx status code
+func (o *AggregateRulesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate rules internal server error response has a 3xx status code
+func (o *AggregateRulesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate rules internal server error response has a 4xx status code
+func (o *AggregateRulesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate rules internal server error response has a 5xx status code
+func (o *AggregateRulesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate rules internal server error response a status code equal to that given
+func (o *AggregateRulesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate rules internal server error response
+func (o *AggregateRulesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateRulesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /fwmgr/aggregates/rules/GET/v1][%d] aggregateRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateRulesInternalServerError) String() string {
+ return fmt.Sprintf("[POST /fwmgr/aggregates/rules/GET/v1][%d] aggregateRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateRulesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateRulesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/create_network_locations_responses.go b/falcon/client/firewall_management/create_network_locations_responses.go
index bb643cfb..030b2c35 100644
--- a/falcon/client/firewall_management/create_network_locations_responses.go
+++ b/falcon/client/firewall_management/create_network_locations_responses.go
@@ -49,6 +49,12 @@ func (o *CreateNetworkLocationsReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewCreateNetworkLocationsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /fwmgr/entities/network-locations/v1] create-network-locations", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *CreateNetworkLocationsTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewCreateNetworkLocationsInternalServerError creates a CreateNetworkLocationsInternalServerError with default headers values
+func NewCreateNetworkLocationsInternalServerError() *CreateNetworkLocationsInternalServerError {
+ return &CreateNetworkLocationsInternalServerError{}
+}
+
+/*
+CreateNetworkLocationsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CreateNetworkLocationsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create network locations internal server error response has a 2xx status code
+func (o *CreateNetworkLocationsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create network locations internal server error response has a 3xx status code
+func (o *CreateNetworkLocationsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create network locations internal server error response has a 4xx status code
+func (o *CreateNetworkLocationsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create network locations internal server error response has a 5xx status code
+func (o *CreateNetworkLocationsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create network locations internal server error response a status code equal to that given
+func (o *CreateNetworkLocationsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create network locations internal server error response
+func (o *CreateNetworkLocationsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateNetworkLocationsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/network-locations/v1][%d] createNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateNetworkLocationsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/network-locations/v1][%d] createNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateNetworkLocationsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateNetworkLocationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/create_rule_group_responses.go b/falcon/client/firewall_management/create_rule_group_responses.go
index 59b25a4c..12689dd7 100644
--- a/falcon/client/firewall_management/create_rule_group_responses.go
+++ b/falcon/client/firewall_management/create_rule_group_responses.go
@@ -49,6 +49,12 @@ func (o *CreateRuleGroupReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewCreateRuleGroupInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /fwmgr/entities/rule-groups/v1] create-rule-group", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *CreateRuleGroupTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewCreateRuleGroupInternalServerError creates a CreateRuleGroupInternalServerError with default headers values
+func NewCreateRuleGroupInternalServerError() *CreateRuleGroupInternalServerError {
+ return &CreateRuleGroupInternalServerError{}
+}
+
+/*
+CreateRuleGroupInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CreateRuleGroupInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create rule group internal server error response has a 2xx status code
+func (o *CreateRuleGroupInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create rule group internal server error response has a 3xx status code
+func (o *CreateRuleGroupInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create rule group internal server error response has a 4xx status code
+func (o *CreateRuleGroupInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create rule group internal server error response has a 5xx status code
+func (o *CreateRuleGroupInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create rule group internal server error response a status code equal to that given
+func (o *CreateRuleGroupInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create rule group internal server error response
+func (o *CreateRuleGroupInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateRuleGroupInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/rule-groups/v1][%d] createRuleGroupInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateRuleGroupInternalServerError) String() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/rule-groups/v1][%d] createRuleGroupInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateRuleGroupInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateRuleGroupInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/create_rule_group_validation_responses.go b/falcon/client/firewall_management/create_rule_group_validation_responses.go
index 0724e272..69cdbf4a 100644
--- a/falcon/client/firewall_management/create_rule_group_validation_responses.go
+++ b/falcon/client/firewall_management/create_rule_group_validation_responses.go
@@ -49,6 +49,12 @@ func (o *CreateRuleGroupValidationReader) ReadResponse(response runtime.ClientRe
return nil, err
}
return nil, result
+ case 500:
+ result := NewCreateRuleGroupValidationInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /fwmgr/entities/rule-groups/validation/v1] create-rule-group-validation", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *CreateRuleGroupValidationTooManyRequests) readResponse(response runtime
return nil
}
+
+// NewCreateRuleGroupValidationInternalServerError creates a CreateRuleGroupValidationInternalServerError with default headers values
+func NewCreateRuleGroupValidationInternalServerError() *CreateRuleGroupValidationInternalServerError {
+ return &CreateRuleGroupValidationInternalServerError{}
+}
+
+/*
+CreateRuleGroupValidationInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CreateRuleGroupValidationInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create rule group validation internal server error response has a 2xx status code
+func (o *CreateRuleGroupValidationInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create rule group validation internal server error response has a 3xx status code
+func (o *CreateRuleGroupValidationInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create rule group validation internal server error response has a 4xx status code
+func (o *CreateRuleGroupValidationInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create rule group validation internal server error response has a 5xx status code
+func (o *CreateRuleGroupValidationInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create rule group validation internal server error response a status code equal to that given
+func (o *CreateRuleGroupValidationInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create rule group validation internal server error response
+func (o *CreateRuleGroupValidationInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateRuleGroupValidationInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/rule-groups/validation/v1][%d] createRuleGroupValidationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateRuleGroupValidationInternalServerError) String() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/rule-groups/validation/v1][%d] createRuleGroupValidationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateRuleGroupValidationInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateRuleGroupValidationInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/delete_network_locations_responses.go b/falcon/client/firewall_management/delete_network_locations_responses.go
index 44fb523e..a6aa062d 100644
--- a/falcon/client/firewall_management/delete_network_locations_responses.go
+++ b/falcon/client/firewall_management/delete_network_locations_responses.go
@@ -49,6 +49,12 @@ func (o *DeleteNetworkLocationsReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteNetworkLocationsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /fwmgr/entities/network-locations/v1] delete-network-locations", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *DeleteNetworkLocationsTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewDeleteNetworkLocationsInternalServerError creates a DeleteNetworkLocationsInternalServerError with default headers values
+func NewDeleteNetworkLocationsInternalServerError() *DeleteNetworkLocationsInternalServerError {
+ return &DeleteNetworkLocationsInternalServerError{}
+}
+
+/*
+DeleteNetworkLocationsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteNetworkLocationsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete network locations internal server error response has a 2xx status code
+func (o *DeleteNetworkLocationsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete network locations internal server error response has a 3xx status code
+func (o *DeleteNetworkLocationsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete network locations internal server error response has a 4xx status code
+func (o *DeleteNetworkLocationsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete network locations internal server error response has a 5xx status code
+func (o *DeleteNetworkLocationsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete network locations internal server error response a status code equal to that given
+func (o *DeleteNetworkLocationsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete network locations internal server error response
+func (o *DeleteNetworkLocationsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteNetworkLocationsInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /fwmgr/entities/network-locations/v1][%d] deleteNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteNetworkLocationsInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /fwmgr/entities/network-locations/v1][%d] deleteNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteNetworkLocationsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteNetworkLocationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/delete_rule_groups_responses.go b/falcon/client/firewall_management/delete_rule_groups_responses.go
index d86cc258..3fabff35 100644
--- a/falcon/client/firewall_management/delete_rule_groups_responses.go
+++ b/falcon/client/firewall_management/delete_rule_groups_responses.go
@@ -49,6 +49,12 @@ func (o *DeleteRuleGroupsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteRuleGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /fwmgr/entities/rule-groups/v1] delete-rule-groups", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *DeleteRuleGroupsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewDeleteRuleGroupsInternalServerError creates a DeleteRuleGroupsInternalServerError with default headers values
+func NewDeleteRuleGroupsInternalServerError() *DeleteRuleGroupsInternalServerError {
+ return &DeleteRuleGroupsInternalServerError{}
+}
+
+/*
+DeleteRuleGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteRuleGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete rule groups internal server error response has a 2xx status code
+func (o *DeleteRuleGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete rule groups internal server error response has a 3xx status code
+func (o *DeleteRuleGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete rule groups internal server error response has a 4xx status code
+func (o *DeleteRuleGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete rule groups internal server error response has a 5xx status code
+func (o *DeleteRuleGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete rule groups internal server error response a status code equal to that given
+func (o *DeleteRuleGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete rule groups internal server error response
+func (o *DeleteRuleGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteRuleGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /fwmgr/entities/rule-groups/v1][%d] deleteRuleGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteRuleGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /fwmgr/entities/rule-groups/v1][%d] deleteRuleGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteRuleGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteRuleGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/get_events_responses.go b/falcon/client/firewall_management/get_events_responses.go
index 5b3ab1fe..93722cda 100644
--- a/falcon/client/firewall_management/get_events_responses.go
+++ b/falcon/client/firewall_management/get_events_responses.go
@@ -49,6 +49,12 @@ func (o *GetEventsReader) ReadResponse(response runtime.ClientResponse, consumer
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetEventsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/entities/events/v1] get-events", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetEventsTooManyRequests) readResponse(response runtime.ClientResponse,
return nil
}
+
+// NewGetEventsInternalServerError creates a GetEventsInternalServerError with default headers values
+func NewGetEventsInternalServerError() *GetEventsInternalServerError {
+ return &GetEventsInternalServerError{}
+}
+
+/*
+GetEventsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetEventsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get events internal server error response has a 2xx status code
+func (o *GetEventsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get events internal server error response has a 3xx status code
+func (o *GetEventsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get events internal server error response has a 4xx status code
+func (o *GetEventsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get events internal server error response has a 5xx status code
+func (o *GetEventsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get events internal server error response a status code equal to that given
+func (o *GetEventsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get events internal server error response
+func (o *GetEventsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetEventsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/events/v1][%d] getEventsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetEventsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/events/v1][%d] getEventsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetEventsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetEventsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/get_firewall_fields_responses.go b/falcon/client/firewall_management/get_firewall_fields_responses.go
index 75da80fe..a0d8373d 100644
--- a/falcon/client/firewall_management/get_firewall_fields_responses.go
+++ b/falcon/client/firewall_management/get_firewall_fields_responses.go
@@ -43,6 +43,12 @@ func (o *GetFirewallFieldsReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetFirewallFieldsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/entities/firewall-fields/v1] get-firewall-fields", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetFirewallFieldsTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewGetFirewallFieldsInternalServerError creates a GetFirewallFieldsInternalServerError with default headers values
+func NewGetFirewallFieldsInternalServerError() *GetFirewallFieldsInternalServerError {
+ return &GetFirewallFieldsInternalServerError{}
+}
+
+/*
+GetFirewallFieldsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetFirewallFieldsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get firewall fields internal server error response has a 2xx status code
+func (o *GetFirewallFieldsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get firewall fields internal server error response has a 3xx status code
+func (o *GetFirewallFieldsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get firewall fields internal server error response has a 4xx status code
+func (o *GetFirewallFieldsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get firewall fields internal server error response has a 5xx status code
+func (o *GetFirewallFieldsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get firewall fields internal server error response a status code equal to that given
+func (o *GetFirewallFieldsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get firewall fields internal server error response
+func (o *GetFirewallFieldsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetFirewallFieldsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/firewall-fields/v1][%d] getFirewallFieldsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetFirewallFieldsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/firewall-fields/v1][%d] getFirewallFieldsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetFirewallFieldsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetFirewallFieldsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/get_network_locations_details_responses.go b/falcon/client/firewall_management/get_network_locations_details_responses.go
index f520da79..b65eb8a3 100644
--- a/falcon/client/firewall_management/get_network_locations_details_responses.go
+++ b/falcon/client/firewall_management/get_network_locations_details_responses.go
@@ -49,6 +49,12 @@ func (o *GetNetworkLocationsDetailsReader) ReadResponse(response runtime.ClientR
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetNetworkLocationsDetailsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/entities/network-locations-details/v1] get-network-locations-details", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetNetworkLocationsDetailsTooManyRequests) readResponse(response runtim
return nil
}
+
+// NewGetNetworkLocationsDetailsInternalServerError creates a GetNetworkLocationsDetailsInternalServerError with default headers values
+func NewGetNetworkLocationsDetailsInternalServerError() *GetNetworkLocationsDetailsInternalServerError {
+ return &GetNetworkLocationsDetailsInternalServerError{}
+}
+
+/*
+GetNetworkLocationsDetailsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetNetworkLocationsDetailsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get network locations details internal server error response has a 2xx status code
+func (o *GetNetworkLocationsDetailsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get network locations details internal server error response has a 3xx status code
+func (o *GetNetworkLocationsDetailsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get network locations details internal server error response has a 4xx status code
+func (o *GetNetworkLocationsDetailsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get network locations details internal server error response has a 5xx status code
+func (o *GetNetworkLocationsDetailsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get network locations details internal server error response a status code equal to that given
+func (o *GetNetworkLocationsDetailsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get network locations details internal server error response
+func (o *GetNetworkLocationsDetailsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetNetworkLocationsDetailsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/network-locations-details/v1][%d] getNetworkLocationsDetailsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetNetworkLocationsDetailsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/network-locations-details/v1][%d] getNetworkLocationsDetailsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetNetworkLocationsDetailsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetNetworkLocationsDetailsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/get_network_locations_responses.go b/falcon/client/firewall_management/get_network_locations_responses.go
index ffd207b5..f998cd97 100644
--- a/falcon/client/firewall_management/get_network_locations_responses.go
+++ b/falcon/client/firewall_management/get_network_locations_responses.go
@@ -49,6 +49,12 @@ func (o *GetNetworkLocationsReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetNetworkLocationsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/entities/network-locations/v1] get-network-locations", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetNetworkLocationsTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewGetNetworkLocationsInternalServerError creates a GetNetworkLocationsInternalServerError with default headers values
+func NewGetNetworkLocationsInternalServerError() *GetNetworkLocationsInternalServerError {
+ return &GetNetworkLocationsInternalServerError{}
+}
+
+/*
+GetNetworkLocationsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetNetworkLocationsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get network locations internal server error response has a 2xx status code
+func (o *GetNetworkLocationsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get network locations internal server error response has a 3xx status code
+func (o *GetNetworkLocationsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get network locations internal server error response has a 4xx status code
+func (o *GetNetworkLocationsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get network locations internal server error response has a 5xx status code
+func (o *GetNetworkLocationsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get network locations internal server error response a status code equal to that given
+func (o *GetNetworkLocationsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get network locations internal server error response
+func (o *GetNetworkLocationsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetNetworkLocationsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/network-locations/v1][%d] getNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetNetworkLocationsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/network-locations/v1][%d] getNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetNetworkLocationsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetNetworkLocationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/get_platforms_responses.go b/falcon/client/firewall_management/get_platforms_responses.go
index ec94ea1f..26945eef 100644
--- a/falcon/client/firewall_management/get_platforms_responses.go
+++ b/falcon/client/firewall_management/get_platforms_responses.go
@@ -43,6 +43,12 @@ func (o *GetPlatformsReader) ReadResponse(response runtime.ClientResponse, consu
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetPlatformsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/entities/platforms/v1] get-platforms", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetPlatformsTooManyRequests) readResponse(response runtime.ClientRespon
return nil
}
+
+// NewGetPlatformsInternalServerError creates a GetPlatformsInternalServerError with default headers values
+func NewGetPlatformsInternalServerError() *GetPlatformsInternalServerError {
+ return &GetPlatformsInternalServerError{}
+}
+
+/*
+GetPlatformsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetPlatformsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get platforms internal server error response has a 2xx status code
+func (o *GetPlatformsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get platforms internal server error response has a 3xx status code
+func (o *GetPlatformsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get platforms internal server error response has a 4xx status code
+func (o *GetPlatformsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get platforms internal server error response has a 5xx status code
+func (o *GetPlatformsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get platforms internal server error response a status code equal to that given
+func (o *GetPlatformsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get platforms internal server error response
+func (o *GetPlatformsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetPlatformsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/platforms/v1][%d] getPlatformsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetPlatformsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/platforms/v1][%d] getPlatformsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetPlatformsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetPlatformsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/get_policy_containers_responses.go b/falcon/client/firewall_management/get_policy_containers_responses.go
index c3ba6acd..77c7bb51 100644
--- a/falcon/client/firewall_management/get_policy_containers_responses.go
+++ b/falcon/client/firewall_management/get_policy_containers_responses.go
@@ -49,6 +49,12 @@ func (o *GetPolicyContainersReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetPolicyContainersInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/entities/policies/v1] get-policy-containers", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetPolicyContainersTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewGetPolicyContainersInternalServerError creates a GetPolicyContainersInternalServerError with default headers values
+func NewGetPolicyContainersInternalServerError() *GetPolicyContainersInternalServerError {
+ return &GetPolicyContainersInternalServerError{}
+}
+
+/*
+GetPolicyContainersInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetPolicyContainersInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get policy containers internal server error response has a 2xx status code
+func (o *GetPolicyContainersInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get policy containers internal server error response has a 3xx status code
+func (o *GetPolicyContainersInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get policy containers internal server error response has a 4xx status code
+func (o *GetPolicyContainersInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get policy containers internal server error response has a 5xx status code
+func (o *GetPolicyContainersInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get policy containers internal server error response a status code equal to that given
+func (o *GetPolicyContainersInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get policy containers internal server error response
+func (o *GetPolicyContainersInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetPolicyContainersInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/policies/v1][%d] getPolicyContainersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetPolicyContainersInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/policies/v1][%d] getPolicyContainersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetPolicyContainersInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetPolicyContainersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/get_rule_groups_responses.go b/falcon/client/firewall_management/get_rule_groups_responses.go
index 436c991f..c95d10d9 100644
--- a/falcon/client/firewall_management/get_rule_groups_responses.go
+++ b/falcon/client/firewall_management/get_rule_groups_responses.go
@@ -49,6 +49,12 @@ func (o *GetRuleGroupsReader) ReadResponse(response runtime.ClientResponse, cons
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetRuleGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/entities/rule-groups/v1] get-rule-groups", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetRuleGroupsTooManyRequests) readResponse(response runtime.ClientRespo
return nil
}
+
+// NewGetRuleGroupsInternalServerError creates a GetRuleGroupsInternalServerError with default headers values
+func NewGetRuleGroupsInternalServerError() *GetRuleGroupsInternalServerError {
+ return &GetRuleGroupsInternalServerError{}
+}
+
+/*
+GetRuleGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetRuleGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get rule groups internal server error response has a 2xx status code
+func (o *GetRuleGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get rule groups internal server error response has a 3xx status code
+func (o *GetRuleGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get rule groups internal server error response has a 4xx status code
+func (o *GetRuleGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get rule groups internal server error response has a 5xx status code
+func (o *GetRuleGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get rule groups internal server error response a status code equal to that given
+func (o *GetRuleGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get rule groups internal server error response
+func (o *GetRuleGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetRuleGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/rule-groups/v1][%d] getRuleGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRuleGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/rule-groups/v1][%d] getRuleGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRuleGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetRuleGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/get_rules_responses.go b/falcon/client/firewall_management/get_rules_responses.go
index 5999c8ad..5e891c04 100644
--- a/falcon/client/firewall_management/get_rules_responses.go
+++ b/falcon/client/firewall_management/get_rules_responses.go
@@ -49,6 +49,12 @@ func (o *GetRulesReader) ReadResponse(response runtime.ClientResponse, consumer
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetRulesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/entities/rules/v1] get-rules", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetRulesTooManyRequests) readResponse(response runtime.ClientResponse,
return nil
}
+
+// NewGetRulesInternalServerError creates a GetRulesInternalServerError with default headers values
+func NewGetRulesInternalServerError() *GetRulesInternalServerError {
+ return &GetRulesInternalServerError{}
+}
+
+/*
+GetRulesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetRulesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get rules internal server error response has a 2xx status code
+func (o *GetRulesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get rules internal server error response has a 3xx status code
+func (o *GetRulesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get rules internal server error response has a 4xx status code
+func (o *GetRulesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get rules internal server error response has a 5xx status code
+func (o *GetRulesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get rules internal server error response a status code equal to that given
+func (o *GetRulesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get rules internal server error response
+func (o *GetRulesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetRulesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/rules/v1][%d] getRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRulesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/entities/rules/v1][%d] getRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRulesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetRulesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/query_events_responses.go b/falcon/client/firewall_management/query_events_responses.go
index 455c2ce7..ac06bed6 100644
--- a/falcon/client/firewall_management/query_events_responses.go
+++ b/falcon/client/firewall_management/query_events_responses.go
@@ -49,6 +49,12 @@ func (o *QueryEventsReader) ReadResponse(response runtime.ClientResponse, consum
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryEventsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/queries/events/v1] query-events", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryEventsTooManyRequests) readResponse(response runtime.ClientRespons
return nil
}
+
+// NewQueryEventsInternalServerError creates a QueryEventsInternalServerError with default headers values
+func NewQueryEventsInternalServerError() *QueryEventsInternalServerError {
+ return &QueryEventsInternalServerError{}
+}
+
+/*
+QueryEventsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryEventsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query events internal server error response has a 2xx status code
+func (o *QueryEventsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query events internal server error response has a 3xx status code
+func (o *QueryEventsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query events internal server error response has a 4xx status code
+func (o *QueryEventsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query events internal server error response has a 5xx status code
+func (o *QueryEventsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query events internal server error response a status code equal to that given
+func (o *QueryEventsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query events internal server error response
+func (o *QueryEventsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryEventsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/events/v1][%d] queryEventsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryEventsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/events/v1][%d] queryEventsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryEventsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryEventsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/query_firewall_fields_responses.go b/falcon/client/firewall_management/query_firewall_fields_responses.go
index 190d5aac..40674b2a 100644
--- a/falcon/client/firewall_management/query_firewall_fields_responses.go
+++ b/falcon/client/firewall_management/query_firewall_fields_responses.go
@@ -43,6 +43,12 @@ func (o *QueryFirewallFieldsReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryFirewallFieldsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/queries/firewall-fields/v1] query-firewall-fields", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryFirewallFieldsTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewQueryFirewallFieldsInternalServerError creates a QueryFirewallFieldsInternalServerError with default headers values
+func NewQueryFirewallFieldsInternalServerError() *QueryFirewallFieldsInternalServerError {
+ return &QueryFirewallFieldsInternalServerError{}
+}
+
+/*
+QueryFirewallFieldsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryFirewallFieldsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query firewall fields internal server error response has a 2xx status code
+func (o *QueryFirewallFieldsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query firewall fields internal server error response has a 3xx status code
+func (o *QueryFirewallFieldsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query firewall fields internal server error response has a 4xx status code
+func (o *QueryFirewallFieldsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query firewall fields internal server error response has a 5xx status code
+func (o *QueryFirewallFieldsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query firewall fields internal server error response a status code equal to that given
+func (o *QueryFirewallFieldsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query firewall fields internal server error response
+func (o *QueryFirewallFieldsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryFirewallFieldsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/firewall-fields/v1][%d] queryFirewallFieldsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryFirewallFieldsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/firewall-fields/v1][%d] queryFirewallFieldsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryFirewallFieldsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryFirewallFieldsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/query_network_locations_responses.go b/falcon/client/firewall_management/query_network_locations_responses.go
index c0c16ed8..c78c314e 100644
--- a/falcon/client/firewall_management/query_network_locations_responses.go
+++ b/falcon/client/firewall_management/query_network_locations_responses.go
@@ -49,6 +49,12 @@ func (o *QueryNetworkLocationsReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryNetworkLocationsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/queries/network-locations/v1] query-network-locations", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryNetworkLocationsTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewQueryNetworkLocationsInternalServerError creates a QueryNetworkLocationsInternalServerError with default headers values
+func NewQueryNetworkLocationsInternalServerError() *QueryNetworkLocationsInternalServerError {
+ return &QueryNetworkLocationsInternalServerError{}
+}
+
+/*
+QueryNetworkLocationsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryNetworkLocationsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query network locations internal server error response has a 2xx status code
+func (o *QueryNetworkLocationsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query network locations internal server error response has a 3xx status code
+func (o *QueryNetworkLocationsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query network locations internal server error response has a 4xx status code
+func (o *QueryNetworkLocationsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query network locations internal server error response has a 5xx status code
+func (o *QueryNetworkLocationsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query network locations internal server error response a status code equal to that given
+func (o *QueryNetworkLocationsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query network locations internal server error response
+func (o *QueryNetworkLocationsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryNetworkLocationsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/network-locations/v1][%d] queryNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryNetworkLocationsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/network-locations/v1][%d] queryNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryNetworkLocationsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryNetworkLocationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/query_platforms_responses.go b/falcon/client/firewall_management/query_platforms_responses.go
index 69e23654..6ca2f5f4 100644
--- a/falcon/client/firewall_management/query_platforms_responses.go
+++ b/falcon/client/firewall_management/query_platforms_responses.go
@@ -43,6 +43,12 @@ func (o *QueryPlatformsReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryPlatformsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/queries/platforms/v1] query-platforms", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryPlatformsTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewQueryPlatformsInternalServerError creates a QueryPlatformsInternalServerError with default headers values
+func NewQueryPlatformsInternalServerError() *QueryPlatformsInternalServerError {
+ return &QueryPlatformsInternalServerError{}
+}
+
+/*
+QueryPlatformsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryPlatformsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query platforms internal server error response has a 2xx status code
+func (o *QueryPlatformsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query platforms internal server error response has a 3xx status code
+func (o *QueryPlatformsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query platforms internal server error response has a 4xx status code
+func (o *QueryPlatformsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query platforms internal server error response has a 5xx status code
+func (o *QueryPlatformsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query platforms internal server error response a status code equal to that given
+func (o *QueryPlatformsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query platforms internal server error response
+func (o *QueryPlatformsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryPlatformsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/platforms/v1][%d] queryPlatformsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryPlatformsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/platforms/v1][%d] queryPlatformsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryPlatformsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryPlatformsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/query_policy_rules_responses.go b/falcon/client/firewall_management/query_policy_rules_responses.go
index 044931da..c1ac9a81 100644
--- a/falcon/client/firewall_management/query_policy_rules_responses.go
+++ b/falcon/client/firewall_management/query_policy_rules_responses.go
@@ -49,6 +49,12 @@ func (o *QueryPolicyRulesReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryPolicyRulesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/queries/policy-rules/v1] query-policy-rules", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryPolicyRulesTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewQueryPolicyRulesInternalServerError creates a QueryPolicyRulesInternalServerError with default headers values
+func NewQueryPolicyRulesInternalServerError() *QueryPolicyRulesInternalServerError {
+ return &QueryPolicyRulesInternalServerError{}
+}
+
+/*
+QueryPolicyRulesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryPolicyRulesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query policy rules internal server error response has a 2xx status code
+func (o *QueryPolicyRulesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query policy rules internal server error response has a 3xx status code
+func (o *QueryPolicyRulesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query policy rules internal server error response has a 4xx status code
+func (o *QueryPolicyRulesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query policy rules internal server error response has a 5xx status code
+func (o *QueryPolicyRulesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query policy rules internal server error response a status code equal to that given
+func (o *QueryPolicyRulesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query policy rules internal server error response
+func (o *QueryPolicyRulesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryPolicyRulesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/policy-rules/v1][%d] queryPolicyRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryPolicyRulesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/policy-rules/v1][%d] queryPolicyRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryPolicyRulesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryPolicyRulesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/query_rule_groups_responses.go b/falcon/client/firewall_management/query_rule_groups_responses.go
index 5ad7daa4..aba4878f 100644
--- a/falcon/client/firewall_management/query_rule_groups_responses.go
+++ b/falcon/client/firewall_management/query_rule_groups_responses.go
@@ -49,6 +49,12 @@ func (o *QueryRuleGroupsReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryRuleGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/queries/rule-groups/v1] query-rule-groups", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryRuleGroupsTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewQueryRuleGroupsInternalServerError creates a QueryRuleGroupsInternalServerError with default headers values
+func NewQueryRuleGroupsInternalServerError() *QueryRuleGroupsInternalServerError {
+ return &QueryRuleGroupsInternalServerError{}
+}
+
+/*
+QueryRuleGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryRuleGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query rule groups internal server error response has a 2xx status code
+func (o *QueryRuleGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query rule groups internal server error response has a 3xx status code
+func (o *QueryRuleGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query rule groups internal server error response has a 4xx status code
+func (o *QueryRuleGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query rule groups internal server error response has a 5xx status code
+func (o *QueryRuleGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query rule groups internal server error response a status code equal to that given
+func (o *QueryRuleGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query rule groups internal server error response
+func (o *QueryRuleGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryRuleGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/rule-groups/v1][%d] queryRuleGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRuleGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/rule-groups/v1][%d] queryRuleGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRuleGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryRuleGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/query_rules_responses.go b/falcon/client/firewall_management/query_rules_responses.go
index 3e3baa4b..74fd4e8b 100644
--- a/falcon/client/firewall_management/query_rules_responses.go
+++ b/falcon/client/firewall_management/query_rules_responses.go
@@ -49,6 +49,12 @@ func (o *QueryRulesReader) ReadResponse(response runtime.ClientResponse, consume
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryRulesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /fwmgr/queries/rules/v1] query-rules", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryRulesTooManyRequests) readResponse(response runtime.ClientResponse
return nil
}
+
+// NewQueryRulesInternalServerError creates a QueryRulesInternalServerError with default headers values
+func NewQueryRulesInternalServerError() *QueryRulesInternalServerError {
+ return &QueryRulesInternalServerError{}
+}
+
+/*
+QueryRulesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryRulesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query rules internal server error response has a 2xx status code
+func (o *QueryRulesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query rules internal server error response has a 3xx status code
+func (o *QueryRulesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query rules internal server error response has a 4xx status code
+func (o *QueryRulesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query rules internal server error response has a 5xx status code
+func (o *QueryRulesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query rules internal server error response a status code equal to that given
+func (o *QueryRulesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query rules internal server error response
+func (o *QueryRulesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryRulesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/rules/v1][%d] queryRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRulesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /fwmgr/queries/rules/v1][%d] queryRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRulesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryRulesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/update_network_locations_metadata_responses.go b/falcon/client/firewall_management/update_network_locations_metadata_responses.go
index 577738a7..387482a9 100644
--- a/falcon/client/firewall_management/update_network_locations_metadata_responses.go
+++ b/falcon/client/firewall_management/update_network_locations_metadata_responses.go
@@ -49,6 +49,12 @@ func (o *UpdateNetworkLocationsMetadataReader) ReadResponse(response runtime.Cli
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateNetworkLocationsMetadataInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /fwmgr/entities/network-locations-metadata/v1] update-network-locations-metadata", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *UpdateNetworkLocationsMetadataTooManyRequests) readResponse(response ru
return nil
}
+
+// NewUpdateNetworkLocationsMetadataInternalServerError creates a UpdateNetworkLocationsMetadataInternalServerError with default headers values
+func NewUpdateNetworkLocationsMetadataInternalServerError() *UpdateNetworkLocationsMetadataInternalServerError {
+ return &UpdateNetworkLocationsMetadataInternalServerError{}
+}
+
+/*
+UpdateNetworkLocationsMetadataInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateNetworkLocationsMetadataInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update network locations metadata internal server error response has a 2xx status code
+func (o *UpdateNetworkLocationsMetadataInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update network locations metadata internal server error response has a 3xx status code
+func (o *UpdateNetworkLocationsMetadataInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update network locations metadata internal server error response has a 4xx status code
+func (o *UpdateNetworkLocationsMetadataInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update network locations metadata internal server error response has a 5xx status code
+func (o *UpdateNetworkLocationsMetadataInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update network locations metadata internal server error response a status code equal to that given
+func (o *UpdateNetworkLocationsMetadataInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update network locations metadata internal server error response
+func (o *UpdateNetworkLocationsMetadataInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateNetworkLocationsMetadataInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/network-locations-metadata/v1][%d] updateNetworkLocationsMetadataInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateNetworkLocationsMetadataInternalServerError) String() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/network-locations-metadata/v1][%d] updateNetworkLocationsMetadataInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateNetworkLocationsMetadataInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateNetworkLocationsMetadataInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/update_network_locations_precedence_responses.go b/falcon/client/firewall_management/update_network_locations_precedence_responses.go
index 2d132f9b..6ffb7d78 100644
--- a/falcon/client/firewall_management/update_network_locations_precedence_responses.go
+++ b/falcon/client/firewall_management/update_network_locations_precedence_responses.go
@@ -49,6 +49,12 @@ func (o *UpdateNetworkLocationsPrecedenceReader) ReadResponse(response runtime.C
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateNetworkLocationsPrecedenceInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /fwmgr/entities/network-locations-precedence/v1] update-network-locations-precedence", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *UpdateNetworkLocationsPrecedenceTooManyRequests) readResponse(response
return nil
}
+
+// NewUpdateNetworkLocationsPrecedenceInternalServerError creates a UpdateNetworkLocationsPrecedenceInternalServerError with default headers values
+func NewUpdateNetworkLocationsPrecedenceInternalServerError() *UpdateNetworkLocationsPrecedenceInternalServerError {
+ return &UpdateNetworkLocationsPrecedenceInternalServerError{}
+}
+
+/*
+UpdateNetworkLocationsPrecedenceInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateNetworkLocationsPrecedenceInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update network locations precedence internal server error response has a 2xx status code
+func (o *UpdateNetworkLocationsPrecedenceInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update network locations precedence internal server error response has a 3xx status code
+func (o *UpdateNetworkLocationsPrecedenceInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update network locations precedence internal server error response has a 4xx status code
+func (o *UpdateNetworkLocationsPrecedenceInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update network locations precedence internal server error response has a 5xx status code
+func (o *UpdateNetworkLocationsPrecedenceInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update network locations precedence internal server error response a status code equal to that given
+func (o *UpdateNetworkLocationsPrecedenceInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update network locations precedence internal server error response
+func (o *UpdateNetworkLocationsPrecedenceInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateNetworkLocationsPrecedenceInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/network-locations-precedence/v1][%d] updateNetworkLocationsPrecedenceInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateNetworkLocationsPrecedenceInternalServerError) String() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/network-locations-precedence/v1][%d] updateNetworkLocationsPrecedenceInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateNetworkLocationsPrecedenceInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateNetworkLocationsPrecedenceInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/update_network_locations_responses.go b/falcon/client/firewall_management/update_network_locations_responses.go
index 6af4a450..1f9e5f2e 100644
--- a/falcon/client/firewall_management/update_network_locations_responses.go
+++ b/falcon/client/firewall_management/update_network_locations_responses.go
@@ -49,6 +49,12 @@ func (o *UpdateNetworkLocationsReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateNetworkLocationsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /fwmgr/entities/network-locations/v1] update-network-locations", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *UpdateNetworkLocationsTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewUpdateNetworkLocationsInternalServerError creates a UpdateNetworkLocationsInternalServerError with default headers values
+func NewUpdateNetworkLocationsInternalServerError() *UpdateNetworkLocationsInternalServerError {
+ return &UpdateNetworkLocationsInternalServerError{}
+}
+
+/*
+UpdateNetworkLocationsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateNetworkLocationsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update network locations internal server error response has a 2xx status code
+func (o *UpdateNetworkLocationsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update network locations internal server error response has a 3xx status code
+func (o *UpdateNetworkLocationsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update network locations internal server error response has a 4xx status code
+func (o *UpdateNetworkLocationsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update network locations internal server error response has a 5xx status code
+func (o *UpdateNetworkLocationsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update network locations internal server error response a status code equal to that given
+func (o *UpdateNetworkLocationsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update network locations internal server error response
+func (o *UpdateNetworkLocationsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateNetworkLocationsInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /fwmgr/entities/network-locations/v1][%d] updateNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateNetworkLocationsInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /fwmgr/entities/network-locations/v1][%d] updateNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateNetworkLocationsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateNetworkLocationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/update_policy_container_responses.go b/falcon/client/firewall_management/update_policy_container_responses.go
index 5f03716a..a46e7c14 100644
--- a/falcon/client/firewall_management/update_policy_container_responses.go
+++ b/falcon/client/firewall_management/update_policy_container_responses.go
@@ -55,6 +55,12 @@ func (o *UpdatePolicyContainerReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdatePolicyContainerInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PUT /fwmgr/entities/policies/v2] update-policy-container", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *UpdatePolicyContainerTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewUpdatePolicyContainerInternalServerError creates a UpdatePolicyContainerInternalServerError with default headers values
+func NewUpdatePolicyContainerInternalServerError() *UpdatePolicyContainerInternalServerError {
+ return &UpdatePolicyContainerInternalServerError{}
+}
+
+/*
+UpdatePolicyContainerInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdatePolicyContainerInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update policy container internal server error response has a 2xx status code
+func (o *UpdatePolicyContainerInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update policy container internal server error response has a 3xx status code
+func (o *UpdatePolicyContainerInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update policy container internal server error response has a 4xx status code
+func (o *UpdatePolicyContainerInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update policy container internal server error response has a 5xx status code
+func (o *UpdatePolicyContainerInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update policy container internal server error response a status code equal to that given
+func (o *UpdatePolicyContainerInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update policy container internal server error response
+func (o *UpdatePolicyContainerInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdatePolicyContainerInternalServerError) Error() string {
+ return fmt.Sprintf("[PUT /fwmgr/entities/policies/v2][%d] updatePolicyContainerInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdatePolicyContainerInternalServerError) String() string {
+ return fmt.Sprintf("[PUT /fwmgr/entities/policies/v2][%d] updatePolicyContainerInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdatePolicyContainerInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdatePolicyContainerInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/update_policy_container_v1_responses.go b/falcon/client/firewall_management/update_policy_container_v1_responses.go
index f63e0a95..1a461eb9 100644
--- a/falcon/client/firewall_management/update_policy_container_v1_responses.go
+++ b/falcon/client/firewall_management/update_policy_container_v1_responses.go
@@ -55,6 +55,12 @@ func (o *UpdatePolicyContainerV1Reader) ReadResponse(response runtime.ClientResp
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdatePolicyContainerV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PUT /fwmgr/entities/policies/v1] update-policy-container-v1", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *UpdatePolicyContainerV1TooManyRequests) readResponse(response runtime.C
return nil
}
+
+// NewUpdatePolicyContainerV1InternalServerError creates a UpdatePolicyContainerV1InternalServerError with default headers values
+func NewUpdatePolicyContainerV1InternalServerError() *UpdatePolicyContainerV1InternalServerError {
+ return &UpdatePolicyContainerV1InternalServerError{}
+}
+
+/*
+UpdatePolicyContainerV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdatePolicyContainerV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update policy container v1 internal server error response has a 2xx status code
+func (o *UpdatePolicyContainerV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update policy container v1 internal server error response has a 3xx status code
+func (o *UpdatePolicyContainerV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update policy container v1 internal server error response has a 4xx status code
+func (o *UpdatePolicyContainerV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update policy container v1 internal server error response has a 5xx status code
+func (o *UpdatePolicyContainerV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update policy container v1 internal server error response a status code equal to that given
+func (o *UpdatePolicyContainerV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update policy container v1 internal server error response
+func (o *UpdatePolicyContainerV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdatePolicyContainerV1InternalServerError) Error() string {
+ return fmt.Sprintf("[PUT /fwmgr/entities/policies/v1][%d] updatePolicyContainerV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdatePolicyContainerV1InternalServerError) String() string {
+ return fmt.Sprintf("[PUT /fwmgr/entities/policies/v1][%d] updatePolicyContainerV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdatePolicyContainerV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdatePolicyContainerV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/update_rule_group_responses.go b/falcon/client/firewall_management/update_rule_group_responses.go
index 4ca50b19..5793dd7d 100644
--- a/falcon/client/firewall_management/update_rule_group_responses.go
+++ b/falcon/client/firewall_management/update_rule_group_responses.go
@@ -49,6 +49,12 @@ func (o *UpdateRuleGroupReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateRuleGroupInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /fwmgr/entities/rule-groups/v1] update-rule-group", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *UpdateRuleGroupTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewUpdateRuleGroupInternalServerError creates a UpdateRuleGroupInternalServerError with default headers values
+func NewUpdateRuleGroupInternalServerError() *UpdateRuleGroupInternalServerError {
+ return &UpdateRuleGroupInternalServerError{}
+}
+
+/*
+UpdateRuleGroupInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateRuleGroupInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update rule group internal server error response has a 2xx status code
+func (o *UpdateRuleGroupInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update rule group internal server error response has a 3xx status code
+func (o *UpdateRuleGroupInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update rule group internal server error response has a 4xx status code
+func (o *UpdateRuleGroupInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update rule group internal server error response has a 5xx status code
+func (o *UpdateRuleGroupInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update rule group internal server error response a status code equal to that given
+func (o *UpdateRuleGroupInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update rule group internal server error response
+func (o *UpdateRuleGroupInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateRuleGroupInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /fwmgr/entities/rule-groups/v1][%d] updateRuleGroupInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateRuleGroupInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /fwmgr/entities/rule-groups/v1][%d] updateRuleGroupInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateRuleGroupInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateRuleGroupInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/update_rule_group_validation_responses.go b/falcon/client/firewall_management/update_rule_group_validation_responses.go
index 80c3e417..89ecf792 100644
--- a/falcon/client/firewall_management/update_rule_group_validation_responses.go
+++ b/falcon/client/firewall_management/update_rule_group_validation_responses.go
@@ -49,6 +49,12 @@ func (o *UpdateRuleGroupValidationReader) ReadResponse(response runtime.ClientRe
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateRuleGroupValidationInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /fwmgr/entities/rule-groups/validation/v1] update-rule-group-validation", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *UpdateRuleGroupValidationTooManyRequests) readResponse(response runtime
return nil
}
+
+// NewUpdateRuleGroupValidationInternalServerError creates a UpdateRuleGroupValidationInternalServerError with default headers values
+func NewUpdateRuleGroupValidationInternalServerError() *UpdateRuleGroupValidationInternalServerError {
+ return &UpdateRuleGroupValidationInternalServerError{}
+}
+
+/*
+UpdateRuleGroupValidationInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateRuleGroupValidationInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update rule group validation internal server error response has a 2xx status code
+func (o *UpdateRuleGroupValidationInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update rule group validation internal server error response has a 3xx status code
+func (o *UpdateRuleGroupValidationInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update rule group validation internal server error response has a 4xx status code
+func (o *UpdateRuleGroupValidationInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update rule group validation internal server error response has a 5xx status code
+func (o *UpdateRuleGroupValidationInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update rule group validation internal server error response a status code equal to that given
+func (o *UpdateRuleGroupValidationInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update rule group validation internal server error response
+func (o *UpdateRuleGroupValidationInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateRuleGroupValidationInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /fwmgr/entities/rule-groups/validation/v1][%d] updateRuleGroupValidationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateRuleGroupValidationInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /fwmgr/entities/rule-groups/validation/v1][%d] updateRuleGroupValidationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateRuleGroupValidationInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateRuleGroupValidationInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/upsert_network_locations_responses.go b/falcon/client/firewall_management/upsert_network_locations_responses.go
index 1e3ae381..2ee07fd5 100644
--- a/falcon/client/firewall_management/upsert_network_locations_responses.go
+++ b/falcon/client/firewall_management/upsert_network_locations_responses.go
@@ -49,6 +49,12 @@ func (o *UpsertNetworkLocationsReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpsertNetworkLocationsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PUT /fwmgr/entities/network-locations/v1] upsert-network-locations", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *UpsertNetworkLocationsTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewUpsertNetworkLocationsInternalServerError creates a UpsertNetworkLocationsInternalServerError with default headers values
+func NewUpsertNetworkLocationsInternalServerError() *UpsertNetworkLocationsInternalServerError {
+ return &UpsertNetworkLocationsInternalServerError{}
+}
+
+/*
+UpsertNetworkLocationsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpsertNetworkLocationsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this upsert network locations internal server error response has a 2xx status code
+func (o *UpsertNetworkLocationsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upsert network locations internal server error response has a 3xx status code
+func (o *UpsertNetworkLocationsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upsert network locations internal server error response has a 4xx status code
+func (o *UpsertNetworkLocationsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upsert network locations internal server error response has a 5xx status code
+func (o *UpsertNetworkLocationsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this upsert network locations internal server error response a status code equal to that given
+func (o *UpsertNetworkLocationsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the upsert network locations internal server error response
+func (o *UpsertNetworkLocationsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpsertNetworkLocationsInternalServerError) Error() string {
+ return fmt.Sprintf("[PUT /fwmgr/entities/network-locations/v1][%d] upsertNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpsertNetworkLocationsInternalServerError) String() string {
+ return fmt.Sprintf("[PUT /fwmgr/entities/network-locations/v1][%d] upsertNetworkLocationsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpsertNetworkLocationsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpsertNetworkLocationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/firewall_management/validate_filepath_pattern_responses.go b/falcon/client/firewall_management/validate_filepath_pattern_responses.go
index 393d8eee..5580a5eb 100644
--- a/falcon/client/firewall_management/validate_filepath_pattern_responses.go
+++ b/falcon/client/firewall_management/validate_filepath_pattern_responses.go
@@ -49,6 +49,12 @@ func (o *ValidateFilepathPatternReader) ReadResponse(response runtime.ClientResp
return nil, err
}
return nil, result
+ case 500:
+ result := NewValidateFilepathPatternInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /fwmgr/entities/rules/validate-filepath/v1] validate-filepath-pattern", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *ValidateFilepathPatternTooManyRequests) readResponse(response runtime.C
return nil
}
+
+// NewValidateFilepathPatternInternalServerError creates a ValidateFilepathPatternInternalServerError with default headers values
+func NewValidateFilepathPatternInternalServerError() *ValidateFilepathPatternInternalServerError {
+ return &ValidateFilepathPatternInternalServerError{}
+}
+
+/*
+ValidateFilepathPatternInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ValidateFilepathPatternInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this validate filepath pattern internal server error response has a 2xx status code
+func (o *ValidateFilepathPatternInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this validate filepath pattern internal server error response has a 3xx status code
+func (o *ValidateFilepathPatternInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this validate filepath pattern internal server error response has a 4xx status code
+func (o *ValidateFilepathPatternInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this validate filepath pattern internal server error response has a 5xx status code
+func (o *ValidateFilepathPatternInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this validate filepath pattern internal server error response a status code equal to that given
+func (o *ValidateFilepathPatternInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the validate filepath pattern internal server error response
+func (o *ValidateFilepathPatternInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ValidateFilepathPatternInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/rules/validate-filepath/v1][%d] validateFilepathPatternInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ValidateFilepathPatternInternalServerError) String() string {
+ return fmt.Sprintf("[POST /fwmgr/entities/rules/validate-filepath/v1][%d] validateFilepathPatternInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ValidateFilepathPatternInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ValidateFilepathPatternInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/foundry_logscale/create_saved_searches_dynamic_execute_alt_v1_parameters.go b/falcon/client/foundry_logscale/create_saved_searches_dynamic_execute_alt_v1_parameters.go
index 3c98dc81..c51c8af6 100644
--- a/falcon/client/foundry_logscale/create_saved_searches_dynamic_execute_alt_v1_parameters.go
+++ b/falcon/client/foundry_logscale/create_saved_searches_dynamic_execute_alt_v1_parameters.go
@@ -64,6 +64,12 @@ CreateSavedSearchesDynamicExecuteAltV1Params contains all the parameters to send
*/
type CreateSavedSearchesDynamicExecuteAltV1Params struct {
+ /* XCSUSERUUID.
+
+ Requester UUID.
+ */
+ XCSUSERUUID *string
+
/* AppID.
Application ID.
@@ -185,6 +191,17 @@ func (o *CreateSavedSearchesDynamicExecuteAltV1Params) SetHTTPClient(client *htt
o.HTTPClient = client
}
+// WithXCSUSERUUID adds the xCSUSERUUID to the create saved searches dynamic execute alt v1 params
+func (o *CreateSavedSearchesDynamicExecuteAltV1Params) WithXCSUSERUUID(xCSUSERUUID *string) *CreateSavedSearchesDynamicExecuteAltV1Params {
+ o.SetXCSUSERUUID(xCSUSERUUID)
+ return o
+}
+
+// SetXCSUSERUUID adds the xCSUSERUuid to the create saved searches dynamic execute alt v1 params
+func (o *CreateSavedSearchesDynamicExecuteAltV1Params) SetXCSUSERUUID(xCSUSERUUID *string) {
+ o.XCSUSERUUID = xCSUSERUUID
+}
+
// WithAppID adds the appID to the create saved searches dynamic execute alt v1 params
func (o *CreateSavedSearchesDynamicExecuteAltV1Params) WithAppID(appID *string) *CreateSavedSearchesDynamicExecuteAltV1Params {
o.SetAppID(appID)
@@ -281,6 +298,14 @@ func (o *CreateSavedSearchesDynamicExecuteAltV1Params) WriteToRequest(r runtime.
}
var res []error
+ if o.XCSUSERUUID != nil {
+
+ // header param X-CS-USERUUID
+ if err := r.SetHeaderParam("X-CS-USERUUID", *o.XCSUSERUUID); err != nil {
+ return err
+ }
+ }
+
if o.AppID != nil {
// query param app_id
diff --git a/falcon/client/foundry_logscale/create_saved_searches_execute_alt_v1_parameters.go b/falcon/client/foundry_logscale/create_saved_searches_execute_alt_v1_parameters.go
index f9bb7a0a..54ec466c 100644
--- a/falcon/client/foundry_logscale/create_saved_searches_execute_alt_v1_parameters.go
+++ b/falcon/client/foundry_logscale/create_saved_searches_execute_alt_v1_parameters.go
@@ -64,6 +64,12 @@ CreateSavedSearchesExecuteAltV1Params contains all the parameters to send to the
*/
type CreateSavedSearchesExecuteAltV1Params struct {
+ /* XCSUSERUUID.
+
+ Requester UUID.
+ */
+ XCSUSERUUID *string
+
/* AppID.
Application ID.
@@ -179,6 +185,17 @@ func (o *CreateSavedSearchesExecuteAltV1Params) SetHTTPClient(client *http.Clien
o.HTTPClient = client
}
+// WithXCSUSERUUID adds the xCSUSERUUID to the create saved searches execute alt v1 params
+func (o *CreateSavedSearchesExecuteAltV1Params) WithXCSUSERUUID(xCSUSERUUID *string) *CreateSavedSearchesExecuteAltV1Params {
+ o.SetXCSUSERUUID(xCSUSERUUID)
+ return o
+}
+
+// SetXCSUSERUUID adds the xCSUSERUuid to the create saved searches execute alt v1 params
+func (o *CreateSavedSearchesExecuteAltV1Params) SetXCSUSERUUID(xCSUSERUUID *string) {
+ o.XCSUSERUUID = xCSUSERUUID
+}
+
// WithAppID adds the appID to the create saved searches execute alt v1 params
func (o *CreateSavedSearchesExecuteAltV1Params) WithAppID(appID *string) *CreateSavedSearchesExecuteAltV1Params {
o.SetAppID(appID)
@@ -264,6 +281,14 @@ func (o *CreateSavedSearchesExecuteAltV1Params) WriteToRequest(r runtime.ClientR
}
var res []error
+ if o.XCSUSERUUID != nil {
+
+ // header param X-CS-USERUUID
+ if err := r.SetHeaderParam("X-CS-USERUUID", *o.XCSUSERUUID); err != nil {
+ return err
+ }
+ }
+
if o.AppID != nil {
// query param app_id
diff --git a/falcon/client/foundry_logscale/execute_dynamic_parameters.go b/falcon/client/foundry_logscale/execute_dynamic_parameters.go
index d60a99d4..9daf605c 100644
--- a/falcon/client/foundry_logscale/execute_dynamic_parameters.go
+++ b/falcon/client/foundry_logscale/execute_dynamic_parameters.go
@@ -64,6 +64,12 @@ ExecuteDynamicParams contains all the parameters to send to the API endpoint
*/
type ExecuteDynamicParams struct {
+ /* XCSUSERUUID.
+
+ Requester UUID.
+ */
+ XCSUSERUUID *string
+
/* AppID.
Application ID.
@@ -185,6 +191,17 @@ func (o *ExecuteDynamicParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
+// WithXCSUSERUUID adds the xCSUSERUUID to the execute dynamic params
+func (o *ExecuteDynamicParams) WithXCSUSERUUID(xCSUSERUUID *string) *ExecuteDynamicParams {
+ o.SetXCSUSERUUID(xCSUSERUUID)
+ return o
+}
+
+// SetXCSUSERUUID adds the xCSUSERUuid to the execute dynamic params
+func (o *ExecuteDynamicParams) SetXCSUSERUUID(xCSUSERUUID *string) {
+ o.XCSUSERUUID = xCSUSERUUID
+}
+
// WithAppID adds the appID to the execute dynamic params
func (o *ExecuteDynamicParams) WithAppID(appID *string) *ExecuteDynamicParams {
o.SetAppID(appID)
@@ -281,6 +298,14 @@ func (o *ExecuteDynamicParams) WriteToRequest(r runtime.ClientRequest, reg strfm
}
var res []error
+ if o.XCSUSERUUID != nil {
+
+ // header param X-CS-USERUUID
+ if err := r.SetHeaderParam("X-CS-USERUUID", *o.XCSUSERUUID); err != nil {
+ return err
+ }
+ }
+
if o.AppID != nil {
// query param app_id
diff --git a/falcon/client/foundry_logscale/execute_parameters.go b/falcon/client/foundry_logscale/execute_parameters.go
index 88e55efb..199ebe79 100644
--- a/falcon/client/foundry_logscale/execute_parameters.go
+++ b/falcon/client/foundry_logscale/execute_parameters.go
@@ -64,6 +64,12 @@ ExecuteParams contains all the parameters to send to the API endpoint
*/
type ExecuteParams struct {
+ /* XCSUSERUUID.
+
+ Requester UUID.
+ */
+ XCSUSERUUID *string
+
/* AppID.
Application ID.
@@ -179,6 +185,17 @@ func (o *ExecuteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
+// WithXCSUSERUUID adds the xCSUSERUUID to the execute params
+func (o *ExecuteParams) WithXCSUSERUUID(xCSUSERUUID *string) *ExecuteParams {
+ o.SetXCSUSERUUID(xCSUSERUUID)
+ return o
+}
+
+// SetXCSUSERUUID adds the xCSUSERUuid to the execute params
+func (o *ExecuteParams) SetXCSUSERUUID(xCSUSERUUID *string) {
+ o.XCSUSERUUID = xCSUSERUUID
+}
+
// WithAppID adds the appID to the execute params
func (o *ExecuteParams) WithAppID(appID *string) *ExecuteParams {
o.SetAppID(appID)
@@ -264,6 +281,14 @@ func (o *ExecuteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis
}
var res []error
+ if o.XCSUSERUUID != nil {
+
+ // header param X-CS-USERUUID
+ if err := r.SetHeaderParam("X-CS-USERUUID", *o.XCSUSERUUID); err != nil {
+ return err
+ }
+ }
+
if o.AppID != nil {
// query param app_id
diff --git a/falcon/client/foundry_logscale/foundry_logscale_client.go b/falcon/client/foundry_logscale/foundry_logscale_client.go
index 0452df47..96fc8eb4 100644
--- a/falcon/client/foundry_logscale/foundry_logscale_client.go
+++ b/falcon/client/foundry_logscale/foundry_logscale_client.go
@@ -188,7 +188,7 @@ func (a *Client) DownloadResults(params *DownloadResultsParams, writer io.Writer
ID: "DownloadResults",
Method: "GET",
PathPattern: "/loggingapi/entities/saved-searches/job-results-download/v1",
- ProducesMediaTypes: []string{"application/octet-stream"},
+ ProducesMediaTypes: []string{"application/json", "application/octet-stream", "text/csv"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -340,7 +340,7 @@ func (a *Client) GetSavedSearchesJobResultsDownloadAltV1(params *GetSavedSearche
ID: "GetSavedSearchesJobResultsDownloadAltV1",
Method: "GET",
PathPattern: "/loggingapi/entities/saved-searches-job-results-download/v1",
- ProducesMediaTypes: []string{"application/octet-stream"},
+ ProducesMediaTypes: []string{"application/json", "application/octet-stream", "text/csv"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/falcon/client/foundry_logscale/get_saved_searches_execute_alt_v1_parameters.go b/falcon/client/foundry_logscale/get_saved_searches_execute_alt_v1_parameters.go
index 9f19c7b6..e426485b 100644
--- a/falcon/client/foundry_logscale/get_saved_searches_execute_alt_v1_parameters.go
+++ b/falcon/client/foundry_logscale/get_saved_searches_execute_alt_v1_parameters.go
@@ -62,6 +62,12 @@ GetSavedSearchesExecuteAltV1Params contains all the parameters to send to the AP
*/
type GetSavedSearchesExecuteAltV1Params struct {
+ /* XCSUSERUUID.
+
+ Requester UUID.
+ */
+ XCSUSERUUID *string
+
/* AppID.
Application ID.
@@ -80,6 +86,12 @@ type GetSavedSearchesExecuteAltV1Params struct {
*/
JobID string
+ /* JobStatusOnly.
+
+ If set to true, result rows are dropped from the response and only the job status is returned
+ */
+ JobStatusOnly *bool
+
/* Limit.
Maximum number of records to return.
@@ -124,6 +136,8 @@ func (o *GetSavedSearchesExecuteAltV1Params) SetDefaults() {
var (
inferJSONTypesDefault = bool(false)
+ jobStatusOnlyDefault = bool(false)
+
matchResponseSchemaDefault = bool(false)
metadataDefault = bool(false)
@@ -131,6 +145,7 @@ func (o *GetSavedSearchesExecuteAltV1Params) SetDefaults() {
val := GetSavedSearchesExecuteAltV1Params{
InferJSONTypes: &inferJSONTypesDefault,
+ JobStatusOnly: &jobStatusOnlyDefault,
MatchResponseSchema: &matchResponseSchemaDefault,
Metadata: &metadataDefault,
}
@@ -174,6 +189,17 @@ func (o *GetSavedSearchesExecuteAltV1Params) SetHTTPClient(client *http.Client)
o.HTTPClient = client
}
+// WithXCSUSERUUID adds the xCSUSERUUID to the get saved searches execute alt v1 params
+func (o *GetSavedSearchesExecuteAltV1Params) WithXCSUSERUUID(xCSUSERUUID *string) *GetSavedSearchesExecuteAltV1Params {
+ o.SetXCSUSERUUID(xCSUSERUUID)
+ return o
+}
+
+// SetXCSUSERUUID adds the xCSUSERUuid to the get saved searches execute alt v1 params
+func (o *GetSavedSearchesExecuteAltV1Params) SetXCSUSERUUID(xCSUSERUUID *string) {
+ o.XCSUSERUUID = xCSUSERUUID
+}
+
// WithAppID adds the appID to the get saved searches execute alt v1 params
func (o *GetSavedSearchesExecuteAltV1Params) WithAppID(appID *string) *GetSavedSearchesExecuteAltV1Params {
o.SetAppID(appID)
@@ -207,6 +233,17 @@ func (o *GetSavedSearchesExecuteAltV1Params) SetJobID(jobID string) {
o.JobID = jobID
}
+// WithJobStatusOnly adds the jobStatusOnly to the get saved searches execute alt v1 params
+func (o *GetSavedSearchesExecuteAltV1Params) WithJobStatusOnly(jobStatusOnly *bool) *GetSavedSearchesExecuteAltV1Params {
+ o.SetJobStatusOnly(jobStatusOnly)
+ return o
+}
+
+// SetJobStatusOnly adds the jobStatusOnly to the get saved searches execute alt v1 params
+func (o *GetSavedSearchesExecuteAltV1Params) SetJobStatusOnly(jobStatusOnly *bool) {
+ o.JobStatusOnly = jobStatusOnly
+}
+
// WithLimit adds the limit to the get saved searches execute alt v1 params
func (o *GetSavedSearchesExecuteAltV1Params) WithLimit(limit *string) *GetSavedSearchesExecuteAltV1Params {
o.SetLimit(limit)
@@ -259,6 +296,14 @@ func (o *GetSavedSearchesExecuteAltV1Params) WriteToRequest(r runtime.ClientRequ
}
var res []error
+ if o.XCSUSERUUID != nil {
+
+ // header param X-CS-USERUUID
+ if err := r.SetHeaderParam("X-CS-USERUUID", *o.XCSUSERUUID); err != nil {
+ return err
+ }
+ }
+
if o.AppID != nil {
// query param app_id
@@ -303,6 +348,23 @@ func (o *GetSavedSearchesExecuteAltV1Params) WriteToRequest(r runtime.ClientRequ
}
}
+ if o.JobStatusOnly != nil {
+
+ // query param job_status_only
+ var qrJobStatusOnly bool
+
+ if o.JobStatusOnly != nil {
+ qrJobStatusOnly = *o.JobStatusOnly
+ }
+ qJobStatusOnly := swag.FormatBool(qrJobStatusOnly)
+ if qJobStatusOnly != "" {
+
+ if err := r.SetQueryParam("job_status_only", qJobStatusOnly); err != nil {
+ return err
+ }
+ }
+ }
+
if o.Limit != nil {
// query param limit
diff --git a/falcon/client/foundry_logscale/get_search_results_parameters.go b/falcon/client/foundry_logscale/get_search_results_parameters.go
index 52c03bd4..93b9aa23 100644
--- a/falcon/client/foundry_logscale/get_search_results_parameters.go
+++ b/falcon/client/foundry_logscale/get_search_results_parameters.go
@@ -62,6 +62,12 @@ GetSearchResultsParams contains all the parameters to send to the API endpoint
*/
type GetSearchResultsParams struct {
+ /* XCSUSERUUID.
+
+ Requester UUID.
+ */
+ XCSUSERUUID *string
+
/* AppID.
Application ID.
@@ -80,6 +86,12 @@ type GetSearchResultsParams struct {
*/
JobID string
+ /* JobStatusOnly.
+
+ If set to true, result rows are dropped from the response and only the job status is returned
+ */
+ JobStatusOnly *bool
+
/* Limit.
Maximum number of records to return.
@@ -124,6 +136,8 @@ func (o *GetSearchResultsParams) SetDefaults() {
var (
inferJSONTypesDefault = bool(false)
+ jobStatusOnlyDefault = bool(false)
+
matchResponseSchemaDefault = bool(false)
metadataDefault = bool(false)
@@ -131,6 +145,7 @@ func (o *GetSearchResultsParams) SetDefaults() {
val := GetSearchResultsParams{
InferJSONTypes: &inferJSONTypesDefault,
+ JobStatusOnly: &jobStatusOnlyDefault,
MatchResponseSchema: &matchResponseSchemaDefault,
Metadata: &metadataDefault,
}
@@ -174,6 +189,17 @@ func (o *GetSearchResultsParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
+// WithXCSUSERUUID adds the xCSUSERUUID to the get search results params
+func (o *GetSearchResultsParams) WithXCSUSERUUID(xCSUSERUUID *string) *GetSearchResultsParams {
+ o.SetXCSUSERUUID(xCSUSERUUID)
+ return o
+}
+
+// SetXCSUSERUUID adds the xCSUSERUuid to the get search results params
+func (o *GetSearchResultsParams) SetXCSUSERUUID(xCSUSERUUID *string) {
+ o.XCSUSERUUID = xCSUSERUUID
+}
+
// WithAppID adds the appID to the get search results params
func (o *GetSearchResultsParams) WithAppID(appID *string) *GetSearchResultsParams {
o.SetAppID(appID)
@@ -207,6 +233,17 @@ func (o *GetSearchResultsParams) SetJobID(jobID string) {
o.JobID = jobID
}
+// WithJobStatusOnly adds the jobStatusOnly to the get search results params
+func (o *GetSearchResultsParams) WithJobStatusOnly(jobStatusOnly *bool) *GetSearchResultsParams {
+ o.SetJobStatusOnly(jobStatusOnly)
+ return o
+}
+
+// SetJobStatusOnly adds the jobStatusOnly to the get search results params
+func (o *GetSearchResultsParams) SetJobStatusOnly(jobStatusOnly *bool) {
+ o.JobStatusOnly = jobStatusOnly
+}
+
// WithLimit adds the limit to the get search results params
func (o *GetSearchResultsParams) WithLimit(limit *string) *GetSearchResultsParams {
o.SetLimit(limit)
@@ -259,6 +296,14 @@ func (o *GetSearchResultsParams) WriteToRequest(r runtime.ClientRequest, reg str
}
var res []error
+ if o.XCSUSERUUID != nil {
+
+ // header param X-CS-USERUUID
+ if err := r.SetHeaderParam("X-CS-USERUUID", *o.XCSUSERUUID); err != nil {
+ return err
+ }
+ }
+
if o.AppID != nil {
// query param app_id
@@ -303,6 +348,23 @@ func (o *GetSearchResultsParams) WriteToRequest(r runtime.ClientRequest, reg str
}
}
+ if o.JobStatusOnly != nil {
+
+ // query param job_status_only
+ var qrJobStatusOnly bool
+
+ if o.JobStatusOnly != nil {
+ qrJobStatusOnly = *o.JobStatusOnly
+ }
+ qJobStatusOnly := swag.FormatBool(qrJobStatusOnly)
+ if qJobStatusOnly != "" {
+
+ if err := r.SetQueryParam("job_status_only", qJobStatusOnly); err != nil {
+ return err
+ }
+ }
+ }
+
if o.Limit != nil {
// query param limit
diff --git a/falcon/client/handle/handle_client.go b/falcon/client/handle/handle_client.go
new file mode 100644
index 00000000..ded2de4d
--- /dev/null
+++ b/falcon/client/handle/handle_client.go
@@ -0,0 +1,79 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package handle
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new handle API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for handle API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ Handle(params *HandleParams, opts ...ClientOption) (*HandleOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+Handle - Handle is responsible for producing the input message into the corresponded Kafka Topic
+*/
+func (a *Client) Handle(params *HandleParams, opts ...ClientOption) (*HandleOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewHandleParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "handle",
+ Method: "POST",
+ PathPattern: "/data-security-dspm/entities/kafka-rest-produce/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &HandleReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*HandleOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for handle: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/falcon/client/handle/handle_parameters.go b/falcon/client/handle/handle_parameters.go
new file mode 100644
index 00000000..d568924c
--- /dev/null
+++ b/falcon/client/handle/handle_parameters.go
@@ -0,0 +1,128 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package handle
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewHandleParams creates a new HandleParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewHandleParams() *HandleParams {
+ return &HandleParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewHandleParamsWithTimeout creates a new HandleParams object
+// with the ability to set a timeout on a request.
+func NewHandleParamsWithTimeout(timeout time.Duration) *HandleParams {
+ return &HandleParams{
+ timeout: timeout,
+ }
+}
+
+// NewHandleParamsWithContext creates a new HandleParams object
+// with the ability to set a context for a request.
+func NewHandleParamsWithContext(ctx context.Context) *HandleParams {
+ return &HandleParams{
+ Context: ctx,
+ }
+}
+
+// NewHandleParamsWithHTTPClient creates a new HandleParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewHandleParamsWithHTTPClient(client *http.Client) *HandleParams {
+ return &HandleParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+HandleParams contains all the parameters to send to the API endpoint
+
+ for the handle operation.
+
+ Typically these are written to a http.Request.
+*/
+type HandleParams struct {
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the handle params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *HandleParams) WithDefaults() *HandleParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the handle params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *HandleParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the handle params
+func (o *HandleParams) WithTimeout(timeout time.Duration) *HandleParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the handle params
+func (o *HandleParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the handle params
+func (o *HandleParams) WithContext(ctx context.Context) *HandleParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the handle params
+func (o *HandleParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the handle params
+func (o *HandleParams) WithHTTPClient(client *http.Client) *HandleParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the handle params
+func (o *HandleParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *HandleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/handle/handle_responses.go b/falcon/client/handle/handle_responses.go
new file mode 100644
index 00000000..31038f1a
--- /dev/null
+++ b/falcon/client/handle/handle_responses.go
@@ -0,0 +1,392 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package handle
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// HandleReader is a Reader for the Handle structure.
+type HandleReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *HandleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewHandleOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewHandleForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewHandleTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /data-security-dspm/entities/kafka-rest-produce/v1] handle", response, response.Code())
+ }
+}
+
+// NewHandleOK creates a HandleOK with default headers values
+func NewHandleOK() *HandleOK {
+ return &HandleOK{}
+}
+
+/*
+HandleOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type HandleOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload map[string]string
+}
+
+// IsSuccess returns true when this handle o k response has a 2xx status code
+func (o *HandleOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this handle o k response has a 3xx status code
+func (o *HandleOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this handle o k response has a 4xx status code
+func (o *HandleOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this handle o k response has a 5xx status code
+func (o *HandleOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this handle o k response a status code equal to that given
+func (o *HandleOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the handle o k response
+func (o *HandleOK) Code() int {
+ return 200
+}
+
+func (o *HandleOK) Error() string {
+ return fmt.Sprintf("[POST /data-security-dspm/entities/kafka-rest-produce/v1][%d] handleOK %+v", 200, o.Payload)
+}
+
+func (o *HandleOK) String() string {
+ return fmt.Sprintf("[POST /data-security-dspm/entities/kafka-rest-produce/v1][%d] handleOK %+v", 200, o.Payload)
+}
+
+func (o *HandleOK) GetPayload() map[string]string {
+ return o.Payload
+}
+
+func (o *HandleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // response payload
+ if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewHandleForbidden creates a HandleForbidden with default headers values
+func NewHandleForbidden() *HandleForbidden {
+ return &HandleForbidden{}
+}
+
+/*
+HandleForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type HandleForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this handle forbidden response has a 2xx status code
+func (o *HandleForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this handle forbidden response has a 3xx status code
+func (o *HandleForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this handle forbidden response has a 4xx status code
+func (o *HandleForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this handle forbidden response has a 5xx status code
+func (o *HandleForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this handle forbidden response a status code equal to that given
+func (o *HandleForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the handle forbidden response
+func (o *HandleForbidden) Code() int {
+ return 403
+}
+
+func (o *HandleForbidden) Error() string {
+ return fmt.Sprintf("[POST /data-security-dspm/entities/kafka-rest-produce/v1][%d] handleForbidden %+v", 403, o.Payload)
+}
+
+func (o *HandleForbidden) String() string {
+ return fmt.Sprintf("[POST /data-security-dspm/entities/kafka-rest-produce/v1][%d] handleForbidden %+v", 403, o.Payload)
+}
+
+func (o *HandleForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *HandleForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewHandleTooManyRequests creates a HandleTooManyRequests with default headers values
+func NewHandleTooManyRequests() *HandleTooManyRequests {
+ return &HandleTooManyRequests{}
+}
+
+/*
+HandleTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type HandleTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this handle too many requests response has a 2xx status code
+func (o *HandleTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this handle too many requests response has a 3xx status code
+func (o *HandleTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this handle too many requests response has a 4xx status code
+func (o *HandleTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this handle too many requests response has a 5xx status code
+func (o *HandleTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this handle too many requests response a status code equal to that given
+func (o *HandleTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the handle too many requests response
+func (o *HandleTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *HandleTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /data-security-dspm/entities/kafka-rest-produce/v1][%d] handleTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *HandleTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /data-security-dspm/entities/kafka-rest-produce/v1][%d] handleTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *HandleTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *HandleTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/host_migration/get_host_migration_i_ds_v1_parameters.go b/falcon/client/host_migration/get_host_migration_i_ds_v1_parameters.go
index ece5fc5c..ec7fd261 100644
--- a/falcon/client/host_migration/get_host_migration_i_ds_v1_parameters.go
+++ b/falcon/client/host_migration/get_host_migration_i_ds_v1_parameters.go
@@ -64,7 +64,7 @@ type GetHostMigrationIDsV1Params struct {
/* Filter.
- The filter expression that should be used to limit the results. Valid fields: host_migration_id, groups, hostgroups, hostname, status, migration_id, created_time, static_host_groups, target_cid, source_cid, id
+ The filter expression that should be used to limit the results. Valid fields: hostname, status, source_cid, id, created_time, groups, hostgroups, static_host_groups, target_cid, migration_id, host_migration_id
*/
Filter *string
diff --git a/falcon/client/host_migration/get_migration_i_ds_v1_parameters.go b/falcon/client/host_migration/get_migration_i_ds_v1_parameters.go
index 8e8d54c4..098f2f0f 100644
--- a/falcon/client/host_migration/get_migration_i_ds_v1_parameters.go
+++ b/falcon/client/host_migration/get_migration_i_ds_v1_parameters.go
@@ -64,7 +64,7 @@ type GetMigrationIDsV1Params struct {
/* Filter.
- The filter expression that should be used to limit the results. Valid fields: target_cid, status, migration_status, created_by, created_time, name, id, migration_id
+ The filter expression that should be used to limit the results. Valid fields: status, migration_status, created_by, created_time, name, id, migration_id, target_cid
*/
Filter *string
diff --git a/falcon/client/hosts/get_online_state_v1_responses.go b/falcon/client/hosts/get_online_state_v1_responses.go
index bd1d3974..98535a52 100644
--- a/falcon/client/hosts/get_online_state_v1_responses.go
+++ b/falcon/client/hosts/get_online_state_v1_responses.go
@@ -49,6 +49,12 @@ func (o *GetOnlineStateV1Reader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetOnlineStateV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /devices/entities/online-state/v1] GetOnlineState.V1", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetOnlineStateV1TooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewGetOnlineStateV1InternalServerError creates a GetOnlineStateV1InternalServerError with default headers values
+func NewGetOnlineStateV1InternalServerError() *GetOnlineStateV1InternalServerError {
+ return &GetOnlineStateV1InternalServerError{}
+}
+
+/*
+GetOnlineStateV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetOnlineStateV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get online state v1 internal server error response has a 2xx status code
+func (o *GetOnlineStateV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get online state v1 internal server error response has a 3xx status code
+func (o *GetOnlineStateV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get online state v1 internal server error response has a 4xx status code
+func (o *GetOnlineStateV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get online state v1 internal server error response has a 5xx status code
+func (o *GetOnlineStateV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get online state v1 internal server error response a status code equal to that given
+func (o *GetOnlineStateV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get online state v1 internal server error response
+func (o *GetOnlineStateV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetOnlineStateV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /devices/entities/online-state/v1][%d] getOnlineStateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetOnlineStateV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /devices/entities/online-state/v1][%d] getOnlineStateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetOnlineStateV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetOnlineStateV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/hosts/query_devices_by_filter_scroll_parameters.go b/falcon/client/hosts/query_devices_by_filter_scroll_parameters.go
index 5a7c1c75..c2438a10 100644
--- a/falcon/client/hosts/query_devices_by_filter_scroll_parameters.go
+++ b/falcon/client/hosts/query_devices_by_filter_scroll_parameters.go
@@ -70,13 +70,13 @@ type QueryDevicesByFilterScrollParams struct {
/* Limit.
- The maximum records to return. [1-5000]
+ The maximum records to return. [1-10000]
*/
Limit *int64
/* Offset.
- The offset to page from, for the next result set
+ The offset to page from, provided from the previous scroll call, for the next result set. For the first call, do not supply an offset.
*/
Offset *string
diff --git a/falcon/client/humio_auth_proxy/get_lookup_from_package_v1_parameters.go b/falcon/client/humio_auth_proxy/get_lookup_from_package_v1_parameters.go
new file mode 100644
index 00000000..6599248f
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/get_lookup_from_package_v1_parameters.go
@@ -0,0 +1,195 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetLookupFromPackageV1Params creates a new GetLookupFromPackageV1Params object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetLookupFromPackageV1Params() *GetLookupFromPackageV1Params {
+ return &GetLookupFromPackageV1Params{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetLookupFromPackageV1ParamsWithTimeout creates a new GetLookupFromPackageV1Params object
+// with the ability to set a timeout on a request.
+func NewGetLookupFromPackageV1ParamsWithTimeout(timeout time.Duration) *GetLookupFromPackageV1Params {
+ return &GetLookupFromPackageV1Params{
+ timeout: timeout,
+ }
+}
+
+// NewGetLookupFromPackageV1ParamsWithContext creates a new GetLookupFromPackageV1Params object
+// with the ability to set a context for a request.
+func NewGetLookupFromPackageV1ParamsWithContext(ctx context.Context) *GetLookupFromPackageV1Params {
+ return &GetLookupFromPackageV1Params{
+ Context: ctx,
+ }
+}
+
+// NewGetLookupFromPackageV1ParamsWithHTTPClient creates a new GetLookupFromPackageV1Params object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetLookupFromPackageV1ParamsWithHTTPClient(client *http.Client) *GetLookupFromPackageV1Params {
+ return &GetLookupFromPackageV1Params{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetLookupFromPackageV1Params contains all the parameters to send to the API endpoint
+
+ for the get lookup from package v1 operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetLookupFromPackageV1Params struct {
+
+ /* Filename.
+
+ name of lookup file
+ */
+ Filename string
+
+ /* Package.
+
+ name of package
+ */
+ Package string
+
+ /* Repository.
+
+ name of repository
+ */
+ Repository string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get lookup from package v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetLookupFromPackageV1Params) WithDefaults() *GetLookupFromPackageV1Params {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get lookup from package v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetLookupFromPackageV1Params) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) WithTimeout(timeout time.Duration) *GetLookupFromPackageV1Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) WithContext(ctx context.Context) *GetLookupFromPackageV1Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) WithHTTPClient(client *http.Client) *GetLookupFromPackageV1Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithFilename adds the filename to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) WithFilename(filename string) *GetLookupFromPackageV1Params {
+ o.SetFilename(filename)
+ return o
+}
+
+// SetFilename adds the filename to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) SetFilename(filename string) {
+ o.Filename = filename
+}
+
+// WithPackage adds the packageVar to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) WithPackage(packageVar string) *GetLookupFromPackageV1Params {
+ o.SetPackage(packageVar)
+ return o
+}
+
+// SetPackage adds the package to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) SetPackage(packageVar string) {
+ o.Package = packageVar
+}
+
+// WithRepository adds the repository to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) WithRepository(repository string) *GetLookupFromPackageV1Params {
+ o.SetRepository(repository)
+ return o
+}
+
+// SetRepository adds the repository to the get lookup from package v1 params
+func (o *GetLookupFromPackageV1Params) SetRepository(repository string) {
+ o.Repository = repository
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetLookupFromPackageV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param filename
+ if err := r.SetPathParam("filename", o.Filename); err != nil {
+ return err
+ }
+
+ // path param package
+ if err := r.SetPathParam("package", o.Package); err != nil {
+ return err
+ }
+
+ // path param repository
+ if err := r.SetPathParam("repository", o.Repository); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/get_lookup_from_package_v1_responses.go b/falcon/client/humio_auth_proxy/get_lookup_from_package_v1_responses.go
new file mode 100644
index 00000000..156447a1
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/get_lookup_from_package_v1_responses.go
@@ -0,0 +1,613 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetLookupFromPackageV1Reader is a Reader for the GetLookupFromPackageV1 structure.
+type GetLookupFromPackageV1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetLookupFromPackageV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetLookupFromPackageV1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetLookupFromPackageV1Unauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetLookupFromPackageV1Forbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetLookupFromPackageV1TooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetLookupFromPackageV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}] GetLookupFromPackageV1", response, response.Code())
+ }
+}
+
+// NewGetLookupFromPackageV1OK creates a GetLookupFromPackageV1OK with default headers values
+func NewGetLookupFromPackageV1OK() *GetLookupFromPackageV1OK {
+ return &GetLookupFromPackageV1OK{}
+}
+
+/*
+GetLookupFromPackageV1OK describes a response with status code 200, with default header values.
+
+GetLookupFromPackageV1OK get lookup from package v1 o k
+*/
+type GetLookupFromPackageV1OK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this get lookup from package v1 o k response has a 2xx status code
+func (o *GetLookupFromPackageV1OK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get lookup from package v1 o k response has a 3xx status code
+func (o *GetLookupFromPackageV1OK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup from package v1 o k response has a 4xx status code
+func (o *GetLookupFromPackageV1OK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get lookup from package v1 o k response has a 5xx status code
+func (o *GetLookupFromPackageV1OK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup from package v1 o k response a status code equal to that given
+func (o *GetLookupFromPackageV1OK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get lookup from package v1 o k response
+func (o *GetLookupFromPackageV1OK) Code() int {
+ return 200
+}
+
+func (o *GetLookupFromPackageV1OK) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}][%d] getLookupFromPackageV1OK ", 200)
+}
+
+func (o *GetLookupFromPackageV1OK) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}][%d] getLookupFromPackageV1OK ", 200)
+}
+
+func (o *GetLookupFromPackageV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewGetLookupFromPackageV1Unauthorized creates a GetLookupFromPackageV1Unauthorized with default headers values
+func NewGetLookupFromPackageV1Unauthorized() *GetLookupFromPackageV1Unauthorized {
+ return &GetLookupFromPackageV1Unauthorized{}
+}
+
+/*
+GetLookupFromPackageV1Unauthorized describes a response with status code 401, with default header values.
+
+Requestor is not authorized to access resource
+*/
+type GetLookupFromPackageV1Unauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get lookup from package v1 unauthorized response has a 2xx status code
+func (o *GetLookupFromPackageV1Unauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup from package v1 unauthorized response has a 3xx status code
+func (o *GetLookupFromPackageV1Unauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup from package v1 unauthorized response has a 4xx status code
+func (o *GetLookupFromPackageV1Unauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get lookup from package v1 unauthorized response has a 5xx status code
+func (o *GetLookupFromPackageV1Unauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup from package v1 unauthorized response a status code equal to that given
+func (o *GetLookupFromPackageV1Unauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get lookup from package v1 unauthorized response
+func (o *GetLookupFromPackageV1Unauthorized) Code() int {
+ return 401
+}
+
+func (o *GetLookupFromPackageV1Unauthorized) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}][%d] getLookupFromPackageV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetLookupFromPackageV1Unauthorized) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}][%d] getLookupFromPackageV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetLookupFromPackageV1Unauthorized) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetLookupFromPackageV1Unauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetLookupFromPackageV1Forbidden creates a GetLookupFromPackageV1Forbidden with default headers values
+func NewGetLookupFromPackageV1Forbidden() *GetLookupFromPackageV1Forbidden {
+ return &GetLookupFromPackageV1Forbidden{}
+}
+
+/*
+GetLookupFromPackageV1Forbidden describes a response with status code 403, with default header values.
+
+File access is not allowed
+*/
+type GetLookupFromPackageV1Forbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get lookup from package v1 forbidden response has a 2xx status code
+func (o *GetLookupFromPackageV1Forbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup from package v1 forbidden response has a 3xx status code
+func (o *GetLookupFromPackageV1Forbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup from package v1 forbidden response has a 4xx status code
+func (o *GetLookupFromPackageV1Forbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get lookup from package v1 forbidden response has a 5xx status code
+func (o *GetLookupFromPackageV1Forbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup from package v1 forbidden response a status code equal to that given
+func (o *GetLookupFromPackageV1Forbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get lookup from package v1 forbidden response
+func (o *GetLookupFromPackageV1Forbidden) Code() int {
+ return 403
+}
+
+func (o *GetLookupFromPackageV1Forbidden) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}][%d] getLookupFromPackageV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *GetLookupFromPackageV1Forbidden) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}][%d] getLookupFromPackageV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *GetLookupFromPackageV1Forbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetLookupFromPackageV1Forbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetLookupFromPackageV1TooManyRequests creates a GetLookupFromPackageV1TooManyRequests with default headers values
+func NewGetLookupFromPackageV1TooManyRequests() *GetLookupFromPackageV1TooManyRequests {
+ return &GetLookupFromPackageV1TooManyRequests{}
+}
+
+/*
+GetLookupFromPackageV1TooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetLookupFromPackageV1TooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get lookup from package v1 too many requests response has a 2xx status code
+func (o *GetLookupFromPackageV1TooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup from package v1 too many requests response has a 3xx status code
+func (o *GetLookupFromPackageV1TooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup from package v1 too many requests response has a 4xx status code
+func (o *GetLookupFromPackageV1TooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get lookup from package v1 too many requests response has a 5xx status code
+func (o *GetLookupFromPackageV1TooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup from package v1 too many requests response a status code equal to that given
+func (o *GetLookupFromPackageV1TooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get lookup from package v1 too many requests response
+func (o *GetLookupFromPackageV1TooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetLookupFromPackageV1TooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}][%d] getLookupFromPackageV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetLookupFromPackageV1TooManyRequests) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}][%d] getLookupFromPackageV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetLookupFromPackageV1TooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetLookupFromPackageV1TooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetLookupFromPackageV1InternalServerError creates a GetLookupFromPackageV1InternalServerError with default headers values
+func NewGetLookupFromPackageV1InternalServerError() *GetLookupFromPackageV1InternalServerError {
+ return &GetLookupFromPackageV1InternalServerError{}
+}
+
+/*
+GetLookupFromPackageV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected error occurred
+*/
+type GetLookupFromPackageV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get lookup from package v1 internal server error response has a 2xx status code
+func (o *GetLookupFromPackageV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup from package v1 internal server error response has a 3xx status code
+func (o *GetLookupFromPackageV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup from package v1 internal server error response has a 4xx status code
+func (o *GetLookupFromPackageV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get lookup from package v1 internal server error response has a 5xx status code
+func (o *GetLookupFromPackageV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get lookup from package v1 internal server error response a status code equal to that given
+func (o *GetLookupFromPackageV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get lookup from package v1 internal server error response
+func (o *GetLookupFromPackageV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetLookupFromPackageV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}][%d] getLookupFromPackageV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetLookupFromPackageV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{package}/{filename}][%d] getLookupFromPackageV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetLookupFromPackageV1InternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetLookupFromPackageV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/get_lookup_from_package_with_namespace_v1_parameters.go b/falcon/client/humio_auth_proxy/get_lookup_from_package_with_namespace_v1_parameters.go
new file mode 100644
index 00000000..b7407eb8
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/get_lookup_from_package_with_namespace_v1_parameters.go
@@ -0,0 +1,217 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetLookupFromPackageWithNamespaceV1Params creates a new GetLookupFromPackageWithNamespaceV1Params object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetLookupFromPackageWithNamespaceV1Params() *GetLookupFromPackageWithNamespaceV1Params {
+ return &GetLookupFromPackageWithNamespaceV1Params{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetLookupFromPackageWithNamespaceV1ParamsWithTimeout creates a new GetLookupFromPackageWithNamespaceV1Params object
+// with the ability to set a timeout on a request.
+func NewGetLookupFromPackageWithNamespaceV1ParamsWithTimeout(timeout time.Duration) *GetLookupFromPackageWithNamespaceV1Params {
+ return &GetLookupFromPackageWithNamespaceV1Params{
+ timeout: timeout,
+ }
+}
+
+// NewGetLookupFromPackageWithNamespaceV1ParamsWithContext creates a new GetLookupFromPackageWithNamespaceV1Params object
+// with the ability to set a context for a request.
+func NewGetLookupFromPackageWithNamespaceV1ParamsWithContext(ctx context.Context) *GetLookupFromPackageWithNamespaceV1Params {
+ return &GetLookupFromPackageWithNamespaceV1Params{
+ Context: ctx,
+ }
+}
+
+// NewGetLookupFromPackageWithNamespaceV1ParamsWithHTTPClient creates a new GetLookupFromPackageWithNamespaceV1Params object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetLookupFromPackageWithNamespaceV1ParamsWithHTTPClient(client *http.Client) *GetLookupFromPackageWithNamespaceV1Params {
+ return &GetLookupFromPackageWithNamespaceV1Params{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetLookupFromPackageWithNamespaceV1Params contains all the parameters to send to the API endpoint
+
+ for the get lookup from package with namespace v1 operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetLookupFromPackageWithNamespaceV1Params struct {
+
+ /* Filename.
+
+ name of lookup file
+ */
+ Filename string
+
+ /* Namespace.
+
+ name of namespace
+ */
+ Namespace string
+
+ /* Package.
+
+ name of package
+ */
+ Package string
+
+ /* Repository.
+
+ name of repository
+ */
+ Repository string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get lookup from package with namespace v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetLookupFromPackageWithNamespaceV1Params) WithDefaults() *GetLookupFromPackageWithNamespaceV1Params {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get lookup from package with namespace v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetLookupFromPackageWithNamespaceV1Params) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) WithTimeout(timeout time.Duration) *GetLookupFromPackageWithNamespaceV1Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) WithContext(ctx context.Context) *GetLookupFromPackageWithNamespaceV1Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) WithHTTPClient(client *http.Client) *GetLookupFromPackageWithNamespaceV1Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithFilename adds the filename to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) WithFilename(filename string) *GetLookupFromPackageWithNamespaceV1Params {
+ o.SetFilename(filename)
+ return o
+}
+
+// SetFilename adds the filename to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) SetFilename(filename string) {
+ o.Filename = filename
+}
+
+// WithNamespace adds the namespace to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) WithNamespace(namespace string) *GetLookupFromPackageWithNamespaceV1Params {
+ o.SetNamespace(namespace)
+ return o
+}
+
+// SetNamespace adds the namespace to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) SetNamespace(namespace string) {
+ o.Namespace = namespace
+}
+
+// WithPackage adds the packageVar to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) WithPackage(packageVar string) *GetLookupFromPackageWithNamespaceV1Params {
+ o.SetPackage(packageVar)
+ return o
+}
+
+// SetPackage adds the package to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) SetPackage(packageVar string) {
+ o.Package = packageVar
+}
+
+// WithRepository adds the repository to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) WithRepository(repository string) *GetLookupFromPackageWithNamespaceV1Params {
+ o.SetRepository(repository)
+ return o
+}
+
+// SetRepository adds the repository to the get lookup from package with namespace v1 params
+func (o *GetLookupFromPackageWithNamespaceV1Params) SetRepository(repository string) {
+ o.Repository = repository
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetLookupFromPackageWithNamespaceV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param filename
+ if err := r.SetPathParam("filename", o.Filename); err != nil {
+ return err
+ }
+
+ // path param namespace
+ if err := r.SetPathParam("namespace", o.Namespace); err != nil {
+ return err
+ }
+
+ // path param package
+ if err := r.SetPathParam("package", o.Package); err != nil {
+ return err
+ }
+
+ // path param repository
+ if err := r.SetPathParam("repository", o.Repository); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/get_lookup_from_package_with_namespace_v1_responses.go b/falcon/client/humio_auth_proxy/get_lookup_from_package_with_namespace_v1_responses.go
new file mode 100644
index 00000000..bada33d5
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/get_lookup_from_package_with_namespace_v1_responses.go
@@ -0,0 +1,613 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetLookupFromPackageWithNamespaceV1Reader is a Reader for the GetLookupFromPackageWithNamespaceV1 structure.
+type GetLookupFromPackageWithNamespaceV1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetLookupFromPackageWithNamespaceV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetLookupFromPackageWithNamespaceV1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetLookupFromPackageWithNamespaceV1Unauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetLookupFromPackageWithNamespaceV1Forbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetLookupFromPackageWithNamespaceV1TooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetLookupFromPackageWithNamespaceV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}] GetLookupFromPackageWithNamespaceV1", response, response.Code())
+ }
+}
+
+// NewGetLookupFromPackageWithNamespaceV1OK creates a GetLookupFromPackageWithNamespaceV1OK with default headers values
+func NewGetLookupFromPackageWithNamespaceV1OK() *GetLookupFromPackageWithNamespaceV1OK {
+ return &GetLookupFromPackageWithNamespaceV1OK{}
+}
+
+/*
+GetLookupFromPackageWithNamespaceV1OK describes a response with status code 200, with default header values.
+
+GetLookupFromPackageWithNamespaceV1OK get lookup from package with namespace v1 o k
+*/
+type GetLookupFromPackageWithNamespaceV1OK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this get lookup from package with namespace v1 o k response has a 2xx status code
+func (o *GetLookupFromPackageWithNamespaceV1OK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get lookup from package with namespace v1 o k response has a 3xx status code
+func (o *GetLookupFromPackageWithNamespaceV1OK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup from package with namespace v1 o k response has a 4xx status code
+func (o *GetLookupFromPackageWithNamespaceV1OK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get lookup from package with namespace v1 o k response has a 5xx status code
+func (o *GetLookupFromPackageWithNamespaceV1OK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup from package with namespace v1 o k response a status code equal to that given
+func (o *GetLookupFromPackageWithNamespaceV1OK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get lookup from package with namespace v1 o k response
+func (o *GetLookupFromPackageWithNamespaceV1OK) Code() int {
+ return 200
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1OK) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}][%d] getLookupFromPackageWithNamespaceV1OK ", 200)
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1OK) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}][%d] getLookupFromPackageWithNamespaceV1OK ", 200)
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewGetLookupFromPackageWithNamespaceV1Unauthorized creates a GetLookupFromPackageWithNamespaceV1Unauthorized with default headers values
+func NewGetLookupFromPackageWithNamespaceV1Unauthorized() *GetLookupFromPackageWithNamespaceV1Unauthorized {
+ return &GetLookupFromPackageWithNamespaceV1Unauthorized{}
+}
+
+/*
+GetLookupFromPackageWithNamespaceV1Unauthorized describes a response with status code 401, with default header values.
+
+Requestor is not authorized to access resource
+*/
+type GetLookupFromPackageWithNamespaceV1Unauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get lookup from package with namespace v1 unauthorized response has a 2xx status code
+func (o *GetLookupFromPackageWithNamespaceV1Unauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup from package with namespace v1 unauthorized response has a 3xx status code
+func (o *GetLookupFromPackageWithNamespaceV1Unauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup from package with namespace v1 unauthorized response has a 4xx status code
+func (o *GetLookupFromPackageWithNamespaceV1Unauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get lookup from package with namespace v1 unauthorized response has a 5xx status code
+func (o *GetLookupFromPackageWithNamespaceV1Unauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup from package with namespace v1 unauthorized response a status code equal to that given
+func (o *GetLookupFromPackageWithNamespaceV1Unauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get lookup from package with namespace v1 unauthorized response
+func (o *GetLookupFromPackageWithNamespaceV1Unauthorized) Code() int {
+ return 401
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1Unauthorized) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}][%d] getLookupFromPackageWithNamespaceV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1Unauthorized) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}][%d] getLookupFromPackageWithNamespaceV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1Unauthorized) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1Unauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetLookupFromPackageWithNamespaceV1Forbidden creates a GetLookupFromPackageWithNamespaceV1Forbidden with default headers values
+func NewGetLookupFromPackageWithNamespaceV1Forbidden() *GetLookupFromPackageWithNamespaceV1Forbidden {
+ return &GetLookupFromPackageWithNamespaceV1Forbidden{}
+}
+
+/*
+GetLookupFromPackageWithNamespaceV1Forbidden describes a response with status code 403, with default header values.
+
+File access is not allowed
+*/
+type GetLookupFromPackageWithNamespaceV1Forbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get lookup from package with namespace v1 forbidden response has a 2xx status code
+func (o *GetLookupFromPackageWithNamespaceV1Forbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup from package with namespace v1 forbidden response has a 3xx status code
+func (o *GetLookupFromPackageWithNamespaceV1Forbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup from package with namespace v1 forbidden response has a 4xx status code
+func (o *GetLookupFromPackageWithNamespaceV1Forbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get lookup from package with namespace v1 forbidden response has a 5xx status code
+func (o *GetLookupFromPackageWithNamespaceV1Forbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup from package with namespace v1 forbidden response a status code equal to that given
+func (o *GetLookupFromPackageWithNamespaceV1Forbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get lookup from package with namespace v1 forbidden response
+func (o *GetLookupFromPackageWithNamespaceV1Forbidden) Code() int {
+ return 403
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1Forbidden) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}][%d] getLookupFromPackageWithNamespaceV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1Forbidden) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}][%d] getLookupFromPackageWithNamespaceV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1Forbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1Forbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetLookupFromPackageWithNamespaceV1TooManyRequests creates a GetLookupFromPackageWithNamespaceV1TooManyRequests with default headers values
+func NewGetLookupFromPackageWithNamespaceV1TooManyRequests() *GetLookupFromPackageWithNamespaceV1TooManyRequests {
+ return &GetLookupFromPackageWithNamespaceV1TooManyRequests{}
+}
+
+/*
+GetLookupFromPackageWithNamespaceV1TooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetLookupFromPackageWithNamespaceV1TooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get lookup from package with namespace v1 too many requests response has a 2xx status code
+func (o *GetLookupFromPackageWithNamespaceV1TooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup from package with namespace v1 too many requests response has a 3xx status code
+func (o *GetLookupFromPackageWithNamespaceV1TooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup from package with namespace v1 too many requests response has a 4xx status code
+func (o *GetLookupFromPackageWithNamespaceV1TooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get lookup from package with namespace v1 too many requests response has a 5xx status code
+func (o *GetLookupFromPackageWithNamespaceV1TooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup from package with namespace v1 too many requests response a status code equal to that given
+func (o *GetLookupFromPackageWithNamespaceV1TooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get lookup from package with namespace v1 too many requests response
+func (o *GetLookupFromPackageWithNamespaceV1TooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1TooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}][%d] getLookupFromPackageWithNamespaceV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1TooManyRequests) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}][%d] getLookupFromPackageWithNamespaceV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1TooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1TooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetLookupFromPackageWithNamespaceV1InternalServerError creates a GetLookupFromPackageWithNamespaceV1InternalServerError with default headers values
+func NewGetLookupFromPackageWithNamespaceV1InternalServerError() *GetLookupFromPackageWithNamespaceV1InternalServerError {
+ return &GetLookupFromPackageWithNamespaceV1InternalServerError{}
+}
+
+/*
+GetLookupFromPackageWithNamespaceV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected error occurred
+*/
+type GetLookupFromPackageWithNamespaceV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get lookup from package with namespace v1 internal server error response has a 2xx status code
+func (o *GetLookupFromPackageWithNamespaceV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup from package with namespace v1 internal server error response has a 3xx status code
+func (o *GetLookupFromPackageWithNamespaceV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup from package with namespace v1 internal server error response has a 4xx status code
+func (o *GetLookupFromPackageWithNamespaceV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get lookup from package with namespace v1 internal server error response has a 5xx status code
+func (o *GetLookupFromPackageWithNamespaceV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get lookup from package with namespace v1 internal server error response a status code equal to that given
+func (o *GetLookupFromPackageWithNamespaceV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get lookup from package with namespace v1 internal server error response
+func (o *GetLookupFromPackageWithNamespaceV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}][%d] getLookupFromPackageWithNamespaceV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}][%d] getLookupFromPackageWithNamespaceV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1InternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetLookupFromPackageWithNamespaceV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/get_lookup_v1_parameters.go b/falcon/client/humio_auth_proxy/get_lookup_v1_parameters.go
new file mode 100644
index 00000000..fe0ac412
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/get_lookup_v1_parameters.go
@@ -0,0 +1,173 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetLookupV1Params creates a new GetLookupV1Params object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetLookupV1Params() *GetLookupV1Params {
+ return &GetLookupV1Params{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetLookupV1ParamsWithTimeout creates a new GetLookupV1Params object
+// with the ability to set a timeout on a request.
+func NewGetLookupV1ParamsWithTimeout(timeout time.Duration) *GetLookupV1Params {
+ return &GetLookupV1Params{
+ timeout: timeout,
+ }
+}
+
+// NewGetLookupV1ParamsWithContext creates a new GetLookupV1Params object
+// with the ability to set a context for a request.
+func NewGetLookupV1ParamsWithContext(ctx context.Context) *GetLookupV1Params {
+ return &GetLookupV1Params{
+ Context: ctx,
+ }
+}
+
+// NewGetLookupV1ParamsWithHTTPClient creates a new GetLookupV1Params object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetLookupV1ParamsWithHTTPClient(client *http.Client) *GetLookupV1Params {
+ return &GetLookupV1Params{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetLookupV1Params contains all the parameters to send to the API endpoint
+
+ for the get lookup v1 operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetLookupV1Params struct {
+
+ /* Filename.
+
+ name of lookup file
+ */
+ Filename string
+
+ /* Repository.
+
+ name of repository
+ */
+ Repository string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get lookup v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetLookupV1Params) WithDefaults() *GetLookupV1Params {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get lookup v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetLookupV1Params) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get lookup v1 params
+func (o *GetLookupV1Params) WithTimeout(timeout time.Duration) *GetLookupV1Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get lookup v1 params
+func (o *GetLookupV1Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get lookup v1 params
+func (o *GetLookupV1Params) WithContext(ctx context.Context) *GetLookupV1Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get lookup v1 params
+func (o *GetLookupV1Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get lookup v1 params
+func (o *GetLookupV1Params) WithHTTPClient(client *http.Client) *GetLookupV1Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get lookup v1 params
+func (o *GetLookupV1Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithFilename adds the filename to the get lookup v1 params
+func (o *GetLookupV1Params) WithFilename(filename string) *GetLookupV1Params {
+ o.SetFilename(filename)
+ return o
+}
+
+// SetFilename adds the filename to the get lookup v1 params
+func (o *GetLookupV1Params) SetFilename(filename string) {
+ o.Filename = filename
+}
+
+// WithRepository adds the repository to the get lookup v1 params
+func (o *GetLookupV1Params) WithRepository(repository string) *GetLookupV1Params {
+ o.SetRepository(repository)
+ return o
+}
+
+// SetRepository adds the repository to the get lookup v1 params
+func (o *GetLookupV1Params) SetRepository(repository string) {
+ o.Repository = repository
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetLookupV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param filename
+ if err := r.SetPathParam("filename", o.Filename); err != nil {
+ return err
+ }
+
+ // path param repository
+ if err := r.SetPathParam("repository", o.Repository); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/get_lookup_v1_responses.go b/falcon/client/humio_auth_proxy/get_lookup_v1_responses.go
new file mode 100644
index 00000000..57918a14
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/get_lookup_v1_responses.go
@@ -0,0 +1,613 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetLookupV1Reader is a Reader for the GetLookupV1 structure.
+type GetLookupV1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetLookupV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetLookupV1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetLookupV1Unauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetLookupV1Forbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetLookupV1TooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetLookupV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /humio/api/v1/repositories/{repository}/files/{filename}] GetLookupV1", response, response.Code())
+ }
+}
+
+// NewGetLookupV1OK creates a GetLookupV1OK with default headers values
+func NewGetLookupV1OK() *GetLookupV1OK {
+ return &GetLookupV1OK{}
+}
+
+/*
+GetLookupV1OK describes a response with status code 200, with default header values.
+
+GetLookupV1OK get lookup v1 o k
+*/
+type GetLookupV1OK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this get lookup v1 o k response has a 2xx status code
+func (o *GetLookupV1OK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get lookup v1 o k response has a 3xx status code
+func (o *GetLookupV1OK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup v1 o k response has a 4xx status code
+func (o *GetLookupV1OK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get lookup v1 o k response has a 5xx status code
+func (o *GetLookupV1OK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup v1 o k response a status code equal to that given
+func (o *GetLookupV1OK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get lookup v1 o k response
+func (o *GetLookupV1OK) Code() int {
+ return 200
+}
+
+func (o *GetLookupV1OK) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{filename}][%d] getLookupV1OK ", 200)
+}
+
+func (o *GetLookupV1OK) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{filename}][%d] getLookupV1OK ", 200)
+}
+
+func (o *GetLookupV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewGetLookupV1Unauthorized creates a GetLookupV1Unauthorized with default headers values
+func NewGetLookupV1Unauthorized() *GetLookupV1Unauthorized {
+ return &GetLookupV1Unauthorized{}
+}
+
+/*
+GetLookupV1Unauthorized describes a response with status code 401, with default header values.
+
+Requestor is not authorized to access resource
+*/
+type GetLookupV1Unauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get lookup v1 unauthorized response has a 2xx status code
+func (o *GetLookupV1Unauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup v1 unauthorized response has a 3xx status code
+func (o *GetLookupV1Unauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup v1 unauthorized response has a 4xx status code
+func (o *GetLookupV1Unauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get lookup v1 unauthorized response has a 5xx status code
+func (o *GetLookupV1Unauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup v1 unauthorized response a status code equal to that given
+func (o *GetLookupV1Unauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get lookup v1 unauthorized response
+func (o *GetLookupV1Unauthorized) Code() int {
+ return 401
+}
+
+func (o *GetLookupV1Unauthorized) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{filename}][%d] getLookupV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetLookupV1Unauthorized) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{filename}][%d] getLookupV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetLookupV1Unauthorized) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetLookupV1Unauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetLookupV1Forbidden creates a GetLookupV1Forbidden with default headers values
+func NewGetLookupV1Forbidden() *GetLookupV1Forbidden {
+ return &GetLookupV1Forbidden{}
+}
+
+/*
+GetLookupV1Forbidden describes a response with status code 403, with default header values.
+
+File access is not allowed
+*/
+type GetLookupV1Forbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get lookup v1 forbidden response has a 2xx status code
+func (o *GetLookupV1Forbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup v1 forbidden response has a 3xx status code
+func (o *GetLookupV1Forbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup v1 forbidden response has a 4xx status code
+func (o *GetLookupV1Forbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get lookup v1 forbidden response has a 5xx status code
+func (o *GetLookupV1Forbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup v1 forbidden response a status code equal to that given
+func (o *GetLookupV1Forbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get lookup v1 forbidden response
+func (o *GetLookupV1Forbidden) Code() int {
+ return 403
+}
+
+func (o *GetLookupV1Forbidden) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{filename}][%d] getLookupV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *GetLookupV1Forbidden) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{filename}][%d] getLookupV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *GetLookupV1Forbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetLookupV1Forbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetLookupV1TooManyRequests creates a GetLookupV1TooManyRequests with default headers values
+func NewGetLookupV1TooManyRequests() *GetLookupV1TooManyRequests {
+ return &GetLookupV1TooManyRequests{}
+}
+
+/*
+GetLookupV1TooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetLookupV1TooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get lookup v1 too many requests response has a 2xx status code
+func (o *GetLookupV1TooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup v1 too many requests response has a 3xx status code
+func (o *GetLookupV1TooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup v1 too many requests response has a 4xx status code
+func (o *GetLookupV1TooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get lookup v1 too many requests response has a 5xx status code
+func (o *GetLookupV1TooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get lookup v1 too many requests response a status code equal to that given
+func (o *GetLookupV1TooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get lookup v1 too many requests response
+func (o *GetLookupV1TooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetLookupV1TooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{filename}][%d] getLookupV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetLookupV1TooManyRequests) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{filename}][%d] getLookupV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetLookupV1TooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetLookupV1TooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetLookupV1InternalServerError creates a GetLookupV1InternalServerError with default headers values
+func NewGetLookupV1InternalServerError() *GetLookupV1InternalServerError {
+ return &GetLookupV1InternalServerError{}
+}
+
+/*
+GetLookupV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected error occurred
+*/
+type GetLookupV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get lookup v1 internal server error response has a 2xx status code
+func (o *GetLookupV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get lookup v1 internal server error response has a 3xx status code
+func (o *GetLookupV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get lookup v1 internal server error response has a 4xx status code
+func (o *GetLookupV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get lookup v1 internal server error response has a 5xx status code
+func (o *GetLookupV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get lookup v1 internal server error response a status code equal to that given
+func (o *GetLookupV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get lookup v1 internal server error response
+func (o *GetLookupV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetLookupV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{filename}][%d] getLookupV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetLookupV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/files/{filename}][%d] getLookupV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetLookupV1InternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetLookupV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/get_search_status_v1_parameters.go b/falcon/client/humio_auth_proxy/get_search_status_v1_parameters.go
new file mode 100644
index 00000000..587bc029
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/get_search_status_v1_parameters.go
@@ -0,0 +1,173 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetSearchStatusV1Params creates a new GetSearchStatusV1Params object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetSearchStatusV1Params() *GetSearchStatusV1Params {
+ return &GetSearchStatusV1Params{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetSearchStatusV1ParamsWithTimeout creates a new GetSearchStatusV1Params object
+// with the ability to set a timeout on a request.
+func NewGetSearchStatusV1ParamsWithTimeout(timeout time.Duration) *GetSearchStatusV1Params {
+ return &GetSearchStatusV1Params{
+ timeout: timeout,
+ }
+}
+
+// NewGetSearchStatusV1ParamsWithContext creates a new GetSearchStatusV1Params object
+// with the ability to set a context for a request.
+func NewGetSearchStatusV1ParamsWithContext(ctx context.Context) *GetSearchStatusV1Params {
+ return &GetSearchStatusV1Params{
+ Context: ctx,
+ }
+}
+
+// NewGetSearchStatusV1ParamsWithHTTPClient creates a new GetSearchStatusV1Params object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetSearchStatusV1ParamsWithHTTPClient(client *http.Client) *GetSearchStatusV1Params {
+ return &GetSearchStatusV1Params{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetSearchStatusV1Params contains all the parameters to send to the API endpoint
+
+ for the get search status v1 operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetSearchStatusV1Params struct {
+
+ /* ID.
+
+ id of query
+ */
+ ID string
+
+ /* Repository.
+
+ name of repository
+ */
+ Repository string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get search status v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetSearchStatusV1Params) WithDefaults() *GetSearchStatusV1Params {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get search status v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetSearchStatusV1Params) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get search status v1 params
+func (o *GetSearchStatusV1Params) WithTimeout(timeout time.Duration) *GetSearchStatusV1Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get search status v1 params
+func (o *GetSearchStatusV1Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get search status v1 params
+func (o *GetSearchStatusV1Params) WithContext(ctx context.Context) *GetSearchStatusV1Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get search status v1 params
+func (o *GetSearchStatusV1Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get search status v1 params
+func (o *GetSearchStatusV1Params) WithHTTPClient(client *http.Client) *GetSearchStatusV1Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get search status v1 params
+func (o *GetSearchStatusV1Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithID adds the id to the get search status v1 params
+func (o *GetSearchStatusV1Params) WithID(id string) *GetSearchStatusV1Params {
+ o.SetID(id)
+ return o
+}
+
+// SetID adds the id to the get search status v1 params
+func (o *GetSearchStatusV1Params) SetID(id string) {
+ o.ID = id
+}
+
+// WithRepository adds the repository to the get search status v1 params
+func (o *GetSearchStatusV1Params) WithRepository(repository string) *GetSearchStatusV1Params {
+ o.SetRepository(repository)
+ return o
+}
+
+// SetRepository adds the repository to the get search status v1 params
+func (o *GetSearchStatusV1Params) SetRepository(repository string) {
+ o.Repository = repository
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetSearchStatusV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param id
+ if err := r.SetPathParam("id", o.ID); err != nil {
+ return err
+ }
+
+ // path param repository
+ if err := r.SetPathParam("repository", o.Repository); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/get_search_status_v1_responses.go b/falcon/client/humio_auth_proxy/get_search_status_v1_responses.go
new file mode 100644
index 00000000..d4452390
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/get_search_status_v1_responses.go
@@ -0,0 +1,729 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetSearchStatusV1Reader is a Reader for the GetSearchStatusV1 structure.
+type GetSearchStatusV1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetSearchStatusV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetSearchStatusV1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetSearchStatusV1Unauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetSearchStatusV1Forbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetSearchStatusV1NotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetSearchStatusV1TooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetSearchStatusV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}] GetSearchStatusV1", response, response.Code())
+ }
+}
+
+// NewGetSearchStatusV1OK creates a GetSearchStatusV1OK with default headers values
+func NewGetSearchStatusV1OK() *GetSearchStatusV1OK {
+ return &GetSearchStatusV1OK{}
+}
+
+/*
+GetSearchStatusV1OK describes a response with status code 200, with default header values.
+
+Return search status
+*/
+type GetSearchStatusV1OK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get search status v1 o k response has a 2xx status code
+func (o *GetSearchStatusV1OK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get search status v1 o k response has a 3xx status code
+func (o *GetSearchStatusV1OK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get search status v1 o k response has a 4xx status code
+func (o *GetSearchStatusV1OK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get search status v1 o k response has a 5xx status code
+func (o *GetSearchStatusV1OK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get search status v1 o k response a status code equal to that given
+func (o *GetSearchStatusV1OK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get search status v1 o k response
+func (o *GetSearchStatusV1OK) Code() int {
+ return 200
+}
+
+func (o *GetSearchStatusV1OK) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1OK %+v", 200, o.Payload)
+}
+
+func (o *GetSearchStatusV1OK) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1OK %+v", 200, o.Payload)
+}
+
+func (o *GetSearchStatusV1OK) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetSearchStatusV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetSearchStatusV1Unauthorized creates a GetSearchStatusV1Unauthorized with default headers values
+func NewGetSearchStatusV1Unauthorized() *GetSearchStatusV1Unauthorized {
+ return &GetSearchStatusV1Unauthorized{}
+}
+
+/*
+GetSearchStatusV1Unauthorized describes a response with status code 401, with default header values.
+
+Requestor is not authorized
+*/
+type GetSearchStatusV1Unauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get search status v1 unauthorized response has a 2xx status code
+func (o *GetSearchStatusV1Unauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get search status v1 unauthorized response has a 3xx status code
+func (o *GetSearchStatusV1Unauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get search status v1 unauthorized response has a 4xx status code
+func (o *GetSearchStatusV1Unauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get search status v1 unauthorized response has a 5xx status code
+func (o *GetSearchStatusV1Unauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get search status v1 unauthorized response a status code equal to that given
+func (o *GetSearchStatusV1Unauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get search status v1 unauthorized response
+func (o *GetSearchStatusV1Unauthorized) Code() int {
+ return 401
+}
+
+func (o *GetSearchStatusV1Unauthorized) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetSearchStatusV1Unauthorized) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetSearchStatusV1Unauthorized) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetSearchStatusV1Unauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetSearchStatusV1Forbidden creates a GetSearchStatusV1Forbidden with default headers values
+func NewGetSearchStatusV1Forbidden() *GetSearchStatusV1Forbidden {
+ return &GetSearchStatusV1Forbidden{}
+}
+
+/*
+GetSearchStatusV1Forbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetSearchStatusV1Forbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get search status v1 forbidden response has a 2xx status code
+func (o *GetSearchStatusV1Forbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get search status v1 forbidden response has a 3xx status code
+func (o *GetSearchStatusV1Forbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get search status v1 forbidden response has a 4xx status code
+func (o *GetSearchStatusV1Forbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get search status v1 forbidden response has a 5xx status code
+func (o *GetSearchStatusV1Forbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get search status v1 forbidden response a status code equal to that given
+func (o *GetSearchStatusV1Forbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get search status v1 forbidden response
+func (o *GetSearchStatusV1Forbidden) Code() int {
+ return 403
+}
+
+func (o *GetSearchStatusV1Forbidden) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *GetSearchStatusV1Forbidden) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *GetSearchStatusV1Forbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetSearchStatusV1Forbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetSearchStatusV1NotFound creates a GetSearchStatusV1NotFound with default headers values
+func NewGetSearchStatusV1NotFound() *GetSearchStatusV1NotFound {
+ return &GetSearchStatusV1NotFound{}
+}
+
+/*
+GetSearchStatusV1NotFound describes a response with status code 404, with default header values.
+
+Search has been stopped internally
+*/
+type GetSearchStatusV1NotFound struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this get search status v1 not found response has a 2xx status code
+func (o *GetSearchStatusV1NotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get search status v1 not found response has a 3xx status code
+func (o *GetSearchStatusV1NotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get search status v1 not found response has a 4xx status code
+func (o *GetSearchStatusV1NotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get search status v1 not found response has a 5xx status code
+func (o *GetSearchStatusV1NotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get search status v1 not found response a status code equal to that given
+func (o *GetSearchStatusV1NotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the get search status v1 not found response
+func (o *GetSearchStatusV1NotFound) Code() int {
+ return 404
+}
+
+func (o *GetSearchStatusV1NotFound) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1NotFound ", 404)
+}
+
+func (o *GetSearchStatusV1NotFound) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1NotFound ", 404)
+}
+
+func (o *GetSearchStatusV1NotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewGetSearchStatusV1TooManyRequests creates a GetSearchStatusV1TooManyRequests with default headers values
+func NewGetSearchStatusV1TooManyRequests() *GetSearchStatusV1TooManyRequests {
+ return &GetSearchStatusV1TooManyRequests{}
+}
+
+/*
+GetSearchStatusV1TooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetSearchStatusV1TooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get search status v1 too many requests response has a 2xx status code
+func (o *GetSearchStatusV1TooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get search status v1 too many requests response has a 3xx status code
+func (o *GetSearchStatusV1TooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get search status v1 too many requests response has a 4xx status code
+func (o *GetSearchStatusV1TooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get search status v1 too many requests response has a 5xx status code
+func (o *GetSearchStatusV1TooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get search status v1 too many requests response a status code equal to that given
+func (o *GetSearchStatusV1TooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get search status v1 too many requests response
+func (o *GetSearchStatusV1TooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetSearchStatusV1TooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetSearchStatusV1TooManyRequests) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetSearchStatusV1TooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetSearchStatusV1TooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetSearchStatusV1InternalServerError creates a GetSearchStatusV1InternalServerError with default headers values
+func NewGetSearchStatusV1InternalServerError() *GetSearchStatusV1InternalServerError {
+ return &GetSearchStatusV1InternalServerError{}
+}
+
+/*
+GetSearchStatusV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected error occurred
+*/
+type GetSearchStatusV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this get search status v1 internal server error response has a 2xx status code
+func (o *GetSearchStatusV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get search status v1 internal server error response has a 3xx status code
+func (o *GetSearchStatusV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get search status v1 internal server error response has a 4xx status code
+func (o *GetSearchStatusV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get search status v1 internal server error response has a 5xx status code
+func (o *GetSearchStatusV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get search status v1 internal server error response a status code equal to that given
+func (o *GetSearchStatusV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get search status v1 internal server error response
+func (o *GetSearchStatusV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetSearchStatusV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSearchStatusV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] getSearchStatusV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSearchStatusV1InternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *GetSearchStatusV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/humio_auth_proxy_client.go b/falcon/client/humio_auth_proxy/humio_auth_proxy_client.go
new file mode 100644
index 00000000..6f1ec5a5
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/humio_auth_proxy_client.go
@@ -0,0 +1,319 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new humio auth proxy API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for humio auth proxy API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetLookupFromPackageV1(params *GetLookupFromPackageV1Params, opts ...ClientOption) (*GetLookupFromPackageV1OK, error)
+
+ GetLookupFromPackageWithNamespaceV1(params *GetLookupFromPackageWithNamespaceV1Params, opts ...ClientOption) (*GetLookupFromPackageWithNamespaceV1OK, error)
+
+ GetLookupV1(params *GetLookupV1Params, opts ...ClientOption) (*GetLookupV1OK, error)
+
+ GetSearchStatusV1(params *GetSearchStatusV1Params, opts ...ClientOption) (*GetSearchStatusV1OK, error)
+
+ StartSearchV1(params *StartSearchV1Params, opts ...ClientOption) (*StartSearchV1OK, error)
+
+ StopSearchV1(params *StopSearchV1Params, opts ...ClientOption) (*StopSearchV1OK, error)
+
+ UploadLookupV1(params *UploadLookupV1Params, opts ...ClientOption) (*UploadLookupV1OK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+GetLookupFromPackageV1 downloads lookup file in package from n g s i e m
+*/
+func (a *Client) GetLookupFromPackageV1(params *GetLookupFromPackageV1Params, opts ...ClientOption) (*GetLookupFromPackageV1OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetLookupFromPackageV1Params()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetLookupFromPackageV1",
+ Method: "GET",
+ PathPattern: "/humio/api/v1/repositories/{repository}/files/{package}/{filename}",
+ ProducesMediaTypes: []string{"application/json", "application/octet-stream"},
+ ConsumesMediaTypes: []string{"*/*"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetLookupFromPackageV1Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetLookupFromPackageV1OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetLookupFromPackageV1: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetLookupFromPackageWithNamespaceV1 downloads lookup file in namespaced package from n g s i e m
+*/
+func (a *Client) GetLookupFromPackageWithNamespaceV1(params *GetLookupFromPackageWithNamespaceV1Params, opts ...ClientOption) (*GetLookupFromPackageWithNamespaceV1OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetLookupFromPackageWithNamespaceV1Params()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetLookupFromPackageWithNamespaceV1",
+ Method: "GET",
+ PathPattern: "/humio/api/v1/repositories/{repository}/files/{namespace}/{package}/{filename}",
+ ProducesMediaTypes: []string{"application/json", "application/octet-stream"},
+ ConsumesMediaTypes: []string{"*/*"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetLookupFromPackageWithNamespaceV1Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetLookupFromPackageWithNamespaceV1OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetLookupFromPackageWithNamespaceV1: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetLookupV1 downloads lookup file from n g s i e m
+*/
+func (a *Client) GetLookupV1(params *GetLookupV1Params, opts ...ClientOption) (*GetLookupV1OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetLookupV1Params()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetLookupV1",
+ Method: "GET",
+ PathPattern: "/humio/api/v1/repositories/{repository}/files/{filename}",
+ ProducesMediaTypes: []string{"application/json", "application/octet-stream"},
+ ConsumesMediaTypes: []string{"*/*"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetLookupV1Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetLookupV1OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetLookupV1: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetSearchStatusV1 gets status of search
+*/
+func (a *Client) GetSearchStatusV1(params *GetSearchStatusV1Params, opts ...ClientOption) (*GetSearchStatusV1OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetSearchStatusV1Params()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetSearchStatusV1",
+ Method: "GET",
+ PathPattern: "/humio/api/v1/repositories/{repository}/queryjobs/{id}",
+ ProducesMediaTypes: []string{"application/json", "application/x-ndjson", "text/html", "text/plain"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetSearchStatusV1Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetSearchStatusV1OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetSearchStatusV1: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+StartSearchV1 initiates search
+*/
+func (a *Client) StartSearchV1(params *StartSearchV1Params, opts ...ClientOption) (*StartSearchV1OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewStartSearchV1Params()
+ }
+ op := &runtime.ClientOperation{
+ ID: "StartSearchV1",
+ Method: "POST",
+ PathPattern: "/humio/api/v1/repositories/{repository}/queryjobs",
+ ProducesMediaTypes: []string{"application/json", "text/html", "text/plain"},
+ ConsumesMediaTypes: []string{"application/json", "application/x-www-form-urlencoded"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &StartSearchV1Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*StartSearchV1OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for StartSearchV1: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+StopSearchV1 stops search
+*/
+func (a *Client) StopSearchV1(params *StopSearchV1Params, opts ...ClientOption) (*StopSearchV1OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewStopSearchV1Params()
+ }
+ op := &runtime.ClientOperation{
+ ID: "StopSearchV1",
+ Method: "DELETE",
+ PathPattern: "/humio/api/v1/repositories/{repository}/queryjobs/{id}",
+ ProducesMediaTypes: []string{"*/*", "application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &StopSearchV1Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*StopSearchV1OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for StopSearchV1: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+UploadLookupV1 uploads file to n g s i e m
+*/
+func (a *Client) UploadLookupV1(params *UploadLookupV1Params, opts ...ClientOption) (*UploadLookupV1OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewUploadLookupV1Params()
+ }
+ op := &runtime.ClientOperation{
+ ID: "UploadLookupV1",
+ Method: "POST",
+ PathPattern: "/humio/api/v1/repositories/{repository}/files",
+ ProducesMediaTypes: []string{"*/*", "application/json"},
+ ConsumesMediaTypes: []string{"multipart/form-data"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &UploadLookupV1Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*UploadLookupV1OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for UploadLookupV1: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/falcon/client/humio_auth_proxy/start_search_v1_parameters.go b/falcon/client/humio_auth_proxy/start_search_v1_parameters.go
new file mode 100644
index 00000000..0953ff3b
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/start_search_v1_parameters.go
@@ -0,0 +1,151 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewStartSearchV1Params creates a new StartSearchV1Params object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewStartSearchV1Params() *StartSearchV1Params {
+ return &StartSearchV1Params{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewStartSearchV1ParamsWithTimeout creates a new StartSearchV1Params object
+// with the ability to set a timeout on a request.
+func NewStartSearchV1ParamsWithTimeout(timeout time.Duration) *StartSearchV1Params {
+ return &StartSearchV1Params{
+ timeout: timeout,
+ }
+}
+
+// NewStartSearchV1ParamsWithContext creates a new StartSearchV1Params object
+// with the ability to set a context for a request.
+func NewStartSearchV1ParamsWithContext(ctx context.Context) *StartSearchV1Params {
+ return &StartSearchV1Params{
+ Context: ctx,
+ }
+}
+
+// NewStartSearchV1ParamsWithHTTPClient creates a new StartSearchV1Params object
+// with the ability to set a custom HTTPClient for a request.
+func NewStartSearchV1ParamsWithHTTPClient(client *http.Client) *StartSearchV1Params {
+ return &StartSearchV1Params{
+ HTTPClient: client,
+ }
+}
+
+/*
+StartSearchV1Params contains all the parameters to send to the API endpoint
+
+ for the start search v1 operation.
+
+ Typically these are written to a http.Request.
+*/
+type StartSearchV1Params struct {
+
+ /* Repository.
+
+ name of repository
+ */
+ Repository string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the start search v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *StartSearchV1Params) WithDefaults() *StartSearchV1Params {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the start search v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *StartSearchV1Params) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the start search v1 params
+func (o *StartSearchV1Params) WithTimeout(timeout time.Duration) *StartSearchV1Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the start search v1 params
+func (o *StartSearchV1Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the start search v1 params
+func (o *StartSearchV1Params) WithContext(ctx context.Context) *StartSearchV1Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the start search v1 params
+func (o *StartSearchV1Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the start search v1 params
+func (o *StartSearchV1Params) WithHTTPClient(client *http.Client) *StartSearchV1Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the start search v1 params
+func (o *StartSearchV1Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithRepository adds the repository to the start search v1 params
+func (o *StartSearchV1Params) WithRepository(repository string) *StartSearchV1Params {
+ o.SetRepository(repository)
+ return o
+}
+
+// SetRepository adds the repository to the start search v1 params
+func (o *StartSearchV1Params) SetRepository(repository string) {
+ o.Repository = repository
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *StartSearchV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param repository
+ if err := r.SetPathParam("repository", o.Repository); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/start_search_v1_responses.go b/falcon/client/humio_auth_proxy/start_search_v1_responses.go
new file mode 100644
index 00000000..76105606
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/start_search_v1_responses.go
@@ -0,0 +1,729 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// StartSearchV1Reader is a Reader for the StartSearchV1 structure.
+type StartSearchV1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *StartSearchV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewStartSearchV1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewStartSearchV1BadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewStartSearchV1Unauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewStartSearchV1Forbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewStartSearchV1TooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewStartSearchV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /humio/api/v1/repositories/{repository}/queryjobs] StartSearchV1", response, response.Code())
+ }
+}
+
+// NewStartSearchV1OK creates a StartSearchV1OK with default headers values
+func NewStartSearchV1OK() *StartSearchV1OK {
+ return &StartSearchV1OK{}
+}
+
+/*
+StartSearchV1OK describes a response with status code 200, with default header values.
+
+Search has been started
+*/
+type StartSearchV1OK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this start search v1 o k response has a 2xx status code
+func (o *StartSearchV1OK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this start search v1 o k response has a 3xx status code
+func (o *StartSearchV1OK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this start search v1 o k response has a 4xx status code
+func (o *StartSearchV1OK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this start search v1 o k response has a 5xx status code
+func (o *StartSearchV1OK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this start search v1 o k response a status code equal to that given
+func (o *StartSearchV1OK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the start search v1 o k response
+func (o *StartSearchV1OK) Code() int {
+ return 200
+}
+
+func (o *StartSearchV1OK) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1OK ", 200)
+}
+
+func (o *StartSearchV1OK) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1OK ", 200)
+}
+
+func (o *StartSearchV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewStartSearchV1BadRequest creates a StartSearchV1BadRequest with default headers values
+func NewStartSearchV1BadRequest() *StartSearchV1BadRequest {
+ return &StartSearchV1BadRequest{}
+}
+
+/*
+StartSearchV1BadRequest describes a response with status code 400, with default header values.
+
+Request body is invalid; Query input is invalid
+*/
+type StartSearchV1BadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this start search v1 bad request response has a 2xx status code
+func (o *StartSearchV1BadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this start search v1 bad request response has a 3xx status code
+func (o *StartSearchV1BadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this start search v1 bad request response has a 4xx status code
+func (o *StartSearchV1BadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this start search v1 bad request response has a 5xx status code
+func (o *StartSearchV1BadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this start search v1 bad request response a status code equal to that given
+func (o *StartSearchV1BadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the start search v1 bad request response
+func (o *StartSearchV1BadRequest) Code() int {
+ return 400
+}
+
+func (o *StartSearchV1BadRequest) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1BadRequest %+v", 400, o.Payload)
+}
+
+func (o *StartSearchV1BadRequest) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1BadRequest %+v", 400, o.Payload)
+}
+
+func (o *StartSearchV1BadRequest) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *StartSearchV1BadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewStartSearchV1Unauthorized creates a StartSearchV1Unauthorized with default headers values
+func NewStartSearchV1Unauthorized() *StartSearchV1Unauthorized {
+ return &StartSearchV1Unauthorized{}
+}
+
+/*
+StartSearchV1Unauthorized describes a response with status code 401, with default header values.
+
+Requestor is not authorized
+*/
+type StartSearchV1Unauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this start search v1 unauthorized response has a 2xx status code
+func (o *StartSearchV1Unauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this start search v1 unauthorized response has a 3xx status code
+func (o *StartSearchV1Unauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this start search v1 unauthorized response has a 4xx status code
+func (o *StartSearchV1Unauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this start search v1 unauthorized response has a 5xx status code
+func (o *StartSearchV1Unauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this start search v1 unauthorized response a status code equal to that given
+func (o *StartSearchV1Unauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the start search v1 unauthorized response
+func (o *StartSearchV1Unauthorized) Code() int {
+ return 401
+}
+
+func (o *StartSearchV1Unauthorized) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *StartSearchV1Unauthorized) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *StartSearchV1Unauthorized) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *StartSearchV1Unauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewStartSearchV1Forbidden creates a StartSearchV1Forbidden with default headers values
+func NewStartSearchV1Forbidden() *StartSearchV1Forbidden {
+ return &StartSearchV1Forbidden{}
+}
+
+/*
+StartSearchV1Forbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type StartSearchV1Forbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this start search v1 forbidden response has a 2xx status code
+func (o *StartSearchV1Forbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this start search v1 forbidden response has a 3xx status code
+func (o *StartSearchV1Forbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this start search v1 forbidden response has a 4xx status code
+func (o *StartSearchV1Forbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this start search v1 forbidden response has a 5xx status code
+func (o *StartSearchV1Forbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this start search v1 forbidden response a status code equal to that given
+func (o *StartSearchV1Forbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the start search v1 forbidden response
+func (o *StartSearchV1Forbidden) Code() int {
+ return 403
+}
+
+func (o *StartSearchV1Forbidden) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *StartSearchV1Forbidden) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *StartSearchV1Forbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *StartSearchV1Forbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewStartSearchV1TooManyRequests creates a StartSearchV1TooManyRequests with default headers values
+func NewStartSearchV1TooManyRequests() *StartSearchV1TooManyRequests {
+ return &StartSearchV1TooManyRequests{}
+}
+
+/*
+StartSearchV1TooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type StartSearchV1TooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this start search v1 too many requests response has a 2xx status code
+func (o *StartSearchV1TooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this start search v1 too many requests response has a 3xx status code
+func (o *StartSearchV1TooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this start search v1 too many requests response has a 4xx status code
+func (o *StartSearchV1TooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this start search v1 too many requests response has a 5xx status code
+func (o *StartSearchV1TooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this start search v1 too many requests response a status code equal to that given
+func (o *StartSearchV1TooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the start search v1 too many requests response
+func (o *StartSearchV1TooManyRequests) Code() int {
+ return 429
+}
+
+func (o *StartSearchV1TooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *StartSearchV1TooManyRequests) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *StartSearchV1TooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *StartSearchV1TooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewStartSearchV1InternalServerError creates a StartSearchV1InternalServerError with default headers values
+func NewStartSearchV1InternalServerError() *StartSearchV1InternalServerError {
+ return &StartSearchV1InternalServerError{}
+}
+
+/*
+StartSearchV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected error occurred
+*/
+type StartSearchV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this start search v1 internal server error response has a 2xx status code
+func (o *StartSearchV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this start search v1 internal server error response has a 3xx status code
+func (o *StartSearchV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this start search v1 internal server error response has a 4xx status code
+func (o *StartSearchV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this start search v1 internal server error response has a 5xx status code
+func (o *StartSearchV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this start search v1 internal server error response a status code equal to that given
+func (o *StartSearchV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the start search v1 internal server error response
+func (o *StartSearchV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *StartSearchV1InternalServerError) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *StartSearchV1InternalServerError) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/queryjobs][%d] startSearchV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *StartSearchV1InternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *StartSearchV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/stop_search_v1_parameters.go b/falcon/client/humio_auth_proxy/stop_search_v1_parameters.go
new file mode 100644
index 00000000..29197fb4
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/stop_search_v1_parameters.go
@@ -0,0 +1,173 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewStopSearchV1Params creates a new StopSearchV1Params object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewStopSearchV1Params() *StopSearchV1Params {
+ return &StopSearchV1Params{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewStopSearchV1ParamsWithTimeout creates a new StopSearchV1Params object
+// with the ability to set a timeout on a request.
+func NewStopSearchV1ParamsWithTimeout(timeout time.Duration) *StopSearchV1Params {
+ return &StopSearchV1Params{
+ timeout: timeout,
+ }
+}
+
+// NewStopSearchV1ParamsWithContext creates a new StopSearchV1Params object
+// with the ability to set a context for a request.
+func NewStopSearchV1ParamsWithContext(ctx context.Context) *StopSearchV1Params {
+ return &StopSearchV1Params{
+ Context: ctx,
+ }
+}
+
+// NewStopSearchV1ParamsWithHTTPClient creates a new StopSearchV1Params object
+// with the ability to set a custom HTTPClient for a request.
+func NewStopSearchV1ParamsWithHTTPClient(client *http.Client) *StopSearchV1Params {
+ return &StopSearchV1Params{
+ HTTPClient: client,
+ }
+}
+
+/*
+StopSearchV1Params contains all the parameters to send to the API endpoint
+
+ for the stop search v1 operation.
+
+ Typically these are written to a http.Request.
+*/
+type StopSearchV1Params struct {
+
+ /* ID.
+
+ id of query
+ */
+ ID string
+
+ /* Repository.
+
+ name of repository
+ */
+ Repository string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the stop search v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *StopSearchV1Params) WithDefaults() *StopSearchV1Params {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the stop search v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *StopSearchV1Params) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the stop search v1 params
+func (o *StopSearchV1Params) WithTimeout(timeout time.Duration) *StopSearchV1Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the stop search v1 params
+func (o *StopSearchV1Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the stop search v1 params
+func (o *StopSearchV1Params) WithContext(ctx context.Context) *StopSearchV1Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the stop search v1 params
+func (o *StopSearchV1Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the stop search v1 params
+func (o *StopSearchV1Params) WithHTTPClient(client *http.Client) *StopSearchV1Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the stop search v1 params
+func (o *StopSearchV1Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithID adds the id to the stop search v1 params
+func (o *StopSearchV1Params) WithID(id string) *StopSearchV1Params {
+ o.SetID(id)
+ return o
+}
+
+// SetID adds the id to the stop search v1 params
+func (o *StopSearchV1Params) SetID(id string) {
+ o.ID = id
+}
+
+// WithRepository adds the repository to the stop search v1 params
+func (o *StopSearchV1Params) WithRepository(repository string) *StopSearchV1Params {
+ o.SetRepository(repository)
+ return o
+}
+
+// SetRepository adds the repository to the stop search v1 params
+func (o *StopSearchV1Params) SetRepository(repository string) {
+ o.Repository = repository
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *StopSearchV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param id
+ if err := r.SetPathParam("id", o.ID); err != nil {
+ return err
+ }
+
+ // path param repository
+ if err := r.SetPathParam("repository", o.Repository); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/stop_search_v1_responses.go b/falcon/client/humio_auth_proxy/stop_search_v1_responses.go
new file mode 100644
index 00000000..96ad210d
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/stop_search_v1_responses.go
@@ -0,0 +1,613 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// StopSearchV1Reader is a Reader for the StopSearchV1 structure.
+type StopSearchV1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *StopSearchV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewStopSearchV1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewStopSearchV1Unauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewStopSearchV1Forbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewStopSearchV1TooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewStopSearchV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}] StopSearchV1", response, response.Code())
+ }
+}
+
+// NewStopSearchV1OK creates a StopSearchV1OK with default headers values
+func NewStopSearchV1OK() *StopSearchV1OK {
+ return &StopSearchV1OK{}
+}
+
+/*
+StopSearchV1OK describes a response with status code 200, with default header values.
+
+Search has been stopped
+*/
+type StopSearchV1OK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this stop search v1 o k response has a 2xx status code
+func (o *StopSearchV1OK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this stop search v1 o k response has a 3xx status code
+func (o *StopSearchV1OK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this stop search v1 o k response has a 4xx status code
+func (o *StopSearchV1OK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this stop search v1 o k response has a 5xx status code
+func (o *StopSearchV1OK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this stop search v1 o k response a status code equal to that given
+func (o *StopSearchV1OK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the stop search v1 o k response
+func (o *StopSearchV1OK) Code() int {
+ return 200
+}
+
+func (o *StopSearchV1OK) Error() string {
+ return fmt.Sprintf("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] stopSearchV1OK ", 200)
+}
+
+func (o *StopSearchV1OK) String() string {
+ return fmt.Sprintf("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] stopSearchV1OK ", 200)
+}
+
+func (o *StopSearchV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewStopSearchV1Unauthorized creates a StopSearchV1Unauthorized with default headers values
+func NewStopSearchV1Unauthorized() *StopSearchV1Unauthorized {
+ return &StopSearchV1Unauthorized{}
+}
+
+/*
+StopSearchV1Unauthorized describes a response with status code 401, with default header values.
+
+Requestor is not authorized
+*/
+type StopSearchV1Unauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this stop search v1 unauthorized response has a 2xx status code
+func (o *StopSearchV1Unauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this stop search v1 unauthorized response has a 3xx status code
+func (o *StopSearchV1Unauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this stop search v1 unauthorized response has a 4xx status code
+func (o *StopSearchV1Unauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this stop search v1 unauthorized response has a 5xx status code
+func (o *StopSearchV1Unauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this stop search v1 unauthorized response a status code equal to that given
+func (o *StopSearchV1Unauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the stop search v1 unauthorized response
+func (o *StopSearchV1Unauthorized) Code() int {
+ return 401
+}
+
+func (o *StopSearchV1Unauthorized) Error() string {
+ return fmt.Sprintf("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] stopSearchV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *StopSearchV1Unauthorized) String() string {
+ return fmt.Sprintf("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] stopSearchV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *StopSearchV1Unauthorized) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *StopSearchV1Unauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewStopSearchV1Forbidden creates a StopSearchV1Forbidden with default headers values
+func NewStopSearchV1Forbidden() *StopSearchV1Forbidden {
+ return &StopSearchV1Forbidden{}
+}
+
+/*
+StopSearchV1Forbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type StopSearchV1Forbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this stop search v1 forbidden response has a 2xx status code
+func (o *StopSearchV1Forbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this stop search v1 forbidden response has a 3xx status code
+func (o *StopSearchV1Forbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this stop search v1 forbidden response has a 4xx status code
+func (o *StopSearchV1Forbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this stop search v1 forbidden response has a 5xx status code
+func (o *StopSearchV1Forbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this stop search v1 forbidden response a status code equal to that given
+func (o *StopSearchV1Forbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the stop search v1 forbidden response
+func (o *StopSearchV1Forbidden) Code() int {
+ return 403
+}
+
+func (o *StopSearchV1Forbidden) Error() string {
+ return fmt.Sprintf("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] stopSearchV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *StopSearchV1Forbidden) String() string {
+ return fmt.Sprintf("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] stopSearchV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *StopSearchV1Forbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *StopSearchV1Forbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewStopSearchV1TooManyRequests creates a StopSearchV1TooManyRequests with default headers values
+func NewStopSearchV1TooManyRequests() *StopSearchV1TooManyRequests {
+ return &StopSearchV1TooManyRequests{}
+}
+
+/*
+StopSearchV1TooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type StopSearchV1TooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this stop search v1 too many requests response has a 2xx status code
+func (o *StopSearchV1TooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this stop search v1 too many requests response has a 3xx status code
+func (o *StopSearchV1TooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this stop search v1 too many requests response has a 4xx status code
+func (o *StopSearchV1TooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this stop search v1 too many requests response has a 5xx status code
+func (o *StopSearchV1TooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this stop search v1 too many requests response a status code equal to that given
+func (o *StopSearchV1TooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the stop search v1 too many requests response
+func (o *StopSearchV1TooManyRequests) Code() int {
+ return 429
+}
+
+func (o *StopSearchV1TooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] stopSearchV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *StopSearchV1TooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] stopSearchV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *StopSearchV1TooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *StopSearchV1TooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewStopSearchV1InternalServerError creates a StopSearchV1InternalServerError with default headers values
+func NewStopSearchV1InternalServerError() *StopSearchV1InternalServerError {
+ return &StopSearchV1InternalServerError{}
+}
+
+/*
+StopSearchV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected error occurred
+*/
+type StopSearchV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this stop search v1 internal server error response has a 2xx status code
+func (o *StopSearchV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this stop search v1 internal server error response has a 3xx status code
+func (o *StopSearchV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this stop search v1 internal server error response has a 4xx status code
+func (o *StopSearchV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this stop search v1 internal server error response has a 5xx status code
+func (o *StopSearchV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this stop search v1 internal server error response a status code equal to that given
+func (o *StopSearchV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the stop search v1 internal server error response
+func (o *StopSearchV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *StopSearchV1InternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] stopSearchV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *StopSearchV1InternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /humio/api/v1/repositories/{repository}/queryjobs/{id}][%d] stopSearchV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *StopSearchV1InternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *StopSearchV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/upload_lookup_v1_parameters.go b/falcon/client/humio_auth_proxy/upload_lookup_v1_parameters.go
new file mode 100644
index 00000000..5cdf5bbe
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/upload_lookup_v1_parameters.go
@@ -0,0 +1,151 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewUploadLookupV1Params creates a new UploadLookupV1Params object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewUploadLookupV1Params() *UploadLookupV1Params {
+ return &UploadLookupV1Params{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewUploadLookupV1ParamsWithTimeout creates a new UploadLookupV1Params object
+// with the ability to set a timeout on a request.
+func NewUploadLookupV1ParamsWithTimeout(timeout time.Duration) *UploadLookupV1Params {
+ return &UploadLookupV1Params{
+ timeout: timeout,
+ }
+}
+
+// NewUploadLookupV1ParamsWithContext creates a new UploadLookupV1Params object
+// with the ability to set a context for a request.
+func NewUploadLookupV1ParamsWithContext(ctx context.Context) *UploadLookupV1Params {
+ return &UploadLookupV1Params{
+ Context: ctx,
+ }
+}
+
+// NewUploadLookupV1ParamsWithHTTPClient creates a new UploadLookupV1Params object
+// with the ability to set a custom HTTPClient for a request.
+func NewUploadLookupV1ParamsWithHTTPClient(client *http.Client) *UploadLookupV1Params {
+ return &UploadLookupV1Params{
+ HTTPClient: client,
+ }
+}
+
+/*
+UploadLookupV1Params contains all the parameters to send to the API endpoint
+
+ for the upload lookup v1 operation.
+
+ Typically these are written to a http.Request.
+*/
+type UploadLookupV1Params struct {
+
+ /* Repository.
+
+ name of repository
+ */
+ Repository string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the upload lookup v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UploadLookupV1Params) WithDefaults() *UploadLookupV1Params {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the upload lookup v1 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UploadLookupV1Params) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the upload lookup v1 params
+func (o *UploadLookupV1Params) WithTimeout(timeout time.Duration) *UploadLookupV1Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the upload lookup v1 params
+func (o *UploadLookupV1Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the upload lookup v1 params
+func (o *UploadLookupV1Params) WithContext(ctx context.Context) *UploadLookupV1Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the upload lookup v1 params
+func (o *UploadLookupV1Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the upload lookup v1 params
+func (o *UploadLookupV1Params) WithHTTPClient(client *http.Client) *UploadLookupV1Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the upload lookup v1 params
+func (o *UploadLookupV1Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithRepository adds the repository to the upload lookup v1 params
+func (o *UploadLookupV1Params) WithRepository(repository string) *UploadLookupV1Params {
+ o.SetRepository(repository)
+ return o
+}
+
+// SetRepository adds the repository to the upload lookup v1 params
+func (o *UploadLookupV1Params) SetRepository(repository string) {
+ o.Repository = repository
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *UploadLookupV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param repository
+ if err := r.SetPathParam("repository", o.Repository); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/humio_auth_proxy/upload_lookup_v1_responses.go b/falcon/client/humio_auth_proxy/upload_lookup_v1_responses.go
new file mode 100644
index 00000000..5419cd21
--- /dev/null
+++ b/falcon/client/humio_auth_proxy/upload_lookup_v1_responses.go
@@ -0,0 +1,729 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package humio_auth_proxy
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// UploadLookupV1Reader is a Reader for the UploadLookupV1 structure.
+type UploadLookupV1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *UploadLookupV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewUploadLookupV1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewUploadLookupV1BadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewUploadLookupV1Unauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewUploadLookupV1Forbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewUploadLookupV1TooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewUploadLookupV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /humio/api/v1/repositories/{repository}/files] UploadLookupV1", response, response.Code())
+ }
+}
+
+// NewUploadLookupV1OK creates a UploadLookupV1OK with default headers values
+func NewUploadLookupV1OK() *UploadLookupV1OK {
+ return &UploadLookupV1OK{}
+}
+
+/*
+UploadLookupV1OK describes a response with status code 200, with default header values.
+
+File has been uploaded
+*/
+type UploadLookupV1OK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this upload lookup v1 o k response has a 2xx status code
+func (o *UploadLookupV1OK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this upload lookup v1 o k response has a 3xx status code
+func (o *UploadLookupV1OK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload lookup v1 o k response has a 4xx status code
+func (o *UploadLookupV1OK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upload lookup v1 o k response has a 5xx status code
+func (o *UploadLookupV1OK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upload lookup v1 o k response a status code equal to that given
+func (o *UploadLookupV1OK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the upload lookup v1 o k response
+func (o *UploadLookupV1OK) Code() int {
+ return 200
+}
+
+func (o *UploadLookupV1OK) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1OK ", 200)
+}
+
+func (o *UploadLookupV1OK) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1OK ", 200)
+}
+
+func (o *UploadLookupV1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewUploadLookupV1BadRequest creates a UploadLookupV1BadRequest with default headers values
+func NewUploadLookupV1BadRequest() *UploadLookupV1BadRequest {
+ return &UploadLookupV1BadRequest{}
+}
+
+/*
+UploadLookupV1BadRequest describes a response with status code 400, with default header values.
+
+Request body is invalid; Missing file parameter; Missing boundary in Content-Type
+*/
+type UploadLookupV1BadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this upload lookup v1 bad request response has a 2xx status code
+func (o *UploadLookupV1BadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upload lookup v1 bad request response has a 3xx status code
+func (o *UploadLookupV1BadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload lookup v1 bad request response has a 4xx status code
+func (o *UploadLookupV1BadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upload lookup v1 bad request response has a 5xx status code
+func (o *UploadLookupV1BadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upload lookup v1 bad request response a status code equal to that given
+func (o *UploadLookupV1BadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the upload lookup v1 bad request response
+func (o *UploadLookupV1BadRequest) Code() int {
+ return 400
+}
+
+func (o *UploadLookupV1BadRequest) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1BadRequest %+v", 400, o.Payload)
+}
+
+func (o *UploadLookupV1BadRequest) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1BadRequest %+v", 400, o.Payload)
+}
+
+func (o *UploadLookupV1BadRequest) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *UploadLookupV1BadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUploadLookupV1Unauthorized creates a UploadLookupV1Unauthorized with default headers values
+func NewUploadLookupV1Unauthorized() *UploadLookupV1Unauthorized {
+ return &UploadLookupV1Unauthorized{}
+}
+
+/*
+UploadLookupV1Unauthorized describes a response with status code 401, with default header values.
+
+Requestor is not authorized to upload
+*/
+type UploadLookupV1Unauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this upload lookup v1 unauthorized response has a 2xx status code
+func (o *UploadLookupV1Unauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upload lookup v1 unauthorized response has a 3xx status code
+func (o *UploadLookupV1Unauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload lookup v1 unauthorized response has a 4xx status code
+func (o *UploadLookupV1Unauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upload lookup v1 unauthorized response has a 5xx status code
+func (o *UploadLookupV1Unauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upload lookup v1 unauthorized response a status code equal to that given
+func (o *UploadLookupV1Unauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the upload lookup v1 unauthorized response
+func (o *UploadLookupV1Unauthorized) Code() int {
+ return 401
+}
+
+func (o *UploadLookupV1Unauthorized) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *UploadLookupV1Unauthorized) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1Unauthorized %+v", 401, o.Payload)
+}
+
+func (o *UploadLookupV1Unauthorized) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *UploadLookupV1Unauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUploadLookupV1Forbidden creates a UploadLookupV1Forbidden with default headers values
+func NewUploadLookupV1Forbidden() *UploadLookupV1Forbidden {
+ return &UploadLookupV1Forbidden{}
+}
+
+/*
+UploadLookupV1Forbidden describes a response with status code 403, with default header values.
+
+Filename is not allowed
+*/
+type UploadLookupV1Forbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this upload lookup v1 forbidden response has a 2xx status code
+func (o *UploadLookupV1Forbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upload lookup v1 forbidden response has a 3xx status code
+func (o *UploadLookupV1Forbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload lookup v1 forbidden response has a 4xx status code
+func (o *UploadLookupV1Forbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upload lookup v1 forbidden response has a 5xx status code
+func (o *UploadLookupV1Forbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upload lookup v1 forbidden response a status code equal to that given
+func (o *UploadLookupV1Forbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the upload lookup v1 forbidden response
+func (o *UploadLookupV1Forbidden) Code() int {
+ return 403
+}
+
+func (o *UploadLookupV1Forbidden) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *UploadLookupV1Forbidden) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1Forbidden %+v", 403, o.Payload)
+}
+
+func (o *UploadLookupV1Forbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *UploadLookupV1Forbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUploadLookupV1TooManyRequests creates a UploadLookupV1TooManyRequests with default headers values
+func NewUploadLookupV1TooManyRequests() *UploadLookupV1TooManyRequests {
+ return &UploadLookupV1TooManyRequests{}
+}
+
+/*
+UploadLookupV1TooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type UploadLookupV1TooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this upload lookup v1 too many requests response has a 2xx status code
+func (o *UploadLookupV1TooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upload lookup v1 too many requests response has a 3xx status code
+func (o *UploadLookupV1TooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload lookup v1 too many requests response has a 4xx status code
+func (o *UploadLookupV1TooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upload lookup v1 too many requests response has a 5xx status code
+func (o *UploadLookupV1TooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upload lookup v1 too many requests response a status code equal to that given
+func (o *UploadLookupV1TooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the upload lookup v1 too many requests response
+func (o *UploadLookupV1TooManyRequests) Code() int {
+ return 429
+}
+
+func (o *UploadLookupV1TooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UploadLookupV1TooManyRequests) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UploadLookupV1TooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UploadLookupV1TooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUploadLookupV1InternalServerError creates a UploadLookupV1InternalServerError with default headers values
+func NewUploadLookupV1InternalServerError() *UploadLookupV1InternalServerError {
+ return &UploadLookupV1InternalServerError{}
+}
+
+/*
+UploadLookupV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected error occurred
+*/
+type UploadLookupV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this upload lookup v1 internal server error response has a 2xx status code
+func (o *UploadLookupV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upload lookup v1 internal server error response has a 3xx status code
+func (o *UploadLookupV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload lookup v1 internal server error response has a 4xx status code
+func (o *UploadLookupV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upload lookup v1 internal server error response has a 5xx status code
+func (o *UploadLookupV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this upload lookup v1 internal server error response a status code equal to that given
+func (o *UploadLookupV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the upload lookup v1 internal server error response
+func (o *UploadLookupV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *UploadLookupV1InternalServerError) Error() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UploadLookupV1InternalServerError) String() string {
+ return fmt.Sprintf("[POST /humio/api/v1/repositories/{repository}/files][%d] uploadLookupV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UploadLookupV1InternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *UploadLookupV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/identity_entities/get_sensor_aggregates_responses.go b/falcon/client/identity_entities/get_sensor_aggregates_responses.go
index 60b72559..9f16b13d 100644
--- a/falcon/client/identity_entities/get_sensor_aggregates_responses.go
+++ b/falcon/client/identity_entities/get_sensor_aggregates_responses.go
@@ -43,6 +43,12 @@ func (o *GetSensorAggregatesReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetSensorAggregatesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /identity-protection/aggregates/devices/GET/v1] GetSensorAggregates", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetSensorAggregatesTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewGetSensorAggregatesInternalServerError creates a GetSensorAggregatesInternalServerError with default headers values
+func NewGetSensorAggregatesInternalServerError() *GetSensorAggregatesInternalServerError {
+ return &GetSensorAggregatesInternalServerError{}
+}
+
+/*
+GetSensorAggregatesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetSensorAggregatesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get sensor aggregates internal server error response has a 2xx status code
+func (o *GetSensorAggregatesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor aggregates internal server error response has a 3xx status code
+func (o *GetSensorAggregatesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor aggregates internal server error response has a 4xx status code
+func (o *GetSensorAggregatesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get sensor aggregates internal server error response has a 5xx status code
+func (o *GetSensorAggregatesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get sensor aggregates internal server error response a status code equal to that given
+func (o *GetSensorAggregatesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get sensor aggregates internal server error response
+func (o *GetSensorAggregatesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetSensorAggregatesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /identity-protection/aggregates/devices/GET/v1][%d] getSensorAggregatesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorAggregatesInternalServerError) String() string {
+ return fmt.Sprintf("[POST /identity-protection/aggregates/devices/GET/v1][%d] getSensorAggregatesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorAggregatesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetSensorAggregatesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/identity_entities/get_sensor_details_responses.go b/falcon/client/identity_entities/get_sensor_details_responses.go
index 6964631b..5a129051 100644
--- a/falcon/client/identity_entities/get_sensor_details_responses.go
+++ b/falcon/client/identity_entities/get_sensor_details_responses.go
@@ -43,6 +43,12 @@ func (o *GetSensorDetailsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetSensorDetailsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /identity-protection/entities/devices/GET/v1] GetSensorDetails", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetSensorDetailsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewGetSensorDetailsInternalServerError creates a GetSensorDetailsInternalServerError with default headers values
+func NewGetSensorDetailsInternalServerError() *GetSensorDetailsInternalServerError {
+ return &GetSensorDetailsInternalServerError{}
+}
+
+/*
+GetSensorDetailsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetSensorDetailsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get sensor details internal server error response has a 2xx status code
+func (o *GetSensorDetailsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor details internal server error response has a 3xx status code
+func (o *GetSensorDetailsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor details internal server error response has a 4xx status code
+func (o *GetSensorDetailsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get sensor details internal server error response has a 5xx status code
+func (o *GetSensorDetailsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get sensor details internal server error response a status code equal to that given
+func (o *GetSensorDetailsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get sensor details internal server error response
+func (o *GetSensorDetailsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetSensorDetailsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /identity-protection/entities/devices/GET/v1][%d] getSensorDetailsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorDetailsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /identity-protection/entities/devices/GET/v1][%d] getSensorDetailsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorDetailsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetSensorDetailsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/identity_entities/query_sensors_by_filter_responses.go b/falcon/client/identity_entities/query_sensors_by_filter_responses.go
index 8f9f4c8c..e7d939e5 100644
--- a/falcon/client/identity_entities/query_sensors_by_filter_responses.go
+++ b/falcon/client/identity_entities/query_sensors_by_filter_responses.go
@@ -43,6 +43,12 @@ func (o *QuerySensorsByFilterReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewQuerySensorsByFilterInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /identity-protection/queries/devices/v1] QuerySensorsByFilter", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QuerySensorsByFilterTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewQuerySensorsByFilterInternalServerError creates a QuerySensorsByFilterInternalServerError with default headers values
+func NewQuerySensorsByFilterInternalServerError() *QuerySensorsByFilterInternalServerError {
+ return &QuerySensorsByFilterInternalServerError{}
+}
+
+/*
+QuerySensorsByFilterInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QuerySensorsByFilterInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query sensors by filter internal server error response has a 2xx status code
+func (o *QuerySensorsByFilterInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query sensors by filter internal server error response has a 3xx status code
+func (o *QuerySensorsByFilterInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query sensors by filter internal server error response has a 4xx status code
+func (o *QuerySensorsByFilterInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query sensors by filter internal server error response has a 5xx status code
+func (o *QuerySensorsByFilterInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query sensors by filter internal server error response a status code equal to that given
+func (o *QuerySensorsByFilterInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query sensors by filter internal server error response
+func (o *QuerySensorsByFilterInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QuerySensorsByFilterInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /identity-protection/queries/devices/v1][%d] querySensorsByFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QuerySensorsByFilterInternalServerError) String() string {
+ return fmt.Sprintf("[GET /identity-protection/queries/devices/v1][%d] querySensorsByFilterInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QuerySensorsByFilterInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QuerySensorsByFilterInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/identity_protection/api_preempt_proxy_delete_policy_rules_parameters.go b/falcon/client/identity_protection/api_preempt_proxy_delete_policy_rules_parameters.go
new file mode 100644
index 00000000..0930ed55
--- /dev/null
+++ b/falcon/client/identity_protection/api_preempt_proxy_delete_policy_rules_parameters.go
@@ -0,0 +1,197 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package identity_protection
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewAPIPreemptProxyDeletePolicyRulesParams creates a new APIPreemptProxyDeletePolicyRulesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewAPIPreemptProxyDeletePolicyRulesParams() *APIPreemptProxyDeletePolicyRulesParams {
+ return &APIPreemptProxyDeletePolicyRulesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewAPIPreemptProxyDeletePolicyRulesParamsWithTimeout creates a new APIPreemptProxyDeletePolicyRulesParams object
+// with the ability to set a timeout on a request.
+func NewAPIPreemptProxyDeletePolicyRulesParamsWithTimeout(timeout time.Duration) *APIPreemptProxyDeletePolicyRulesParams {
+ return &APIPreemptProxyDeletePolicyRulesParams{
+ timeout: timeout,
+ }
+}
+
+// NewAPIPreemptProxyDeletePolicyRulesParamsWithContext creates a new APIPreemptProxyDeletePolicyRulesParams object
+// with the ability to set a context for a request.
+func NewAPIPreemptProxyDeletePolicyRulesParamsWithContext(ctx context.Context) *APIPreemptProxyDeletePolicyRulesParams {
+ return &APIPreemptProxyDeletePolicyRulesParams{
+ Context: ctx,
+ }
+}
+
+// NewAPIPreemptProxyDeletePolicyRulesParamsWithHTTPClient creates a new APIPreemptProxyDeletePolicyRulesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewAPIPreemptProxyDeletePolicyRulesParamsWithHTTPClient(client *http.Client) *APIPreemptProxyDeletePolicyRulesParams {
+ return &APIPreemptProxyDeletePolicyRulesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+APIPreemptProxyDeletePolicyRulesParams contains all the parameters to send to the API endpoint
+
+ for the api preempt proxy delete policy rules operation.
+
+ Typically these are written to a http.Request.
+*/
+type APIPreemptProxyDeletePolicyRulesParams struct {
+
+ /* Authorization.
+
+ Authorization Header
+ */
+ Authorization string
+
+ /* Ids.
+
+ Rule IDs
+ */
+ Ids []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the api preempt proxy delete policy rules params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *APIPreemptProxyDeletePolicyRulesParams) WithDefaults() *APIPreemptProxyDeletePolicyRulesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the api preempt proxy delete policy rules params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *APIPreemptProxyDeletePolicyRulesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the api preempt proxy delete policy rules params
+func (o *APIPreemptProxyDeletePolicyRulesParams) WithTimeout(timeout time.Duration) *APIPreemptProxyDeletePolicyRulesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the api preempt proxy delete policy rules params
+func (o *APIPreemptProxyDeletePolicyRulesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the api preempt proxy delete policy rules params
+func (o *APIPreemptProxyDeletePolicyRulesParams) WithContext(ctx context.Context) *APIPreemptProxyDeletePolicyRulesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the api preempt proxy delete policy rules params
+func (o *APIPreemptProxyDeletePolicyRulesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the api preempt proxy delete policy rules params
+func (o *APIPreemptProxyDeletePolicyRulesParams) WithHTTPClient(client *http.Client) *APIPreemptProxyDeletePolicyRulesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the api preempt proxy delete policy rules params
+func (o *APIPreemptProxyDeletePolicyRulesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithAuthorization adds the authorization to the api preempt proxy delete policy rules params
+func (o *APIPreemptProxyDeletePolicyRulesParams) WithAuthorization(authorization string) *APIPreemptProxyDeletePolicyRulesParams {
+ o.SetAuthorization(authorization)
+ return o
+}
+
+// SetAuthorization adds the authorization to the api preempt proxy delete policy rules params
+func (o *APIPreemptProxyDeletePolicyRulesParams) SetAuthorization(authorization string) {
+ o.Authorization = authorization
+}
+
+// WithIds adds the ids to the api preempt proxy delete policy rules params
+func (o *APIPreemptProxyDeletePolicyRulesParams) WithIds(ids []string) *APIPreemptProxyDeletePolicyRulesParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the api preempt proxy delete policy rules params
+func (o *APIPreemptProxyDeletePolicyRulesParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *APIPreemptProxyDeletePolicyRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // header param Authorization
+ if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil {
+ return err
+ }
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamAPIPreemptProxyDeletePolicyRules binds the parameter ids
+func (o *APIPreemptProxyDeletePolicyRulesParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "csv"
+ idsIS := swag.JoinByFormat(idsIC, "csv")
+
+ return idsIS
+}
diff --git a/falcon/client/identity_protection/api_preempt_proxy_delete_policy_rules_responses.go b/falcon/client/identity_protection/api_preempt_proxy_delete_policy_rules_responses.go
new file mode 100644
index 00000000..ca83a723
--- /dev/null
+++ b/falcon/client/identity_protection/api_preempt_proxy_delete_policy_rules_responses.go
@@ -0,0 +1,497 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package identity_protection
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// APIPreemptProxyDeletePolicyRulesReader is a Reader for the APIPreemptProxyDeletePolicyRules structure.
+type APIPreemptProxyDeletePolicyRulesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *APIPreemptProxyDeletePolicyRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewAPIPreemptProxyDeletePolicyRulesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewAPIPreemptProxyDeletePolicyRulesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewAPIPreemptProxyDeletePolicyRulesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewAPIPreemptProxyDeletePolicyRulesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /identity-protection/entities/policy-rules/v1] api.preempt.proxy.delete.policy-rules", response, response.Code())
+ }
+}
+
+// NewAPIPreemptProxyDeletePolicyRulesOK creates a APIPreemptProxyDeletePolicyRulesOK with default headers values
+func NewAPIPreemptProxyDeletePolicyRulesOK() *APIPreemptProxyDeletePolicyRulesOK {
+ return &APIPreemptProxyDeletePolicyRulesOK{}
+}
+
+/*
+APIPreemptProxyDeletePolicyRulesOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type APIPreemptProxyDeletePolicyRulesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this api preempt proxy delete policy rules o k response has a 2xx status code
+func (o *APIPreemptProxyDeletePolicyRulesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this api preempt proxy delete policy rules o k response has a 3xx status code
+func (o *APIPreemptProxyDeletePolicyRulesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy delete policy rules o k response has a 4xx status code
+func (o *APIPreemptProxyDeletePolicyRulesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this api preempt proxy delete policy rules o k response has a 5xx status code
+func (o *APIPreemptProxyDeletePolicyRulesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy delete policy rules o k response a status code equal to that given
+func (o *APIPreemptProxyDeletePolicyRulesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the api preempt proxy delete policy rules o k response
+func (o *APIPreemptProxyDeletePolicyRulesOK) Code() int {
+ return 200
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesOK) Error() string {
+ return fmt.Sprintf("[DELETE /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyDeletePolicyRulesOK ", 200)
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesOK) String() string {
+ return fmt.Sprintf("[DELETE /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyDeletePolicyRulesOK ", 200)
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyDeletePolicyRulesForbidden creates a APIPreemptProxyDeletePolicyRulesForbidden with default headers values
+func NewAPIPreemptProxyDeletePolicyRulesForbidden() *APIPreemptProxyDeletePolicyRulesForbidden {
+ return &APIPreemptProxyDeletePolicyRulesForbidden{}
+}
+
+/*
+APIPreemptProxyDeletePolicyRulesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type APIPreemptProxyDeletePolicyRulesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy delete policy rules forbidden response has a 2xx status code
+func (o *APIPreemptProxyDeletePolicyRulesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy delete policy rules forbidden response has a 3xx status code
+func (o *APIPreemptProxyDeletePolicyRulesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy delete policy rules forbidden response has a 4xx status code
+func (o *APIPreemptProxyDeletePolicyRulesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this api preempt proxy delete policy rules forbidden response has a 5xx status code
+func (o *APIPreemptProxyDeletePolicyRulesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy delete policy rules forbidden response a status code equal to that given
+func (o *APIPreemptProxyDeletePolicyRulesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the api preempt proxy delete policy rules forbidden response
+func (o *APIPreemptProxyDeletePolicyRulesForbidden) Code() int {
+ return 403
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesForbidden) Error() string {
+ return fmt.Sprintf("[DELETE /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyDeletePolicyRulesForbidden %+v", 403, o.Payload)
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesForbidden) String() string {
+ return fmt.Sprintf("[DELETE /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyDeletePolicyRulesForbidden %+v", 403, o.Payload)
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyDeletePolicyRulesTooManyRequests creates a APIPreemptProxyDeletePolicyRulesTooManyRequests with default headers values
+func NewAPIPreemptProxyDeletePolicyRulesTooManyRequests() *APIPreemptProxyDeletePolicyRulesTooManyRequests {
+ return &APIPreemptProxyDeletePolicyRulesTooManyRequests{}
+}
+
+/*
+APIPreemptProxyDeletePolicyRulesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type APIPreemptProxyDeletePolicyRulesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy delete policy rules too many requests response has a 2xx status code
+func (o *APIPreemptProxyDeletePolicyRulesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy delete policy rules too many requests response has a 3xx status code
+func (o *APIPreemptProxyDeletePolicyRulesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy delete policy rules too many requests response has a 4xx status code
+func (o *APIPreemptProxyDeletePolicyRulesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this api preempt proxy delete policy rules too many requests response has a 5xx status code
+func (o *APIPreemptProxyDeletePolicyRulesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy delete policy rules too many requests response a status code equal to that given
+func (o *APIPreemptProxyDeletePolicyRulesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the api preempt proxy delete policy rules too many requests response
+func (o *APIPreemptProxyDeletePolicyRulesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesTooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyDeletePolicyRulesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesTooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyDeletePolicyRulesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyDeletePolicyRulesInternalServerError creates a APIPreemptProxyDeletePolicyRulesInternalServerError with default headers values
+func NewAPIPreemptProxyDeletePolicyRulesInternalServerError() *APIPreemptProxyDeletePolicyRulesInternalServerError {
+ return &APIPreemptProxyDeletePolicyRulesInternalServerError{}
+}
+
+/*
+APIPreemptProxyDeletePolicyRulesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type APIPreemptProxyDeletePolicyRulesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy delete policy rules internal server error response has a 2xx status code
+func (o *APIPreemptProxyDeletePolicyRulesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy delete policy rules internal server error response has a 3xx status code
+func (o *APIPreemptProxyDeletePolicyRulesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy delete policy rules internal server error response has a 4xx status code
+func (o *APIPreemptProxyDeletePolicyRulesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this api preempt proxy delete policy rules internal server error response has a 5xx status code
+func (o *APIPreemptProxyDeletePolicyRulesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this api preempt proxy delete policy rules internal server error response a status code equal to that given
+func (o *APIPreemptProxyDeletePolicyRulesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the api preempt proxy delete policy rules internal server error response
+func (o *APIPreemptProxyDeletePolicyRulesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyDeletePolicyRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyDeletePolicyRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyDeletePolicyRulesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_parameters.go b/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_parameters.go
new file mode 100644
index 00000000..56cd7b93
--- /dev/null
+++ b/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_parameters.go
@@ -0,0 +1,197 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package identity_protection
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewAPIPreemptProxyGetPolicyRulesParams creates a new APIPreemptProxyGetPolicyRulesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewAPIPreemptProxyGetPolicyRulesParams() *APIPreemptProxyGetPolicyRulesParams {
+ return &APIPreemptProxyGetPolicyRulesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewAPIPreemptProxyGetPolicyRulesParamsWithTimeout creates a new APIPreemptProxyGetPolicyRulesParams object
+// with the ability to set a timeout on a request.
+func NewAPIPreemptProxyGetPolicyRulesParamsWithTimeout(timeout time.Duration) *APIPreemptProxyGetPolicyRulesParams {
+ return &APIPreemptProxyGetPolicyRulesParams{
+ timeout: timeout,
+ }
+}
+
+// NewAPIPreemptProxyGetPolicyRulesParamsWithContext creates a new APIPreemptProxyGetPolicyRulesParams object
+// with the ability to set a context for a request.
+func NewAPIPreemptProxyGetPolicyRulesParamsWithContext(ctx context.Context) *APIPreemptProxyGetPolicyRulesParams {
+ return &APIPreemptProxyGetPolicyRulesParams{
+ Context: ctx,
+ }
+}
+
+// NewAPIPreemptProxyGetPolicyRulesParamsWithHTTPClient creates a new APIPreemptProxyGetPolicyRulesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewAPIPreemptProxyGetPolicyRulesParamsWithHTTPClient(client *http.Client) *APIPreemptProxyGetPolicyRulesParams {
+ return &APIPreemptProxyGetPolicyRulesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+APIPreemptProxyGetPolicyRulesParams contains all the parameters to send to the API endpoint
+
+ for the api preempt proxy get policy rules operation.
+
+ Typically these are written to a http.Request.
+*/
+type APIPreemptProxyGetPolicyRulesParams struct {
+
+ /* Authorization.
+
+ Authorization Header
+ */
+ Authorization string
+
+ /* Ids.
+
+ Rule IDs
+ */
+ Ids []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the api preempt proxy get policy rules params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *APIPreemptProxyGetPolicyRulesParams) WithDefaults() *APIPreemptProxyGetPolicyRulesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the api preempt proxy get policy rules params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *APIPreemptProxyGetPolicyRulesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the api preempt proxy get policy rules params
+func (o *APIPreemptProxyGetPolicyRulesParams) WithTimeout(timeout time.Duration) *APIPreemptProxyGetPolicyRulesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the api preempt proxy get policy rules params
+func (o *APIPreemptProxyGetPolicyRulesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the api preempt proxy get policy rules params
+func (o *APIPreemptProxyGetPolicyRulesParams) WithContext(ctx context.Context) *APIPreemptProxyGetPolicyRulesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the api preempt proxy get policy rules params
+func (o *APIPreemptProxyGetPolicyRulesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the api preempt proxy get policy rules params
+func (o *APIPreemptProxyGetPolicyRulesParams) WithHTTPClient(client *http.Client) *APIPreemptProxyGetPolicyRulesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the api preempt proxy get policy rules params
+func (o *APIPreemptProxyGetPolicyRulesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithAuthorization adds the authorization to the api preempt proxy get policy rules params
+func (o *APIPreemptProxyGetPolicyRulesParams) WithAuthorization(authorization string) *APIPreemptProxyGetPolicyRulesParams {
+ o.SetAuthorization(authorization)
+ return o
+}
+
+// SetAuthorization adds the authorization to the api preempt proxy get policy rules params
+func (o *APIPreemptProxyGetPolicyRulesParams) SetAuthorization(authorization string) {
+ o.Authorization = authorization
+}
+
+// WithIds adds the ids to the api preempt proxy get policy rules params
+func (o *APIPreemptProxyGetPolicyRulesParams) WithIds(ids []string) *APIPreemptProxyGetPolicyRulesParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the api preempt proxy get policy rules params
+func (o *APIPreemptProxyGetPolicyRulesParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *APIPreemptProxyGetPolicyRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // header param Authorization
+ if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil {
+ return err
+ }
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamAPIPreemptProxyGetPolicyRules binds the parameter ids
+func (o *APIPreemptProxyGetPolicyRulesParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "csv"
+ idsIS := swag.JoinByFormat(idsIC, "csv")
+
+ return idsIS
+}
diff --git a/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_query_parameters.go b/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_query_parameters.go
new file mode 100644
index 00000000..de134b43
--- /dev/null
+++ b/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_query_parameters.go
@@ -0,0 +1,254 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package identity_protection
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewAPIPreemptProxyGetPolicyRulesQueryParams creates a new APIPreemptProxyGetPolicyRulesQueryParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewAPIPreemptProxyGetPolicyRulesQueryParams() *APIPreemptProxyGetPolicyRulesQueryParams {
+ return &APIPreemptProxyGetPolicyRulesQueryParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewAPIPreemptProxyGetPolicyRulesQueryParamsWithTimeout creates a new APIPreemptProxyGetPolicyRulesQueryParams object
+// with the ability to set a timeout on a request.
+func NewAPIPreemptProxyGetPolicyRulesQueryParamsWithTimeout(timeout time.Duration) *APIPreemptProxyGetPolicyRulesQueryParams {
+ return &APIPreemptProxyGetPolicyRulesQueryParams{
+ timeout: timeout,
+ }
+}
+
+// NewAPIPreemptProxyGetPolicyRulesQueryParamsWithContext creates a new APIPreemptProxyGetPolicyRulesQueryParams object
+// with the ability to set a context for a request.
+func NewAPIPreemptProxyGetPolicyRulesQueryParamsWithContext(ctx context.Context) *APIPreemptProxyGetPolicyRulesQueryParams {
+ return &APIPreemptProxyGetPolicyRulesQueryParams{
+ Context: ctx,
+ }
+}
+
+// NewAPIPreemptProxyGetPolicyRulesQueryParamsWithHTTPClient creates a new APIPreemptProxyGetPolicyRulesQueryParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewAPIPreemptProxyGetPolicyRulesQueryParamsWithHTTPClient(client *http.Client) *APIPreemptProxyGetPolicyRulesQueryParams {
+ return &APIPreemptProxyGetPolicyRulesQueryParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+APIPreemptProxyGetPolicyRulesQueryParams contains all the parameters to send to the API endpoint
+
+ for the api preempt proxy get policy rules query operation.
+
+ Typically these are written to a http.Request.
+*/
+type APIPreemptProxyGetPolicyRulesQueryParams struct {
+
+ /* Authorization.
+
+ Authorization Header
+ */
+ Authorization string
+
+ /* Enabled.
+
+ Whether the rule is enabled
+ */
+ Enabled *bool
+
+ /* Name.
+
+ Rule name
+ */
+ Name *string
+
+ /* SimulationMode.
+
+ Whether the rule is in simulation mode
+ */
+ SimulationMode *bool
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the api preempt proxy get policy rules query params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) WithDefaults() *APIPreemptProxyGetPolicyRulesQueryParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the api preempt proxy get policy rules query params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) WithTimeout(timeout time.Duration) *APIPreemptProxyGetPolicyRulesQueryParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) WithContext(ctx context.Context) *APIPreemptProxyGetPolicyRulesQueryParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) WithHTTPClient(client *http.Client) *APIPreemptProxyGetPolicyRulesQueryParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithAuthorization adds the authorization to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) WithAuthorization(authorization string) *APIPreemptProxyGetPolicyRulesQueryParams {
+ o.SetAuthorization(authorization)
+ return o
+}
+
+// SetAuthorization adds the authorization to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) SetAuthorization(authorization string) {
+ o.Authorization = authorization
+}
+
+// WithEnabled adds the enabled to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) WithEnabled(enabled *bool) *APIPreemptProxyGetPolicyRulesQueryParams {
+ o.SetEnabled(enabled)
+ return o
+}
+
+// SetEnabled adds the enabled to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) SetEnabled(enabled *bool) {
+ o.Enabled = enabled
+}
+
+// WithName adds the name to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) WithName(name *string) *APIPreemptProxyGetPolicyRulesQueryParams {
+ o.SetName(name)
+ return o
+}
+
+// SetName adds the name to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) SetName(name *string) {
+ o.Name = name
+}
+
+// WithSimulationMode adds the simulationMode to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) WithSimulationMode(simulationMode *bool) *APIPreemptProxyGetPolicyRulesQueryParams {
+ o.SetSimulationMode(simulationMode)
+ return o
+}
+
+// SetSimulationMode adds the simulationMode to the api preempt proxy get policy rules query params
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) SetSimulationMode(simulationMode *bool) {
+ o.SimulationMode = simulationMode
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *APIPreemptProxyGetPolicyRulesQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // header param Authorization
+ if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil {
+ return err
+ }
+
+ if o.Enabled != nil {
+
+ // query param enabled
+ var qrEnabled bool
+
+ if o.Enabled != nil {
+ qrEnabled = *o.Enabled
+ }
+ qEnabled := swag.FormatBool(qrEnabled)
+ if qEnabled != "" {
+
+ if err := r.SetQueryParam("enabled", qEnabled); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Name != nil {
+
+ // query param name
+ var qrName string
+
+ if o.Name != nil {
+ qrName = *o.Name
+ }
+ qName := qrName
+ if qName != "" {
+
+ if err := r.SetQueryParam("name", qName); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.SimulationMode != nil {
+
+ // query param simulation_mode
+ var qrSimulationMode bool
+
+ if o.SimulationMode != nil {
+ qrSimulationMode = *o.SimulationMode
+ }
+ qSimulationMode := swag.FormatBool(qrSimulationMode)
+ if qSimulationMode != "" {
+
+ if err := r.SetQueryParam("simulation_mode", qSimulationMode); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_query_responses.go b/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_query_responses.go
new file mode 100644
index 00000000..39995332
--- /dev/null
+++ b/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_query_responses.go
@@ -0,0 +1,497 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package identity_protection
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// APIPreemptProxyGetPolicyRulesQueryReader is a Reader for the APIPreemptProxyGetPolicyRulesQuery structure.
+type APIPreemptProxyGetPolicyRulesQueryReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *APIPreemptProxyGetPolicyRulesQueryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewAPIPreemptProxyGetPolicyRulesQueryOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewAPIPreemptProxyGetPolicyRulesQueryForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewAPIPreemptProxyGetPolicyRulesQueryTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewAPIPreemptProxyGetPolicyRulesQueryInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /identity-protection/queries/policy-rules/v1] api.preempt.proxy.get.policy-rules.query", response, response.Code())
+ }
+}
+
+// NewAPIPreemptProxyGetPolicyRulesQueryOK creates a APIPreemptProxyGetPolicyRulesQueryOK with default headers values
+func NewAPIPreemptProxyGetPolicyRulesQueryOK() *APIPreemptProxyGetPolicyRulesQueryOK {
+ return &APIPreemptProxyGetPolicyRulesQueryOK{}
+}
+
+/*
+APIPreemptProxyGetPolicyRulesQueryOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type APIPreemptProxyGetPolicyRulesQueryOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this api preempt proxy get policy rules query o k response has a 2xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this api preempt proxy get policy rules query o k response has a 3xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy get policy rules query o k response has a 4xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this api preempt proxy get policy rules query o k response has a 5xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy get policy rules query o k response a status code equal to that given
+func (o *APIPreemptProxyGetPolicyRulesQueryOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the api preempt proxy get policy rules query o k response
+func (o *APIPreemptProxyGetPolicyRulesQueryOK) Code() int {
+ return 200
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryOK) Error() string {
+ return fmt.Sprintf("[GET /identity-protection/queries/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesQueryOK ", 200)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryOK) String() string {
+ return fmt.Sprintf("[GET /identity-protection/queries/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesQueryOK ", 200)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyGetPolicyRulesQueryForbidden creates a APIPreemptProxyGetPolicyRulesQueryForbidden with default headers values
+func NewAPIPreemptProxyGetPolicyRulesQueryForbidden() *APIPreemptProxyGetPolicyRulesQueryForbidden {
+ return &APIPreemptProxyGetPolicyRulesQueryForbidden{}
+}
+
+/*
+APIPreemptProxyGetPolicyRulesQueryForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type APIPreemptProxyGetPolicyRulesQueryForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy get policy rules query forbidden response has a 2xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy get policy rules query forbidden response has a 3xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy get policy rules query forbidden response has a 4xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this api preempt proxy get policy rules query forbidden response has a 5xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy get policy rules query forbidden response a status code equal to that given
+func (o *APIPreemptProxyGetPolicyRulesQueryForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the api preempt proxy get policy rules query forbidden response
+func (o *APIPreemptProxyGetPolicyRulesQueryForbidden) Code() int {
+ return 403
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryForbidden) Error() string {
+ return fmt.Sprintf("[GET /identity-protection/queries/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesQueryForbidden %+v", 403, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryForbidden) String() string {
+ return fmt.Sprintf("[GET /identity-protection/queries/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesQueryForbidden %+v", 403, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyGetPolicyRulesQueryTooManyRequests creates a APIPreemptProxyGetPolicyRulesQueryTooManyRequests with default headers values
+func NewAPIPreemptProxyGetPolicyRulesQueryTooManyRequests() *APIPreemptProxyGetPolicyRulesQueryTooManyRequests {
+ return &APIPreemptProxyGetPolicyRulesQueryTooManyRequests{}
+}
+
+/*
+APIPreemptProxyGetPolicyRulesQueryTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type APIPreemptProxyGetPolicyRulesQueryTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy get policy rules query too many requests response has a 2xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy get policy rules query too many requests response has a 3xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy get policy rules query too many requests response has a 4xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this api preempt proxy get policy rules query too many requests response has a 5xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy get policy rules query too many requests response a status code equal to that given
+func (o *APIPreemptProxyGetPolicyRulesQueryTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the api preempt proxy get policy rules query too many requests response
+func (o *APIPreemptProxyGetPolicyRulesQueryTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /identity-protection/queries/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesQueryTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /identity-protection/queries/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesQueryTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyGetPolicyRulesQueryInternalServerError creates a APIPreemptProxyGetPolicyRulesQueryInternalServerError with default headers values
+func NewAPIPreemptProxyGetPolicyRulesQueryInternalServerError() *APIPreemptProxyGetPolicyRulesQueryInternalServerError {
+ return &APIPreemptProxyGetPolicyRulesQueryInternalServerError{}
+}
+
+/*
+APIPreemptProxyGetPolicyRulesQueryInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type APIPreemptProxyGetPolicyRulesQueryInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy get policy rules query internal server error response has a 2xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy get policy rules query internal server error response has a 3xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy get policy rules query internal server error response has a 4xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this api preempt proxy get policy rules query internal server error response has a 5xx status code
+func (o *APIPreemptProxyGetPolicyRulesQueryInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this api preempt proxy get policy rules query internal server error response a status code equal to that given
+func (o *APIPreemptProxyGetPolicyRulesQueryInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the api preempt proxy get policy rules query internal server error response
+func (o *APIPreemptProxyGetPolicyRulesQueryInternalServerError) Code() int {
+ return 500
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /identity-protection/queries/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryInternalServerError) String() string {
+ return fmt.Sprintf("[GET /identity-protection/queries/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyGetPolicyRulesQueryInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_responses.go b/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_responses.go
new file mode 100644
index 00000000..403c48d1
--- /dev/null
+++ b/falcon/client/identity_protection/api_preempt_proxy_get_policy_rules_responses.go
@@ -0,0 +1,497 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package identity_protection
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// APIPreemptProxyGetPolicyRulesReader is a Reader for the APIPreemptProxyGetPolicyRules structure.
+type APIPreemptProxyGetPolicyRulesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *APIPreemptProxyGetPolicyRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewAPIPreemptProxyGetPolicyRulesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewAPIPreemptProxyGetPolicyRulesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewAPIPreemptProxyGetPolicyRulesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewAPIPreemptProxyGetPolicyRulesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /identity-protection/entities/policy-rules/v1] api.preempt.proxy.get.policy-rules", response, response.Code())
+ }
+}
+
+// NewAPIPreemptProxyGetPolicyRulesOK creates a APIPreemptProxyGetPolicyRulesOK with default headers values
+func NewAPIPreemptProxyGetPolicyRulesOK() *APIPreemptProxyGetPolicyRulesOK {
+ return &APIPreemptProxyGetPolicyRulesOK{}
+}
+
+/*
+APIPreemptProxyGetPolicyRulesOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type APIPreemptProxyGetPolicyRulesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this api preempt proxy get policy rules o k response has a 2xx status code
+func (o *APIPreemptProxyGetPolicyRulesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this api preempt proxy get policy rules o k response has a 3xx status code
+func (o *APIPreemptProxyGetPolicyRulesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy get policy rules o k response has a 4xx status code
+func (o *APIPreemptProxyGetPolicyRulesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this api preempt proxy get policy rules o k response has a 5xx status code
+func (o *APIPreemptProxyGetPolicyRulesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy get policy rules o k response a status code equal to that given
+func (o *APIPreemptProxyGetPolicyRulesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the api preempt proxy get policy rules o k response
+func (o *APIPreemptProxyGetPolicyRulesOK) Code() int {
+ return 200
+}
+
+func (o *APIPreemptProxyGetPolicyRulesOK) Error() string {
+ return fmt.Sprintf("[GET /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesOK ", 200)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesOK) String() string {
+ return fmt.Sprintf("[GET /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesOK ", 200)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyGetPolicyRulesForbidden creates a APIPreemptProxyGetPolicyRulesForbidden with default headers values
+func NewAPIPreemptProxyGetPolicyRulesForbidden() *APIPreemptProxyGetPolicyRulesForbidden {
+ return &APIPreemptProxyGetPolicyRulesForbidden{}
+}
+
+/*
+APIPreemptProxyGetPolicyRulesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type APIPreemptProxyGetPolicyRulesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy get policy rules forbidden response has a 2xx status code
+func (o *APIPreemptProxyGetPolicyRulesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy get policy rules forbidden response has a 3xx status code
+func (o *APIPreemptProxyGetPolicyRulesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy get policy rules forbidden response has a 4xx status code
+func (o *APIPreemptProxyGetPolicyRulesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this api preempt proxy get policy rules forbidden response has a 5xx status code
+func (o *APIPreemptProxyGetPolicyRulesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy get policy rules forbidden response a status code equal to that given
+func (o *APIPreemptProxyGetPolicyRulesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the api preempt proxy get policy rules forbidden response
+func (o *APIPreemptProxyGetPolicyRulesForbidden) Code() int {
+ return 403
+}
+
+func (o *APIPreemptProxyGetPolicyRulesForbidden) Error() string {
+ return fmt.Sprintf("[GET /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesForbidden %+v", 403, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesForbidden) String() string {
+ return fmt.Sprintf("[GET /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesForbidden %+v", 403, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyGetPolicyRulesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyGetPolicyRulesTooManyRequests creates a APIPreemptProxyGetPolicyRulesTooManyRequests with default headers values
+func NewAPIPreemptProxyGetPolicyRulesTooManyRequests() *APIPreemptProxyGetPolicyRulesTooManyRequests {
+ return &APIPreemptProxyGetPolicyRulesTooManyRequests{}
+}
+
+/*
+APIPreemptProxyGetPolicyRulesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type APIPreemptProxyGetPolicyRulesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy get policy rules too many requests response has a 2xx status code
+func (o *APIPreemptProxyGetPolicyRulesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy get policy rules too many requests response has a 3xx status code
+func (o *APIPreemptProxyGetPolicyRulesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy get policy rules too many requests response has a 4xx status code
+func (o *APIPreemptProxyGetPolicyRulesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this api preempt proxy get policy rules too many requests response has a 5xx status code
+func (o *APIPreemptProxyGetPolicyRulesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy get policy rules too many requests response a status code equal to that given
+func (o *APIPreemptProxyGetPolicyRulesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the api preempt proxy get policy rules too many requests response
+func (o *APIPreemptProxyGetPolicyRulesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *APIPreemptProxyGetPolicyRulesTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyGetPolicyRulesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyGetPolicyRulesInternalServerError creates a APIPreemptProxyGetPolicyRulesInternalServerError with default headers values
+func NewAPIPreemptProxyGetPolicyRulesInternalServerError() *APIPreemptProxyGetPolicyRulesInternalServerError {
+ return &APIPreemptProxyGetPolicyRulesInternalServerError{}
+}
+
+/*
+APIPreemptProxyGetPolicyRulesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type APIPreemptProxyGetPolicyRulesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy get policy rules internal server error response has a 2xx status code
+func (o *APIPreemptProxyGetPolicyRulesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy get policy rules internal server error response has a 3xx status code
+func (o *APIPreemptProxyGetPolicyRulesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy get policy rules internal server error response has a 4xx status code
+func (o *APIPreemptProxyGetPolicyRulesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this api preempt proxy get policy rules internal server error response has a 5xx status code
+func (o *APIPreemptProxyGetPolicyRulesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this api preempt proxy get policy rules internal server error response a status code equal to that given
+func (o *APIPreemptProxyGetPolicyRulesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the api preempt proxy get policy rules internal server error response
+func (o *APIPreemptProxyGetPolicyRulesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *APIPreemptProxyGetPolicyRulesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyGetPolicyRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *APIPreemptProxyGetPolicyRulesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyGetPolicyRulesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/identity_protection/api_preempt_proxy_post_graphql_responses.go b/falcon/client/identity_protection/api_preempt_proxy_post_graphql_responses.go
index 1a78b37e..79eeb0ac 100644
--- a/falcon/client/identity_protection/api_preempt_proxy_post_graphql_responses.go
+++ b/falcon/client/identity_protection/api_preempt_proxy_post_graphql_responses.go
@@ -43,6 +43,12 @@ func (o *APIPreemptProxyPostGraphqlReader) ReadResponse(response runtime.ClientR
return nil, err
}
return nil, result
+ case 500:
+ result := NewAPIPreemptProxyPostGraphqlInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /identity-protection/combined/graphql/v1] api.preempt.proxy.post.graphql", response, response.Code())
}
@@ -379,3 +385,113 @@ func (o *APIPreemptProxyPostGraphqlTooManyRequests) readResponse(response runtim
return nil
}
+
+// NewAPIPreemptProxyPostGraphqlInternalServerError creates a APIPreemptProxyPostGraphqlInternalServerError with default headers values
+func NewAPIPreemptProxyPostGraphqlInternalServerError() *APIPreemptProxyPostGraphqlInternalServerError {
+ return &APIPreemptProxyPostGraphqlInternalServerError{}
+}
+
+/*
+APIPreemptProxyPostGraphqlInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type APIPreemptProxyPostGraphqlInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy post graphql internal server error response has a 2xx status code
+func (o *APIPreemptProxyPostGraphqlInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy post graphql internal server error response has a 3xx status code
+func (o *APIPreemptProxyPostGraphqlInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy post graphql internal server error response has a 4xx status code
+func (o *APIPreemptProxyPostGraphqlInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this api preempt proxy post graphql internal server error response has a 5xx status code
+func (o *APIPreemptProxyPostGraphqlInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this api preempt proxy post graphql internal server error response a status code equal to that given
+func (o *APIPreemptProxyPostGraphqlInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the api preempt proxy post graphql internal server error response
+func (o *APIPreemptProxyPostGraphqlInternalServerError) Code() int {
+ return 500
+}
+
+func (o *APIPreemptProxyPostGraphqlInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /identity-protection/combined/graphql/v1][%d] apiPreemptProxyPostGraphqlInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *APIPreemptProxyPostGraphqlInternalServerError) String() string {
+ return fmt.Sprintf("[POST /identity-protection/combined/graphql/v1][%d] apiPreemptProxyPostGraphqlInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *APIPreemptProxyPostGraphqlInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyPostGraphqlInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/identity_protection/api_preempt_proxy_post_policy_rules_parameters.go b/falcon/client/identity_protection/api_preempt_proxy_post_policy_rules_parameters.go
new file mode 100644
index 00000000..54eba058
--- /dev/null
+++ b/falcon/client/identity_protection/api_preempt_proxy_post_policy_rules_parameters.go
@@ -0,0 +1,172 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package identity_protection
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewAPIPreemptProxyPostPolicyRulesParams creates a new APIPreemptProxyPostPolicyRulesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewAPIPreemptProxyPostPolicyRulesParams() *APIPreemptProxyPostPolicyRulesParams {
+ return &APIPreemptProxyPostPolicyRulesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewAPIPreemptProxyPostPolicyRulesParamsWithTimeout creates a new APIPreemptProxyPostPolicyRulesParams object
+// with the ability to set a timeout on a request.
+func NewAPIPreemptProxyPostPolicyRulesParamsWithTimeout(timeout time.Duration) *APIPreemptProxyPostPolicyRulesParams {
+ return &APIPreemptProxyPostPolicyRulesParams{
+ timeout: timeout,
+ }
+}
+
+// NewAPIPreemptProxyPostPolicyRulesParamsWithContext creates a new APIPreemptProxyPostPolicyRulesParams object
+// with the ability to set a context for a request.
+func NewAPIPreemptProxyPostPolicyRulesParamsWithContext(ctx context.Context) *APIPreemptProxyPostPolicyRulesParams {
+ return &APIPreemptProxyPostPolicyRulesParams{
+ Context: ctx,
+ }
+}
+
+// NewAPIPreemptProxyPostPolicyRulesParamsWithHTTPClient creates a new APIPreemptProxyPostPolicyRulesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewAPIPreemptProxyPostPolicyRulesParamsWithHTTPClient(client *http.Client) *APIPreemptProxyPostPolicyRulesParams {
+ return &APIPreemptProxyPostPolicyRulesParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+APIPreemptProxyPostPolicyRulesParams contains all the parameters to send to the API endpoint
+
+ for the api preempt proxy post policy rules operation.
+
+ Typically these are written to a http.Request.
+*/
+type APIPreemptProxyPostPolicyRulesParams struct {
+
+ /* Authorization.
+
+ Authorization Header
+ */
+ Authorization string
+
+ // Body.
+ Body *models.TypesPolicyRulesCreateBody
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the api preempt proxy post policy rules params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *APIPreemptProxyPostPolicyRulesParams) WithDefaults() *APIPreemptProxyPostPolicyRulesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the api preempt proxy post policy rules params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *APIPreemptProxyPostPolicyRulesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the api preempt proxy post policy rules params
+func (o *APIPreemptProxyPostPolicyRulesParams) WithTimeout(timeout time.Duration) *APIPreemptProxyPostPolicyRulesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the api preempt proxy post policy rules params
+func (o *APIPreemptProxyPostPolicyRulesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the api preempt proxy post policy rules params
+func (o *APIPreemptProxyPostPolicyRulesParams) WithContext(ctx context.Context) *APIPreemptProxyPostPolicyRulesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the api preempt proxy post policy rules params
+func (o *APIPreemptProxyPostPolicyRulesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the api preempt proxy post policy rules params
+func (o *APIPreemptProxyPostPolicyRulesParams) WithHTTPClient(client *http.Client) *APIPreemptProxyPostPolicyRulesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the api preempt proxy post policy rules params
+func (o *APIPreemptProxyPostPolicyRulesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithAuthorization adds the authorization to the api preempt proxy post policy rules params
+func (o *APIPreemptProxyPostPolicyRulesParams) WithAuthorization(authorization string) *APIPreemptProxyPostPolicyRulesParams {
+ o.SetAuthorization(authorization)
+ return o
+}
+
+// SetAuthorization adds the authorization to the api preempt proxy post policy rules params
+func (o *APIPreemptProxyPostPolicyRulesParams) SetAuthorization(authorization string) {
+ o.Authorization = authorization
+}
+
+// WithBody adds the body to the api preempt proxy post policy rules params
+func (o *APIPreemptProxyPostPolicyRulesParams) WithBody(body *models.TypesPolicyRulesCreateBody) *APIPreemptProxyPostPolicyRulesParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the api preempt proxy post policy rules params
+func (o *APIPreemptProxyPostPolicyRulesParams) SetBody(body *models.TypesPolicyRulesCreateBody) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *APIPreemptProxyPostPolicyRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // header param Authorization
+ if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil {
+ return err
+ }
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/identity_protection/api_preempt_proxy_post_policy_rules_responses.go b/falcon/client/identity_protection/api_preempt_proxy_post_policy_rules_responses.go
new file mode 100644
index 00000000..7eda11ae
--- /dev/null
+++ b/falcon/client/identity_protection/api_preempt_proxy_post_policy_rules_responses.go
@@ -0,0 +1,497 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package identity_protection
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// APIPreemptProxyPostPolicyRulesReader is a Reader for the APIPreemptProxyPostPolicyRules structure.
+type APIPreemptProxyPostPolicyRulesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *APIPreemptProxyPostPolicyRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewAPIPreemptProxyPostPolicyRulesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewAPIPreemptProxyPostPolicyRulesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewAPIPreemptProxyPostPolicyRulesTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewAPIPreemptProxyPostPolicyRulesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /identity-protection/entities/policy-rules/v1] api.preempt.proxy.post.policy-rules", response, response.Code())
+ }
+}
+
+// NewAPIPreemptProxyPostPolicyRulesOK creates a APIPreemptProxyPostPolicyRulesOK with default headers values
+func NewAPIPreemptProxyPostPolicyRulesOK() *APIPreemptProxyPostPolicyRulesOK {
+ return &APIPreemptProxyPostPolicyRulesOK{}
+}
+
+/*
+APIPreemptProxyPostPolicyRulesOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type APIPreemptProxyPostPolicyRulesOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this api preempt proxy post policy rules o k response has a 2xx status code
+func (o *APIPreemptProxyPostPolicyRulesOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this api preempt proxy post policy rules o k response has a 3xx status code
+func (o *APIPreemptProxyPostPolicyRulesOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy post policy rules o k response has a 4xx status code
+func (o *APIPreemptProxyPostPolicyRulesOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this api preempt proxy post policy rules o k response has a 5xx status code
+func (o *APIPreemptProxyPostPolicyRulesOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy post policy rules o k response a status code equal to that given
+func (o *APIPreemptProxyPostPolicyRulesOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the api preempt proxy post policy rules o k response
+func (o *APIPreemptProxyPostPolicyRulesOK) Code() int {
+ return 200
+}
+
+func (o *APIPreemptProxyPostPolicyRulesOK) Error() string {
+ return fmt.Sprintf("[POST /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyPostPolicyRulesOK ", 200)
+}
+
+func (o *APIPreemptProxyPostPolicyRulesOK) String() string {
+ return fmt.Sprintf("[POST /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyPostPolicyRulesOK ", 200)
+}
+
+func (o *APIPreemptProxyPostPolicyRulesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyPostPolicyRulesForbidden creates a APIPreemptProxyPostPolicyRulesForbidden with default headers values
+func NewAPIPreemptProxyPostPolicyRulesForbidden() *APIPreemptProxyPostPolicyRulesForbidden {
+ return &APIPreemptProxyPostPolicyRulesForbidden{}
+}
+
+/*
+APIPreemptProxyPostPolicyRulesForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type APIPreemptProxyPostPolicyRulesForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy post policy rules forbidden response has a 2xx status code
+func (o *APIPreemptProxyPostPolicyRulesForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy post policy rules forbidden response has a 3xx status code
+func (o *APIPreemptProxyPostPolicyRulesForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy post policy rules forbidden response has a 4xx status code
+func (o *APIPreemptProxyPostPolicyRulesForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this api preempt proxy post policy rules forbidden response has a 5xx status code
+func (o *APIPreemptProxyPostPolicyRulesForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy post policy rules forbidden response a status code equal to that given
+func (o *APIPreemptProxyPostPolicyRulesForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the api preempt proxy post policy rules forbidden response
+func (o *APIPreemptProxyPostPolicyRulesForbidden) Code() int {
+ return 403
+}
+
+func (o *APIPreemptProxyPostPolicyRulesForbidden) Error() string {
+ return fmt.Sprintf("[POST /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyPostPolicyRulesForbidden %+v", 403, o.Payload)
+}
+
+func (o *APIPreemptProxyPostPolicyRulesForbidden) String() string {
+ return fmt.Sprintf("[POST /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyPostPolicyRulesForbidden %+v", 403, o.Payload)
+}
+
+func (o *APIPreemptProxyPostPolicyRulesForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyPostPolicyRulesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyPostPolicyRulesTooManyRequests creates a APIPreemptProxyPostPolicyRulesTooManyRequests with default headers values
+func NewAPIPreemptProxyPostPolicyRulesTooManyRequests() *APIPreemptProxyPostPolicyRulesTooManyRequests {
+ return &APIPreemptProxyPostPolicyRulesTooManyRequests{}
+}
+
+/*
+APIPreemptProxyPostPolicyRulesTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type APIPreemptProxyPostPolicyRulesTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy post policy rules too many requests response has a 2xx status code
+func (o *APIPreemptProxyPostPolicyRulesTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy post policy rules too many requests response has a 3xx status code
+func (o *APIPreemptProxyPostPolicyRulesTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy post policy rules too many requests response has a 4xx status code
+func (o *APIPreemptProxyPostPolicyRulesTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this api preempt proxy post policy rules too many requests response has a 5xx status code
+func (o *APIPreemptProxyPostPolicyRulesTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this api preempt proxy post policy rules too many requests response a status code equal to that given
+func (o *APIPreemptProxyPostPolicyRulesTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the api preempt proxy post policy rules too many requests response
+func (o *APIPreemptProxyPostPolicyRulesTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *APIPreemptProxyPostPolicyRulesTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyPostPolicyRulesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *APIPreemptProxyPostPolicyRulesTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyPostPolicyRulesTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *APIPreemptProxyPostPolicyRulesTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyPostPolicyRulesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewAPIPreemptProxyPostPolicyRulesInternalServerError creates a APIPreemptProxyPostPolicyRulesInternalServerError with default headers values
+func NewAPIPreemptProxyPostPolicyRulesInternalServerError() *APIPreemptProxyPostPolicyRulesInternalServerError {
+ return &APIPreemptProxyPostPolicyRulesInternalServerError{}
+}
+
+/*
+APIPreemptProxyPostPolicyRulesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type APIPreemptProxyPostPolicyRulesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this api preempt proxy post policy rules internal server error response has a 2xx status code
+func (o *APIPreemptProxyPostPolicyRulesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this api preempt proxy post policy rules internal server error response has a 3xx status code
+func (o *APIPreemptProxyPostPolicyRulesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this api preempt proxy post policy rules internal server error response has a 4xx status code
+func (o *APIPreemptProxyPostPolicyRulesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this api preempt proxy post policy rules internal server error response has a 5xx status code
+func (o *APIPreemptProxyPostPolicyRulesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this api preempt proxy post policy rules internal server error response a status code equal to that given
+func (o *APIPreemptProxyPostPolicyRulesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the api preempt proxy post policy rules internal server error response
+func (o *APIPreemptProxyPostPolicyRulesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *APIPreemptProxyPostPolicyRulesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyPostPolicyRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *APIPreemptProxyPostPolicyRulesInternalServerError) String() string {
+ return fmt.Sprintf("[POST /identity-protection/entities/policy-rules/v1][%d] apiPreemptProxyPostPolicyRulesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *APIPreemptProxyPostPolicyRulesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *APIPreemptProxyPostPolicyRulesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/identity_protection/identity_protection_client.go b/falcon/client/identity_protection/identity_protection_client.go
index 9bccd616..0150ed07 100644
--- a/falcon/client/identity_protection/identity_protection_client.go
+++ b/falcon/client/identity_protection/identity_protection_client.go
@@ -30,11 +30,133 @@ type ClientOption func(*runtime.ClientOperation)
// ClientService is the interface for Client methods
type ClientService interface {
+ APIPreemptProxyDeletePolicyRules(params *APIPreemptProxyDeletePolicyRulesParams, opts ...ClientOption) (*APIPreemptProxyDeletePolicyRulesOK, error)
+
+ APIPreemptProxyGetPolicyRules(params *APIPreemptProxyGetPolicyRulesParams, opts ...ClientOption) (*APIPreemptProxyGetPolicyRulesOK, error)
+
+ APIPreemptProxyGetPolicyRulesQuery(params *APIPreemptProxyGetPolicyRulesQueryParams, opts ...ClientOption) (*APIPreemptProxyGetPolicyRulesQueryOK, error)
+
APIPreemptProxyPostGraphql(params *APIPreemptProxyPostGraphqlParams, opts ...ClientOption) (*APIPreemptProxyPostGraphqlOK, error)
+ APIPreemptProxyPostPolicyRules(params *APIPreemptProxyPostPolicyRulesParams, opts ...ClientOption) (*APIPreemptProxyPostPolicyRulesOK, error)
+
SetTransport(transport runtime.ClientTransport)
}
+/*
+APIPreemptProxyDeletePolicyRules deletes policy rules
+*/
+func (a *Client) APIPreemptProxyDeletePolicyRules(params *APIPreemptProxyDeletePolicyRulesParams, opts ...ClientOption) (*APIPreemptProxyDeletePolicyRulesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewAPIPreemptProxyDeletePolicyRulesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "api.preempt.proxy.delete.policy-rules",
+ Method: "DELETE",
+ PathPattern: "/identity-protection/entities/policy-rules/v1",
+ ProducesMediaTypes: []string{"application/json", "application/json; charset=utf-8"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &APIPreemptProxyDeletePolicyRulesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*APIPreemptProxyDeletePolicyRulesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for api.preempt.proxy.delete.policy-rules: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+APIPreemptProxyGetPolicyRules gets policy rules
+*/
+func (a *Client) APIPreemptProxyGetPolicyRules(params *APIPreemptProxyGetPolicyRulesParams, opts ...ClientOption) (*APIPreemptProxyGetPolicyRulesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewAPIPreemptProxyGetPolicyRulesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "api.preempt.proxy.get.policy-rules",
+ Method: "GET",
+ PathPattern: "/identity-protection/entities/policy-rules/v1",
+ ProducesMediaTypes: []string{"application/json", "application/json; charset=utf-8"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &APIPreemptProxyGetPolicyRulesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*APIPreemptProxyGetPolicyRulesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for api.preempt.proxy.get.policy-rules: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+APIPreemptProxyGetPolicyRulesQuery queries policy rule i ds
+*/
+func (a *Client) APIPreemptProxyGetPolicyRulesQuery(params *APIPreemptProxyGetPolicyRulesQueryParams, opts ...ClientOption) (*APIPreemptProxyGetPolicyRulesQueryOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewAPIPreemptProxyGetPolicyRulesQueryParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "api.preempt.proxy.get.policy-rules.query",
+ Method: "GET",
+ PathPattern: "/identity-protection/queries/policy-rules/v1",
+ ProducesMediaTypes: []string{"application/json", "application/json; charset=utf-8"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &APIPreemptProxyGetPolicyRulesQueryReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*APIPreemptProxyGetPolicyRulesQueryOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for api.preempt.proxy.get.policy-rules.query: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
/*
APIPreemptProxyPostGraphql identities protection graph q l API allows to retrieve entities timeline activities identity based incidents and security assessment allows to perform actions on entities and identity based incidents
*/
@@ -73,6 +195,44 @@ func (a *Client) APIPreemptProxyPostGraphql(params *APIPreemptProxyPostGraphqlPa
panic(msg)
}
+/*
+APIPreemptProxyPostPolicyRules creates policy rule
+*/
+func (a *Client) APIPreemptProxyPostPolicyRules(params *APIPreemptProxyPostPolicyRulesParams, opts ...ClientOption) (*APIPreemptProxyPostPolicyRulesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewAPIPreemptProxyPostPolicyRulesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "api.preempt.proxy.post.policy-rules",
+ Method: "POST",
+ PathPattern: "/identity-protection/entities/policy-rules/v1",
+ ProducesMediaTypes: []string{"application/json", "application/json; charset=utf-8"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &APIPreemptProxyPostPolicyRulesReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*APIPreemptProxyPostPolicyRulesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for api.preempt.proxy.post.policy-rules: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
// SetTransport changes the transport on the client
func (a *Client) SetTransport(transport runtime.ClientTransport) {
a.transport = transport
diff --git a/falcon/client/intel/get_malware_entities_responses.go b/falcon/client/intel/get_malware_entities_responses.go
index b149a243..e3f53d3e 100644
--- a/falcon/client/intel/get_malware_entities_responses.go
+++ b/falcon/client/intel/get_malware_entities_responses.go
@@ -43,6 +43,12 @@ func (o *GetMalwareEntitiesReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetMalwareEntitiesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /intel/entities/malware/v1] GetMalwareEntities", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetMalwareEntitiesTooManyRequests) readResponse(response runtime.Client
return nil
}
+
+// NewGetMalwareEntitiesInternalServerError creates a GetMalwareEntitiesInternalServerError with default headers values
+func NewGetMalwareEntitiesInternalServerError() *GetMalwareEntitiesInternalServerError {
+ return &GetMalwareEntitiesInternalServerError{}
+}
+
+/*
+GetMalwareEntitiesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetMalwareEntitiesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get malware entities internal server error response has a 2xx status code
+func (o *GetMalwareEntitiesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get malware entities internal server error response has a 3xx status code
+func (o *GetMalwareEntitiesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get malware entities internal server error response has a 4xx status code
+func (o *GetMalwareEntitiesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get malware entities internal server error response has a 5xx status code
+func (o *GetMalwareEntitiesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get malware entities internal server error response a status code equal to that given
+func (o *GetMalwareEntitiesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get malware entities internal server error response
+func (o *GetMalwareEntitiesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetMalwareEntitiesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /intel/entities/malware/v1][%d] getMalwareEntitiesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetMalwareEntitiesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /intel/entities/malware/v1][%d] getMalwareEntitiesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetMalwareEntitiesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetMalwareEntitiesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/intel/get_malware_mitre_report_parameters.go b/falcon/client/intel/get_malware_mitre_report_parameters.go
new file mode 100644
index 00000000..c60c486e
--- /dev/null
+++ b/falcon/client/intel/get_malware_mitre_report_parameters.go
@@ -0,0 +1,208 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package intel
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetMalwareMitreReportParams creates a new GetMalwareMitreReportParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetMalwareMitreReportParams() *GetMalwareMitreReportParams {
+ return &GetMalwareMitreReportParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetMalwareMitreReportParamsWithTimeout creates a new GetMalwareMitreReportParams object
+// with the ability to set a timeout on a request.
+func NewGetMalwareMitreReportParamsWithTimeout(timeout time.Duration) *GetMalwareMitreReportParams {
+ return &GetMalwareMitreReportParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetMalwareMitreReportParamsWithContext creates a new GetMalwareMitreReportParams object
+// with the ability to set a context for a request.
+func NewGetMalwareMitreReportParamsWithContext(ctx context.Context) *GetMalwareMitreReportParams {
+ return &GetMalwareMitreReportParams{
+ Context: ctx,
+ }
+}
+
+// NewGetMalwareMitreReportParamsWithHTTPClient creates a new GetMalwareMitreReportParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetMalwareMitreReportParamsWithHTTPClient(client *http.Client) *GetMalwareMitreReportParams {
+ return &GetMalwareMitreReportParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetMalwareMitreReportParams contains all the parameters to send to the API endpoint
+
+ for the get malware mitre report operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetMalwareMitreReportParams struct {
+
+ /* XCSUSERUUID.
+
+ User id
+ */
+ XCSUSERUUID *string
+
+ /* Format.
+
+ Supported report formats: CSV, JSON or JSON_NAVIGATOR
+ */
+ Format string
+
+ /* ID.
+
+ Malware family name in lower case with spaces replaced with dashes
+ */
+ ID string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get malware mitre report params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetMalwareMitreReportParams) WithDefaults() *GetMalwareMitreReportParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get malware mitre report params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetMalwareMitreReportParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) WithTimeout(timeout time.Duration) *GetMalwareMitreReportParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) WithContext(ctx context.Context) *GetMalwareMitreReportParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) WithHTTPClient(client *http.Client) *GetMalwareMitreReportParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithXCSUSERUUID adds the xCSUSERUUID to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) WithXCSUSERUUID(xCSUSERUUID *string) *GetMalwareMitreReportParams {
+ o.SetXCSUSERUUID(xCSUSERUUID)
+ return o
+}
+
+// SetXCSUSERUUID adds the xCSUSERUuid to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) SetXCSUSERUUID(xCSUSERUUID *string) {
+ o.XCSUSERUUID = xCSUSERUUID
+}
+
+// WithFormat adds the format to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) WithFormat(format string) *GetMalwareMitreReportParams {
+ o.SetFormat(format)
+ return o
+}
+
+// SetFormat adds the format to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) SetFormat(format string) {
+ o.Format = format
+}
+
+// WithID adds the id to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) WithID(id string) *GetMalwareMitreReportParams {
+ o.SetID(id)
+ return o
+}
+
+// SetID adds the id to the get malware mitre report params
+func (o *GetMalwareMitreReportParams) SetID(id string) {
+ o.ID = id
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetMalwareMitreReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.XCSUSERUUID != nil {
+
+ // header param X-CS-USERUUID
+ if err := r.SetHeaderParam("X-CS-USERUUID", *o.XCSUSERUUID); err != nil {
+ return err
+ }
+ }
+
+ // query param format
+ qrFormat := o.Format
+ qFormat := qrFormat
+ if qFormat != "" {
+
+ if err := r.SetQueryParam("format", qFormat); err != nil {
+ return err
+ }
+ }
+
+ // query param id
+ qrID := o.ID
+ qID := qrID
+ if qID != "" {
+
+ if err := r.SetQueryParam("id", qID); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/intel/get_malware_mitre_report_responses.go b/falcon/client/intel/get_malware_mitre_report_responses.go
new file mode 100644
index 00000000..02e21dcc
--- /dev/null
+++ b/falcon/client/intel/get_malware_mitre_report_responses.go
@@ -0,0 +1,497 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package intel
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetMalwareMitreReportReader is a Reader for the GetMalwareMitreReport structure.
+type GetMalwareMitreReportReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetMalwareMitreReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetMalwareMitreReportOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewGetMalwareMitreReportForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetMalwareMitreReportTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetMalwareMitreReportInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /intel/entities/malware-mitre-reports/v1] GetMalwareMitreReport", response, response.Code())
+ }
+}
+
+// NewGetMalwareMitreReportOK creates a GetMalwareMitreReportOK with default headers values
+func NewGetMalwareMitreReportOK() *GetMalwareMitreReportOK {
+ return &GetMalwareMitreReportOK{}
+}
+
+/*
+GetMalwareMitreReportOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetMalwareMitreReportOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+}
+
+// IsSuccess returns true when this get malware mitre report o k response has a 2xx status code
+func (o *GetMalwareMitreReportOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get malware mitre report o k response has a 3xx status code
+func (o *GetMalwareMitreReportOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get malware mitre report o k response has a 4xx status code
+func (o *GetMalwareMitreReportOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get malware mitre report o k response has a 5xx status code
+func (o *GetMalwareMitreReportOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get malware mitre report o k response a status code equal to that given
+func (o *GetMalwareMitreReportOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get malware mitre report o k response
+func (o *GetMalwareMitreReportOK) Code() int {
+ return 200
+}
+
+func (o *GetMalwareMitreReportOK) Error() string {
+ return fmt.Sprintf("[GET /intel/entities/malware-mitre-reports/v1][%d] getMalwareMitreReportOK ", 200)
+}
+
+func (o *GetMalwareMitreReportOK) String() string {
+ return fmt.Sprintf("[GET /intel/entities/malware-mitre-reports/v1][%d] getMalwareMitreReportOK ", 200)
+}
+
+func (o *GetMalwareMitreReportOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ return nil
+}
+
+// NewGetMalwareMitreReportForbidden creates a GetMalwareMitreReportForbidden with default headers values
+func NewGetMalwareMitreReportForbidden() *GetMalwareMitreReportForbidden {
+ return &GetMalwareMitreReportForbidden{}
+}
+
+/*
+GetMalwareMitreReportForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetMalwareMitreReportForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get malware mitre report forbidden response has a 2xx status code
+func (o *GetMalwareMitreReportForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get malware mitre report forbidden response has a 3xx status code
+func (o *GetMalwareMitreReportForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get malware mitre report forbidden response has a 4xx status code
+func (o *GetMalwareMitreReportForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get malware mitre report forbidden response has a 5xx status code
+func (o *GetMalwareMitreReportForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get malware mitre report forbidden response a status code equal to that given
+func (o *GetMalwareMitreReportForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get malware mitre report forbidden response
+func (o *GetMalwareMitreReportForbidden) Code() int {
+ return 403
+}
+
+func (o *GetMalwareMitreReportForbidden) Error() string {
+ return fmt.Sprintf("[GET /intel/entities/malware-mitre-reports/v1][%d] getMalwareMitreReportForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetMalwareMitreReportForbidden) String() string {
+ return fmt.Sprintf("[GET /intel/entities/malware-mitre-reports/v1][%d] getMalwareMitreReportForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetMalwareMitreReportForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetMalwareMitreReportForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetMalwareMitreReportTooManyRequests creates a GetMalwareMitreReportTooManyRequests with default headers values
+func NewGetMalwareMitreReportTooManyRequests() *GetMalwareMitreReportTooManyRequests {
+ return &GetMalwareMitreReportTooManyRequests{}
+}
+
+/*
+GetMalwareMitreReportTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetMalwareMitreReportTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get malware mitre report too many requests response has a 2xx status code
+func (o *GetMalwareMitreReportTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get malware mitre report too many requests response has a 3xx status code
+func (o *GetMalwareMitreReportTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get malware mitre report too many requests response has a 4xx status code
+func (o *GetMalwareMitreReportTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get malware mitre report too many requests response has a 5xx status code
+func (o *GetMalwareMitreReportTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get malware mitre report too many requests response a status code equal to that given
+func (o *GetMalwareMitreReportTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get malware mitre report too many requests response
+func (o *GetMalwareMitreReportTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetMalwareMitreReportTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /intel/entities/malware-mitre-reports/v1][%d] getMalwareMitreReportTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetMalwareMitreReportTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /intel/entities/malware-mitre-reports/v1][%d] getMalwareMitreReportTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetMalwareMitreReportTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetMalwareMitreReportTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetMalwareMitreReportInternalServerError creates a GetMalwareMitreReportInternalServerError with default headers values
+func NewGetMalwareMitreReportInternalServerError() *GetMalwareMitreReportInternalServerError {
+ return &GetMalwareMitreReportInternalServerError{}
+}
+
+/*
+GetMalwareMitreReportInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetMalwareMitreReportInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get malware mitre report internal server error response has a 2xx status code
+func (o *GetMalwareMitreReportInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get malware mitre report internal server error response has a 3xx status code
+func (o *GetMalwareMitreReportInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get malware mitre report internal server error response has a 4xx status code
+func (o *GetMalwareMitreReportInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get malware mitre report internal server error response has a 5xx status code
+func (o *GetMalwareMitreReportInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get malware mitre report internal server error response a status code equal to that given
+func (o *GetMalwareMitreReportInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get malware mitre report internal server error response
+func (o *GetMalwareMitreReportInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetMalwareMitreReportInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /intel/entities/malware-mitre-reports/v1][%d] getMalwareMitreReportInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetMalwareMitreReportInternalServerError) String() string {
+ return fmt.Sprintf("[GET /intel/entities/malware-mitre-reports/v1][%d] getMalwareMitreReportInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetMalwareMitreReportInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetMalwareMitreReportInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/intel/get_mitre_report_responses.go b/falcon/client/intel/get_mitre_report_responses.go
index bd8b827e..7fad723e 100644
--- a/falcon/client/intel/get_mitre_report_responses.go
+++ b/falcon/client/intel/get_mitre_report_responses.go
@@ -43,6 +43,12 @@ func (o *GetMitreReportReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetMitreReportInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /intel/entities/mitre-reports/v1] GetMitreReport", response, response.Code())
}
@@ -379,3 +385,113 @@ func (o *GetMitreReportTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewGetMitreReportInternalServerError creates a GetMitreReportInternalServerError with default headers values
+func NewGetMitreReportInternalServerError() *GetMitreReportInternalServerError {
+ return &GetMitreReportInternalServerError{}
+}
+
+/*
+GetMitreReportInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetMitreReportInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get mitre report internal server error response has a 2xx status code
+func (o *GetMitreReportInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get mitre report internal server error response has a 3xx status code
+func (o *GetMitreReportInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get mitre report internal server error response has a 4xx status code
+func (o *GetMitreReportInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get mitre report internal server error response has a 5xx status code
+func (o *GetMitreReportInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get mitre report internal server error response a status code equal to that given
+func (o *GetMitreReportInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get mitre report internal server error response
+func (o *GetMitreReportInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetMitreReportInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /intel/entities/mitre-reports/v1][%d] getMitreReportInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetMitreReportInternalServerError) String() string {
+ return fmt.Sprintf("[GET /intel/entities/mitre-reports/v1][%d] getMitreReportInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetMitreReportInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetMitreReportInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/intel/intel_client.go b/falcon/client/intel/intel_client.go
index 706f5741..ec09c6e0 100644
--- a/falcon/client/intel/intel_client.go
+++ b/falcon/client/intel/intel_client.go
@@ -47,6 +47,8 @@ type ClientService interface {
GetMalwareEntities(params *GetMalwareEntitiesParams, opts ...ClientOption) (*GetMalwareEntitiesOK, error)
+ GetMalwareMitreReport(params *GetMalwareMitreReportParams, opts ...ClientOption) (*GetMalwareMitreReportOK, error)
+
GetMitreReport(params *GetMitreReportParams, opts ...ClientOption) (*GetMitreReportOK, error)
GetVulnerabilities(params *GetVulnerabilitiesParams, opts ...ClientOption) (*GetVulnerabilitiesOK, error)
@@ -382,6 +384,44 @@ func (a *Client) GetMalwareEntities(params *GetMalwareEntitiesParams, opts ...Cl
panic(msg)
}
+/*
+GetMalwareMitreReport exports mitre a t t and c k information for a given malware family
+*/
+func (a *Client) GetMalwareMitreReport(params *GetMalwareMitreReportParams, opts ...ClientOption) (*GetMalwareMitreReportOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetMalwareMitreReportParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetMalwareMitreReport",
+ Method: "GET",
+ PathPattern: "/intel/entities/malware-mitre-reports/v1",
+ ProducesMediaTypes: []string{"application/json", "text/csv"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetMalwareMitreReportReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetMalwareMitreReportOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetMalwareMitreReport: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
/*
GetMitreReport exports mitre a t t and c k information for a given actor
*/
diff --git a/falcon/client/intel/post_mitre_attacks_responses.go b/falcon/client/intel/post_mitre_attacks_responses.go
index ecc21392..1f3c1a86 100644
--- a/falcon/client/intel/post_mitre_attacks_responses.go
+++ b/falcon/client/intel/post_mitre_attacks_responses.go
@@ -43,6 +43,12 @@ func (o *PostMitreAttacksReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewPostMitreAttacksInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /intel/entities/mitre/v1] PostMitreAttacks", response, response.Code())
}
@@ -379,3 +385,113 @@ func (o *PostMitreAttacksTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewPostMitreAttacksInternalServerError creates a PostMitreAttacksInternalServerError with default headers values
+func NewPostMitreAttacksInternalServerError() *PostMitreAttacksInternalServerError {
+ return &PostMitreAttacksInternalServerError{}
+}
+
+/*
+PostMitreAttacksInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type PostMitreAttacksInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this post mitre attacks internal server error response has a 2xx status code
+func (o *PostMitreAttacksInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this post mitre attacks internal server error response has a 3xx status code
+func (o *PostMitreAttacksInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this post mitre attacks internal server error response has a 4xx status code
+func (o *PostMitreAttacksInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this post mitre attacks internal server error response has a 5xx status code
+func (o *PostMitreAttacksInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this post mitre attacks internal server error response a status code equal to that given
+func (o *PostMitreAttacksInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the post mitre attacks internal server error response
+func (o *PostMitreAttacksInternalServerError) Code() int {
+ return 500
+}
+
+func (o *PostMitreAttacksInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /intel/entities/mitre/v1][%d] postMitreAttacksInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *PostMitreAttacksInternalServerError) String() string {
+ return fmt.Sprintf("[POST /intel/entities/mitre/v1][%d] postMitreAttacksInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *PostMitreAttacksInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *PostMitreAttacksInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/intel/query_mitre_attacks_for_malware_responses.go b/falcon/client/intel/query_mitre_attacks_for_malware_responses.go
index d92fa6e0..6bd6bb9b 100644
--- a/falcon/client/intel/query_mitre_attacks_for_malware_responses.go
+++ b/falcon/client/intel/query_mitre_attacks_for_malware_responses.go
@@ -43,6 +43,12 @@ func (o *QueryMitreAttacksForMalwareReader) ReadResponse(response runtime.Client
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryMitreAttacksForMalwareInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /intel/queries/mitre-malware/v1] QueryMitreAttacksForMalware", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryMitreAttacksForMalwareTooManyRequests) readResponse(response runti
return nil
}
+
+// NewQueryMitreAttacksForMalwareInternalServerError creates a QueryMitreAttacksForMalwareInternalServerError with default headers values
+func NewQueryMitreAttacksForMalwareInternalServerError() *QueryMitreAttacksForMalwareInternalServerError {
+ return &QueryMitreAttacksForMalwareInternalServerError{}
+}
+
+/*
+QueryMitreAttacksForMalwareInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryMitreAttacksForMalwareInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query mitre attacks for malware internal server error response has a 2xx status code
+func (o *QueryMitreAttacksForMalwareInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query mitre attacks for malware internal server error response has a 3xx status code
+func (o *QueryMitreAttacksForMalwareInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query mitre attacks for malware internal server error response has a 4xx status code
+func (o *QueryMitreAttacksForMalwareInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query mitre attacks for malware internal server error response has a 5xx status code
+func (o *QueryMitreAttacksForMalwareInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query mitre attacks for malware internal server error response a status code equal to that given
+func (o *QueryMitreAttacksForMalwareInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query mitre attacks for malware internal server error response
+func (o *QueryMitreAttacksForMalwareInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryMitreAttacksForMalwareInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /intel/queries/mitre-malware/v1][%d] queryMitreAttacksForMalwareInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryMitreAttacksForMalwareInternalServerError) String() string {
+ return fmt.Sprintf("[GET /intel/queries/mitre-malware/v1][%d] queryMitreAttacksForMalwareInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryMitreAttacksForMalwareInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryMitreAttacksForMalwareInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/intel/query_mitre_attacks_responses.go b/falcon/client/intel/query_mitre_attacks_responses.go
index e154be87..a3d4da21 100644
--- a/falcon/client/intel/query_mitre_attacks_responses.go
+++ b/falcon/client/intel/query_mitre_attacks_responses.go
@@ -43,6 +43,12 @@ func (o *QueryMitreAttacksReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryMitreAttacksInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /intel/queries/mitre/v1] QueryMitreAttacks", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryMitreAttacksTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewQueryMitreAttacksInternalServerError creates a QueryMitreAttacksInternalServerError with default headers values
+func NewQueryMitreAttacksInternalServerError() *QueryMitreAttacksInternalServerError {
+ return &QueryMitreAttacksInternalServerError{}
+}
+
+/*
+QueryMitreAttacksInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryMitreAttacksInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query mitre attacks internal server error response has a 2xx status code
+func (o *QueryMitreAttacksInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query mitre attacks internal server error response has a 3xx status code
+func (o *QueryMitreAttacksInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query mitre attacks internal server error response has a 4xx status code
+func (o *QueryMitreAttacksInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query mitre attacks internal server error response has a 5xx status code
+func (o *QueryMitreAttacksInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query mitre attacks internal server error response a status code equal to that given
+func (o *QueryMitreAttacksInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query mitre attacks internal server error response
+func (o *QueryMitreAttacksInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryMitreAttacksInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /intel/queries/mitre/v1][%d] queryMitreAttacksInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryMitreAttacksInternalServerError) String() string {
+ return fmt.Sprintf("[GET /intel/queries/mitre/v1][%d] queryMitreAttacksInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryMitreAttacksInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryMitreAttacksInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioa_exclusions/query_i_o_a_exclusions_v1_parameters.go b/falcon/client/ioa_exclusions/query_i_o_a_exclusions_v1_parameters.go
index 065e9a53..f54ad1df 100644
--- a/falcon/client/ioa_exclusions/query_i_o_a_exclusions_v1_parameters.go
+++ b/falcon/client/ioa_exclusions/query_i_o_a_exclusions_v1_parameters.go
@@ -62,12 +62,24 @@ QueryIOAExclusionsV1Params contains all the parameters to send to the API endpoi
*/
type QueryIOAExclusionsV1Params struct {
+ /* ClRegex.
+
+ The `cl_regex` expression to filter exclusions by, used alongside expressions specified in the filter query parameter.
+ */
+ ClRegex *string
+
/* Filter.
- The filter expression that should be used to limit the results.
+ The filter expression that should be used to limit the results. Filtered queries involving regex fields should specify their expressions in the `ifn_regex` and `cl_regex` parameters.
*/
Filter *string
+ /* IfnRegex.
+
+ The `ifn_regex` expression to filter exclusions by, used alongside expressions specified in the filter query parameter.
+ */
+ IfnRegex *string
+
/* Limit.
The maximum records to return. [1-500]
@@ -139,6 +151,17 @@ func (o *QueryIOAExclusionsV1Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
+// WithClRegex adds the clRegex to the query i o a exclusions v1 params
+func (o *QueryIOAExclusionsV1Params) WithClRegex(clRegex *string) *QueryIOAExclusionsV1Params {
+ o.SetClRegex(clRegex)
+ return o
+}
+
+// SetClRegex adds the clRegex to the query i o a exclusions v1 params
+func (o *QueryIOAExclusionsV1Params) SetClRegex(clRegex *string) {
+ o.ClRegex = clRegex
+}
+
// WithFilter adds the filter to the query i o a exclusions v1 params
func (o *QueryIOAExclusionsV1Params) WithFilter(filter *string) *QueryIOAExclusionsV1Params {
o.SetFilter(filter)
@@ -150,6 +173,17 @@ func (o *QueryIOAExclusionsV1Params) SetFilter(filter *string) {
o.Filter = filter
}
+// WithIfnRegex adds the ifnRegex to the query i o a exclusions v1 params
+func (o *QueryIOAExclusionsV1Params) WithIfnRegex(ifnRegex *string) *QueryIOAExclusionsV1Params {
+ o.SetIfnRegex(ifnRegex)
+ return o
+}
+
+// SetIfnRegex adds the ifnRegex to the query i o a exclusions v1 params
+func (o *QueryIOAExclusionsV1Params) SetIfnRegex(ifnRegex *string) {
+ o.IfnRegex = ifnRegex
+}
+
// WithLimit adds the limit to the query i o a exclusions v1 params
func (o *QueryIOAExclusionsV1Params) WithLimit(limit *int64) *QueryIOAExclusionsV1Params {
o.SetLimit(limit)
@@ -191,6 +225,23 @@ func (o *QueryIOAExclusionsV1Params) WriteToRequest(r runtime.ClientRequest, reg
}
var res []error
+ if o.ClRegex != nil {
+
+ // query param cl_regex
+ var qrClRegex string
+
+ if o.ClRegex != nil {
+ qrClRegex = *o.ClRegex
+ }
+ qClRegex := qrClRegex
+ if qClRegex != "" {
+
+ if err := r.SetQueryParam("cl_regex", qClRegex); err != nil {
+ return err
+ }
+ }
+ }
+
if o.Filter != nil {
// query param filter
@@ -208,6 +259,23 @@ func (o *QueryIOAExclusionsV1Params) WriteToRequest(r runtime.ClientRequest, reg
}
}
+ if o.IfnRegex != nil {
+
+ // query param ifn_regex
+ var qrIfnRegex string
+
+ if o.IfnRegex != nil {
+ qrIfnRegex = *o.IfnRegex
+ }
+ qIfnRegex := qrIfnRegex
+ if qIfnRegex != "" {
+
+ if err := r.SetQueryParam("ifn_regex", qIfnRegex); err != nil {
+ return err
+ }
+ }
+ }
+
if o.Limit != nil {
// query param limit
diff --git a/falcon/client/ioc/action_get_v1_responses.go b/falcon/client/ioc/action_get_v1_responses.go
index 8e5487d2..4dba9632 100644
--- a/falcon/client/ioc/action_get_v1_responses.go
+++ b/falcon/client/ioc/action_get_v1_responses.go
@@ -43,6 +43,12 @@ func (o *ActionGetV1Reader) ReadResponse(response runtime.ClientResponse, consum
return nil, err
}
return nil, result
+ case 500:
+ result := NewActionGetV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/entities/actions/v1] action.get.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *ActionGetV1TooManyRequests) readResponse(response runtime.ClientRespons
return nil
}
+
+// NewActionGetV1InternalServerError creates a ActionGetV1InternalServerError with default headers values
+func NewActionGetV1InternalServerError() *ActionGetV1InternalServerError {
+ return &ActionGetV1InternalServerError{}
+}
+
+/*
+ActionGetV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ActionGetV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this action get v1 internal server error response has a 2xx status code
+func (o *ActionGetV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this action get v1 internal server error response has a 3xx status code
+func (o *ActionGetV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this action get v1 internal server error response has a 4xx status code
+func (o *ActionGetV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this action get v1 internal server error response has a 5xx status code
+func (o *ActionGetV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this action get v1 internal server error response a status code equal to that given
+func (o *ActionGetV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the action get v1 internal server error response
+func (o *ActionGetV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *ActionGetV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/entities/actions/v1][%d] actionGetV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ActionGetV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/entities/actions/v1][%d] actionGetV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ActionGetV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ActionGetV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/action_query_v1_responses.go b/falcon/client/ioc/action_query_v1_responses.go
index 6ad58079..a4b5f8f1 100644
--- a/falcon/client/ioc/action_query_v1_responses.go
+++ b/falcon/client/ioc/action_query_v1_responses.go
@@ -43,6 +43,12 @@ func (o *ActionQueryV1Reader) ReadResponse(response runtime.ClientResponse, cons
return nil, err
}
return nil, result
+ case 500:
+ result := NewActionQueryV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/queries/actions/v1] action.query.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *ActionQueryV1TooManyRequests) readResponse(response runtime.ClientRespo
return nil
}
+
+// NewActionQueryV1InternalServerError creates a ActionQueryV1InternalServerError with default headers values
+func NewActionQueryV1InternalServerError() *ActionQueryV1InternalServerError {
+ return &ActionQueryV1InternalServerError{}
+}
+
+/*
+ActionQueryV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ActionQueryV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this action query v1 internal server error response has a 2xx status code
+func (o *ActionQueryV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this action query v1 internal server error response has a 3xx status code
+func (o *ActionQueryV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this action query v1 internal server error response has a 4xx status code
+func (o *ActionQueryV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this action query v1 internal server error response has a 5xx status code
+func (o *ActionQueryV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this action query v1 internal server error response a status code equal to that given
+func (o *ActionQueryV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the action query v1 internal server error response
+func (o *ActionQueryV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *ActionQueryV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/queries/actions/v1][%d] actionQueryV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ActionQueryV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/queries/actions/v1][%d] actionQueryV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ActionQueryV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ActionQueryV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/get_indicators_report_responses.go b/falcon/client/ioc/get_indicators_report_responses.go
index e7f31afa..0d55fc2f 100644
--- a/falcon/client/ioc/get_indicators_report_responses.go
+++ b/falcon/client/ioc/get_indicators_report_responses.go
@@ -43,6 +43,12 @@ func (o *GetIndicatorsReportReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetIndicatorsReportInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /iocs/entities/indicators-reports/v1] GetIndicatorsReport", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetIndicatorsReportTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewGetIndicatorsReportInternalServerError creates a GetIndicatorsReportInternalServerError with default headers values
+func NewGetIndicatorsReportInternalServerError() *GetIndicatorsReportInternalServerError {
+ return &GetIndicatorsReportInternalServerError{}
+}
+
+/*
+GetIndicatorsReportInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetIndicatorsReportInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get indicators report internal server error response has a 2xx status code
+func (o *GetIndicatorsReportInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get indicators report internal server error response has a 3xx status code
+func (o *GetIndicatorsReportInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get indicators report internal server error response has a 4xx status code
+func (o *GetIndicatorsReportInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get indicators report internal server error response has a 5xx status code
+func (o *GetIndicatorsReportInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get indicators report internal server error response a status code equal to that given
+func (o *GetIndicatorsReportInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get indicators report internal server error response
+func (o *GetIndicatorsReportInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetIndicatorsReportInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /iocs/entities/indicators-reports/v1][%d] getIndicatorsReportInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetIndicatorsReportInternalServerError) String() string {
+ return fmt.Sprintf("[POST /iocs/entities/indicators-reports/v1][%d] getIndicatorsReportInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetIndicatorsReportInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetIndicatorsReportInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/indicator_aggregate_v1_responses.go b/falcon/client/ioc/indicator_aggregate_v1_responses.go
index f263948f..6decdf4b 100644
--- a/falcon/client/ioc/indicator_aggregate_v1_responses.go
+++ b/falcon/client/ioc/indicator_aggregate_v1_responses.go
@@ -43,6 +43,12 @@ func (o *IndicatorAggregateV1Reader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewIndicatorAggregateV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /iocs/aggregates/indicators/v1] indicator.aggregate.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *IndicatorAggregateV1TooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewIndicatorAggregateV1InternalServerError creates a IndicatorAggregateV1InternalServerError with default headers values
+func NewIndicatorAggregateV1InternalServerError() *IndicatorAggregateV1InternalServerError {
+ return &IndicatorAggregateV1InternalServerError{}
+}
+
+/*
+IndicatorAggregateV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IndicatorAggregateV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this indicator aggregate v1 internal server error response has a 2xx status code
+func (o *IndicatorAggregateV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this indicator aggregate v1 internal server error response has a 3xx status code
+func (o *IndicatorAggregateV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this indicator aggregate v1 internal server error response has a 4xx status code
+func (o *IndicatorAggregateV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this indicator aggregate v1 internal server error response has a 5xx status code
+func (o *IndicatorAggregateV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this indicator aggregate v1 internal server error response a status code equal to that given
+func (o *IndicatorAggregateV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the indicator aggregate v1 internal server error response
+func (o *IndicatorAggregateV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IndicatorAggregateV1InternalServerError) Error() string {
+ return fmt.Sprintf("[POST /iocs/aggregates/indicators/v1][%d] indicatorAggregateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorAggregateV1InternalServerError) String() string {
+ return fmt.Sprintf("[POST /iocs/aggregates/indicators/v1][%d] indicatorAggregateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorAggregateV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IndicatorAggregateV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/indicator_combined_v1_responses.go b/falcon/client/ioc/indicator_combined_v1_responses.go
index 00bfb6b1..25c84e07 100644
--- a/falcon/client/ioc/indicator_combined_v1_responses.go
+++ b/falcon/client/ioc/indicator_combined_v1_responses.go
@@ -43,6 +43,12 @@ func (o *IndicatorCombinedV1Reader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewIndicatorCombinedV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/combined/indicator/v1] indicator.combined.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *IndicatorCombinedV1TooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewIndicatorCombinedV1InternalServerError creates a IndicatorCombinedV1InternalServerError with default headers values
+func NewIndicatorCombinedV1InternalServerError() *IndicatorCombinedV1InternalServerError {
+ return &IndicatorCombinedV1InternalServerError{}
+}
+
+/*
+IndicatorCombinedV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IndicatorCombinedV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this indicator combined v1 internal server error response has a 2xx status code
+func (o *IndicatorCombinedV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this indicator combined v1 internal server error response has a 3xx status code
+func (o *IndicatorCombinedV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this indicator combined v1 internal server error response has a 4xx status code
+func (o *IndicatorCombinedV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this indicator combined v1 internal server error response has a 5xx status code
+func (o *IndicatorCombinedV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this indicator combined v1 internal server error response a status code equal to that given
+func (o *IndicatorCombinedV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the indicator combined v1 internal server error response
+func (o *IndicatorCombinedV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IndicatorCombinedV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/combined/indicator/v1][%d] indicatorCombinedV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorCombinedV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/combined/indicator/v1][%d] indicatorCombinedV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorCombinedV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IndicatorCombinedV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/indicator_create_v1_responses.go b/falcon/client/ioc/indicator_create_v1_responses.go
index 0bbca392..f162e65f 100644
--- a/falcon/client/ioc/indicator_create_v1_responses.go
+++ b/falcon/client/ioc/indicator_create_v1_responses.go
@@ -49,6 +49,12 @@ func (o *IndicatorCreateV1Reader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewIndicatorCreateV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /iocs/entities/indicators/v1] indicator.create.v1", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *IndicatorCreateV1TooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewIndicatorCreateV1InternalServerError creates a IndicatorCreateV1InternalServerError with default headers values
+func NewIndicatorCreateV1InternalServerError() *IndicatorCreateV1InternalServerError {
+ return &IndicatorCreateV1InternalServerError{}
+}
+
+/*
+IndicatorCreateV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IndicatorCreateV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this indicator create v1 internal server error response has a 2xx status code
+func (o *IndicatorCreateV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this indicator create v1 internal server error response has a 3xx status code
+func (o *IndicatorCreateV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this indicator create v1 internal server error response has a 4xx status code
+func (o *IndicatorCreateV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this indicator create v1 internal server error response has a 5xx status code
+func (o *IndicatorCreateV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this indicator create v1 internal server error response a status code equal to that given
+func (o *IndicatorCreateV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the indicator create v1 internal server error response
+func (o *IndicatorCreateV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IndicatorCreateV1InternalServerError) Error() string {
+ return fmt.Sprintf("[POST /iocs/entities/indicators/v1][%d] indicatorCreateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorCreateV1InternalServerError) String() string {
+ return fmt.Sprintf("[POST /iocs/entities/indicators/v1][%d] indicatorCreateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorCreateV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IndicatorCreateV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/indicator_delete_v1_responses.go b/falcon/client/ioc/indicator_delete_v1_responses.go
index c53248f9..f7eee7d3 100644
--- a/falcon/client/ioc/indicator_delete_v1_responses.go
+++ b/falcon/client/ioc/indicator_delete_v1_responses.go
@@ -43,6 +43,12 @@ func (o *IndicatorDeleteV1Reader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewIndicatorDeleteV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /iocs/entities/indicators/v1] indicator.delete.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *IndicatorDeleteV1TooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewIndicatorDeleteV1InternalServerError creates a IndicatorDeleteV1InternalServerError with default headers values
+func NewIndicatorDeleteV1InternalServerError() *IndicatorDeleteV1InternalServerError {
+ return &IndicatorDeleteV1InternalServerError{}
+}
+
+/*
+IndicatorDeleteV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IndicatorDeleteV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this indicator delete v1 internal server error response has a 2xx status code
+func (o *IndicatorDeleteV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this indicator delete v1 internal server error response has a 3xx status code
+func (o *IndicatorDeleteV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this indicator delete v1 internal server error response has a 4xx status code
+func (o *IndicatorDeleteV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this indicator delete v1 internal server error response has a 5xx status code
+func (o *IndicatorDeleteV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this indicator delete v1 internal server error response a status code equal to that given
+func (o *IndicatorDeleteV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the indicator delete v1 internal server error response
+func (o *IndicatorDeleteV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IndicatorDeleteV1InternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /iocs/entities/indicators/v1][%d] indicatorDeleteV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorDeleteV1InternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /iocs/entities/indicators/v1][%d] indicatorDeleteV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorDeleteV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IndicatorDeleteV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/indicator_get_device_count_v1_responses.go b/falcon/client/ioc/indicator_get_device_count_v1_responses.go
index def0aedf..72662771 100644
--- a/falcon/client/ioc/indicator_get_device_count_v1_responses.go
+++ b/falcon/client/ioc/indicator_get_device_count_v1_responses.go
@@ -43,6 +43,12 @@ func (o *IndicatorGetDeviceCountV1Reader) ReadResponse(response runtime.ClientRe
return nil, err
}
return nil, result
+ case 500:
+ result := NewIndicatorGetDeviceCountV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/aggregates/indicators/device-count/v1] indicator.get.device_count.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *IndicatorGetDeviceCountV1TooManyRequests) readResponse(response runtime
return nil
}
+
+// NewIndicatorGetDeviceCountV1InternalServerError creates a IndicatorGetDeviceCountV1InternalServerError with default headers values
+func NewIndicatorGetDeviceCountV1InternalServerError() *IndicatorGetDeviceCountV1InternalServerError {
+ return &IndicatorGetDeviceCountV1InternalServerError{}
+}
+
+/*
+IndicatorGetDeviceCountV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IndicatorGetDeviceCountV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this indicator get device count v1 internal server error response has a 2xx status code
+func (o *IndicatorGetDeviceCountV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this indicator get device count v1 internal server error response has a 3xx status code
+func (o *IndicatorGetDeviceCountV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this indicator get device count v1 internal server error response has a 4xx status code
+func (o *IndicatorGetDeviceCountV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this indicator get device count v1 internal server error response has a 5xx status code
+func (o *IndicatorGetDeviceCountV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this indicator get device count v1 internal server error response a status code equal to that given
+func (o *IndicatorGetDeviceCountV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the indicator get device count v1 internal server error response
+func (o *IndicatorGetDeviceCountV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IndicatorGetDeviceCountV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/aggregates/indicators/device-count/v1][%d] indicatorGetDeviceCountV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorGetDeviceCountV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/aggregates/indicators/device-count/v1][%d] indicatorGetDeviceCountV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorGetDeviceCountV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IndicatorGetDeviceCountV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/indicator_get_devices_ran_on_v1_responses.go b/falcon/client/ioc/indicator_get_devices_ran_on_v1_responses.go
index f4d96a3a..30f798a9 100644
--- a/falcon/client/ioc/indicator_get_devices_ran_on_v1_responses.go
+++ b/falcon/client/ioc/indicator_get_devices_ran_on_v1_responses.go
@@ -43,6 +43,12 @@ func (o *IndicatorGetDevicesRanOnV1Reader) ReadResponse(response runtime.ClientR
return nil, err
}
return nil, result
+ case 500:
+ result := NewIndicatorGetDevicesRanOnV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/queries/indicators/devices/v1] indicator.get.devices_ran_on.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *IndicatorGetDevicesRanOnV1TooManyRequests) readResponse(response runtim
return nil
}
+
+// NewIndicatorGetDevicesRanOnV1InternalServerError creates a IndicatorGetDevicesRanOnV1InternalServerError with default headers values
+func NewIndicatorGetDevicesRanOnV1InternalServerError() *IndicatorGetDevicesRanOnV1InternalServerError {
+ return &IndicatorGetDevicesRanOnV1InternalServerError{}
+}
+
+/*
+IndicatorGetDevicesRanOnV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IndicatorGetDevicesRanOnV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this indicator get devices ran on v1 internal server error response has a 2xx status code
+func (o *IndicatorGetDevicesRanOnV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this indicator get devices ran on v1 internal server error response has a 3xx status code
+func (o *IndicatorGetDevicesRanOnV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this indicator get devices ran on v1 internal server error response has a 4xx status code
+func (o *IndicatorGetDevicesRanOnV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this indicator get devices ran on v1 internal server error response has a 5xx status code
+func (o *IndicatorGetDevicesRanOnV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this indicator get devices ran on v1 internal server error response a status code equal to that given
+func (o *IndicatorGetDevicesRanOnV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the indicator get devices ran on v1 internal server error response
+func (o *IndicatorGetDevicesRanOnV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IndicatorGetDevicesRanOnV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/queries/indicators/devices/v1][%d] indicatorGetDevicesRanOnV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorGetDevicesRanOnV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/queries/indicators/devices/v1][%d] indicatorGetDevicesRanOnV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorGetDevicesRanOnV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IndicatorGetDevicesRanOnV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/indicator_get_processes_ran_on_v1_responses.go b/falcon/client/ioc/indicator_get_processes_ran_on_v1_responses.go
index eba1b779..1ae9f4b3 100644
--- a/falcon/client/ioc/indicator_get_processes_ran_on_v1_responses.go
+++ b/falcon/client/ioc/indicator_get_processes_ran_on_v1_responses.go
@@ -43,6 +43,12 @@ func (o *IndicatorGetProcessesRanOnV1Reader) ReadResponse(response runtime.Clien
return nil, err
}
return nil, result
+ case 500:
+ result := NewIndicatorGetProcessesRanOnV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/queries/indicators/processes/v1] indicator.get.processes_ran_on.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *IndicatorGetProcessesRanOnV1TooManyRequests) readResponse(response runt
return nil
}
+
+// NewIndicatorGetProcessesRanOnV1InternalServerError creates a IndicatorGetProcessesRanOnV1InternalServerError with default headers values
+func NewIndicatorGetProcessesRanOnV1InternalServerError() *IndicatorGetProcessesRanOnV1InternalServerError {
+ return &IndicatorGetProcessesRanOnV1InternalServerError{}
+}
+
+/*
+IndicatorGetProcessesRanOnV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IndicatorGetProcessesRanOnV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this indicator get processes ran on v1 internal server error response has a 2xx status code
+func (o *IndicatorGetProcessesRanOnV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this indicator get processes ran on v1 internal server error response has a 3xx status code
+func (o *IndicatorGetProcessesRanOnV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this indicator get processes ran on v1 internal server error response has a 4xx status code
+func (o *IndicatorGetProcessesRanOnV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this indicator get processes ran on v1 internal server error response has a 5xx status code
+func (o *IndicatorGetProcessesRanOnV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this indicator get processes ran on v1 internal server error response a status code equal to that given
+func (o *IndicatorGetProcessesRanOnV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the indicator get processes ran on v1 internal server error response
+func (o *IndicatorGetProcessesRanOnV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IndicatorGetProcessesRanOnV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/queries/indicators/processes/v1][%d] indicatorGetProcessesRanOnV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorGetProcessesRanOnV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/queries/indicators/processes/v1][%d] indicatorGetProcessesRanOnV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorGetProcessesRanOnV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IndicatorGetProcessesRanOnV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/indicator_get_v1_responses.go b/falcon/client/ioc/indicator_get_v1_responses.go
index 2e8ac2f3..b5b31126 100644
--- a/falcon/client/ioc/indicator_get_v1_responses.go
+++ b/falcon/client/ioc/indicator_get_v1_responses.go
@@ -43,6 +43,12 @@ func (o *IndicatorGetV1Reader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewIndicatorGetV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/entities/indicators/v1] indicator.get.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *IndicatorGetV1TooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewIndicatorGetV1InternalServerError creates a IndicatorGetV1InternalServerError with default headers values
+func NewIndicatorGetV1InternalServerError() *IndicatorGetV1InternalServerError {
+ return &IndicatorGetV1InternalServerError{}
+}
+
+/*
+IndicatorGetV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IndicatorGetV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this indicator get v1 internal server error response has a 2xx status code
+func (o *IndicatorGetV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this indicator get v1 internal server error response has a 3xx status code
+func (o *IndicatorGetV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this indicator get v1 internal server error response has a 4xx status code
+func (o *IndicatorGetV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this indicator get v1 internal server error response has a 5xx status code
+func (o *IndicatorGetV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this indicator get v1 internal server error response a status code equal to that given
+func (o *IndicatorGetV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the indicator get v1 internal server error response
+func (o *IndicatorGetV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IndicatorGetV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/entities/indicators/v1][%d] indicatorGetV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorGetV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/entities/indicators/v1][%d] indicatorGetV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorGetV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IndicatorGetV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/indicator_search_v1_responses.go b/falcon/client/ioc/indicator_search_v1_responses.go
index 7dc14b4b..96b45908 100644
--- a/falcon/client/ioc/indicator_search_v1_responses.go
+++ b/falcon/client/ioc/indicator_search_v1_responses.go
@@ -43,6 +43,12 @@ func (o *IndicatorSearchV1Reader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewIndicatorSearchV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/queries/indicators/v1] indicator.search.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *IndicatorSearchV1TooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewIndicatorSearchV1InternalServerError creates a IndicatorSearchV1InternalServerError with default headers values
+func NewIndicatorSearchV1InternalServerError() *IndicatorSearchV1InternalServerError {
+ return &IndicatorSearchV1InternalServerError{}
+}
+
+/*
+IndicatorSearchV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IndicatorSearchV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this indicator search v1 internal server error response has a 2xx status code
+func (o *IndicatorSearchV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this indicator search v1 internal server error response has a 3xx status code
+func (o *IndicatorSearchV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this indicator search v1 internal server error response has a 4xx status code
+func (o *IndicatorSearchV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this indicator search v1 internal server error response has a 5xx status code
+func (o *IndicatorSearchV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this indicator search v1 internal server error response a status code equal to that given
+func (o *IndicatorSearchV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the indicator search v1 internal server error response
+func (o *IndicatorSearchV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IndicatorSearchV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/queries/indicators/v1][%d] indicatorSearchV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorSearchV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/queries/indicators/v1][%d] indicatorSearchV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorSearchV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IndicatorSearchV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/indicator_update_v1_responses.go b/falcon/client/ioc/indicator_update_v1_responses.go
index 86c64b3d..7c18667d 100644
--- a/falcon/client/ioc/indicator_update_v1_responses.go
+++ b/falcon/client/ioc/indicator_update_v1_responses.go
@@ -43,6 +43,12 @@ func (o *IndicatorUpdateV1Reader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewIndicatorUpdateV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /iocs/entities/indicators/v1] indicator.update.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *IndicatorUpdateV1TooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewIndicatorUpdateV1InternalServerError creates a IndicatorUpdateV1InternalServerError with default headers values
+func NewIndicatorUpdateV1InternalServerError() *IndicatorUpdateV1InternalServerError {
+ return &IndicatorUpdateV1InternalServerError{}
+}
+
+/*
+IndicatorUpdateV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IndicatorUpdateV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this indicator update v1 internal server error response has a 2xx status code
+func (o *IndicatorUpdateV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this indicator update v1 internal server error response has a 3xx status code
+func (o *IndicatorUpdateV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this indicator update v1 internal server error response has a 4xx status code
+func (o *IndicatorUpdateV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this indicator update v1 internal server error response has a 5xx status code
+func (o *IndicatorUpdateV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this indicator update v1 internal server error response a status code equal to that given
+func (o *IndicatorUpdateV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the indicator update v1 internal server error response
+func (o *IndicatorUpdateV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IndicatorUpdateV1InternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /iocs/entities/indicators/v1][%d] indicatorUpdateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorUpdateV1InternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /iocs/entities/indicators/v1][%d] indicatorUpdateV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IndicatorUpdateV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IndicatorUpdateV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/ioc_type_query_v1_responses.go b/falcon/client/ioc/ioc_type_query_v1_responses.go
index 3363c7ce..9dc26bc4 100644
--- a/falcon/client/ioc/ioc_type_query_v1_responses.go
+++ b/falcon/client/ioc/ioc_type_query_v1_responses.go
@@ -43,6 +43,12 @@ func (o *IocTypeQueryV1Reader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewIocTypeQueryV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/queries/ioc-types/v1] ioc_type.query.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *IocTypeQueryV1TooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewIocTypeQueryV1InternalServerError creates a IocTypeQueryV1InternalServerError with default headers values
+func NewIocTypeQueryV1InternalServerError() *IocTypeQueryV1InternalServerError {
+ return &IocTypeQueryV1InternalServerError{}
+}
+
+/*
+IocTypeQueryV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type IocTypeQueryV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this ioc type query v1 internal server error response has a 2xx status code
+func (o *IocTypeQueryV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this ioc type query v1 internal server error response has a 3xx status code
+func (o *IocTypeQueryV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this ioc type query v1 internal server error response has a 4xx status code
+func (o *IocTypeQueryV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this ioc type query v1 internal server error response has a 5xx status code
+func (o *IocTypeQueryV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this ioc type query v1 internal server error response a status code equal to that given
+func (o *IocTypeQueryV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the ioc type query v1 internal server error response
+func (o *IocTypeQueryV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *IocTypeQueryV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/queries/ioc-types/v1][%d] iocTypeQueryV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IocTypeQueryV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/queries/ioc-types/v1][%d] iocTypeQueryV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *IocTypeQueryV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *IocTypeQueryV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/platform_query_v1_responses.go b/falcon/client/ioc/platform_query_v1_responses.go
index 1c5f1ee2..deaafaf4 100644
--- a/falcon/client/ioc/platform_query_v1_responses.go
+++ b/falcon/client/ioc/platform_query_v1_responses.go
@@ -43,6 +43,12 @@ func (o *PlatformQueryV1Reader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewPlatformQueryV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/queries/platforms/v1] platform.query.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *PlatformQueryV1TooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewPlatformQueryV1InternalServerError creates a PlatformQueryV1InternalServerError with default headers values
+func NewPlatformQueryV1InternalServerError() *PlatformQueryV1InternalServerError {
+ return &PlatformQueryV1InternalServerError{}
+}
+
+/*
+PlatformQueryV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type PlatformQueryV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this platform query v1 internal server error response has a 2xx status code
+func (o *PlatformQueryV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this platform query v1 internal server error response has a 3xx status code
+func (o *PlatformQueryV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this platform query v1 internal server error response has a 4xx status code
+func (o *PlatformQueryV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this platform query v1 internal server error response has a 5xx status code
+func (o *PlatformQueryV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this platform query v1 internal server error response a status code equal to that given
+func (o *PlatformQueryV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the platform query v1 internal server error response
+func (o *PlatformQueryV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *PlatformQueryV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/queries/platforms/v1][%d] platformQueryV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *PlatformQueryV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/queries/platforms/v1][%d] platformQueryV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *PlatformQueryV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *PlatformQueryV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ioc/severity_query_v1_responses.go b/falcon/client/ioc/severity_query_v1_responses.go
index 348ab3ba..b1695404 100644
--- a/falcon/client/ioc/severity_query_v1_responses.go
+++ b/falcon/client/ioc/severity_query_v1_responses.go
@@ -43,6 +43,12 @@ func (o *SeverityQueryV1Reader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewSeverityQueryV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /iocs/queries/severities/v1] severity.query.v1", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *SeverityQueryV1TooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewSeverityQueryV1InternalServerError creates a SeverityQueryV1InternalServerError with default headers values
+func NewSeverityQueryV1InternalServerError() *SeverityQueryV1InternalServerError {
+ return &SeverityQueryV1InternalServerError{}
+}
+
+/*
+SeverityQueryV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type SeverityQueryV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this severity query v1 internal server error response has a 2xx status code
+func (o *SeverityQueryV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this severity query v1 internal server error response has a 3xx status code
+func (o *SeverityQueryV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this severity query v1 internal server error response has a 4xx status code
+func (o *SeverityQueryV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this severity query v1 internal server error response has a 5xx status code
+func (o *SeverityQueryV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this severity query v1 internal server error response a status code equal to that given
+func (o *SeverityQueryV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the severity query v1 internal server error response
+func (o *SeverityQueryV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *SeverityQueryV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /iocs/queries/severities/v1][%d] severityQueryV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *SeverityQueryV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /iocs/queries/severities/v1][%d] severityQueryV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *SeverityQueryV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *SeverityQueryV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/iocs/devices_count_responses.go b/falcon/client/iocs/devices_count_responses.go
index 5314113c..99d2878e 100644
--- a/falcon/client/iocs/devices_count_responses.go
+++ b/falcon/client/iocs/devices_count_responses.go
@@ -43,6 +43,12 @@ func (o *DevicesCountReader) ReadResponse(response runtime.ClientResponse, consu
return nil, err
}
return nil, result
+ case 500:
+ result := NewDevicesCountInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /indicators/aggregates/devices-count/v1] DevicesCount", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *DevicesCountTooManyRequests) readResponse(response runtime.ClientRespon
return nil
}
+
+// NewDevicesCountInternalServerError creates a DevicesCountInternalServerError with default headers values
+func NewDevicesCountInternalServerError() *DevicesCountInternalServerError {
+ return &DevicesCountInternalServerError{}
+}
+
+/*
+DevicesCountInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DevicesCountInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this devices count internal server error response has a 2xx status code
+func (o *DevicesCountInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this devices count internal server error response has a 3xx status code
+func (o *DevicesCountInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this devices count internal server error response has a 4xx status code
+func (o *DevicesCountInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this devices count internal server error response has a 5xx status code
+func (o *DevicesCountInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this devices count internal server error response a status code equal to that given
+func (o *DevicesCountInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the devices count internal server error response
+func (o *DevicesCountInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DevicesCountInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /indicators/aggregates/devices-count/v1][%d] devicesCountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DevicesCountInternalServerError) String() string {
+ return fmt.Sprintf("[GET /indicators/aggregates/devices-count/v1][%d] devicesCountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DevicesCountInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DevicesCountInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/iocs/devices_ran_on_responses.go b/falcon/client/iocs/devices_ran_on_responses.go
index 5cb2b70e..4004eb1f 100644
--- a/falcon/client/iocs/devices_ran_on_responses.go
+++ b/falcon/client/iocs/devices_ran_on_responses.go
@@ -43,6 +43,12 @@ func (o *DevicesRanOnReader) ReadResponse(response runtime.ClientResponse, consu
return nil, err
}
return nil, result
+ case 500:
+ result := NewDevicesRanOnInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /indicators/queries/devices/v1] DevicesRanOn", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *DevicesRanOnTooManyRequests) readResponse(response runtime.ClientRespon
return nil
}
+
+// NewDevicesRanOnInternalServerError creates a DevicesRanOnInternalServerError with default headers values
+func NewDevicesRanOnInternalServerError() *DevicesRanOnInternalServerError {
+ return &DevicesRanOnInternalServerError{}
+}
+
+/*
+DevicesRanOnInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DevicesRanOnInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this devices ran on internal server error response has a 2xx status code
+func (o *DevicesRanOnInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this devices ran on internal server error response has a 3xx status code
+func (o *DevicesRanOnInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this devices ran on internal server error response has a 4xx status code
+func (o *DevicesRanOnInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this devices ran on internal server error response has a 5xx status code
+func (o *DevicesRanOnInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this devices ran on internal server error response a status code equal to that given
+func (o *DevicesRanOnInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the devices ran on internal server error response
+func (o *DevicesRanOnInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DevicesRanOnInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /indicators/queries/devices/v1][%d] devicesRanOnInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DevicesRanOnInternalServerError) String() string {
+ return fmt.Sprintf("[GET /indicators/queries/devices/v1][%d] devicesRanOnInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DevicesRanOnInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DevicesRanOnInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/iocs/entities_processes_responses.go b/falcon/client/iocs/entities_processes_responses.go
index da7b3df8..cd64d3ad 100644
--- a/falcon/client/iocs/entities_processes_responses.go
+++ b/falcon/client/iocs/entities_processes_responses.go
@@ -43,6 +43,12 @@ func (o *EntitiesProcessesReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewEntitiesProcessesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /processes/entities/processes/v1] entities.processes", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *EntitiesProcessesTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewEntitiesProcessesInternalServerError creates a EntitiesProcessesInternalServerError with default headers values
+func NewEntitiesProcessesInternalServerError() *EntitiesProcessesInternalServerError {
+ return &EntitiesProcessesInternalServerError{}
+}
+
+/*
+EntitiesProcessesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type EntitiesProcessesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this entities processes internal server error response has a 2xx status code
+func (o *EntitiesProcessesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this entities processes internal server error response has a 3xx status code
+func (o *EntitiesProcessesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this entities processes internal server error response has a 4xx status code
+func (o *EntitiesProcessesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this entities processes internal server error response has a 5xx status code
+func (o *EntitiesProcessesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this entities processes internal server error response a status code equal to that given
+func (o *EntitiesProcessesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the entities processes internal server error response
+func (o *EntitiesProcessesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *EntitiesProcessesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /processes/entities/processes/v1][%d] entitiesProcessesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *EntitiesProcessesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /processes/entities/processes/v1][%d] entitiesProcessesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *EntitiesProcessesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *EntitiesProcessesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/iocs/processes_ran_on_responses.go b/falcon/client/iocs/processes_ran_on_responses.go
index ca11dd7b..12e3720a 100644
--- a/falcon/client/iocs/processes_ran_on_responses.go
+++ b/falcon/client/iocs/processes_ran_on_responses.go
@@ -43,6 +43,12 @@ func (o *ProcessesRanOnReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewProcessesRanOnInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /indicators/queries/processes/v1] ProcessesRanOn", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *ProcessesRanOnTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewProcessesRanOnInternalServerError creates a ProcessesRanOnInternalServerError with default headers values
+func NewProcessesRanOnInternalServerError() *ProcessesRanOnInternalServerError {
+ return &ProcessesRanOnInternalServerError{}
+}
+
+/*
+ProcessesRanOnInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ProcessesRanOnInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this processes ran on internal server error response has a 2xx status code
+func (o *ProcessesRanOnInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this processes ran on internal server error response has a 3xx status code
+func (o *ProcessesRanOnInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this processes ran on internal server error response has a 4xx status code
+func (o *ProcessesRanOnInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this processes ran on internal server error response has a 5xx status code
+func (o *ProcessesRanOnInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this processes ran on internal server error response a status code equal to that given
+func (o *ProcessesRanOnInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the processes ran on internal server error response
+func (o *ProcessesRanOnInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ProcessesRanOnInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /indicators/queries/processes/v1][%d] processesRanOnInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ProcessesRanOnInternalServerError) String() string {
+ return fmt.Sprintf("[GET /indicators/queries/processes/v1][%d] processesRanOnInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ProcessesRanOnInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ProcessesRanOnInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/kubernetes_protection/cluster_combined_parameters.go b/falcon/client/kubernetes_protection/cluster_combined_parameters.go
index 6e7c9cb0..e3c90056 100644
--- a/falcon/client/kubernetes_protection/cluster_combined_parameters.go
+++ b/falcon/client/kubernetes_protection/cluster_combined_parameters.go
@@ -64,7 +64,7 @@ type ClusterCombinedParams struct {
/* Filter.
- Search Kubernetes clusters using a query in Falcon Query Language (FQL). Supported filters: access,agent_status,agent_type,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,cluster_status,container_count,iar_coverage,kubernetes_version,last_seen,management_status,node_count,pod_count,tags
+ Search Kubernetes clusters using a query in Falcon Query Language (FQL). Supported filters: access,agent_id,agent_status,agent_type,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,cluster_status,container_count,iar_coverage,kac_agent_id,kubernetes_version,last_seen,management_status,node_count,pod_count,tags
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/cluster_count_parameters.go b/falcon/client/kubernetes_protection/cluster_count_parameters.go
index 0dc50988..144b6a35 100644
--- a/falcon/client/kubernetes_protection/cluster_count_parameters.go
+++ b/falcon/client/kubernetes_protection/cluster_count_parameters.go
@@ -63,7 +63,7 @@ type ClusterCountParams struct {
/* Filter.
- Retrieve count of Kubernetes clusters that match a query in Falcon Query Language (FQL). Supported filters: access,agent_status,agent_type,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,cluster_status,container_count,iar_coverage,kubernetes_version,last_seen,management_status,node_count,pod_count,tags
+ Retrieve count of Kubernetes clusters that match a query in Falcon Query Language (FQL). Supported filters: access,agent_id,agent_status,agent_type,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,cluster_status,container_count,iar_coverage,kac_agent_id,kubernetes_version,last_seen,management_status,node_count,pod_count,tags
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/clusters_by_kubernetes_version_count_parameters.go b/falcon/client/kubernetes_protection/clusters_by_kubernetes_version_count_parameters.go
index 17944297..2c8b61e1 100644
--- a/falcon/client/kubernetes_protection/clusters_by_kubernetes_version_count_parameters.go
+++ b/falcon/client/kubernetes_protection/clusters_by_kubernetes_version_count_parameters.go
@@ -63,7 +63,7 @@ type ClustersByKubernetesVersionCountParams struct {
/* Filter.
- Retrieve count of Kubernetes clusters that match a query in Falcon Query Language (FQL). Supported filters: access,agent_status,agent_type,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,cluster_status,container_count,iar_coverage,kubernetes_version,last_seen,management_status,node_count,pod_count,tags
+ Retrieve count of Kubernetes clusters that match a query in Falcon Query Language (FQL). Supported filters: access,agent_id,agent_status,agent_type,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,cluster_status,container_count,iar_coverage,kac_agent_id,kubernetes_version,last_seen,management_status,node_count,pod_count,tags
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/clusters_by_status_count_parameters.go b/falcon/client/kubernetes_protection/clusters_by_status_count_parameters.go
index c9f8ff48..6a77632f 100644
--- a/falcon/client/kubernetes_protection/clusters_by_status_count_parameters.go
+++ b/falcon/client/kubernetes_protection/clusters_by_status_count_parameters.go
@@ -63,7 +63,7 @@ type ClustersByStatusCountParams struct {
/* Filter.
- Retrieve count of Kubernetes clusters that match a query in Falcon Query Language (FQL). Supported filters: access,agent_status,agent_type,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,cluster_status,container_count,iar_coverage,kubernetes_version,last_seen,management_status,node_count,pod_count,tags
+ Retrieve count of Kubernetes clusters that match a query in Falcon Query Language (FQL). Supported filters: access,agent_id,agent_status,agent_type,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,cluster_status,container_count,iar_coverage,kac_agent_id,kubernetes_version,last_seen,management_status,node_count,pod_count,tags
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/container_combined_parameters.go b/falcon/client/kubernetes_protection/container_combined_parameters.go
index ddc1c625..acdd5b64 100644
--- a/falcon/client/kubernetes_protection/container_combined_parameters.go
+++ b/falcon/client/kubernetes_protection/container_combined_parameters.go
@@ -64,7 +64,7 @@ type ContainerCombinedParams struct {
/* Filter.
- Search Kubernetes containers using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Search Kubernetes containers using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/container_count_parameters.go b/falcon/client/kubernetes_protection/container_count_parameters.go
index 58e4d2cb..e82e3de5 100644
--- a/falcon/client/kubernetes_protection/container_count_parameters.go
+++ b/falcon/client/kubernetes_protection/container_count_parameters.go
@@ -63,7 +63,7 @@ type ContainerCountParams struct {
/* Filter.
- Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/container_image_detections_count_by_date_parameters.go b/falcon/client/kubernetes_protection/container_image_detections_count_by_date_parameters.go
index 259ba826..df836fa0 100644
--- a/falcon/client/kubernetes_protection/container_image_detections_count_by_date_parameters.go
+++ b/falcon/client/kubernetes_protection/container_image_detections_count_by_date_parameters.go
@@ -63,7 +63,7 @@ type ContainerImageDetectionsCountByDateParams struct {
/* Filter.
- Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/container_images_by_most_used_parameters.go b/falcon/client/kubernetes_protection/container_images_by_most_used_parameters.go
index b5a99598..94c858d2 100644
--- a/falcon/client/kubernetes_protection/container_images_by_most_used_parameters.go
+++ b/falcon/client/kubernetes_protection/container_images_by_most_used_parameters.go
@@ -63,7 +63,7 @@ type ContainerImagesByMostUsedParams struct {
/* Filter.
- Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/container_vulnerabilities_by_severity_count_parameters.go b/falcon/client/kubernetes_protection/container_vulnerabilities_by_severity_count_parameters.go
index 0180c633..0097c358 100644
--- a/falcon/client/kubernetes_protection/container_vulnerabilities_by_severity_count_parameters.go
+++ b/falcon/client/kubernetes_protection/container_vulnerabilities_by_severity_count_parameters.go
@@ -63,7 +63,7 @@ type ContainerVulnerabilitiesBySeverityCountParams struct {
/* Filter.
- Get vulnerabilities count by severity for container using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Get vulnerabilities count by severity for container using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/containers_by_date_range_count_parameters.go b/falcon/client/kubernetes_protection/containers_by_date_range_count_parameters.go
index ca929e68..d5d29d31 100644
--- a/falcon/client/kubernetes_protection/containers_by_date_range_count_parameters.go
+++ b/falcon/client/kubernetes_protection/containers_by_date_range_count_parameters.go
@@ -63,7 +63,7 @@ type ContainersByDateRangeCountParams struct {
/* Filter.
- Get container counts using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Get container counts using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/containers_sensor_coverage_parameters.go b/falcon/client/kubernetes_protection/containers_sensor_coverage_parameters.go
index 480417a8..bb0694ac 100644
--- a/falcon/client/kubernetes_protection/containers_sensor_coverage_parameters.go
+++ b/falcon/client/kubernetes_protection/containers_sensor_coverage_parameters.go
@@ -63,7 +63,7 @@ type ContainersSensorCoverageParams struct {
/* Filter.
- Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/deployment_combined_parameters.go b/falcon/client/kubernetes_protection/deployment_combined_parameters.go
index 0fbec497..0a09cffe 100644
--- a/falcon/client/kubernetes_protection/deployment_combined_parameters.go
+++ b/falcon/client/kubernetes_protection/deployment_combined_parameters.go
@@ -64,7 +64,7 @@ type DeploymentCombinedParams struct {
/* Filter.
- Search Kubernetes deployments using a query in Falcon Query Language (FQL). Supported filters: agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,deployment_id,deployment_name,first_seen,last_seen,namespace,pod_count,resource_status
+ Search Kubernetes deployments using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,deployment_id,deployment_name,deployment_status,first_seen,kac_agent_id,last_seen,namespace,pod_count,resource_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/deployment_count_parameters.go b/falcon/client/kubernetes_protection/deployment_count_parameters.go
index 8f79beb3..2a96b070 100644
--- a/falcon/client/kubernetes_protection/deployment_count_parameters.go
+++ b/falcon/client/kubernetes_protection/deployment_count_parameters.go
@@ -63,7 +63,7 @@ type DeploymentCountParams struct {
/* Filter.
- Retrieve count of Kubernetes deployments that match a query in Falcon Query Language (FQL). Supported filters: agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,deployment_id,deployment_name,first_seen,last_seen,namespace,pod_count,resource_status
+ Retrieve count of Kubernetes deployments that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,deployment_id,deployment_name,deployment_status,first_seen,kac_agent_id,last_seen,namespace,pod_count,resource_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/distinct_container_image_count_parameters.go b/falcon/client/kubernetes_protection/distinct_container_image_count_parameters.go
index c09fa2ec..a3be7a93 100644
--- a/falcon/client/kubernetes_protection/distinct_container_image_count_parameters.go
+++ b/falcon/client/kubernetes_protection/distinct_container_image_count_parameters.go
@@ -63,7 +63,7 @@ type DistinctContainerImageCountParams struct {
/* Filter.
- Search Kubernetes containers using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Search Kubernetes containers using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/find_containers_by_container_run_time_version_parameters.go b/falcon/client/kubernetes_protection/find_containers_by_container_run_time_version_parameters.go
index 52e99399..57ec6477 100644
--- a/falcon/client/kubernetes_protection/find_containers_by_container_run_time_version_parameters.go
+++ b/falcon/client/kubernetes_protection/find_containers_by_container_run_time_version_parameters.go
@@ -64,7 +64,7 @@ type FindContainersByContainerRunTimeVersionParams struct {
/* Filter.
- Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/group_containers_by_managed_parameters.go b/falcon/client/kubernetes_protection/group_containers_by_managed_parameters.go
index e6a0195e..e69732ba 100644
--- a/falcon/client/kubernetes_protection/group_containers_by_managed_parameters.go
+++ b/falcon/client/kubernetes_protection/group_containers_by_managed_parameters.go
@@ -63,7 +63,7 @@ type GroupContainersByManagedParams struct {
/* Filter.
- Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/kubernetes_protection_client.go b/falcon/client/kubernetes_protection/kubernetes_protection_client.go
index 888ac4b8..58f90477 100644
--- a/falcon/client/kubernetes_protection/kubernetes_protection_client.go
+++ b/falcon/client/kubernetes_protection/kubernetes_protection_client.go
@@ -1431,7 +1431,7 @@ func (a *Client) GetHelmValuesYaml(params *GetHelmValuesYamlParams, opts ...Clie
ID: "GetHelmValuesYaml",
Method: "GET",
PathPattern: "/kubernetes-protection/entities/integration/agent/v1",
- ProducesMediaTypes: []string{"application/yaml"},
+ ProducesMediaTypes: []string{"application/json", "application/yaml"},
ConsumesMediaTypes: []string{"application/json", "application/octet-stream"},
Schemes: []string{"https"},
Params: params,
diff --git a/falcon/client/kubernetes_protection/node_combined_parameters.go b/falcon/client/kubernetes_protection/node_combined_parameters.go
index b7925163..3aa3878d 100644
--- a/falcon/client/kubernetes_protection/node_combined_parameters.go
+++ b/falcon/client/kubernetes_protection/node_combined_parameters.go
@@ -64,7 +64,7 @@ type NodeCombinedParams struct {
/* Filter.
- Search Kubernetes nodes using a query in Falcon Query Language (FQL). Supported filters: agent_type,aid,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_count,container_runtime_version,first_seen,image_digest,ipv4,last_seen,linux_sensor_coverage,node_name,pod_count,resource_status
+ Search Kubernetes nodes using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_count,container_runtime_version,first_seen,image_digest,ipv4,kac_agent_id,last_seen,linux_sensor_coverage,node_name,pod_count,resource_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/node_count_parameters.go b/falcon/client/kubernetes_protection/node_count_parameters.go
index 3673e876..e8b7e19c 100644
--- a/falcon/client/kubernetes_protection/node_count_parameters.go
+++ b/falcon/client/kubernetes_protection/node_count_parameters.go
@@ -63,7 +63,7 @@ type NodeCountParams struct {
/* Filter.
- Retrieve count of Kubernetes nodes that match a query in Falcon Query Language (FQL). Supported filters: agent_type,aid,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_count,container_runtime_version,first_seen,image_digest,ipv4,last_seen,linux_sensor_coverage,node_name,pod_count,resource_status
+ Retrieve count of Kubernetes nodes that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_count,container_runtime_version,first_seen,image_digest,ipv4,kac_agent_id,last_seen,linux_sensor_coverage,node_name,pod_count,resource_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/nodes_by_cloud_count_parameters.go b/falcon/client/kubernetes_protection/nodes_by_cloud_count_parameters.go
index 2f7188fd..551d57f9 100644
--- a/falcon/client/kubernetes_protection/nodes_by_cloud_count_parameters.go
+++ b/falcon/client/kubernetes_protection/nodes_by_cloud_count_parameters.go
@@ -63,7 +63,7 @@ type NodesByCloudCountParams struct {
/* Filter.
- Search Kubernetes nodes using a query in Falcon Query Language (FQL). Supported filters: agent_type,aid,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_count,container_runtime_version,first_seen,image_digest,ipv4,last_seen,linux_sensor_coverage,node_name,pod_count,resource_status
+ Search Kubernetes nodes using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_count,container_runtime_version,first_seen,image_digest,ipv4,kac_agent_id,last_seen,linux_sensor_coverage,node_name,pod_count,resource_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/nodes_by_container_engine_version_count_parameters.go b/falcon/client/kubernetes_protection/nodes_by_container_engine_version_count_parameters.go
index c22203e8..5d51d8ec 100644
--- a/falcon/client/kubernetes_protection/nodes_by_container_engine_version_count_parameters.go
+++ b/falcon/client/kubernetes_protection/nodes_by_container_engine_version_count_parameters.go
@@ -63,7 +63,7 @@ type NodesByContainerEngineVersionCountParams struct {
/* Filter.
- Search Kubernetes nodes using a query in Falcon Query Language (FQL). Supported filters: agent_type,aid,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_count,container_runtime_version,first_seen,image_digest,ipv4,last_seen,linux_sensor_coverage,node_name,pod_count,resource_status
+ Search Kubernetes nodes using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_count,container_runtime_version,first_seen,image_digest,ipv4,kac_agent_id,last_seen,linux_sensor_coverage,node_name,pod_count,resource_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/nodes_by_date_range_count_parameters.go b/falcon/client/kubernetes_protection/nodes_by_date_range_count_parameters.go
index 5c03b5b4..283fb494 100644
--- a/falcon/client/kubernetes_protection/nodes_by_date_range_count_parameters.go
+++ b/falcon/client/kubernetes_protection/nodes_by_date_range_count_parameters.go
@@ -63,7 +63,7 @@ type NodesByDateRangeCountParams struct {
/* Filter.
- Search Kubernetes nodes using a query in Falcon Query Language (FQL). Supported filters: agent_type,aid,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_count,container_runtime_version,first_seen,image_digest,ipv4,last_seen,linux_sensor_coverage,node_name,pod_count,resource_status
+ Search Kubernetes nodes using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_count,container_runtime_version,first_seen,image_digest,ipv4,kac_agent_id,last_seen,linux_sensor_coverage,node_name,pod_count,resource_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/pod_combined_parameters.go b/falcon/client/kubernetes_protection/pod_combined_parameters.go
index 3e0672ba..bfdd563a 100644
--- a/falcon/client/kubernetes_protection/pod_combined_parameters.go
+++ b/falcon/client/kubernetes_protection/pod_combined_parameters.go
@@ -64,7 +64,7 @@ type PodCombinedParams struct {
/* Filter.
- Search Kubernetes pods using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_count,first_seen,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,owner_id,owner_type,pod_external_id,pod_id,pod_name,port,privileged,resource_status,root_write_access,run_as_root_group,run_as_root_user
+ Search Kubernetes pods using a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_count,first_seen,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,owner_id,owner_type,pod_external_id,pod_id,pod_name,port,privileged,resource_status,root_write_access,run_as_root_group,run_as_root_user
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/pod_count_parameters.go b/falcon/client/kubernetes_protection/pod_count_parameters.go
index 1bd4465a..dbc6d546 100644
--- a/falcon/client/kubernetes_protection/pod_count_parameters.go
+++ b/falcon/client/kubernetes_protection/pod_count_parameters.go
@@ -63,7 +63,7 @@ type PodCountParams struct {
/* Filter.
- Retrieve count of Kubernetes pods that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_count,first_seen,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,owner_id,owner_type,pod_external_id,pod_id,pod_name,port,privileged,resource_status,root_write_access,run_as_root_group,run_as_root_user
+ Retrieve count of Kubernetes pods that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_count,first_seen,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,owner_id,owner_type,pod_external_id,pod_id,pod_name,port,privileged,resource_status,root_write_access,run_as_root_group,run_as_root_user
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/read_namespace_count_parameters.go b/falcon/client/kubernetes_protection/read_namespace_count_parameters.go
index 80f36ddd..7ef2754a 100644
--- a/falcon/client/kubernetes_protection/read_namespace_count_parameters.go
+++ b/falcon/client/kubernetes_protection/read_namespace_count_parameters.go
@@ -63,7 +63,7 @@ type ReadNamespaceCountParams struct {
/* Filter.
- Retrieve count of Kubernetes namespaces that match a query in Falcon Query Language (FQL). Supported filters: agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,first_seen,last_seen,namespace_id,namespace_name,resource_status
+ Retrieve count of Kubernetes namespaces that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,annotations_list,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,first_seen,kac_agent_id,last_seen,namespace_id,namespace_name,resource_status
*/
Filter *string
diff --git a/falcon/client/kubernetes_protection/vulnerable_container_image_count_parameters.go b/falcon/client/kubernetes_protection/vulnerable_container_image_count_parameters.go
index 64ba9a19..ebbf812c 100644
--- a/falcon/client/kubernetes_protection/vulnerable_container_image_count_parameters.go
+++ b/falcon/client/kubernetes_protection/vulnerable_container_image_count_parameters.go
@@ -63,7 +63,7 @@ type VulnerableContainerImageCountParams struct {
/* Filter.
- Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cluster_id,cluster_name,container_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
+ Retrieve count of Kubernetes containers that match a query in Falcon Query Language (FQL). Supported filters: agent_id,agent_type,allow_privilege_escalation,cid,cloud_account_id,cloud_name,cloud_region,cloud_service,cluster_id,cluster_name,container_id,container_image_id,container_name,cve_id,detection_name,first_seen,image_detection_count,image_digest,image_has_been_assessed,image_id,image_registry,image_repository,image_tag,image_vulnerability_count,insecure_mount_source,insecure_mount_type,insecure_propagation_mode,interactive_mode,ipv4,ipv6,kac_agent_id,labels,last_seen,namespace,node_name,node_uid,package_name_version,pod_id,pod_name,port,privileged,root_write_access,run_as_root_group,run_as_root_user,running_status
*/
Filter *string
diff --git a/falcon/client/message_center/aggregate_cases_responses.go b/falcon/client/message_center/aggregate_cases_responses.go
index dd6b2452..7d54ec07 100644
--- a/falcon/client/message_center/aggregate_cases_responses.go
+++ b/falcon/client/message_center/aggregate_cases_responses.go
@@ -43,6 +43,12 @@ func (o *AggregateCasesReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateCasesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /message-center/aggregates/cases/GET/v1] AggregateCases", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregateCasesTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewAggregateCasesInternalServerError creates a AggregateCasesInternalServerError with default headers values
+func NewAggregateCasesInternalServerError() *AggregateCasesInternalServerError {
+ return &AggregateCasesInternalServerError{}
+}
+
+/*
+AggregateCasesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateCasesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate cases internal server error response has a 2xx status code
+func (o *AggregateCasesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate cases internal server error response has a 3xx status code
+func (o *AggregateCasesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate cases internal server error response has a 4xx status code
+func (o *AggregateCasesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate cases internal server error response has a 5xx status code
+func (o *AggregateCasesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate cases internal server error response a status code equal to that given
+func (o *AggregateCasesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate cases internal server error response
+func (o *AggregateCasesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateCasesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /message-center/aggregates/cases/GET/v1][%d] aggregateCasesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateCasesInternalServerError) String() string {
+ return fmt.Sprintf("[POST /message-center/aggregates/cases/GET/v1][%d] aggregateCasesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateCasesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateCasesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/add_c_id_group_members_responses.go b/falcon/client/mssp/add_c_id_group_members_responses.go
index 7a189f60..22ac7afc 100644
--- a/falcon/client/mssp/add_c_id_group_members_responses.go
+++ b/falcon/client/mssp/add_c_id_group_members_responses.go
@@ -55,6 +55,12 @@ func (o *AddCIDGroupMembersReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewAddCIDGroupMembersInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /mssp/entities/cid-group-members/v1] addCIDGroupMembers", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *AddCIDGroupMembersTooManyRequests) readResponse(response runtime.Client
return nil
}
+
+// NewAddCIDGroupMembersInternalServerError creates a AddCIDGroupMembersInternalServerError with default headers values
+func NewAddCIDGroupMembersInternalServerError() *AddCIDGroupMembersInternalServerError {
+ return &AddCIDGroupMembersInternalServerError{}
+}
+
+/*
+AddCIDGroupMembersInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AddCIDGroupMembersInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this add c Id group members internal server error response has a 2xx status code
+func (o *AddCIDGroupMembersInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this add c Id group members internal server error response has a 3xx status code
+func (o *AddCIDGroupMembersInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this add c Id group members internal server error response has a 4xx status code
+func (o *AddCIDGroupMembersInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this add c Id group members internal server error response has a 5xx status code
+func (o *AddCIDGroupMembersInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this add c Id group members internal server error response a status code equal to that given
+func (o *AddCIDGroupMembersInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the add c Id group members internal server error response
+func (o *AddCIDGroupMembersInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AddCIDGroupMembersInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /mssp/entities/cid-group-members/v1][%d] addCIdGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AddCIDGroupMembersInternalServerError) String() string {
+ return fmt.Sprintf("[POST /mssp/entities/cid-group-members/v1][%d] addCIdGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AddCIDGroupMembersInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AddCIDGroupMembersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/add_role_responses.go b/falcon/client/mssp/add_role_responses.go
index bfdadb02..b48bcd5a 100644
--- a/falcon/client/mssp/add_role_responses.go
+++ b/falcon/client/mssp/add_role_responses.go
@@ -55,6 +55,12 @@ func (o *AddRoleReader) ReadResponse(response runtime.ClientResponse, consumer r
return nil, err
}
return nil, result
+ case 500:
+ result := NewAddRoleInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /mssp/entities/mssp-roles/v1] addRole", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *AddRoleTooManyRequests) readResponse(response runtime.ClientResponse, c
return nil
}
+
+// NewAddRoleInternalServerError creates a AddRoleInternalServerError with default headers values
+func NewAddRoleInternalServerError() *AddRoleInternalServerError {
+ return &AddRoleInternalServerError{}
+}
+
+/*
+AddRoleInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AddRoleInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this add role internal server error response has a 2xx status code
+func (o *AddRoleInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this add role internal server error response has a 3xx status code
+func (o *AddRoleInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this add role internal server error response has a 4xx status code
+func (o *AddRoleInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this add role internal server error response has a 5xx status code
+func (o *AddRoleInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this add role internal server error response a status code equal to that given
+func (o *AddRoleInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the add role internal server error response
+func (o *AddRoleInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AddRoleInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /mssp/entities/mssp-roles/v1][%d] addRoleInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AddRoleInternalServerError) String() string {
+ return fmt.Sprintf("[POST /mssp/entities/mssp-roles/v1][%d] addRoleInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AddRoleInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AddRoleInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/add_user_group_members_responses.go b/falcon/client/mssp/add_user_group_members_responses.go
index 8fac8590..ecc10f8f 100644
--- a/falcon/client/mssp/add_user_group_members_responses.go
+++ b/falcon/client/mssp/add_user_group_members_responses.go
@@ -55,6 +55,12 @@ func (o *AddUserGroupMembersReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewAddUserGroupMembersInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /mssp/entities/user-group-members/v1] addUserGroupMembers", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *AddUserGroupMembersTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewAddUserGroupMembersInternalServerError creates a AddUserGroupMembersInternalServerError with default headers values
+func NewAddUserGroupMembersInternalServerError() *AddUserGroupMembersInternalServerError {
+ return &AddUserGroupMembersInternalServerError{}
+}
+
+/*
+AddUserGroupMembersInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AddUserGroupMembersInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this add user group members internal server error response has a 2xx status code
+func (o *AddUserGroupMembersInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this add user group members internal server error response has a 3xx status code
+func (o *AddUserGroupMembersInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this add user group members internal server error response has a 4xx status code
+func (o *AddUserGroupMembersInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this add user group members internal server error response has a 5xx status code
+func (o *AddUserGroupMembersInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this add user group members internal server error response a status code equal to that given
+func (o *AddUserGroupMembersInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the add user group members internal server error response
+func (o *AddUserGroupMembersInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AddUserGroupMembersInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /mssp/entities/user-group-members/v1][%d] addUserGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AddUserGroupMembersInternalServerError) String() string {
+ return fmt.Sprintf("[POST /mssp/entities/user-group-members/v1][%d] addUserGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AddUserGroupMembersInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AddUserGroupMembersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/create_c_id_groups_responses.go b/falcon/client/mssp/create_c_id_groups_responses.go
index 6fc59562..0c20ebad 100644
--- a/falcon/client/mssp/create_c_id_groups_responses.go
+++ b/falcon/client/mssp/create_c_id_groups_responses.go
@@ -55,6 +55,12 @@ func (o *CreateCIDGroupsReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewCreateCIDGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /mssp/entities/cid-groups/v1] createCIDGroups", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *CreateCIDGroupsTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewCreateCIDGroupsInternalServerError creates a CreateCIDGroupsInternalServerError with default headers values
+func NewCreateCIDGroupsInternalServerError() *CreateCIDGroupsInternalServerError {
+ return &CreateCIDGroupsInternalServerError{}
+}
+
+/*
+CreateCIDGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CreateCIDGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create c Id groups internal server error response has a 2xx status code
+func (o *CreateCIDGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create c Id groups internal server error response has a 3xx status code
+func (o *CreateCIDGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create c Id groups internal server error response has a 4xx status code
+func (o *CreateCIDGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create c Id groups internal server error response has a 5xx status code
+func (o *CreateCIDGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create c Id groups internal server error response a status code equal to that given
+func (o *CreateCIDGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create c Id groups internal server error response
+func (o *CreateCIDGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateCIDGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /mssp/entities/cid-groups/v1][%d] createCIdGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateCIDGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /mssp/entities/cid-groups/v1][%d] createCIdGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateCIDGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateCIDGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/create_user_groups_responses.go b/falcon/client/mssp/create_user_groups_responses.go
index dba1eb77..31ad766f 100644
--- a/falcon/client/mssp/create_user_groups_responses.go
+++ b/falcon/client/mssp/create_user_groups_responses.go
@@ -55,6 +55,12 @@ func (o *CreateUserGroupsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewCreateUserGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /mssp/entities/user-groups/v1] createUserGroups", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *CreateUserGroupsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewCreateUserGroupsInternalServerError creates a CreateUserGroupsInternalServerError with default headers values
+func NewCreateUserGroupsInternalServerError() *CreateUserGroupsInternalServerError {
+ return &CreateUserGroupsInternalServerError{}
+}
+
+/*
+CreateUserGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CreateUserGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create user groups internal server error response has a 2xx status code
+func (o *CreateUserGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create user groups internal server error response has a 3xx status code
+func (o *CreateUserGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create user groups internal server error response has a 4xx status code
+func (o *CreateUserGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create user groups internal server error response has a 5xx status code
+func (o *CreateUserGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create user groups internal server error response a status code equal to that given
+func (o *CreateUserGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create user groups internal server error response
+func (o *CreateUserGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateUserGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /mssp/entities/user-groups/v1][%d] createUserGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateUserGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /mssp/entities/user-groups/v1][%d] createUserGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateUserGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateUserGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/delete_c_id_group_members_responses.go b/falcon/client/mssp/delete_c_id_group_members_responses.go
index b055725f..fb9e2a21 100644
--- a/falcon/client/mssp/delete_c_id_group_members_responses.go
+++ b/falcon/client/mssp/delete_c_id_group_members_responses.go
@@ -55,6 +55,12 @@ func (o *DeleteCIDGroupMembersReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteCIDGroupMembersInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /mssp/entities/cid-group-members/v1] deleteCIDGroupMembers", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *DeleteCIDGroupMembersTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewDeleteCIDGroupMembersInternalServerError creates a DeleteCIDGroupMembersInternalServerError with default headers values
+func NewDeleteCIDGroupMembersInternalServerError() *DeleteCIDGroupMembersInternalServerError {
+ return &DeleteCIDGroupMembersInternalServerError{}
+}
+
+/*
+DeleteCIDGroupMembersInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteCIDGroupMembersInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete c Id group members internal server error response has a 2xx status code
+func (o *DeleteCIDGroupMembersInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete c Id group members internal server error response has a 3xx status code
+func (o *DeleteCIDGroupMembersInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete c Id group members internal server error response has a 4xx status code
+func (o *DeleteCIDGroupMembersInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete c Id group members internal server error response has a 5xx status code
+func (o *DeleteCIDGroupMembersInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete c Id group members internal server error response a status code equal to that given
+func (o *DeleteCIDGroupMembersInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete c Id group members internal server error response
+func (o *DeleteCIDGroupMembersInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteCIDGroupMembersInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/cid-group-members/v1][%d] deleteCIdGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteCIDGroupMembersInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/cid-group-members/v1][%d] deleteCIdGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteCIDGroupMembersInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteCIDGroupMembersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/delete_c_id_group_members_v2_responses.go b/falcon/client/mssp/delete_c_id_group_members_v2_responses.go
index af6ca95d..021eca58 100644
--- a/falcon/client/mssp/delete_c_id_group_members_v2_responses.go
+++ b/falcon/client/mssp/delete_c_id_group_members_v2_responses.go
@@ -55,6 +55,12 @@ func (o *DeleteCIDGroupMembersV2Reader) ReadResponse(response runtime.ClientResp
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteCIDGroupMembersV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /mssp/entities/cid-group-members/v2] deleteCIDGroupMembersV2", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *DeleteCIDGroupMembersV2TooManyRequests) readResponse(response runtime.C
return nil
}
+
+// NewDeleteCIDGroupMembersV2InternalServerError creates a DeleteCIDGroupMembersV2InternalServerError with default headers values
+func NewDeleteCIDGroupMembersV2InternalServerError() *DeleteCIDGroupMembersV2InternalServerError {
+ return &DeleteCIDGroupMembersV2InternalServerError{}
+}
+
+/*
+DeleteCIDGroupMembersV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteCIDGroupMembersV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete c Id group members v2 internal server error response has a 2xx status code
+func (o *DeleteCIDGroupMembersV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete c Id group members v2 internal server error response has a 3xx status code
+func (o *DeleteCIDGroupMembersV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete c Id group members v2 internal server error response has a 4xx status code
+func (o *DeleteCIDGroupMembersV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete c Id group members v2 internal server error response has a 5xx status code
+func (o *DeleteCIDGroupMembersV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete c Id group members v2 internal server error response a status code equal to that given
+func (o *DeleteCIDGroupMembersV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete c Id group members v2 internal server error response
+func (o *DeleteCIDGroupMembersV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteCIDGroupMembersV2InternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/cid-group-members/v2][%d] deleteCIdGroupMembersV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteCIDGroupMembersV2InternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/cid-group-members/v2][%d] deleteCIdGroupMembersV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteCIDGroupMembersV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteCIDGroupMembersV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/delete_c_id_groups_responses.go b/falcon/client/mssp/delete_c_id_groups_responses.go
index b34f2e02..17f3dd7e 100644
--- a/falcon/client/mssp/delete_c_id_groups_responses.go
+++ b/falcon/client/mssp/delete_c_id_groups_responses.go
@@ -55,6 +55,12 @@ func (o *DeleteCIDGroupsReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteCIDGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /mssp/entities/cid-groups/v1] deleteCIDGroups", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *DeleteCIDGroupsTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewDeleteCIDGroupsInternalServerError creates a DeleteCIDGroupsInternalServerError with default headers values
+func NewDeleteCIDGroupsInternalServerError() *DeleteCIDGroupsInternalServerError {
+ return &DeleteCIDGroupsInternalServerError{}
+}
+
+/*
+DeleteCIDGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteCIDGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete c Id groups internal server error response has a 2xx status code
+func (o *DeleteCIDGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete c Id groups internal server error response has a 3xx status code
+func (o *DeleteCIDGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete c Id groups internal server error response has a 4xx status code
+func (o *DeleteCIDGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete c Id groups internal server error response has a 5xx status code
+func (o *DeleteCIDGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete c Id groups internal server error response a status code equal to that given
+func (o *DeleteCIDGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete c Id groups internal server error response
+func (o *DeleteCIDGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteCIDGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/cid-groups/v1][%d] deleteCIdGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteCIDGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/cid-groups/v1][%d] deleteCIdGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteCIDGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteCIDGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/delete_user_group_members_responses.go b/falcon/client/mssp/delete_user_group_members_responses.go
index 9961a37a..0aebbea5 100644
--- a/falcon/client/mssp/delete_user_group_members_responses.go
+++ b/falcon/client/mssp/delete_user_group_members_responses.go
@@ -55,6 +55,12 @@ func (o *DeleteUserGroupMembersReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteUserGroupMembersInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /mssp/entities/user-group-members/v1] deleteUserGroupMembers", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *DeleteUserGroupMembersTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewDeleteUserGroupMembersInternalServerError creates a DeleteUserGroupMembersInternalServerError with default headers values
+func NewDeleteUserGroupMembersInternalServerError() *DeleteUserGroupMembersInternalServerError {
+ return &DeleteUserGroupMembersInternalServerError{}
+}
+
+/*
+DeleteUserGroupMembersInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteUserGroupMembersInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete user group members internal server error response has a 2xx status code
+func (o *DeleteUserGroupMembersInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete user group members internal server error response has a 3xx status code
+func (o *DeleteUserGroupMembersInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete user group members internal server error response has a 4xx status code
+func (o *DeleteUserGroupMembersInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete user group members internal server error response has a 5xx status code
+func (o *DeleteUserGroupMembersInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete user group members internal server error response a status code equal to that given
+func (o *DeleteUserGroupMembersInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete user group members internal server error response
+func (o *DeleteUserGroupMembersInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteUserGroupMembersInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/user-group-members/v1][%d] deleteUserGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteUserGroupMembersInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/user-group-members/v1][%d] deleteUserGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteUserGroupMembersInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteUserGroupMembersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/delete_user_groups_responses.go b/falcon/client/mssp/delete_user_groups_responses.go
index 53a376a3..12d1b37a 100644
--- a/falcon/client/mssp/delete_user_groups_responses.go
+++ b/falcon/client/mssp/delete_user_groups_responses.go
@@ -55,6 +55,12 @@ func (o *DeleteUserGroupsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteUserGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /mssp/entities/user-groups/v1] deleteUserGroups", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *DeleteUserGroupsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewDeleteUserGroupsInternalServerError creates a DeleteUserGroupsInternalServerError with default headers values
+func NewDeleteUserGroupsInternalServerError() *DeleteUserGroupsInternalServerError {
+ return &DeleteUserGroupsInternalServerError{}
+}
+
+/*
+DeleteUserGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteUserGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete user groups internal server error response has a 2xx status code
+func (o *DeleteUserGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete user groups internal server error response has a 3xx status code
+func (o *DeleteUserGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete user groups internal server error response has a 4xx status code
+func (o *DeleteUserGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete user groups internal server error response has a 5xx status code
+func (o *DeleteUserGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete user groups internal server error response a status code equal to that given
+func (o *DeleteUserGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete user groups internal server error response
+func (o *DeleteUserGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteUserGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/user-groups/v1][%d] deleteUserGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteUserGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/user-groups/v1][%d] deleteUserGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteUserGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteUserGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/deleted_roles_responses.go b/falcon/client/mssp/deleted_roles_responses.go
index bfca978f..069c3b4f 100644
--- a/falcon/client/mssp/deleted_roles_responses.go
+++ b/falcon/client/mssp/deleted_roles_responses.go
@@ -55,6 +55,12 @@ func (o *DeletedRolesReader) ReadResponse(response runtime.ClientResponse, consu
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeletedRolesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /mssp/entities/mssp-roles/v1] deletedRoles", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *DeletedRolesTooManyRequests) readResponse(response runtime.ClientRespon
return nil
}
+
+// NewDeletedRolesInternalServerError creates a DeletedRolesInternalServerError with default headers values
+func NewDeletedRolesInternalServerError() *DeletedRolesInternalServerError {
+ return &DeletedRolesInternalServerError{}
+}
+
+/*
+DeletedRolesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeletedRolesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this deleted roles internal server error response has a 2xx status code
+func (o *DeletedRolesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this deleted roles internal server error response has a 3xx status code
+func (o *DeletedRolesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this deleted roles internal server error response has a 4xx status code
+func (o *DeletedRolesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this deleted roles internal server error response has a 5xx status code
+func (o *DeletedRolesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this deleted roles internal server error response a status code equal to that given
+func (o *DeletedRolesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the deleted roles internal server error response
+func (o *DeletedRolesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeletedRolesInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/mssp-roles/v1][%d] deletedRolesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeletedRolesInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /mssp/entities/mssp-roles/v1][%d] deletedRolesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeletedRolesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeletedRolesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_c_id_group_by_id_responses.go b/falcon/client/mssp/get_c_id_group_by_id_responses.go
index ce628187..43cc60eb 100644
--- a/falcon/client/mssp/get_c_id_group_by_id_responses.go
+++ b/falcon/client/mssp/get_c_id_group_by_id_responses.go
@@ -55,6 +55,12 @@ func (o *GetCIDGroupByIDReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetCIDGroupByIDInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/entities/cid-groups/v1] getCIDGroupById", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetCIDGroupByIDTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewGetCIDGroupByIDInternalServerError creates a GetCIDGroupByIDInternalServerError with default headers values
+func NewGetCIDGroupByIDInternalServerError() *GetCIDGroupByIDInternalServerError {
+ return &GetCIDGroupByIDInternalServerError{}
+}
+
+/*
+GetCIDGroupByIDInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetCIDGroupByIDInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get c Id group by Id internal server error response has a 2xx status code
+func (o *GetCIDGroupByIDInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get c Id group by Id internal server error response has a 3xx status code
+func (o *GetCIDGroupByIDInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get c Id group by Id internal server error response has a 4xx status code
+func (o *GetCIDGroupByIDInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get c Id group by Id internal server error response has a 5xx status code
+func (o *GetCIDGroupByIDInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get c Id group by Id internal server error response a status code equal to that given
+func (o *GetCIDGroupByIDInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get c Id group by Id internal server error response
+func (o *GetCIDGroupByIDInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetCIDGroupByIDInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/entities/cid-groups/v1][%d] getCIdGroupByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCIDGroupByIDInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/entities/cid-groups/v1][%d] getCIdGroupByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCIDGroupByIDInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetCIDGroupByIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_c_id_group_by_id_v2_responses.go b/falcon/client/mssp/get_c_id_group_by_id_v2_responses.go
index aff8f7d5..6459bcb5 100644
--- a/falcon/client/mssp/get_c_id_group_by_id_v2_responses.go
+++ b/falcon/client/mssp/get_c_id_group_by_id_v2_responses.go
@@ -55,6 +55,12 @@ func (o *GetCIDGroupByIDV2Reader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetCIDGroupByIDV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/entities/cid-groups/v2] getCIDGroupByIdV2", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetCIDGroupByIDV2TooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewGetCIDGroupByIDV2InternalServerError creates a GetCIDGroupByIDV2InternalServerError with default headers values
+func NewGetCIDGroupByIDV2InternalServerError() *GetCIDGroupByIDV2InternalServerError {
+ return &GetCIDGroupByIDV2InternalServerError{}
+}
+
+/*
+GetCIDGroupByIDV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetCIDGroupByIDV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get c Id group by Id v2 internal server error response has a 2xx status code
+func (o *GetCIDGroupByIDV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get c Id group by Id v2 internal server error response has a 3xx status code
+func (o *GetCIDGroupByIDV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get c Id group by Id v2 internal server error response has a 4xx status code
+func (o *GetCIDGroupByIDV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get c Id group by Id v2 internal server error response has a 5xx status code
+func (o *GetCIDGroupByIDV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get c Id group by Id v2 internal server error response a status code equal to that given
+func (o *GetCIDGroupByIDV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get c Id group by Id v2 internal server error response
+func (o *GetCIDGroupByIDV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetCIDGroupByIDV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/entities/cid-groups/v2][%d] getCIdGroupByIdV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCIDGroupByIDV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/entities/cid-groups/v2][%d] getCIdGroupByIdV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCIDGroupByIDV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetCIDGroupByIDV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_c_id_group_members_by_responses.go b/falcon/client/mssp/get_c_id_group_members_by_responses.go
index 2205fc3c..c1409c9c 100644
--- a/falcon/client/mssp/get_c_id_group_members_by_responses.go
+++ b/falcon/client/mssp/get_c_id_group_members_by_responses.go
@@ -55,6 +55,12 @@ func (o *GetCIDGroupMembersByReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetCIDGroupMembersByInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/entities/cid-group-members/v1] getCIDGroupMembersBy", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetCIDGroupMembersByTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewGetCIDGroupMembersByInternalServerError creates a GetCIDGroupMembersByInternalServerError with default headers values
+func NewGetCIDGroupMembersByInternalServerError() *GetCIDGroupMembersByInternalServerError {
+ return &GetCIDGroupMembersByInternalServerError{}
+}
+
+/*
+GetCIDGroupMembersByInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetCIDGroupMembersByInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get c Id group members by internal server error response has a 2xx status code
+func (o *GetCIDGroupMembersByInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get c Id group members by internal server error response has a 3xx status code
+func (o *GetCIDGroupMembersByInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get c Id group members by internal server error response has a 4xx status code
+func (o *GetCIDGroupMembersByInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get c Id group members by internal server error response has a 5xx status code
+func (o *GetCIDGroupMembersByInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get c Id group members by internal server error response a status code equal to that given
+func (o *GetCIDGroupMembersByInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get c Id group members by internal server error response
+func (o *GetCIDGroupMembersByInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetCIDGroupMembersByInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/entities/cid-group-members/v1][%d] getCIdGroupMembersByInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCIDGroupMembersByInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/entities/cid-group-members/v1][%d] getCIdGroupMembersByInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCIDGroupMembersByInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetCIDGroupMembersByInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_c_id_group_members_by_v2_responses.go b/falcon/client/mssp/get_c_id_group_members_by_v2_responses.go
index 64790ab6..86fc6146 100644
--- a/falcon/client/mssp/get_c_id_group_members_by_v2_responses.go
+++ b/falcon/client/mssp/get_c_id_group_members_by_v2_responses.go
@@ -55,6 +55,12 @@ func (o *GetCIDGroupMembersByV2Reader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetCIDGroupMembersByV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/entities/cid-group-members/v2] getCIDGroupMembersByV2", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetCIDGroupMembersByV2TooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewGetCIDGroupMembersByV2InternalServerError creates a GetCIDGroupMembersByV2InternalServerError with default headers values
+func NewGetCIDGroupMembersByV2InternalServerError() *GetCIDGroupMembersByV2InternalServerError {
+ return &GetCIDGroupMembersByV2InternalServerError{}
+}
+
+/*
+GetCIDGroupMembersByV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetCIDGroupMembersByV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get c Id group members by v2 internal server error response has a 2xx status code
+func (o *GetCIDGroupMembersByV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get c Id group members by v2 internal server error response has a 3xx status code
+func (o *GetCIDGroupMembersByV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get c Id group members by v2 internal server error response has a 4xx status code
+func (o *GetCIDGroupMembersByV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get c Id group members by v2 internal server error response has a 5xx status code
+func (o *GetCIDGroupMembersByV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get c Id group members by v2 internal server error response a status code equal to that given
+func (o *GetCIDGroupMembersByV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get c Id group members by v2 internal server error response
+func (o *GetCIDGroupMembersByV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetCIDGroupMembersByV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/entities/cid-group-members/v2][%d] getCIdGroupMembersByV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCIDGroupMembersByV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/entities/cid-group-members/v2][%d] getCIdGroupMembersByV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCIDGroupMembersByV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetCIDGroupMembersByV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_children_responses.go b/falcon/client/mssp/get_children_responses.go
index b3bd648d..f31416d2 100644
--- a/falcon/client/mssp/get_children_responses.go
+++ b/falcon/client/mssp/get_children_responses.go
@@ -55,6 +55,12 @@ func (o *GetChildrenReader) ReadResponse(response runtime.ClientResponse, consum
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetChildrenInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/entities/children/v1] getChildren", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetChildrenTooManyRequests) readResponse(response runtime.ClientRespons
return nil
}
+
+// NewGetChildrenInternalServerError creates a GetChildrenInternalServerError with default headers values
+func NewGetChildrenInternalServerError() *GetChildrenInternalServerError {
+ return &GetChildrenInternalServerError{}
+}
+
+/*
+GetChildrenInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetChildrenInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get children internal server error response has a 2xx status code
+func (o *GetChildrenInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get children internal server error response has a 3xx status code
+func (o *GetChildrenInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get children internal server error response has a 4xx status code
+func (o *GetChildrenInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get children internal server error response has a 5xx status code
+func (o *GetChildrenInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get children internal server error response a status code equal to that given
+func (o *GetChildrenInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get children internal server error response
+func (o *GetChildrenInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetChildrenInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/entities/children/v1][%d] getChildrenInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetChildrenInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/entities/children/v1][%d] getChildrenInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetChildrenInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetChildrenInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_children_v2_responses.go b/falcon/client/mssp/get_children_v2_responses.go
index ec71c8ba..255c9f88 100644
--- a/falcon/client/mssp/get_children_v2_responses.go
+++ b/falcon/client/mssp/get_children_v2_responses.go
@@ -55,6 +55,12 @@ func (o *GetChildrenV2Reader) ReadResponse(response runtime.ClientResponse, cons
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetChildrenV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /mssp/entities/children/GET/v2] getChildrenV2", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetChildrenV2TooManyRequests) readResponse(response runtime.ClientRespo
return nil
}
+
+// NewGetChildrenV2InternalServerError creates a GetChildrenV2InternalServerError with default headers values
+func NewGetChildrenV2InternalServerError() *GetChildrenV2InternalServerError {
+ return &GetChildrenV2InternalServerError{}
+}
+
+/*
+GetChildrenV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetChildrenV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get children v2 internal server error response has a 2xx status code
+func (o *GetChildrenV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get children v2 internal server error response has a 3xx status code
+func (o *GetChildrenV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get children v2 internal server error response has a 4xx status code
+func (o *GetChildrenV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get children v2 internal server error response has a 5xx status code
+func (o *GetChildrenV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get children v2 internal server error response a status code equal to that given
+func (o *GetChildrenV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get children v2 internal server error response
+func (o *GetChildrenV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetChildrenV2InternalServerError) Error() string {
+ return fmt.Sprintf("[POST /mssp/entities/children/GET/v2][%d] getChildrenV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetChildrenV2InternalServerError) String() string {
+ return fmt.Sprintf("[POST /mssp/entities/children/GET/v2][%d] getChildrenV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetChildrenV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetChildrenV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_roles_by_id_responses.go b/falcon/client/mssp/get_roles_by_id_responses.go
index 225b2e26..eb8ab8df 100644
--- a/falcon/client/mssp/get_roles_by_id_responses.go
+++ b/falcon/client/mssp/get_roles_by_id_responses.go
@@ -55,6 +55,12 @@ func (o *GetRolesByIDReader) ReadResponse(response runtime.ClientResponse, consu
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetRolesByIDInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/entities/mssp-roles/v1] getRolesByID", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetRolesByIDTooManyRequests) readResponse(response runtime.ClientRespon
return nil
}
+
+// NewGetRolesByIDInternalServerError creates a GetRolesByIDInternalServerError with default headers values
+func NewGetRolesByIDInternalServerError() *GetRolesByIDInternalServerError {
+ return &GetRolesByIDInternalServerError{}
+}
+
+/*
+GetRolesByIDInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetRolesByIDInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get roles by Id internal server error response has a 2xx status code
+func (o *GetRolesByIDInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get roles by Id internal server error response has a 3xx status code
+func (o *GetRolesByIDInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get roles by Id internal server error response has a 4xx status code
+func (o *GetRolesByIDInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get roles by Id internal server error response has a 5xx status code
+func (o *GetRolesByIDInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get roles by Id internal server error response a status code equal to that given
+func (o *GetRolesByIDInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get roles by Id internal server error response
+func (o *GetRolesByIDInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetRolesByIDInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/entities/mssp-roles/v1][%d] getRolesByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRolesByIDInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/entities/mssp-roles/v1][%d] getRolesByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRolesByIDInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetRolesByIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_user_group_members_by_id_responses.go b/falcon/client/mssp/get_user_group_members_by_id_responses.go
index 5fc7a475..9db9b864 100644
--- a/falcon/client/mssp/get_user_group_members_by_id_responses.go
+++ b/falcon/client/mssp/get_user_group_members_by_id_responses.go
@@ -55,6 +55,12 @@ func (o *GetUserGroupMembersByIDReader) ReadResponse(response runtime.ClientResp
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetUserGroupMembersByIDInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/entities/user-group-members/v1] getUserGroupMembersByID", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetUserGroupMembersByIDTooManyRequests) readResponse(response runtime.C
return nil
}
+
+// NewGetUserGroupMembersByIDInternalServerError creates a GetUserGroupMembersByIDInternalServerError with default headers values
+func NewGetUserGroupMembersByIDInternalServerError() *GetUserGroupMembersByIDInternalServerError {
+ return &GetUserGroupMembersByIDInternalServerError{}
+}
+
+/*
+GetUserGroupMembersByIDInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetUserGroupMembersByIDInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get user group members by Id internal server error response has a 2xx status code
+func (o *GetUserGroupMembersByIDInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get user group members by Id internal server error response has a 3xx status code
+func (o *GetUserGroupMembersByIDInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get user group members by Id internal server error response has a 4xx status code
+func (o *GetUserGroupMembersByIDInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get user group members by Id internal server error response has a 5xx status code
+func (o *GetUserGroupMembersByIDInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get user group members by Id internal server error response a status code equal to that given
+func (o *GetUserGroupMembersByIDInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get user group members by Id internal server error response
+func (o *GetUserGroupMembersByIDInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetUserGroupMembersByIDInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/entities/user-group-members/v1][%d] getUserGroupMembersByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetUserGroupMembersByIDInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/entities/user-group-members/v1][%d] getUserGroupMembersByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetUserGroupMembersByIDInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetUserGroupMembersByIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_user_group_members_by_id_v2_responses.go b/falcon/client/mssp/get_user_group_members_by_id_v2_responses.go
index 05ec2d3c..d4d59156 100644
--- a/falcon/client/mssp/get_user_group_members_by_id_v2_responses.go
+++ b/falcon/client/mssp/get_user_group_members_by_id_v2_responses.go
@@ -55,6 +55,12 @@ func (o *GetUserGroupMembersByIDV2Reader) ReadResponse(response runtime.ClientRe
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetUserGroupMembersByIDV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/entities/user-group-members/v2] getUserGroupMembersByIDV2", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetUserGroupMembersByIDV2TooManyRequests) readResponse(response runtime
return nil
}
+
+// NewGetUserGroupMembersByIDV2InternalServerError creates a GetUserGroupMembersByIDV2InternalServerError with default headers values
+func NewGetUserGroupMembersByIDV2InternalServerError() *GetUserGroupMembersByIDV2InternalServerError {
+ return &GetUserGroupMembersByIDV2InternalServerError{}
+}
+
+/*
+GetUserGroupMembersByIDV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetUserGroupMembersByIDV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get user group members by Id v2 internal server error response has a 2xx status code
+func (o *GetUserGroupMembersByIDV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get user group members by Id v2 internal server error response has a 3xx status code
+func (o *GetUserGroupMembersByIDV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get user group members by Id v2 internal server error response has a 4xx status code
+func (o *GetUserGroupMembersByIDV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get user group members by Id v2 internal server error response has a 5xx status code
+func (o *GetUserGroupMembersByIDV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get user group members by Id v2 internal server error response a status code equal to that given
+func (o *GetUserGroupMembersByIDV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get user group members by Id v2 internal server error response
+func (o *GetUserGroupMembersByIDV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetUserGroupMembersByIDV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/entities/user-group-members/v2][%d] getUserGroupMembersByIdV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetUserGroupMembersByIDV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/entities/user-group-members/v2][%d] getUserGroupMembersByIdV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetUserGroupMembersByIDV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetUserGroupMembersByIDV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_user_groups_by_id_responses.go b/falcon/client/mssp/get_user_groups_by_id_responses.go
index 9188b92f..786f9f4c 100644
--- a/falcon/client/mssp/get_user_groups_by_id_responses.go
+++ b/falcon/client/mssp/get_user_groups_by_id_responses.go
@@ -55,6 +55,12 @@ func (o *GetUserGroupsByIDReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetUserGroupsByIDInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/entities/user-groups/v1] getUserGroupsByID", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetUserGroupsByIDTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewGetUserGroupsByIDInternalServerError creates a GetUserGroupsByIDInternalServerError with default headers values
+func NewGetUserGroupsByIDInternalServerError() *GetUserGroupsByIDInternalServerError {
+ return &GetUserGroupsByIDInternalServerError{}
+}
+
+/*
+GetUserGroupsByIDInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetUserGroupsByIDInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get user groups by Id internal server error response has a 2xx status code
+func (o *GetUserGroupsByIDInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get user groups by Id internal server error response has a 3xx status code
+func (o *GetUserGroupsByIDInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get user groups by Id internal server error response has a 4xx status code
+func (o *GetUserGroupsByIDInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get user groups by Id internal server error response has a 5xx status code
+func (o *GetUserGroupsByIDInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get user groups by Id internal server error response a status code equal to that given
+func (o *GetUserGroupsByIDInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get user groups by Id internal server error response
+func (o *GetUserGroupsByIDInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetUserGroupsByIDInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/entities/user-groups/v1][%d] getUserGroupsByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetUserGroupsByIDInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/entities/user-groups/v1][%d] getUserGroupsByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetUserGroupsByIDInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetUserGroupsByIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/get_user_groups_by_id_v2_responses.go b/falcon/client/mssp/get_user_groups_by_id_v2_responses.go
index f25ba4c7..ddef6676 100644
--- a/falcon/client/mssp/get_user_groups_by_id_v2_responses.go
+++ b/falcon/client/mssp/get_user_groups_by_id_v2_responses.go
@@ -55,6 +55,12 @@ func (o *GetUserGroupsByIDV2Reader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetUserGroupsByIDV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/entities/user-groups/v2] getUserGroupsByIDV2", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetUserGroupsByIDV2TooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewGetUserGroupsByIDV2InternalServerError creates a GetUserGroupsByIDV2InternalServerError with default headers values
+func NewGetUserGroupsByIDV2InternalServerError() *GetUserGroupsByIDV2InternalServerError {
+ return &GetUserGroupsByIDV2InternalServerError{}
+}
+
+/*
+GetUserGroupsByIDV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetUserGroupsByIDV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get user groups by Id v2 internal server error response has a 2xx status code
+func (o *GetUserGroupsByIDV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get user groups by Id v2 internal server error response has a 3xx status code
+func (o *GetUserGroupsByIDV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get user groups by Id v2 internal server error response has a 4xx status code
+func (o *GetUserGroupsByIDV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get user groups by Id v2 internal server error response has a 5xx status code
+func (o *GetUserGroupsByIDV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get user groups by Id v2 internal server error response a status code equal to that given
+func (o *GetUserGroupsByIDV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get user groups by Id v2 internal server error response
+func (o *GetUserGroupsByIDV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetUserGroupsByIDV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/entities/user-groups/v2][%d] getUserGroupsByIdV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetUserGroupsByIDV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/entities/user-groups/v2][%d] getUserGroupsByIdV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetUserGroupsByIDV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetUserGroupsByIDV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/query_c_id_group_members_responses.go b/falcon/client/mssp/query_c_id_group_members_responses.go
index 1f591b26..76778ad6 100644
--- a/falcon/client/mssp/query_c_id_group_members_responses.go
+++ b/falcon/client/mssp/query_c_id_group_members_responses.go
@@ -43,6 +43,12 @@ func (o *QueryCIDGroupMembersReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryCIDGroupMembersInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/queries/cid-group-members/v1] queryCIDGroupMembers", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryCIDGroupMembersTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewQueryCIDGroupMembersInternalServerError creates a QueryCIDGroupMembersInternalServerError with default headers values
+func NewQueryCIDGroupMembersInternalServerError() *QueryCIDGroupMembersInternalServerError {
+ return &QueryCIDGroupMembersInternalServerError{}
+}
+
+/*
+QueryCIDGroupMembersInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryCIDGroupMembersInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query c Id group members internal server error response has a 2xx status code
+func (o *QueryCIDGroupMembersInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query c Id group members internal server error response has a 3xx status code
+func (o *QueryCIDGroupMembersInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query c Id group members internal server error response has a 4xx status code
+func (o *QueryCIDGroupMembersInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query c Id group members internal server error response has a 5xx status code
+func (o *QueryCIDGroupMembersInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query c Id group members internal server error response a status code equal to that given
+func (o *QueryCIDGroupMembersInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query c Id group members internal server error response
+func (o *QueryCIDGroupMembersInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryCIDGroupMembersInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/queries/cid-group-members/v1][%d] queryCIdGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryCIDGroupMembersInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/queries/cid-group-members/v1][%d] queryCIdGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryCIDGroupMembersInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryCIDGroupMembersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/query_c_id_groups_responses.go b/falcon/client/mssp/query_c_id_groups_responses.go
index 1074cc0a..e7c970c1 100644
--- a/falcon/client/mssp/query_c_id_groups_responses.go
+++ b/falcon/client/mssp/query_c_id_groups_responses.go
@@ -43,6 +43,12 @@ func (o *QueryCIDGroupsReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryCIDGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/queries/cid-groups/v1] queryCIDGroups", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryCIDGroupsTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewQueryCIDGroupsInternalServerError creates a QueryCIDGroupsInternalServerError with default headers values
+func NewQueryCIDGroupsInternalServerError() *QueryCIDGroupsInternalServerError {
+ return &QueryCIDGroupsInternalServerError{}
+}
+
+/*
+QueryCIDGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryCIDGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query c Id groups internal server error response has a 2xx status code
+func (o *QueryCIDGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query c Id groups internal server error response has a 3xx status code
+func (o *QueryCIDGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query c Id groups internal server error response has a 4xx status code
+func (o *QueryCIDGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query c Id groups internal server error response has a 5xx status code
+func (o *QueryCIDGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query c Id groups internal server error response a status code equal to that given
+func (o *QueryCIDGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query c Id groups internal server error response
+func (o *QueryCIDGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryCIDGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/queries/cid-groups/v1][%d] queryCIdGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryCIDGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/queries/cid-groups/v1][%d] queryCIdGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryCIDGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryCIDGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/query_children_responses.go b/falcon/client/mssp/query_children_responses.go
index 6bc1942b..77c420b1 100644
--- a/falcon/client/mssp/query_children_responses.go
+++ b/falcon/client/mssp/query_children_responses.go
@@ -49,6 +49,12 @@ func (o *QueryChildrenReader) ReadResponse(response runtime.ClientResponse, cons
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryChildrenInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/queries/children/v1] queryChildren", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryChildrenTooManyRequests) readResponse(response runtime.ClientRespo
return nil
}
+
+// NewQueryChildrenInternalServerError creates a QueryChildrenInternalServerError with default headers values
+func NewQueryChildrenInternalServerError() *QueryChildrenInternalServerError {
+ return &QueryChildrenInternalServerError{}
+}
+
+/*
+QueryChildrenInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryChildrenInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query children internal server error response has a 2xx status code
+func (o *QueryChildrenInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query children internal server error response has a 3xx status code
+func (o *QueryChildrenInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query children internal server error response has a 4xx status code
+func (o *QueryChildrenInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query children internal server error response has a 5xx status code
+func (o *QueryChildrenInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query children internal server error response a status code equal to that given
+func (o *QueryChildrenInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query children internal server error response
+func (o *QueryChildrenInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryChildrenInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/queries/children/v1][%d] queryChildrenInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryChildrenInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/queries/children/v1][%d] queryChildrenInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryChildrenInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryChildrenInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/query_roles_responses.go b/falcon/client/mssp/query_roles_responses.go
index 394ea982..7b19b409 100644
--- a/falcon/client/mssp/query_roles_responses.go
+++ b/falcon/client/mssp/query_roles_responses.go
@@ -43,6 +43,12 @@ func (o *QueryRolesReader) ReadResponse(response runtime.ClientResponse, consume
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryRolesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/queries/mssp-roles/v1] queryRoles", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryRolesTooManyRequests) readResponse(response runtime.ClientResponse
return nil
}
+
+// NewQueryRolesInternalServerError creates a QueryRolesInternalServerError with default headers values
+func NewQueryRolesInternalServerError() *QueryRolesInternalServerError {
+ return &QueryRolesInternalServerError{}
+}
+
+/*
+QueryRolesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryRolesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query roles internal server error response has a 2xx status code
+func (o *QueryRolesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query roles internal server error response has a 3xx status code
+func (o *QueryRolesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query roles internal server error response has a 4xx status code
+func (o *QueryRolesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query roles internal server error response has a 5xx status code
+func (o *QueryRolesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query roles internal server error response a status code equal to that given
+func (o *QueryRolesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query roles internal server error response
+func (o *QueryRolesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryRolesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/queries/mssp-roles/v1][%d] queryRolesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRolesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/queries/mssp-roles/v1][%d] queryRolesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryRolesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryRolesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/query_user_group_members_responses.go b/falcon/client/mssp/query_user_group_members_responses.go
index b854f885..2a846a3b 100644
--- a/falcon/client/mssp/query_user_group_members_responses.go
+++ b/falcon/client/mssp/query_user_group_members_responses.go
@@ -43,6 +43,12 @@ func (o *QueryUserGroupMembersReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryUserGroupMembersInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/queries/user-group-members/v1] queryUserGroupMembers", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryUserGroupMembersTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewQueryUserGroupMembersInternalServerError creates a QueryUserGroupMembersInternalServerError with default headers values
+func NewQueryUserGroupMembersInternalServerError() *QueryUserGroupMembersInternalServerError {
+ return &QueryUserGroupMembersInternalServerError{}
+}
+
+/*
+QueryUserGroupMembersInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryUserGroupMembersInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query user group members internal server error response has a 2xx status code
+func (o *QueryUserGroupMembersInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query user group members internal server error response has a 3xx status code
+func (o *QueryUserGroupMembersInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query user group members internal server error response has a 4xx status code
+func (o *QueryUserGroupMembersInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query user group members internal server error response has a 5xx status code
+func (o *QueryUserGroupMembersInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query user group members internal server error response a status code equal to that given
+func (o *QueryUserGroupMembersInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query user group members internal server error response
+func (o *QueryUserGroupMembersInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryUserGroupMembersInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/queries/user-group-members/v1][%d] queryUserGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryUserGroupMembersInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/queries/user-group-members/v1][%d] queryUserGroupMembersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryUserGroupMembersInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryUserGroupMembersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/query_user_groups_responses.go b/falcon/client/mssp/query_user_groups_responses.go
index c303cb2a..1122f693 100644
--- a/falcon/client/mssp/query_user_groups_responses.go
+++ b/falcon/client/mssp/query_user_groups_responses.go
@@ -49,6 +49,12 @@ func (o *QueryUserGroupsReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryUserGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /mssp/queries/user-groups/v1] queryUserGroups", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryUserGroupsTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewQueryUserGroupsInternalServerError creates a QueryUserGroupsInternalServerError with default headers values
+func NewQueryUserGroupsInternalServerError() *QueryUserGroupsInternalServerError {
+ return &QueryUserGroupsInternalServerError{}
+}
+
+/*
+QueryUserGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryUserGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query user groups internal server error response has a 2xx status code
+func (o *QueryUserGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query user groups internal server error response has a 3xx status code
+func (o *QueryUserGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query user groups internal server error response has a 4xx status code
+func (o *QueryUserGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query user groups internal server error response has a 5xx status code
+func (o *QueryUserGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query user groups internal server error response a status code equal to that given
+func (o *QueryUserGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query user groups internal server error response
+func (o *QueryUserGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryUserGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /mssp/queries/user-groups/v1][%d] queryUserGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryUserGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /mssp/queries/user-groups/v1][%d] queryUserGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryUserGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryUserGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/update_c_id_groups_responses.go b/falcon/client/mssp/update_c_id_groups_responses.go
index 795e5b0d..f01537ab 100644
--- a/falcon/client/mssp/update_c_id_groups_responses.go
+++ b/falcon/client/mssp/update_c_id_groups_responses.go
@@ -55,6 +55,12 @@ func (o *UpdateCIDGroupsReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateCIDGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /mssp/entities/cid-groups/v1] updateCIDGroups", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *UpdateCIDGroupsTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewUpdateCIDGroupsInternalServerError creates a UpdateCIDGroupsInternalServerError with default headers values
+func NewUpdateCIDGroupsInternalServerError() *UpdateCIDGroupsInternalServerError {
+ return &UpdateCIDGroupsInternalServerError{}
+}
+
+/*
+UpdateCIDGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateCIDGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update c Id groups internal server error response has a 2xx status code
+func (o *UpdateCIDGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update c Id groups internal server error response has a 3xx status code
+func (o *UpdateCIDGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update c Id groups internal server error response has a 4xx status code
+func (o *UpdateCIDGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update c Id groups internal server error response has a 5xx status code
+func (o *UpdateCIDGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update c Id groups internal server error response a status code equal to that given
+func (o *UpdateCIDGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update c Id groups internal server error response
+func (o *UpdateCIDGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateCIDGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /mssp/entities/cid-groups/v1][%d] updateCIdGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateCIDGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /mssp/entities/cid-groups/v1][%d] updateCIdGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateCIDGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateCIDGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/mssp/update_user_groups_responses.go b/falcon/client/mssp/update_user_groups_responses.go
index 8f0e3496..01d7cb7d 100644
--- a/falcon/client/mssp/update_user_groups_responses.go
+++ b/falcon/client/mssp/update_user_groups_responses.go
@@ -55,6 +55,12 @@ func (o *UpdateUserGroupsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateUserGroupsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /mssp/entities/user-groups/v1] updateUserGroups", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *UpdateUserGroupsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewUpdateUserGroupsInternalServerError creates a UpdateUserGroupsInternalServerError with default headers values
+func NewUpdateUserGroupsInternalServerError() *UpdateUserGroupsInternalServerError {
+ return &UpdateUserGroupsInternalServerError{}
+}
+
+/*
+UpdateUserGroupsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateUserGroupsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update user groups internal server error response has a 2xx status code
+func (o *UpdateUserGroupsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update user groups internal server error response has a 3xx status code
+func (o *UpdateUserGroupsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update user groups internal server error response has a 4xx status code
+func (o *UpdateUserGroupsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update user groups internal server error response has a 5xx status code
+func (o *UpdateUserGroupsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update user groups internal server error response a status code equal to that given
+func (o *UpdateUserGroupsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update user groups internal server error response
+func (o *UpdateUserGroupsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateUserGroupsInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /mssp/entities/user-groups/v1][%d] updateUserGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateUserGroupsInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /mssp/entities/user-groups/v1][%d] updateUserGroupsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateUserGroupsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateUserGroupsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/aggregate_query_scan_host_metadata_responses.go b/falcon/client/ods/aggregate_query_scan_host_metadata_responses.go
index 1e46433c..86721db8 100644
--- a/falcon/client/ods/aggregate_query_scan_host_metadata_responses.go
+++ b/falcon/client/ods/aggregate_query_scan_host_metadata_responses.go
@@ -49,6 +49,12 @@ func (o *AggregateQueryScanHostMetadataReader) ReadResponse(response runtime.Cli
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateQueryScanHostMetadataInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /ods/aggregates/scan-hosts/v1] aggregate-query-scan-host-metadata", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *AggregateQueryScanHostMetadataTooManyRequests) readResponse(response ru
return nil
}
+
+// NewAggregateQueryScanHostMetadataInternalServerError creates a AggregateQueryScanHostMetadataInternalServerError with default headers values
+func NewAggregateQueryScanHostMetadataInternalServerError() *AggregateQueryScanHostMetadataInternalServerError {
+ return &AggregateQueryScanHostMetadataInternalServerError{}
+}
+
+/*
+AggregateQueryScanHostMetadataInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateQueryScanHostMetadataInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate query scan host metadata internal server error response has a 2xx status code
+func (o *AggregateQueryScanHostMetadataInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate query scan host metadata internal server error response has a 3xx status code
+func (o *AggregateQueryScanHostMetadataInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate query scan host metadata internal server error response has a 4xx status code
+func (o *AggregateQueryScanHostMetadataInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate query scan host metadata internal server error response has a 5xx status code
+func (o *AggregateQueryScanHostMetadataInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate query scan host metadata internal server error response a status code equal to that given
+func (o *AggregateQueryScanHostMetadataInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate query scan host metadata internal server error response
+func (o *AggregateQueryScanHostMetadataInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateQueryScanHostMetadataInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /ods/aggregates/scan-hosts/v1][%d] aggregateQueryScanHostMetadataInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateQueryScanHostMetadataInternalServerError) String() string {
+ return fmt.Sprintf("[POST /ods/aggregates/scan-hosts/v1][%d] aggregateQueryScanHostMetadataInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateQueryScanHostMetadataInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateQueryScanHostMetadataInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/aggregate_scans_responses.go b/falcon/client/ods/aggregate_scans_responses.go
index c17fb648..16f6b581 100644
--- a/falcon/client/ods/aggregate_scans_responses.go
+++ b/falcon/client/ods/aggregate_scans_responses.go
@@ -49,6 +49,12 @@ func (o *AggregateScansReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateScansInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /ods/aggregates/scans/v1] aggregate-scans", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *AggregateScansTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewAggregateScansInternalServerError creates a AggregateScansInternalServerError with default headers values
+func NewAggregateScansInternalServerError() *AggregateScansInternalServerError {
+ return &AggregateScansInternalServerError{}
+}
+
+/*
+AggregateScansInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateScansInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate scans internal server error response has a 2xx status code
+func (o *AggregateScansInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate scans internal server error response has a 3xx status code
+func (o *AggregateScansInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate scans internal server error response has a 4xx status code
+func (o *AggregateScansInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate scans internal server error response has a 5xx status code
+func (o *AggregateScansInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate scans internal server error response a status code equal to that given
+func (o *AggregateScansInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate scans internal server error response
+func (o *AggregateScansInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateScansInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /ods/aggregates/scans/v1][%d] aggregateScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateScansInternalServerError) String() string {
+ return fmt.Sprintf("[POST /ods/aggregates/scans/v1][%d] aggregateScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateScansInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateScansInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/aggregate_scheduled_scans_responses.go b/falcon/client/ods/aggregate_scheduled_scans_responses.go
index bf82e545..3294caec 100644
--- a/falcon/client/ods/aggregate_scheduled_scans_responses.go
+++ b/falcon/client/ods/aggregate_scheduled_scans_responses.go
@@ -49,6 +49,12 @@ func (o *AggregateScheduledScansReader) ReadResponse(response runtime.ClientResp
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregateScheduledScansInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /ods/aggregates/scheduled-scans/v1] aggregate-scheduled-scans", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *AggregateScheduledScansTooManyRequests) readResponse(response runtime.C
return nil
}
+
+// NewAggregateScheduledScansInternalServerError creates a AggregateScheduledScansInternalServerError with default headers values
+func NewAggregateScheduledScansInternalServerError() *AggregateScheduledScansInternalServerError {
+ return &AggregateScheduledScansInternalServerError{}
+}
+
+/*
+AggregateScheduledScansInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregateScheduledScansInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregate scheduled scans internal server error response has a 2xx status code
+func (o *AggregateScheduledScansInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregate scheduled scans internal server error response has a 3xx status code
+func (o *AggregateScheduledScansInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregate scheduled scans internal server error response has a 4xx status code
+func (o *AggregateScheduledScansInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregate scheduled scans internal server error response has a 5xx status code
+func (o *AggregateScheduledScansInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregate scheduled scans internal server error response a status code equal to that given
+func (o *AggregateScheduledScansInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregate scheduled scans internal server error response
+func (o *AggregateScheduledScansInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregateScheduledScansInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /ods/aggregates/scheduled-scans/v1][%d] aggregateScheduledScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateScheduledScansInternalServerError) String() string {
+ return fmt.Sprintf("[POST /ods/aggregates/scheduled-scans/v1][%d] aggregateScheduledScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregateScheduledScansInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregateScheduledScansInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/cancel_scans_responses.go b/falcon/client/ods/cancel_scans_responses.go
index 52f1da23..0d04e531 100644
--- a/falcon/client/ods/cancel_scans_responses.go
+++ b/falcon/client/ods/cancel_scans_responses.go
@@ -49,6 +49,12 @@ func (o *CancelScansReader) ReadResponse(response runtime.ClientResponse, consum
return nil, err
}
return nil, result
+ case 500:
+ result := NewCancelScansInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /ods/entities/scan-control-actions/cancel/v1] cancel-scans", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *CancelScansTooManyRequests) readResponse(response runtime.ClientRespons
return nil
}
+
+// NewCancelScansInternalServerError creates a CancelScansInternalServerError with default headers values
+func NewCancelScansInternalServerError() *CancelScansInternalServerError {
+ return &CancelScansInternalServerError{}
+}
+
+/*
+CancelScansInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CancelScansInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cancel scans internal server error response has a 2xx status code
+func (o *CancelScansInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cancel scans internal server error response has a 3xx status code
+func (o *CancelScansInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cancel scans internal server error response has a 4xx status code
+func (o *CancelScansInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cancel scans internal server error response has a 5xx status code
+func (o *CancelScansInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cancel scans internal server error response a status code equal to that given
+func (o *CancelScansInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cancel scans internal server error response
+func (o *CancelScansInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CancelScansInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /ods/entities/scan-control-actions/cancel/v1][%d] cancelScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CancelScansInternalServerError) String() string {
+ return fmt.Sprintf("[POST /ods/entities/scan-control-actions/cancel/v1][%d] cancelScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CancelScansInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CancelScansInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/create_scan_responses.go b/falcon/client/ods/create_scan_responses.go
index 94eb6ed3..14b6ff52 100644
--- a/falcon/client/ods/create_scan_responses.go
+++ b/falcon/client/ods/create_scan_responses.go
@@ -43,6 +43,12 @@ func (o *CreateScanReader) ReadResponse(response runtime.ClientResponse, consume
return nil, err
}
return nil, result
+ case 500:
+ result := NewCreateScanInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /ods/entities/scans/v1] create-scan", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *CreateScanTooManyRequests) readResponse(response runtime.ClientResponse
return nil
}
+
+// NewCreateScanInternalServerError creates a CreateScanInternalServerError with default headers values
+func NewCreateScanInternalServerError() *CreateScanInternalServerError {
+ return &CreateScanInternalServerError{}
+}
+
+/*
+CreateScanInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CreateScanInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create scan internal server error response has a 2xx status code
+func (o *CreateScanInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create scan internal server error response has a 3xx status code
+func (o *CreateScanInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create scan internal server error response has a 4xx status code
+func (o *CreateScanInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create scan internal server error response has a 5xx status code
+func (o *CreateScanInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create scan internal server error response a status code equal to that given
+func (o *CreateScanInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create scan internal server error response
+func (o *CreateScanInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateScanInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /ods/entities/scans/v1][%d] createScanInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateScanInternalServerError) String() string {
+ return fmt.Sprintf("[POST /ods/entities/scans/v1][%d] createScanInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateScanInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateScanInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/delete_scheduled_scans_responses.go b/falcon/client/ods/delete_scheduled_scans_responses.go
index 1b5024c9..a9c6153c 100644
--- a/falcon/client/ods/delete_scheduled_scans_responses.go
+++ b/falcon/client/ods/delete_scheduled_scans_responses.go
@@ -49,6 +49,12 @@ func (o *DeleteScheduledScansReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteScheduledScansInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /ods/entities/scheduled-scans/v1] delete-scheduled-scans", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *DeleteScheduledScansTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewDeleteScheduledScansInternalServerError creates a DeleteScheduledScansInternalServerError with default headers values
+func NewDeleteScheduledScansInternalServerError() *DeleteScheduledScansInternalServerError {
+ return &DeleteScheduledScansInternalServerError{}
+}
+
+/*
+DeleteScheduledScansInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteScheduledScansInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete scheduled scans internal server error response has a 2xx status code
+func (o *DeleteScheduledScansInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete scheduled scans internal server error response has a 3xx status code
+func (o *DeleteScheduledScansInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete scheduled scans internal server error response has a 4xx status code
+func (o *DeleteScheduledScansInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete scheduled scans internal server error response has a 5xx status code
+func (o *DeleteScheduledScansInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete scheduled scans internal server error response a status code equal to that given
+func (o *DeleteScheduledScansInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete scheduled scans internal server error response
+func (o *DeleteScheduledScansInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteScheduledScansInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /ods/entities/scheduled-scans/v1][%d] deleteScheduledScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteScheduledScansInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /ods/entities/scheduled-scans/v1][%d] deleteScheduledScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteScheduledScansInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteScheduledScansInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/get_malicious_files_by_ids_responses.go b/falcon/client/ods/get_malicious_files_by_ids_responses.go
index 907a93c9..55b835b1 100644
--- a/falcon/client/ods/get_malicious_files_by_ids_responses.go
+++ b/falcon/client/ods/get_malicious_files_by_ids_responses.go
@@ -49,6 +49,12 @@ func (o *GetMaliciousFilesByIdsReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetMaliciousFilesByIdsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ods/entities/malicious-files/v1] get-malicious-files-by-ids", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetMaliciousFilesByIdsTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewGetMaliciousFilesByIdsInternalServerError creates a GetMaliciousFilesByIdsInternalServerError with default headers values
+func NewGetMaliciousFilesByIdsInternalServerError() *GetMaliciousFilesByIdsInternalServerError {
+ return &GetMaliciousFilesByIdsInternalServerError{}
+}
+
+/*
+GetMaliciousFilesByIdsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetMaliciousFilesByIdsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get malicious files by ids internal server error response has a 2xx status code
+func (o *GetMaliciousFilesByIdsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get malicious files by ids internal server error response has a 3xx status code
+func (o *GetMaliciousFilesByIdsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get malicious files by ids internal server error response has a 4xx status code
+func (o *GetMaliciousFilesByIdsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get malicious files by ids internal server error response has a 5xx status code
+func (o *GetMaliciousFilesByIdsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get malicious files by ids internal server error response a status code equal to that given
+func (o *GetMaliciousFilesByIdsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get malicious files by ids internal server error response
+func (o *GetMaliciousFilesByIdsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetMaliciousFilesByIdsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ods/entities/malicious-files/v1][%d] getMaliciousFilesByIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetMaliciousFilesByIdsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ods/entities/malicious-files/v1][%d] getMaliciousFilesByIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetMaliciousFilesByIdsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetMaliciousFilesByIdsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/get_scan_host_metadata_by_ids_responses.go b/falcon/client/ods/get_scan_host_metadata_by_ids_responses.go
index 8a96dbfa..5920f7c3 100644
--- a/falcon/client/ods/get_scan_host_metadata_by_ids_responses.go
+++ b/falcon/client/ods/get_scan_host_metadata_by_ids_responses.go
@@ -49,6 +49,12 @@ func (o *GetScanHostMetadataByIdsReader) ReadResponse(response runtime.ClientRes
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetScanHostMetadataByIdsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ods/entities/scan-hosts/v1] get-scan-host-metadata-by-ids", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetScanHostMetadataByIdsTooManyRequests) readResponse(response runtime.
return nil
}
+
+// NewGetScanHostMetadataByIdsInternalServerError creates a GetScanHostMetadataByIdsInternalServerError with default headers values
+func NewGetScanHostMetadataByIdsInternalServerError() *GetScanHostMetadataByIdsInternalServerError {
+ return &GetScanHostMetadataByIdsInternalServerError{}
+}
+
+/*
+GetScanHostMetadataByIdsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetScanHostMetadataByIdsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get scan host metadata by ids internal server error response has a 2xx status code
+func (o *GetScanHostMetadataByIdsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get scan host metadata by ids internal server error response has a 3xx status code
+func (o *GetScanHostMetadataByIdsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get scan host metadata by ids internal server error response has a 4xx status code
+func (o *GetScanHostMetadataByIdsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get scan host metadata by ids internal server error response has a 5xx status code
+func (o *GetScanHostMetadataByIdsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get scan host metadata by ids internal server error response a status code equal to that given
+func (o *GetScanHostMetadataByIdsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get scan host metadata by ids internal server error response
+func (o *GetScanHostMetadataByIdsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetScanHostMetadataByIdsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ods/entities/scan-hosts/v1][%d] getScanHostMetadataByIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScanHostMetadataByIdsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ods/entities/scan-hosts/v1][%d] getScanHostMetadataByIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScanHostMetadataByIdsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetScanHostMetadataByIdsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/get_scans_by_scan_ids_responses.go b/falcon/client/ods/get_scans_by_scan_ids_responses.go
index 2d204fa2..edf20e3c 100644
--- a/falcon/client/ods/get_scans_by_scan_ids_responses.go
+++ b/falcon/client/ods/get_scans_by_scan_ids_responses.go
@@ -49,6 +49,12 @@ func (o *GetScansByScanIdsReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetScansByScanIdsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ods/entities/scans/v1] get-scans-by-scan-ids", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetScansByScanIdsTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewGetScansByScanIdsInternalServerError creates a GetScansByScanIdsInternalServerError with default headers values
+func NewGetScansByScanIdsInternalServerError() *GetScansByScanIdsInternalServerError {
+ return &GetScansByScanIdsInternalServerError{}
+}
+
+/*
+GetScansByScanIdsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetScansByScanIdsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get scans by scan ids internal server error response has a 2xx status code
+func (o *GetScansByScanIdsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get scans by scan ids internal server error response has a 3xx status code
+func (o *GetScansByScanIdsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get scans by scan ids internal server error response has a 4xx status code
+func (o *GetScansByScanIdsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get scans by scan ids internal server error response has a 5xx status code
+func (o *GetScansByScanIdsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get scans by scan ids internal server error response a status code equal to that given
+func (o *GetScansByScanIdsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get scans by scan ids internal server error response
+func (o *GetScansByScanIdsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetScansByScanIdsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ods/entities/scans/v1][%d] getScansByScanIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScansByScanIdsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ods/entities/scans/v1][%d] getScansByScanIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScansByScanIdsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetScansByScanIdsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/get_scans_by_scan_ids_v2_responses.go b/falcon/client/ods/get_scans_by_scan_ids_v2_responses.go
index 1e945a02..3d9e7556 100644
--- a/falcon/client/ods/get_scans_by_scan_ids_v2_responses.go
+++ b/falcon/client/ods/get_scans_by_scan_ids_v2_responses.go
@@ -49,6 +49,12 @@ func (o *GetScansByScanIdsV2Reader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetScansByScanIdsV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ods/entities/scans/v2] get-scans-by-scan-ids-v2", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetScansByScanIdsV2TooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewGetScansByScanIdsV2InternalServerError creates a GetScansByScanIdsV2InternalServerError with default headers values
+func NewGetScansByScanIdsV2InternalServerError() *GetScansByScanIdsV2InternalServerError {
+ return &GetScansByScanIdsV2InternalServerError{}
+}
+
+/*
+GetScansByScanIdsV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetScansByScanIdsV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get scans by scan ids v2 internal server error response has a 2xx status code
+func (o *GetScansByScanIdsV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get scans by scan ids v2 internal server error response has a 3xx status code
+func (o *GetScansByScanIdsV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get scans by scan ids v2 internal server error response has a 4xx status code
+func (o *GetScansByScanIdsV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get scans by scan ids v2 internal server error response has a 5xx status code
+func (o *GetScansByScanIdsV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get scans by scan ids v2 internal server error response a status code equal to that given
+func (o *GetScansByScanIdsV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get scans by scan ids v2 internal server error response
+func (o *GetScansByScanIdsV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetScansByScanIdsV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ods/entities/scans/v2][%d] getScansByScanIdsV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScansByScanIdsV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /ods/entities/scans/v2][%d] getScansByScanIdsV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScansByScanIdsV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetScansByScanIdsV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/get_scheduled_scans_by_scan_ids_responses.go b/falcon/client/ods/get_scheduled_scans_by_scan_ids_responses.go
index 3cb8063f..36272f0a 100644
--- a/falcon/client/ods/get_scheduled_scans_by_scan_ids_responses.go
+++ b/falcon/client/ods/get_scheduled_scans_by_scan_ids_responses.go
@@ -49,6 +49,12 @@ func (o *GetScheduledScansByScanIdsReader) ReadResponse(response runtime.ClientR
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetScheduledScansByScanIdsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ods/entities/scheduled-scans/v1] get-scheduled-scans-by-scan-ids", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetScheduledScansByScanIdsTooManyRequests) readResponse(response runtim
return nil
}
+
+// NewGetScheduledScansByScanIdsInternalServerError creates a GetScheduledScansByScanIdsInternalServerError with default headers values
+func NewGetScheduledScansByScanIdsInternalServerError() *GetScheduledScansByScanIdsInternalServerError {
+ return &GetScheduledScansByScanIdsInternalServerError{}
+}
+
+/*
+GetScheduledScansByScanIdsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetScheduledScansByScanIdsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get scheduled scans by scan ids internal server error response has a 2xx status code
+func (o *GetScheduledScansByScanIdsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get scheduled scans by scan ids internal server error response has a 3xx status code
+func (o *GetScheduledScansByScanIdsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get scheduled scans by scan ids internal server error response has a 4xx status code
+func (o *GetScheduledScansByScanIdsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get scheduled scans by scan ids internal server error response has a 5xx status code
+func (o *GetScheduledScansByScanIdsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get scheduled scans by scan ids internal server error response a status code equal to that given
+func (o *GetScheduledScansByScanIdsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get scheduled scans by scan ids internal server error response
+func (o *GetScheduledScansByScanIdsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetScheduledScansByScanIdsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ods/entities/scheduled-scans/v1][%d] getScheduledScansByScanIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScheduledScansByScanIdsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ods/entities/scheduled-scans/v1][%d] getScheduledScansByScanIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScheduledScansByScanIdsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetScheduledScansByScanIdsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/query_malicious_files_responses.go b/falcon/client/ods/query_malicious_files_responses.go
index e109c9b4..852a471c 100644
--- a/falcon/client/ods/query_malicious_files_responses.go
+++ b/falcon/client/ods/query_malicious_files_responses.go
@@ -49,6 +49,12 @@ func (o *QueryMaliciousFilesReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryMaliciousFilesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ods/queries/malicious-files/v1] query-malicious-files", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryMaliciousFilesTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewQueryMaliciousFilesInternalServerError creates a QueryMaliciousFilesInternalServerError with default headers values
+func NewQueryMaliciousFilesInternalServerError() *QueryMaliciousFilesInternalServerError {
+ return &QueryMaliciousFilesInternalServerError{}
+}
+
+/*
+QueryMaliciousFilesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryMaliciousFilesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query malicious files internal server error response has a 2xx status code
+func (o *QueryMaliciousFilesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query malicious files internal server error response has a 3xx status code
+func (o *QueryMaliciousFilesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query malicious files internal server error response has a 4xx status code
+func (o *QueryMaliciousFilesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query malicious files internal server error response has a 5xx status code
+func (o *QueryMaliciousFilesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query malicious files internal server error response a status code equal to that given
+func (o *QueryMaliciousFilesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query malicious files internal server error response
+func (o *QueryMaliciousFilesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryMaliciousFilesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ods/queries/malicious-files/v1][%d] queryMaliciousFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryMaliciousFilesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ods/queries/malicious-files/v1][%d] queryMaliciousFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryMaliciousFilesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryMaliciousFilesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/query_scan_host_metadata_responses.go b/falcon/client/ods/query_scan_host_metadata_responses.go
index 789728e1..48de2eaa 100644
--- a/falcon/client/ods/query_scan_host_metadata_responses.go
+++ b/falcon/client/ods/query_scan_host_metadata_responses.go
@@ -49,6 +49,12 @@ func (o *QueryScanHostMetadataReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryScanHostMetadataInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ods/queries/scan-hosts/v1] query-scan-host-metadata", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryScanHostMetadataTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewQueryScanHostMetadataInternalServerError creates a QueryScanHostMetadataInternalServerError with default headers values
+func NewQueryScanHostMetadataInternalServerError() *QueryScanHostMetadataInternalServerError {
+ return &QueryScanHostMetadataInternalServerError{}
+}
+
+/*
+QueryScanHostMetadataInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryScanHostMetadataInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query scan host metadata internal server error response has a 2xx status code
+func (o *QueryScanHostMetadataInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query scan host metadata internal server error response has a 3xx status code
+func (o *QueryScanHostMetadataInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query scan host metadata internal server error response has a 4xx status code
+func (o *QueryScanHostMetadataInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query scan host metadata internal server error response has a 5xx status code
+func (o *QueryScanHostMetadataInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query scan host metadata internal server error response a status code equal to that given
+func (o *QueryScanHostMetadataInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query scan host metadata internal server error response
+func (o *QueryScanHostMetadataInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryScanHostMetadataInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ods/queries/scan-hosts/v1][%d] queryScanHostMetadataInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryScanHostMetadataInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ods/queries/scan-hosts/v1][%d] queryScanHostMetadataInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryScanHostMetadataInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryScanHostMetadataInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/query_scans_responses.go b/falcon/client/ods/query_scans_responses.go
index 37cb6a05..511ad500 100644
--- a/falcon/client/ods/query_scans_responses.go
+++ b/falcon/client/ods/query_scans_responses.go
@@ -49,6 +49,12 @@ func (o *QueryScansReader) ReadResponse(response runtime.ClientResponse, consume
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryScansInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ods/queries/scans/v1] query-scans", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryScansTooManyRequests) readResponse(response runtime.ClientResponse
return nil
}
+
+// NewQueryScansInternalServerError creates a QueryScansInternalServerError with default headers values
+func NewQueryScansInternalServerError() *QueryScansInternalServerError {
+ return &QueryScansInternalServerError{}
+}
+
+/*
+QueryScansInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryScansInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query scans internal server error response has a 2xx status code
+func (o *QueryScansInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query scans internal server error response has a 3xx status code
+func (o *QueryScansInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query scans internal server error response has a 4xx status code
+func (o *QueryScansInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query scans internal server error response has a 5xx status code
+func (o *QueryScansInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query scans internal server error response a status code equal to that given
+func (o *QueryScansInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query scans internal server error response
+func (o *QueryScansInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryScansInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ods/queries/scans/v1][%d] queryScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryScansInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ods/queries/scans/v1][%d] queryScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryScansInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryScansInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/query_scheduled_scans_responses.go b/falcon/client/ods/query_scheduled_scans_responses.go
index a7aa4b39..ff82fb9b 100644
--- a/falcon/client/ods/query_scheduled_scans_responses.go
+++ b/falcon/client/ods/query_scheduled_scans_responses.go
@@ -49,6 +49,12 @@ func (o *QueryScheduledScansReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryScheduledScansInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /ods/queries/scheduled-scans/v1] query-scheduled-scans", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryScheduledScansTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewQueryScheduledScansInternalServerError creates a QueryScheduledScansInternalServerError with default headers values
+func NewQueryScheduledScansInternalServerError() *QueryScheduledScansInternalServerError {
+ return &QueryScheduledScansInternalServerError{}
+}
+
+/*
+QueryScheduledScansInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryScheduledScansInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query scheduled scans internal server error response has a 2xx status code
+func (o *QueryScheduledScansInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query scheduled scans internal server error response has a 3xx status code
+func (o *QueryScheduledScansInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query scheduled scans internal server error response has a 4xx status code
+func (o *QueryScheduledScansInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query scheduled scans internal server error response has a 5xx status code
+func (o *QueryScheduledScansInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query scheduled scans internal server error response a status code equal to that given
+func (o *QueryScheduledScansInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query scheduled scans internal server error response
+func (o *QueryScheduledScansInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryScheduledScansInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /ods/queries/scheduled-scans/v1][%d] queryScheduledScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryScheduledScansInternalServerError) String() string {
+ return fmt.Sprintf("[GET /ods/queries/scheduled-scans/v1][%d] queryScheduledScansInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryScheduledScansInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryScheduledScansInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/ods/schedule_scan_responses.go b/falcon/client/ods/schedule_scan_responses.go
index 0fe98383..52456816 100644
--- a/falcon/client/ods/schedule_scan_responses.go
+++ b/falcon/client/ods/schedule_scan_responses.go
@@ -43,6 +43,12 @@ func (o *ScheduleScanReader) ReadResponse(response runtime.ClientResponse, consu
return nil, err
}
return nil, result
+ case 500:
+ result := NewScheduleScanInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /ods/entities/scheduled-scans/v1] schedule-scan", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *ScheduleScanTooManyRequests) readResponse(response runtime.ClientRespon
return nil
}
+
+// NewScheduleScanInternalServerError creates a ScheduleScanInternalServerError with default headers values
+func NewScheduleScanInternalServerError() *ScheduleScanInternalServerError {
+ return &ScheduleScanInternalServerError{}
+}
+
+/*
+ScheduleScanInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ScheduleScanInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this schedule scan internal server error response has a 2xx status code
+func (o *ScheduleScanInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this schedule scan internal server error response has a 3xx status code
+func (o *ScheduleScanInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this schedule scan internal server error response has a 4xx status code
+func (o *ScheduleScanInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this schedule scan internal server error response has a 5xx status code
+func (o *ScheduleScanInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this schedule scan internal server error response a status code equal to that given
+func (o *ScheduleScanInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the schedule scan internal server error response
+func (o *ScheduleScanInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ScheduleScanInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /ods/entities/scheduled-scans/v1][%d] scheduleScanInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ScheduleScanInternalServerError) String() string {
+ return fmt.Sprintf("[POST /ods/entities/scheduled-scans/v1][%d] scheduleScanInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ScheduleScanInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ScheduleScanInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/operations/cloud_registration_aws_create_account_parameters.go b/falcon/client/operations/cloud_registration_aws_create_account_parameters.go
new file mode 100644
index 00000000..baa63a64
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_create_account_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewCloudRegistrationAwsCreateAccountParams creates a new CloudRegistrationAwsCreateAccountParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCloudRegistrationAwsCreateAccountParams() *CloudRegistrationAwsCreateAccountParams {
+ return &CloudRegistrationAwsCreateAccountParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCloudRegistrationAwsCreateAccountParamsWithTimeout creates a new CloudRegistrationAwsCreateAccountParams object
+// with the ability to set a timeout on a request.
+func NewCloudRegistrationAwsCreateAccountParamsWithTimeout(timeout time.Duration) *CloudRegistrationAwsCreateAccountParams {
+ return &CloudRegistrationAwsCreateAccountParams{
+ timeout: timeout,
+ }
+}
+
+// NewCloudRegistrationAwsCreateAccountParamsWithContext creates a new CloudRegistrationAwsCreateAccountParams object
+// with the ability to set a context for a request.
+func NewCloudRegistrationAwsCreateAccountParamsWithContext(ctx context.Context) *CloudRegistrationAwsCreateAccountParams {
+ return &CloudRegistrationAwsCreateAccountParams{
+ Context: ctx,
+ }
+}
+
+// NewCloudRegistrationAwsCreateAccountParamsWithHTTPClient creates a new CloudRegistrationAwsCreateAccountParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCloudRegistrationAwsCreateAccountParamsWithHTTPClient(client *http.Client) *CloudRegistrationAwsCreateAccountParams {
+ return &CloudRegistrationAwsCreateAccountParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CloudRegistrationAwsCreateAccountParams contains all the parameters to send to the API endpoint
+
+ for the cloud registration aws create account operation.
+
+ Typically these are written to a http.Request.
+*/
+type CloudRegistrationAwsCreateAccountParams struct {
+
+ // Body.
+ Body *models.RestAWSAccountCreateRequestExtv1
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the cloud registration aws create account params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsCreateAccountParams) WithDefaults() *CloudRegistrationAwsCreateAccountParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the cloud registration aws create account params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsCreateAccountParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the cloud registration aws create account params
+func (o *CloudRegistrationAwsCreateAccountParams) WithTimeout(timeout time.Duration) *CloudRegistrationAwsCreateAccountParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the cloud registration aws create account params
+func (o *CloudRegistrationAwsCreateAccountParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the cloud registration aws create account params
+func (o *CloudRegistrationAwsCreateAccountParams) WithContext(ctx context.Context) *CloudRegistrationAwsCreateAccountParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the cloud registration aws create account params
+func (o *CloudRegistrationAwsCreateAccountParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the cloud registration aws create account params
+func (o *CloudRegistrationAwsCreateAccountParams) WithHTTPClient(client *http.Client) *CloudRegistrationAwsCreateAccountParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the cloud registration aws create account params
+func (o *CloudRegistrationAwsCreateAccountParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the cloud registration aws create account params
+func (o *CloudRegistrationAwsCreateAccountParams) WithBody(body *models.RestAWSAccountCreateRequestExtv1) *CloudRegistrationAwsCreateAccountParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the cloud registration aws create account params
+func (o *CloudRegistrationAwsCreateAccountParams) SetBody(body *models.RestAWSAccountCreateRequestExtv1) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CloudRegistrationAwsCreateAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/operations/cloud_registration_aws_create_account_responses.go b/falcon/client/operations/cloud_registration_aws_create_account_responses.go
new file mode 100644
index 00000000..c9d3f983
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_create_account_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CloudRegistrationAwsCreateAccountReader is a Reader for the CloudRegistrationAwsCreateAccount structure.
+type CloudRegistrationAwsCreateAccountReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CloudRegistrationAwsCreateAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 201:
+ result := NewCloudRegistrationAwsCreateAccountCreated()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 207:
+ result := NewCloudRegistrationAwsCreateAccountMultiStatus()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCloudRegistrationAwsCreateAccountBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCloudRegistrationAwsCreateAccountForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCloudRegistrationAwsCreateAccountTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCloudRegistrationAwsCreateAccountInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /cloud-security-registration-aws/entities/account/v1] cloud-registration-aws-create-account", response, response.Code())
+ }
+}
+
+// NewCloudRegistrationAwsCreateAccountCreated creates a CloudRegistrationAwsCreateAccountCreated with default headers values
+func NewCloudRegistrationAwsCreateAccountCreated() *CloudRegistrationAwsCreateAccountCreated {
+ return &CloudRegistrationAwsCreateAccountCreated{}
+}
+
+/*
+CloudRegistrationAwsCreateAccountCreated describes a response with status code 201, with default header values.
+
+Created
+*/
+type CloudRegistrationAwsCreateAccountCreated struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws create account created response has a 2xx status code
+func (o *CloudRegistrationAwsCreateAccountCreated) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws create account created response has a 3xx status code
+func (o *CloudRegistrationAwsCreateAccountCreated) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws create account created response has a 4xx status code
+func (o *CloudRegistrationAwsCreateAccountCreated) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws create account created response has a 5xx status code
+func (o *CloudRegistrationAwsCreateAccountCreated) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws create account created response a status code equal to that given
+func (o *CloudRegistrationAwsCreateAccountCreated) IsCode(code int) bool {
+ return code == 201
+}
+
+// Code gets the status code for the cloud registration aws create account created response
+func (o *CloudRegistrationAwsCreateAccountCreated) Code() int {
+ return 201
+}
+
+func (o *CloudRegistrationAwsCreateAccountCreated) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountCreated %+v", 201, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountCreated) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountCreated %+v", 201, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountCreated) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsCreateAccountCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsCreateAccountMultiStatus creates a CloudRegistrationAwsCreateAccountMultiStatus with default headers values
+func NewCloudRegistrationAwsCreateAccountMultiStatus() *CloudRegistrationAwsCreateAccountMultiStatus {
+ return &CloudRegistrationAwsCreateAccountMultiStatus{}
+}
+
+/*
+CloudRegistrationAwsCreateAccountMultiStatus describes a response with status code 207, with default header values.
+
+Multi-Status
+*/
+type CloudRegistrationAwsCreateAccountMultiStatus struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws create account multi status response has a 2xx status code
+func (o *CloudRegistrationAwsCreateAccountMultiStatus) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws create account multi status response has a 3xx status code
+func (o *CloudRegistrationAwsCreateAccountMultiStatus) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws create account multi status response has a 4xx status code
+func (o *CloudRegistrationAwsCreateAccountMultiStatus) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws create account multi status response has a 5xx status code
+func (o *CloudRegistrationAwsCreateAccountMultiStatus) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws create account multi status response a status code equal to that given
+func (o *CloudRegistrationAwsCreateAccountMultiStatus) IsCode(code int) bool {
+ return code == 207
+}
+
+// Code gets the status code for the cloud registration aws create account multi status response
+func (o *CloudRegistrationAwsCreateAccountMultiStatus) Code() int {
+ return 207
+}
+
+func (o *CloudRegistrationAwsCreateAccountMultiStatus) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountMultiStatus %+v", 207, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountMultiStatus) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountMultiStatus %+v", 207, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountMultiStatus) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsCreateAccountMultiStatus) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsCreateAccountBadRequest creates a CloudRegistrationAwsCreateAccountBadRequest with default headers values
+func NewCloudRegistrationAwsCreateAccountBadRequest() *CloudRegistrationAwsCreateAccountBadRequest {
+ return &CloudRegistrationAwsCreateAccountBadRequest{}
+}
+
+/*
+CloudRegistrationAwsCreateAccountBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CloudRegistrationAwsCreateAccountBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws create account bad request response has a 2xx status code
+func (o *CloudRegistrationAwsCreateAccountBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws create account bad request response has a 3xx status code
+func (o *CloudRegistrationAwsCreateAccountBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws create account bad request response has a 4xx status code
+func (o *CloudRegistrationAwsCreateAccountBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws create account bad request response has a 5xx status code
+func (o *CloudRegistrationAwsCreateAccountBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws create account bad request response a status code equal to that given
+func (o *CloudRegistrationAwsCreateAccountBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the cloud registration aws create account bad request response
+func (o *CloudRegistrationAwsCreateAccountBadRequest) Code() int {
+ return 400
+}
+
+func (o *CloudRegistrationAwsCreateAccountBadRequest) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountBadRequest) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountBadRequest) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsCreateAccountBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsCreateAccountForbidden creates a CloudRegistrationAwsCreateAccountForbidden with default headers values
+func NewCloudRegistrationAwsCreateAccountForbidden() *CloudRegistrationAwsCreateAccountForbidden {
+ return &CloudRegistrationAwsCreateAccountForbidden{}
+}
+
+/*
+CloudRegistrationAwsCreateAccountForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CloudRegistrationAwsCreateAccountForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws create account forbidden response has a 2xx status code
+func (o *CloudRegistrationAwsCreateAccountForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws create account forbidden response has a 3xx status code
+func (o *CloudRegistrationAwsCreateAccountForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws create account forbidden response has a 4xx status code
+func (o *CloudRegistrationAwsCreateAccountForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws create account forbidden response has a 5xx status code
+func (o *CloudRegistrationAwsCreateAccountForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws create account forbidden response a status code equal to that given
+func (o *CloudRegistrationAwsCreateAccountForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the cloud registration aws create account forbidden response
+func (o *CloudRegistrationAwsCreateAccountForbidden) Code() int {
+ return 403
+}
+
+func (o *CloudRegistrationAwsCreateAccountForbidden) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountForbidden) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountForbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsCreateAccountForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsCreateAccountTooManyRequests creates a CloudRegistrationAwsCreateAccountTooManyRequests with default headers values
+func NewCloudRegistrationAwsCreateAccountTooManyRequests() *CloudRegistrationAwsCreateAccountTooManyRequests {
+ return &CloudRegistrationAwsCreateAccountTooManyRequests{}
+}
+
+/*
+CloudRegistrationAwsCreateAccountTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CloudRegistrationAwsCreateAccountTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cloud registration aws create account too many requests response has a 2xx status code
+func (o *CloudRegistrationAwsCreateAccountTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws create account too many requests response has a 3xx status code
+func (o *CloudRegistrationAwsCreateAccountTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws create account too many requests response has a 4xx status code
+func (o *CloudRegistrationAwsCreateAccountTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws create account too many requests response has a 5xx status code
+func (o *CloudRegistrationAwsCreateAccountTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws create account too many requests response a status code equal to that given
+func (o *CloudRegistrationAwsCreateAccountTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the cloud registration aws create account too many requests response
+func (o *CloudRegistrationAwsCreateAccountTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CloudRegistrationAwsCreateAccountTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsCreateAccountTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsCreateAccountInternalServerError creates a CloudRegistrationAwsCreateAccountInternalServerError with default headers values
+func NewCloudRegistrationAwsCreateAccountInternalServerError() *CloudRegistrationAwsCreateAccountInternalServerError {
+ return &CloudRegistrationAwsCreateAccountInternalServerError{}
+}
+
+/*
+CloudRegistrationAwsCreateAccountInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CloudRegistrationAwsCreateAccountInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws create account internal server error response has a 2xx status code
+func (o *CloudRegistrationAwsCreateAccountInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws create account internal server error response has a 3xx status code
+func (o *CloudRegistrationAwsCreateAccountInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws create account internal server error response has a 4xx status code
+func (o *CloudRegistrationAwsCreateAccountInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws create account internal server error response has a 5xx status code
+func (o *CloudRegistrationAwsCreateAccountInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cloud registration aws create account internal server error response a status code equal to that given
+func (o *CloudRegistrationAwsCreateAccountInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cloud registration aws create account internal server error response
+func (o *CloudRegistrationAwsCreateAccountInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CloudRegistrationAwsCreateAccountInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountInternalServerError) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsCreateAccountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsCreateAccountInternalServerError) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsCreateAccountInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/operations/cloud_registration_aws_delete_account_parameters.go b/falcon/client/operations/cloud_registration_aws_delete_account_parameters.go
new file mode 100644
index 00000000..e1eb6e49
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_delete_account_parameters.go
@@ -0,0 +1,220 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewCloudRegistrationAwsDeleteAccountParams creates a new CloudRegistrationAwsDeleteAccountParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCloudRegistrationAwsDeleteAccountParams() *CloudRegistrationAwsDeleteAccountParams {
+ return &CloudRegistrationAwsDeleteAccountParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCloudRegistrationAwsDeleteAccountParamsWithTimeout creates a new CloudRegistrationAwsDeleteAccountParams object
+// with the ability to set a timeout on a request.
+func NewCloudRegistrationAwsDeleteAccountParamsWithTimeout(timeout time.Duration) *CloudRegistrationAwsDeleteAccountParams {
+ return &CloudRegistrationAwsDeleteAccountParams{
+ timeout: timeout,
+ }
+}
+
+// NewCloudRegistrationAwsDeleteAccountParamsWithContext creates a new CloudRegistrationAwsDeleteAccountParams object
+// with the ability to set a context for a request.
+func NewCloudRegistrationAwsDeleteAccountParamsWithContext(ctx context.Context) *CloudRegistrationAwsDeleteAccountParams {
+ return &CloudRegistrationAwsDeleteAccountParams{
+ Context: ctx,
+ }
+}
+
+// NewCloudRegistrationAwsDeleteAccountParamsWithHTTPClient creates a new CloudRegistrationAwsDeleteAccountParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCloudRegistrationAwsDeleteAccountParamsWithHTTPClient(client *http.Client) *CloudRegistrationAwsDeleteAccountParams {
+ return &CloudRegistrationAwsDeleteAccountParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CloudRegistrationAwsDeleteAccountParams contains all the parameters to send to the API endpoint
+
+ for the cloud registration aws delete account operation.
+
+ Typically these are written to a http.Request.
+*/
+type CloudRegistrationAwsDeleteAccountParams struct {
+
+ /* Ids.
+
+ AWS account IDs to remove
+ */
+ Ids []string
+
+ /* OrganizationIds.
+
+ AWS organization IDs to remove
+ */
+ OrganizationIds []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the cloud registration aws delete account params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsDeleteAccountParams) WithDefaults() *CloudRegistrationAwsDeleteAccountParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the cloud registration aws delete account params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsDeleteAccountParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the cloud registration aws delete account params
+func (o *CloudRegistrationAwsDeleteAccountParams) WithTimeout(timeout time.Duration) *CloudRegistrationAwsDeleteAccountParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the cloud registration aws delete account params
+func (o *CloudRegistrationAwsDeleteAccountParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the cloud registration aws delete account params
+func (o *CloudRegistrationAwsDeleteAccountParams) WithContext(ctx context.Context) *CloudRegistrationAwsDeleteAccountParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the cloud registration aws delete account params
+func (o *CloudRegistrationAwsDeleteAccountParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the cloud registration aws delete account params
+func (o *CloudRegistrationAwsDeleteAccountParams) WithHTTPClient(client *http.Client) *CloudRegistrationAwsDeleteAccountParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the cloud registration aws delete account params
+func (o *CloudRegistrationAwsDeleteAccountParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIds adds the ids to the cloud registration aws delete account params
+func (o *CloudRegistrationAwsDeleteAccountParams) WithIds(ids []string) *CloudRegistrationAwsDeleteAccountParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the cloud registration aws delete account params
+func (o *CloudRegistrationAwsDeleteAccountParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WithOrganizationIds adds the organizationIds to the cloud registration aws delete account params
+func (o *CloudRegistrationAwsDeleteAccountParams) WithOrganizationIds(organizationIds []string) *CloudRegistrationAwsDeleteAccountParams {
+ o.SetOrganizationIds(organizationIds)
+ return o
+}
+
+// SetOrganizationIds adds the organizationIds to the cloud registration aws delete account params
+func (o *CloudRegistrationAwsDeleteAccountParams) SetOrganizationIds(organizationIds []string) {
+ o.OrganizationIds = organizationIds
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CloudRegistrationAwsDeleteAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if o.OrganizationIds != nil {
+
+ // binding items for organization-ids
+ joinedOrganizationIds := o.bindParamOrganizationIds(reg)
+
+ // query array param organization-ids
+ if err := r.SetQueryParam("organization-ids", joinedOrganizationIds...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamCloudRegistrationAwsDeleteAccount binds the parameter ids
+func (o *CloudRegistrationAwsDeleteAccountParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ idsIS := swag.JoinByFormat(idsIC, "multi")
+
+ return idsIS
+}
+
+// bindParamCloudRegistrationAwsDeleteAccount binds the parameter organization-ids
+func (o *CloudRegistrationAwsDeleteAccountParams) bindParamOrganizationIds(formats strfmt.Registry) []string {
+ organizationIdsIR := o.OrganizationIds
+
+ var organizationIdsIC []string
+ for _, organizationIdsIIR := range organizationIdsIR { // explode []string
+
+ organizationIdsIIV := organizationIdsIIR // string as string
+ organizationIdsIC = append(organizationIdsIC, organizationIdsIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ organizationIdsIS := swag.JoinByFormat(organizationIdsIC, "multi")
+
+ return organizationIdsIS
+}
diff --git a/falcon/client/operations/cloud_registration_aws_delete_account_responses.go b/falcon/client/operations/cloud_registration_aws_delete_account_responses.go
new file mode 100644
index 00000000..6f2c8596
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_delete_account_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CloudRegistrationAwsDeleteAccountReader is a Reader for the CloudRegistrationAwsDeleteAccount structure.
+type CloudRegistrationAwsDeleteAccountReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CloudRegistrationAwsDeleteAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCloudRegistrationAwsDeleteAccountOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 207:
+ result := NewCloudRegistrationAwsDeleteAccountMultiStatus()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCloudRegistrationAwsDeleteAccountBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCloudRegistrationAwsDeleteAccountForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCloudRegistrationAwsDeleteAccountTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCloudRegistrationAwsDeleteAccountInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /cloud-security-registration-aws/entities/account/v1] cloud-registration-aws-delete-account", response, response.Code())
+ }
+}
+
+// NewCloudRegistrationAwsDeleteAccountOK creates a CloudRegistrationAwsDeleteAccountOK with default headers values
+func NewCloudRegistrationAwsDeleteAccountOK() *CloudRegistrationAwsDeleteAccountOK {
+ return &CloudRegistrationAwsDeleteAccountOK{}
+}
+
+/*
+CloudRegistrationAwsDeleteAccountOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type CloudRegistrationAwsDeleteAccountOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws delete account o k response has a 2xx status code
+func (o *CloudRegistrationAwsDeleteAccountOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws delete account o k response has a 3xx status code
+func (o *CloudRegistrationAwsDeleteAccountOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws delete account o k response has a 4xx status code
+func (o *CloudRegistrationAwsDeleteAccountOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws delete account o k response has a 5xx status code
+func (o *CloudRegistrationAwsDeleteAccountOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws delete account o k response a status code equal to that given
+func (o *CloudRegistrationAwsDeleteAccountOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the cloud registration aws delete account o k response
+func (o *CloudRegistrationAwsDeleteAccountOK) Code() int {
+ return 200
+}
+
+func (o *CloudRegistrationAwsDeleteAccountOK) Error() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountOK %+v", 200, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountOK) String() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountOK %+v", 200, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountOK) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsDeleteAccountOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsDeleteAccountMultiStatus creates a CloudRegistrationAwsDeleteAccountMultiStatus with default headers values
+func NewCloudRegistrationAwsDeleteAccountMultiStatus() *CloudRegistrationAwsDeleteAccountMultiStatus {
+ return &CloudRegistrationAwsDeleteAccountMultiStatus{}
+}
+
+/*
+CloudRegistrationAwsDeleteAccountMultiStatus describes a response with status code 207, with default header values.
+
+Multi-Status
+*/
+type CloudRegistrationAwsDeleteAccountMultiStatus struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws delete account multi status response has a 2xx status code
+func (o *CloudRegistrationAwsDeleteAccountMultiStatus) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws delete account multi status response has a 3xx status code
+func (o *CloudRegistrationAwsDeleteAccountMultiStatus) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws delete account multi status response has a 4xx status code
+func (o *CloudRegistrationAwsDeleteAccountMultiStatus) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws delete account multi status response has a 5xx status code
+func (o *CloudRegistrationAwsDeleteAccountMultiStatus) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws delete account multi status response a status code equal to that given
+func (o *CloudRegistrationAwsDeleteAccountMultiStatus) IsCode(code int) bool {
+ return code == 207
+}
+
+// Code gets the status code for the cloud registration aws delete account multi status response
+func (o *CloudRegistrationAwsDeleteAccountMultiStatus) Code() int {
+ return 207
+}
+
+func (o *CloudRegistrationAwsDeleteAccountMultiStatus) Error() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountMultiStatus %+v", 207, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountMultiStatus) String() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountMultiStatus %+v", 207, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountMultiStatus) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsDeleteAccountMultiStatus) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsDeleteAccountBadRequest creates a CloudRegistrationAwsDeleteAccountBadRequest with default headers values
+func NewCloudRegistrationAwsDeleteAccountBadRequest() *CloudRegistrationAwsDeleteAccountBadRequest {
+ return &CloudRegistrationAwsDeleteAccountBadRequest{}
+}
+
+/*
+CloudRegistrationAwsDeleteAccountBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CloudRegistrationAwsDeleteAccountBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws delete account bad request response has a 2xx status code
+func (o *CloudRegistrationAwsDeleteAccountBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws delete account bad request response has a 3xx status code
+func (o *CloudRegistrationAwsDeleteAccountBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws delete account bad request response has a 4xx status code
+func (o *CloudRegistrationAwsDeleteAccountBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws delete account bad request response has a 5xx status code
+func (o *CloudRegistrationAwsDeleteAccountBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws delete account bad request response a status code equal to that given
+func (o *CloudRegistrationAwsDeleteAccountBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the cloud registration aws delete account bad request response
+func (o *CloudRegistrationAwsDeleteAccountBadRequest) Code() int {
+ return 400
+}
+
+func (o *CloudRegistrationAwsDeleteAccountBadRequest) Error() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountBadRequest) String() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountBadRequest) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsDeleteAccountBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsDeleteAccountForbidden creates a CloudRegistrationAwsDeleteAccountForbidden with default headers values
+func NewCloudRegistrationAwsDeleteAccountForbidden() *CloudRegistrationAwsDeleteAccountForbidden {
+ return &CloudRegistrationAwsDeleteAccountForbidden{}
+}
+
+/*
+CloudRegistrationAwsDeleteAccountForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CloudRegistrationAwsDeleteAccountForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws delete account forbidden response has a 2xx status code
+func (o *CloudRegistrationAwsDeleteAccountForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws delete account forbidden response has a 3xx status code
+func (o *CloudRegistrationAwsDeleteAccountForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws delete account forbidden response has a 4xx status code
+func (o *CloudRegistrationAwsDeleteAccountForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws delete account forbidden response has a 5xx status code
+func (o *CloudRegistrationAwsDeleteAccountForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws delete account forbidden response a status code equal to that given
+func (o *CloudRegistrationAwsDeleteAccountForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the cloud registration aws delete account forbidden response
+func (o *CloudRegistrationAwsDeleteAccountForbidden) Code() int {
+ return 403
+}
+
+func (o *CloudRegistrationAwsDeleteAccountForbidden) Error() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountForbidden) String() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountForbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsDeleteAccountForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsDeleteAccountTooManyRequests creates a CloudRegistrationAwsDeleteAccountTooManyRequests with default headers values
+func NewCloudRegistrationAwsDeleteAccountTooManyRequests() *CloudRegistrationAwsDeleteAccountTooManyRequests {
+ return &CloudRegistrationAwsDeleteAccountTooManyRequests{}
+}
+
+/*
+CloudRegistrationAwsDeleteAccountTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CloudRegistrationAwsDeleteAccountTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cloud registration aws delete account too many requests response has a 2xx status code
+func (o *CloudRegistrationAwsDeleteAccountTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws delete account too many requests response has a 3xx status code
+func (o *CloudRegistrationAwsDeleteAccountTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws delete account too many requests response has a 4xx status code
+func (o *CloudRegistrationAwsDeleteAccountTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws delete account too many requests response has a 5xx status code
+func (o *CloudRegistrationAwsDeleteAccountTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws delete account too many requests response a status code equal to that given
+func (o *CloudRegistrationAwsDeleteAccountTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the cloud registration aws delete account too many requests response
+func (o *CloudRegistrationAwsDeleteAccountTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CloudRegistrationAwsDeleteAccountTooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountTooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsDeleteAccountTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsDeleteAccountInternalServerError creates a CloudRegistrationAwsDeleteAccountInternalServerError with default headers values
+func NewCloudRegistrationAwsDeleteAccountInternalServerError() *CloudRegistrationAwsDeleteAccountInternalServerError {
+ return &CloudRegistrationAwsDeleteAccountInternalServerError{}
+}
+
+/*
+CloudRegistrationAwsDeleteAccountInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CloudRegistrationAwsDeleteAccountInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws delete account internal server error response has a 2xx status code
+func (o *CloudRegistrationAwsDeleteAccountInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws delete account internal server error response has a 3xx status code
+func (o *CloudRegistrationAwsDeleteAccountInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws delete account internal server error response has a 4xx status code
+func (o *CloudRegistrationAwsDeleteAccountInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws delete account internal server error response has a 5xx status code
+func (o *CloudRegistrationAwsDeleteAccountInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cloud registration aws delete account internal server error response a status code equal to that given
+func (o *CloudRegistrationAwsDeleteAccountInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cloud registration aws delete account internal server error response
+func (o *CloudRegistrationAwsDeleteAccountInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CloudRegistrationAwsDeleteAccountInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsDeleteAccountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsDeleteAccountInternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsDeleteAccountInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/operations/cloud_registration_aws_get_accounts_parameters.go b/falcon/client/operations/cloud_registration_aws_get_accounts_parameters.go
new file mode 100644
index 00000000..89a69326
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_get_accounts_parameters.go
@@ -0,0 +1,175 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewCloudRegistrationAwsGetAccountsParams creates a new CloudRegistrationAwsGetAccountsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCloudRegistrationAwsGetAccountsParams() *CloudRegistrationAwsGetAccountsParams {
+ return &CloudRegistrationAwsGetAccountsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCloudRegistrationAwsGetAccountsParamsWithTimeout creates a new CloudRegistrationAwsGetAccountsParams object
+// with the ability to set a timeout on a request.
+func NewCloudRegistrationAwsGetAccountsParamsWithTimeout(timeout time.Duration) *CloudRegistrationAwsGetAccountsParams {
+ return &CloudRegistrationAwsGetAccountsParams{
+ timeout: timeout,
+ }
+}
+
+// NewCloudRegistrationAwsGetAccountsParamsWithContext creates a new CloudRegistrationAwsGetAccountsParams object
+// with the ability to set a context for a request.
+func NewCloudRegistrationAwsGetAccountsParamsWithContext(ctx context.Context) *CloudRegistrationAwsGetAccountsParams {
+ return &CloudRegistrationAwsGetAccountsParams{
+ Context: ctx,
+ }
+}
+
+// NewCloudRegistrationAwsGetAccountsParamsWithHTTPClient creates a new CloudRegistrationAwsGetAccountsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCloudRegistrationAwsGetAccountsParamsWithHTTPClient(client *http.Client) *CloudRegistrationAwsGetAccountsParams {
+ return &CloudRegistrationAwsGetAccountsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CloudRegistrationAwsGetAccountsParams contains all the parameters to send to the API endpoint
+
+ for the cloud registration aws get accounts operation.
+
+ Typically these are written to a http.Request.
+*/
+type CloudRegistrationAwsGetAccountsParams struct {
+
+ /* Ids.
+
+ AWS account IDs to filter
+ */
+ Ids []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the cloud registration aws get accounts params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsGetAccountsParams) WithDefaults() *CloudRegistrationAwsGetAccountsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the cloud registration aws get accounts params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsGetAccountsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the cloud registration aws get accounts params
+func (o *CloudRegistrationAwsGetAccountsParams) WithTimeout(timeout time.Duration) *CloudRegistrationAwsGetAccountsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the cloud registration aws get accounts params
+func (o *CloudRegistrationAwsGetAccountsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the cloud registration aws get accounts params
+func (o *CloudRegistrationAwsGetAccountsParams) WithContext(ctx context.Context) *CloudRegistrationAwsGetAccountsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the cloud registration aws get accounts params
+func (o *CloudRegistrationAwsGetAccountsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the cloud registration aws get accounts params
+func (o *CloudRegistrationAwsGetAccountsParams) WithHTTPClient(client *http.Client) *CloudRegistrationAwsGetAccountsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the cloud registration aws get accounts params
+func (o *CloudRegistrationAwsGetAccountsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIds adds the ids to the cloud registration aws get accounts params
+func (o *CloudRegistrationAwsGetAccountsParams) WithIds(ids []string) *CloudRegistrationAwsGetAccountsParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the cloud registration aws get accounts params
+func (o *CloudRegistrationAwsGetAccountsParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CloudRegistrationAwsGetAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamCloudRegistrationAwsGetAccounts binds the parameter ids
+func (o *CloudRegistrationAwsGetAccountsParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ idsIS := swag.JoinByFormat(idsIC, "multi")
+
+ return idsIS
+}
diff --git a/falcon/client/operations/cloud_registration_aws_get_accounts_responses.go b/falcon/client/operations/cloud_registration_aws_get_accounts_responses.go
new file mode 100644
index 00000000..ec306161
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_get_accounts_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CloudRegistrationAwsGetAccountsReader is a Reader for the CloudRegistrationAwsGetAccounts structure.
+type CloudRegistrationAwsGetAccountsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CloudRegistrationAwsGetAccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCloudRegistrationAwsGetAccountsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 207:
+ result := NewCloudRegistrationAwsGetAccountsMultiStatus()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCloudRegistrationAwsGetAccountsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCloudRegistrationAwsGetAccountsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCloudRegistrationAwsGetAccountsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCloudRegistrationAwsGetAccountsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /cloud-security-registration-aws/entities/account/v1] cloud-registration-aws-get-accounts", response, response.Code())
+ }
+}
+
+// NewCloudRegistrationAwsGetAccountsOK creates a CloudRegistrationAwsGetAccountsOK with default headers values
+func NewCloudRegistrationAwsGetAccountsOK() *CloudRegistrationAwsGetAccountsOK {
+ return &CloudRegistrationAwsGetAccountsOK{}
+}
+
+/*
+CloudRegistrationAwsGetAccountsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type CloudRegistrationAwsGetAccountsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws get accounts o k response has a 2xx status code
+func (o *CloudRegistrationAwsGetAccountsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws get accounts o k response has a 3xx status code
+func (o *CloudRegistrationAwsGetAccountsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws get accounts o k response has a 4xx status code
+func (o *CloudRegistrationAwsGetAccountsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws get accounts o k response has a 5xx status code
+func (o *CloudRegistrationAwsGetAccountsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws get accounts o k response a status code equal to that given
+func (o *CloudRegistrationAwsGetAccountsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the cloud registration aws get accounts o k response
+func (o *CloudRegistrationAwsGetAccountsOK) Code() int {
+ return 200
+}
+
+func (o *CloudRegistrationAwsGetAccountsOK) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsOK %+v", 200, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsOK) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsOK %+v", 200, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsOK) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsGetAccountsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsGetAccountsMultiStatus creates a CloudRegistrationAwsGetAccountsMultiStatus with default headers values
+func NewCloudRegistrationAwsGetAccountsMultiStatus() *CloudRegistrationAwsGetAccountsMultiStatus {
+ return &CloudRegistrationAwsGetAccountsMultiStatus{}
+}
+
+/*
+CloudRegistrationAwsGetAccountsMultiStatus describes a response with status code 207, with default header values.
+
+Multi-Status
+*/
+type CloudRegistrationAwsGetAccountsMultiStatus struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws get accounts multi status response has a 2xx status code
+func (o *CloudRegistrationAwsGetAccountsMultiStatus) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws get accounts multi status response has a 3xx status code
+func (o *CloudRegistrationAwsGetAccountsMultiStatus) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws get accounts multi status response has a 4xx status code
+func (o *CloudRegistrationAwsGetAccountsMultiStatus) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws get accounts multi status response has a 5xx status code
+func (o *CloudRegistrationAwsGetAccountsMultiStatus) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws get accounts multi status response a status code equal to that given
+func (o *CloudRegistrationAwsGetAccountsMultiStatus) IsCode(code int) bool {
+ return code == 207
+}
+
+// Code gets the status code for the cloud registration aws get accounts multi status response
+func (o *CloudRegistrationAwsGetAccountsMultiStatus) Code() int {
+ return 207
+}
+
+func (o *CloudRegistrationAwsGetAccountsMultiStatus) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsMultiStatus %+v", 207, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsMultiStatus) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsMultiStatus %+v", 207, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsMultiStatus) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsGetAccountsMultiStatus) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsGetAccountsBadRequest creates a CloudRegistrationAwsGetAccountsBadRequest with default headers values
+func NewCloudRegistrationAwsGetAccountsBadRequest() *CloudRegistrationAwsGetAccountsBadRequest {
+ return &CloudRegistrationAwsGetAccountsBadRequest{}
+}
+
+/*
+CloudRegistrationAwsGetAccountsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CloudRegistrationAwsGetAccountsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws get accounts bad request response has a 2xx status code
+func (o *CloudRegistrationAwsGetAccountsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws get accounts bad request response has a 3xx status code
+func (o *CloudRegistrationAwsGetAccountsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws get accounts bad request response has a 4xx status code
+func (o *CloudRegistrationAwsGetAccountsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws get accounts bad request response has a 5xx status code
+func (o *CloudRegistrationAwsGetAccountsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws get accounts bad request response a status code equal to that given
+func (o *CloudRegistrationAwsGetAccountsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the cloud registration aws get accounts bad request response
+func (o *CloudRegistrationAwsGetAccountsBadRequest) Code() int {
+ return 400
+}
+
+func (o *CloudRegistrationAwsGetAccountsBadRequest) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsBadRequest) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsBadRequest) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsGetAccountsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsGetAccountsForbidden creates a CloudRegistrationAwsGetAccountsForbidden with default headers values
+func NewCloudRegistrationAwsGetAccountsForbidden() *CloudRegistrationAwsGetAccountsForbidden {
+ return &CloudRegistrationAwsGetAccountsForbidden{}
+}
+
+/*
+CloudRegistrationAwsGetAccountsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CloudRegistrationAwsGetAccountsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws get accounts forbidden response has a 2xx status code
+func (o *CloudRegistrationAwsGetAccountsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws get accounts forbidden response has a 3xx status code
+func (o *CloudRegistrationAwsGetAccountsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws get accounts forbidden response has a 4xx status code
+func (o *CloudRegistrationAwsGetAccountsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws get accounts forbidden response has a 5xx status code
+func (o *CloudRegistrationAwsGetAccountsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws get accounts forbidden response a status code equal to that given
+func (o *CloudRegistrationAwsGetAccountsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the cloud registration aws get accounts forbidden response
+func (o *CloudRegistrationAwsGetAccountsForbidden) Code() int {
+ return 403
+}
+
+func (o *CloudRegistrationAwsGetAccountsForbidden) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsForbidden) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsForbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsGetAccountsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsGetAccountsTooManyRequests creates a CloudRegistrationAwsGetAccountsTooManyRequests with default headers values
+func NewCloudRegistrationAwsGetAccountsTooManyRequests() *CloudRegistrationAwsGetAccountsTooManyRequests {
+ return &CloudRegistrationAwsGetAccountsTooManyRequests{}
+}
+
+/*
+CloudRegistrationAwsGetAccountsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CloudRegistrationAwsGetAccountsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cloud registration aws get accounts too many requests response has a 2xx status code
+func (o *CloudRegistrationAwsGetAccountsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws get accounts too many requests response has a 3xx status code
+func (o *CloudRegistrationAwsGetAccountsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws get accounts too many requests response has a 4xx status code
+func (o *CloudRegistrationAwsGetAccountsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws get accounts too many requests response has a 5xx status code
+func (o *CloudRegistrationAwsGetAccountsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws get accounts too many requests response a status code equal to that given
+func (o *CloudRegistrationAwsGetAccountsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the cloud registration aws get accounts too many requests response
+func (o *CloudRegistrationAwsGetAccountsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CloudRegistrationAwsGetAccountsTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsGetAccountsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsGetAccountsInternalServerError creates a CloudRegistrationAwsGetAccountsInternalServerError with default headers values
+func NewCloudRegistrationAwsGetAccountsInternalServerError() *CloudRegistrationAwsGetAccountsInternalServerError {
+ return &CloudRegistrationAwsGetAccountsInternalServerError{}
+}
+
+/*
+CloudRegistrationAwsGetAccountsInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CloudRegistrationAwsGetAccountsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws get accounts internal server error response has a 2xx status code
+func (o *CloudRegistrationAwsGetAccountsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws get accounts internal server error response has a 3xx status code
+func (o *CloudRegistrationAwsGetAccountsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws get accounts internal server error response has a 4xx status code
+func (o *CloudRegistrationAwsGetAccountsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws get accounts internal server error response has a 5xx status code
+func (o *CloudRegistrationAwsGetAccountsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cloud registration aws get accounts internal server error response a status code equal to that given
+func (o *CloudRegistrationAwsGetAccountsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cloud registration aws get accounts internal server error response
+func (o *CloudRegistrationAwsGetAccountsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CloudRegistrationAwsGetAccountsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsGetAccountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsGetAccountsInternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsGetAccountsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/operations/cloud_registration_aws_query_accounts_parameters.go b/falcon/client/operations/cloud_registration_aws_query_accounts_parameters.go
new file mode 100644
index 00000000..0ad24159
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_query_accounts_parameters.go
@@ -0,0 +1,414 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewCloudRegistrationAwsQueryAccountsParams creates a new CloudRegistrationAwsQueryAccountsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCloudRegistrationAwsQueryAccountsParams() *CloudRegistrationAwsQueryAccountsParams {
+ return &CloudRegistrationAwsQueryAccountsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCloudRegistrationAwsQueryAccountsParamsWithTimeout creates a new CloudRegistrationAwsQueryAccountsParams object
+// with the ability to set a timeout on a request.
+func NewCloudRegistrationAwsQueryAccountsParamsWithTimeout(timeout time.Duration) *CloudRegistrationAwsQueryAccountsParams {
+ return &CloudRegistrationAwsQueryAccountsParams{
+ timeout: timeout,
+ }
+}
+
+// NewCloudRegistrationAwsQueryAccountsParamsWithContext creates a new CloudRegistrationAwsQueryAccountsParams object
+// with the ability to set a context for a request.
+func NewCloudRegistrationAwsQueryAccountsParamsWithContext(ctx context.Context) *CloudRegistrationAwsQueryAccountsParams {
+ return &CloudRegistrationAwsQueryAccountsParams{
+ Context: ctx,
+ }
+}
+
+// NewCloudRegistrationAwsQueryAccountsParamsWithHTTPClient creates a new CloudRegistrationAwsQueryAccountsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCloudRegistrationAwsQueryAccountsParamsWithHTTPClient(client *http.Client) *CloudRegistrationAwsQueryAccountsParams {
+ return &CloudRegistrationAwsQueryAccountsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CloudRegistrationAwsQueryAccountsParams contains all the parameters to send to the API endpoint
+
+ for the cloud registration aws query accounts operation.
+
+ Typically these are written to a http.Request.
+*/
+type CloudRegistrationAwsQueryAccountsParams struct {
+
+ /* AccountStatus.
+
+ Account status to filter results by.
+ */
+ AccountStatus *string
+
+ /* Features.
+
+ Features registered for an account
+ */
+ Features []string
+
+ /* GroupBy.
+
+ Field to group by.
+ */
+ GroupBy *string
+
+ /* Limit.
+
+ The maximum number of items to return. When not specified or 0, 100 is used. When larger than 500, 500 is used.
+
+ Default: 100
+ */
+ Limit *int64
+
+ /* Offset.
+
+ The offset to start retrieving records from.
+ */
+ Offset *int64
+
+ /* OrganizationIds.
+
+ Organization IDs used to filter accounts
+ */
+ OrganizationIds []string
+
+ /* Products.
+
+ Products registered for an account
+ */
+ Products []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the cloud registration aws query accounts params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsQueryAccountsParams) WithDefaults() *CloudRegistrationAwsQueryAccountsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the cloud registration aws query accounts params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsQueryAccountsParams) SetDefaults() {
+ var (
+ limitDefault = int64(100)
+ )
+
+ val := CloudRegistrationAwsQueryAccountsParams{
+ Limit: &limitDefault,
+ }
+
+ val.timeout = o.timeout
+ val.Context = o.Context
+ val.HTTPClient = o.HTTPClient
+ *o = val
+}
+
+// WithTimeout adds the timeout to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) WithTimeout(timeout time.Duration) *CloudRegistrationAwsQueryAccountsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) WithContext(ctx context.Context) *CloudRegistrationAwsQueryAccountsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) WithHTTPClient(client *http.Client) *CloudRegistrationAwsQueryAccountsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithAccountStatus adds the accountStatus to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) WithAccountStatus(accountStatus *string) *CloudRegistrationAwsQueryAccountsParams {
+ o.SetAccountStatus(accountStatus)
+ return o
+}
+
+// SetAccountStatus adds the accountStatus to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) SetAccountStatus(accountStatus *string) {
+ o.AccountStatus = accountStatus
+}
+
+// WithFeatures adds the features to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) WithFeatures(features []string) *CloudRegistrationAwsQueryAccountsParams {
+ o.SetFeatures(features)
+ return o
+}
+
+// SetFeatures adds the features to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) SetFeatures(features []string) {
+ o.Features = features
+}
+
+// WithGroupBy adds the groupBy to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) WithGroupBy(groupBy *string) *CloudRegistrationAwsQueryAccountsParams {
+ o.SetGroupBy(groupBy)
+ return o
+}
+
+// SetGroupBy adds the groupBy to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) SetGroupBy(groupBy *string) {
+ o.GroupBy = groupBy
+}
+
+// WithLimit adds the limit to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) WithLimit(limit *int64) *CloudRegistrationAwsQueryAccountsParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) WithOffset(offset *int64) *CloudRegistrationAwsQueryAccountsParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WithOrganizationIds adds the organizationIds to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) WithOrganizationIds(organizationIds []string) *CloudRegistrationAwsQueryAccountsParams {
+ o.SetOrganizationIds(organizationIds)
+ return o
+}
+
+// SetOrganizationIds adds the organizationIds to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) SetOrganizationIds(organizationIds []string) {
+ o.OrganizationIds = organizationIds
+}
+
+// WithProducts adds the products to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) WithProducts(products []string) *CloudRegistrationAwsQueryAccountsParams {
+ o.SetProducts(products)
+ return o
+}
+
+// SetProducts adds the products to the cloud registration aws query accounts params
+func (o *CloudRegistrationAwsQueryAccountsParams) SetProducts(products []string) {
+ o.Products = products
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CloudRegistrationAwsQueryAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.AccountStatus != nil {
+
+ // query param account-status
+ var qrAccountStatus string
+
+ if o.AccountStatus != nil {
+ qrAccountStatus = *o.AccountStatus
+ }
+ qAccountStatus := qrAccountStatus
+ if qAccountStatus != "" {
+
+ if err := r.SetQueryParam("account-status", qAccountStatus); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Features != nil {
+
+ // binding items for features
+ joinedFeatures := o.bindParamFeatures(reg)
+
+ // query array param features
+ if err := r.SetQueryParam("features", joinedFeatures...); err != nil {
+ return err
+ }
+ }
+
+ if o.GroupBy != nil {
+
+ // query param group_by
+ var qrGroupBy string
+
+ if o.GroupBy != nil {
+ qrGroupBy = *o.GroupBy
+ }
+ qGroupBy := qrGroupBy
+ if qGroupBy != "" {
+
+ if err := r.SetQueryParam("group_by", qGroupBy); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.OrganizationIds != nil {
+
+ // binding items for organization-ids
+ joinedOrganizationIds := o.bindParamOrganizationIds(reg)
+
+ // query array param organization-ids
+ if err := r.SetQueryParam("organization-ids", joinedOrganizationIds...); err != nil {
+ return err
+ }
+ }
+
+ if o.Products != nil {
+
+ // binding items for products
+ joinedProducts := o.bindParamProducts(reg)
+
+ // query array param products
+ if err := r.SetQueryParam("products", joinedProducts...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamCloudRegistrationAwsQueryAccounts binds the parameter features
+func (o *CloudRegistrationAwsQueryAccountsParams) bindParamFeatures(formats strfmt.Registry) []string {
+ featuresIR := o.Features
+
+ var featuresIC []string
+ for _, featuresIIR := range featuresIR { // explode []string
+
+ featuresIIV := featuresIIR // string as string
+ featuresIC = append(featuresIC, featuresIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ featuresIS := swag.JoinByFormat(featuresIC, "multi")
+
+ return featuresIS
+}
+
+// bindParamCloudRegistrationAwsQueryAccounts binds the parameter organization-ids
+func (o *CloudRegistrationAwsQueryAccountsParams) bindParamOrganizationIds(formats strfmt.Registry) []string {
+ organizationIdsIR := o.OrganizationIds
+
+ var organizationIdsIC []string
+ for _, organizationIdsIIR := range organizationIdsIR { // explode []string
+
+ organizationIdsIIV := organizationIdsIIR // string as string
+ organizationIdsIC = append(organizationIdsIC, organizationIdsIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ organizationIdsIS := swag.JoinByFormat(organizationIdsIC, "multi")
+
+ return organizationIdsIS
+}
+
+// bindParamCloudRegistrationAwsQueryAccounts binds the parameter products
+func (o *CloudRegistrationAwsQueryAccountsParams) bindParamProducts(formats strfmt.Registry) []string {
+ productsIR := o.Products
+
+ var productsIC []string
+ for _, productsIIR := range productsIR { // explode []string
+
+ productsIIV := productsIIR // string as string
+ productsIC = append(productsIC, productsIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ productsIS := swag.JoinByFormat(productsIC, "multi")
+
+ return productsIS
+}
diff --git a/falcon/client/operations/cloud_registration_aws_query_accounts_responses.go b/falcon/client/operations/cloud_registration_aws_query_accounts_responses.go
new file mode 100644
index 00000000..540daa57
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_query_accounts_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CloudRegistrationAwsQueryAccountsReader is a Reader for the CloudRegistrationAwsQueryAccounts structure.
+type CloudRegistrationAwsQueryAccountsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CloudRegistrationAwsQueryAccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCloudRegistrationAwsQueryAccountsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 207:
+ result := NewCloudRegistrationAwsQueryAccountsMultiStatus()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCloudRegistrationAwsQueryAccountsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCloudRegistrationAwsQueryAccountsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCloudRegistrationAwsQueryAccountsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCloudRegistrationAwsQueryAccountsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /cloud-security-registration-aws/queries/account/v1] cloud-registration-aws-query-accounts", response, response.Code())
+ }
+}
+
+// NewCloudRegistrationAwsQueryAccountsOK creates a CloudRegistrationAwsQueryAccountsOK with default headers values
+func NewCloudRegistrationAwsQueryAccountsOK() *CloudRegistrationAwsQueryAccountsOK {
+ return &CloudRegistrationAwsQueryAccountsOK{}
+}
+
+/*
+CloudRegistrationAwsQueryAccountsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type CloudRegistrationAwsQueryAccountsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws query accounts o k response has a 2xx status code
+func (o *CloudRegistrationAwsQueryAccountsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws query accounts o k response has a 3xx status code
+func (o *CloudRegistrationAwsQueryAccountsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws query accounts o k response has a 4xx status code
+func (o *CloudRegistrationAwsQueryAccountsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws query accounts o k response has a 5xx status code
+func (o *CloudRegistrationAwsQueryAccountsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws query accounts o k response a status code equal to that given
+func (o *CloudRegistrationAwsQueryAccountsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the cloud registration aws query accounts o k response
+func (o *CloudRegistrationAwsQueryAccountsOK) Code() int {
+ return 200
+}
+
+func (o *CloudRegistrationAwsQueryAccountsOK) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsOK %+v", 200, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsOK) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsOK %+v", 200, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsOK) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsQueryAccountsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsQueryAccountsMultiStatus creates a CloudRegistrationAwsQueryAccountsMultiStatus with default headers values
+func NewCloudRegistrationAwsQueryAccountsMultiStatus() *CloudRegistrationAwsQueryAccountsMultiStatus {
+ return &CloudRegistrationAwsQueryAccountsMultiStatus{}
+}
+
+/*
+CloudRegistrationAwsQueryAccountsMultiStatus describes a response with status code 207, with default header values.
+
+Multi-Status
+*/
+type CloudRegistrationAwsQueryAccountsMultiStatus struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws query accounts multi status response has a 2xx status code
+func (o *CloudRegistrationAwsQueryAccountsMultiStatus) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws query accounts multi status response has a 3xx status code
+func (o *CloudRegistrationAwsQueryAccountsMultiStatus) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws query accounts multi status response has a 4xx status code
+func (o *CloudRegistrationAwsQueryAccountsMultiStatus) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws query accounts multi status response has a 5xx status code
+func (o *CloudRegistrationAwsQueryAccountsMultiStatus) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws query accounts multi status response a status code equal to that given
+func (o *CloudRegistrationAwsQueryAccountsMultiStatus) IsCode(code int) bool {
+ return code == 207
+}
+
+// Code gets the status code for the cloud registration aws query accounts multi status response
+func (o *CloudRegistrationAwsQueryAccountsMultiStatus) Code() int {
+ return 207
+}
+
+func (o *CloudRegistrationAwsQueryAccountsMultiStatus) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsMultiStatus %+v", 207, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsMultiStatus) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsMultiStatus %+v", 207, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsMultiStatus) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsQueryAccountsMultiStatus) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsQueryAccountsBadRequest creates a CloudRegistrationAwsQueryAccountsBadRequest with default headers values
+func NewCloudRegistrationAwsQueryAccountsBadRequest() *CloudRegistrationAwsQueryAccountsBadRequest {
+ return &CloudRegistrationAwsQueryAccountsBadRequest{}
+}
+
+/*
+CloudRegistrationAwsQueryAccountsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CloudRegistrationAwsQueryAccountsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws query accounts bad request response has a 2xx status code
+func (o *CloudRegistrationAwsQueryAccountsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws query accounts bad request response has a 3xx status code
+func (o *CloudRegistrationAwsQueryAccountsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws query accounts bad request response has a 4xx status code
+func (o *CloudRegistrationAwsQueryAccountsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws query accounts bad request response has a 5xx status code
+func (o *CloudRegistrationAwsQueryAccountsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws query accounts bad request response a status code equal to that given
+func (o *CloudRegistrationAwsQueryAccountsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the cloud registration aws query accounts bad request response
+func (o *CloudRegistrationAwsQueryAccountsBadRequest) Code() int {
+ return 400
+}
+
+func (o *CloudRegistrationAwsQueryAccountsBadRequest) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsBadRequest) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsBadRequest) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsQueryAccountsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsQueryAccountsForbidden creates a CloudRegistrationAwsQueryAccountsForbidden with default headers values
+func NewCloudRegistrationAwsQueryAccountsForbidden() *CloudRegistrationAwsQueryAccountsForbidden {
+ return &CloudRegistrationAwsQueryAccountsForbidden{}
+}
+
+/*
+CloudRegistrationAwsQueryAccountsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CloudRegistrationAwsQueryAccountsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws query accounts forbidden response has a 2xx status code
+func (o *CloudRegistrationAwsQueryAccountsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws query accounts forbidden response has a 3xx status code
+func (o *CloudRegistrationAwsQueryAccountsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws query accounts forbidden response has a 4xx status code
+func (o *CloudRegistrationAwsQueryAccountsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws query accounts forbidden response has a 5xx status code
+func (o *CloudRegistrationAwsQueryAccountsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws query accounts forbidden response a status code equal to that given
+func (o *CloudRegistrationAwsQueryAccountsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the cloud registration aws query accounts forbidden response
+func (o *CloudRegistrationAwsQueryAccountsForbidden) Code() int {
+ return 403
+}
+
+func (o *CloudRegistrationAwsQueryAccountsForbidden) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsForbidden) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsForbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsQueryAccountsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsQueryAccountsTooManyRequests creates a CloudRegistrationAwsQueryAccountsTooManyRequests with default headers values
+func NewCloudRegistrationAwsQueryAccountsTooManyRequests() *CloudRegistrationAwsQueryAccountsTooManyRequests {
+ return &CloudRegistrationAwsQueryAccountsTooManyRequests{}
+}
+
+/*
+CloudRegistrationAwsQueryAccountsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CloudRegistrationAwsQueryAccountsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cloud registration aws query accounts too many requests response has a 2xx status code
+func (o *CloudRegistrationAwsQueryAccountsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws query accounts too many requests response has a 3xx status code
+func (o *CloudRegistrationAwsQueryAccountsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws query accounts too many requests response has a 4xx status code
+func (o *CloudRegistrationAwsQueryAccountsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws query accounts too many requests response has a 5xx status code
+func (o *CloudRegistrationAwsQueryAccountsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws query accounts too many requests response a status code equal to that given
+func (o *CloudRegistrationAwsQueryAccountsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the cloud registration aws query accounts too many requests response
+func (o *CloudRegistrationAwsQueryAccountsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CloudRegistrationAwsQueryAccountsTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsQueryAccountsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsQueryAccountsInternalServerError creates a CloudRegistrationAwsQueryAccountsInternalServerError with default headers values
+func NewCloudRegistrationAwsQueryAccountsInternalServerError() *CloudRegistrationAwsQueryAccountsInternalServerError {
+ return &CloudRegistrationAwsQueryAccountsInternalServerError{}
+}
+
+/*
+CloudRegistrationAwsQueryAccountsInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CloudRegistrationAwsQueryAccountsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws query accounts internal server error response has a 2xx status code
+func (o *CloudRegistrationAwsQueryAccountsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws query accounts internal server error response has a 3xx status code
+func (o *CloudRegistrationAwsQueryAccountsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws query accounts internal server error response has a 4xx status code
+func (o *CloudRegistrationAwsQueryAccountsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws query accounts internal server error response has a 5xx status code
+func (o *CloudRegistrationAwsQueryAccountsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cloud registration aws query accounts internal server error response a status code equal to that given
+func (o *CloudRegistrationAwsQueryAccountsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cloud registration aws query accounts internal server error response
+func (o *CloudRegistrationAwsQueryAccountsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CloudRegistrationAwsQueryAccountsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /cloud-security-registration-aws/queries/account/v1][%d] cloudRegistrationAwsQueryAccountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsQueryAccountsInternalServerError) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsQueryAccountsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/operations/cloud_registration_aws_update_account_parameters.go b/falcon/client/operations/cloud_registration_aws_update_account_parameters.go
new file mode 100644
index 00000000..7c19d6ad
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_update_account_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewCloudRegistrationAwsUpdateAccountParams creates a new CloudRegistrationAwsUpdateAccountParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCloudRegistrationAwsUpdateAccountParams() *CloudRegistrationAwsUpdateAccountParams {
+ return &CloudRegistrationAwsUpdateAccountParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCloudRegistrationAwsUpdateAccountParamsWithTimeout creates a new CloudRegistrationAwsUpdateAccountParams object
+// with the ability to set a timeout on a request.
+func NewCloudRegistrationAwsUpdateAccountParamsWithTimeout(timeout time.Duration) *CloudRegistrationAwsUpdateAccountParams {
+ return &CloudRegistrationAwsUpdateAccountParams{
+ timeout: timeout,
+ }
+}
+
+// NewCloudRegistrationAwsUpdateAccountParamsWithContext creates a new CloudRegistrationAwsUpdateAccountParams object
+// with the ability to set a context for a request.
+func NewCloudRegistrationAwsUpdateAccountParamsWithContext(ctx context.Context) *CloudRegistrationAwsUpdateAccountParams {
+ return &CloudRegistrationAwsUpdateAccountParams{
+ Context: ctx,
+ }
+}
+
+// NewCloudRegistrationAwsUpdateAccountParamsWithHTTPClient creates a new CloudRegistrationAwsUpdateAccountParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCloudRegistrationAwsUpdateAccountParamsWithHTTPClient(client *http.Client) *CloudRegistrationAwsUpdateAccountParams {
+ return &CloudRegistrationAwsUpdateAccountParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CloudRegistrationAwsUpdateAccountParams contains all the parameters to send to the API endpoint
+
+ for the cloud registration aws update account operation.
+
+ Typically these are written to a http.Request.
+*/
+type CloudRegistrationAwsUpdateAccountParams struct {
+
+ // Body.
+ Body *models.RestAWSAccountCreateRequestExtv1
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the cloud registration aws update account params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsUpdateAccountParams) WithDefaults() *CloudRegistrationAwsUpdateAccountParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the cloud registration aws update account params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsUpdateAccountParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the cloud registration aws update account params
+func (o *CloudRegistrationAwsUpdateAccountParams) WithTimeout(timeout time.Duration) *CloudRegistrationAwsUpdateAccountParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the cloud registration aws update account params
+func (o *CloudRegistrationAwsUpdateAccountParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the cloud registration aws update account params
+func (o *CloudRegistrationAwsUpdateAccountParams) WithContext(ctx context.Context) *CloudRegistrationAwsUpdateAccountParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the cloud registration aws update account params
+func (o *CloudRegistrationAwsUpdateAccountParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the cloud registration aws update account params
+func (o *CloudRegistrationAwsUpdateAccountParams) WithHTTPClient(client *http.Client) *CloudRegistrationAwsUpdateAccountParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the cloud registration aws update account params
+func (o *CloudRegistrationAwsUpdateAccountParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the cloud registration aws update account params
+func (o *CloudRegistrationAwsUpdateAccountParams) WithBody(body *models.RestAWSAccountCreateRequestExtv1) *CloudRegistrationAwsUpdateAccountParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the cloud registration aws update account params
+func (o *CloudRegistrationAwsUpdateAccountParams) SetBody(body *models.RestAWSAccountCreateRequestExtv1) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CloudRegistrationAwsUpdateAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/operations/cloud_registration_aws_update_account_responses.go b/falcon/client/operations/cloud_registration_aws_update_account_responses.go
new file mode 100644
index 00000000..2928ddcd
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_update_account_responses.go
@@ -0,0 +1,742 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CloudRegistrationAwsUpdateAccountReader is a Reader for the CloudRegistrationAwsUpdateAccount structure.
+type CloudRegistrationAwsUpdateAccountReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CloudRegistrationAwsUpdateAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 201:
+ result := NewCloudRegistrationAwsUpdateAccountCreated()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 207:
+ result := NewCloudRegistrationAwsUpdateAccountMultiStatus()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCloudRegistrationAwsUpdateAccountBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCloudRegistrationAwsUpdateAccountForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCloudRegistrationAwsUpdateAccountTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCloudRegistrationAwsUpdateAccountInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PATCH /cloud-security-registration-aws/entities/account/v1] cloud-registration-aws-update-account", response, response.Code())
+ }
+}
+
+// NewCloudRegistrationAwsUpdateAccountCreated creates a CloudRegistrationAwsUpdateAccountCreated with default headers values
+func NewCloudRegistrationAwsUpdateAccountCreated() *CloudRegistrationAwsUpdateAccountCreated {
+ return &CloudRegistrationAwsUpdateAccountCreated{}
+}
+
+/*
+CloudRegistrationAwsUpdateAccountCreated describes a response with status code 201, with default header values.
+
+Created
+*/
+type CloudRegistrationAwsUpdateAccountCreated struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws update account created response has a 2xx status code
+func (o *CloudRegistrationAwsUpdateAccountCreated) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws update account created response has a 3xx status code
+func (o *CloudRegistrationAwsUpdateAccountCreated) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws update account created response has a 4xx status code
+func (o *CloudRegistrationAwsUpdateAccountCreated) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws update account created response has a 5xx status code
+func (o *CloudRegistrationAwsUpdateAccountCreated) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws update account created response a status code equal to that given
+func (o *CloudRegistrationAwsUpdateAccountCreated) IsCode(code int) bool {
+ return code == 201
+}
+
+// Code gets the status code for the cloud registration aws update account created response
+func (o *CloudRegistrationAwsUpdateAccountCreated) Code() int {
+ return 201
+}
+
+func (o *CloudRegistrationAwsUpdateAccountCreated) Error() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountCreated %+v", 201, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountCreated) String() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountCreated %+v", 201, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountCreated) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsUpdateAccountCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsUpdateAccountMultiStatus creates a CloudRegistrationAwsUpdateAccountMultiStatus with default headers values
+func NewCloudRegistrationAwsUpdateAccountMultiStatus() *CloudRegistrationAwsUpdateAccountMultiStatus {
+ return &CloudRegistrationAwsUpdateAccountMultiStatus{}
+}
+
+/*
+CloudRegistrationAwsUpdateAccountMultiStatus describes a response with status code 207, with default header values.
+
+Multi-Status
+*/
+type CloudRegistrationAwsUpdateAccountMultiStatus struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws update account multi status response has a 2xx status code
+func (o *CloudRegistrationAwsUpdateAccountMultiStatus) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws update account multi status response has a 3xx status code
+func (o *CloudRegistrationAwsUpdateAccountMultiStatus) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws update account multi status response has a 4xx status code
+func (o *CloudRegistrationAwsUpdateAccountMultiStatus) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws update account multi status response has a 5xx status code
+func (o *CloudRegistrationAwsUpdateAccountMultiStatus) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws update account multi status response a status code equal to that given
+func (o *CloudRegistrationAwsUpdateAccountMultiStatus) IsCode(code int) bool {
+ return code == 207
+}
+
+// Code gets the status code for the cloud registration aws update account multi status response
+func (o *CloudRegistrationAwsUpdateAccountMultiStatus) Code() int {
+ return 207
+}
+
+func (o *CloudRegistrationAwsUpdateAccountMultiStatus) Error() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountMultiStatus %+v", 207, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountMultiStatus) String() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountMultiStatus %+v", 207, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountMultiStatus) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsUpdateAccountMultiStatus) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsUpdateAccountBadRequest creates a CloudRegistrationAwsUpdateAccountBadRequest with default headers values
+func NewCloudRegistrationAwsUpdateAccountBadRequest() *CloudRegistrationAwsUpdateAccountBadRequest {
+ return &CloudRegistrationAwsUpdateAccountBadRequest{}
+}
+
+/*
+CloudRegistrationAwsUpdateAccountBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CloudRegistrationAwsUpdateAccountBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws update account bad request response has a 2xx status code
+func (o *CloudRegistrationAwsUpdateAccountBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws update account bad request response has a 3xx status code
+func (o *CloudRegistrationAwsUpdateAccountBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws update account bad request response has a 4xx status code
+func (o *CloudRegistrationAwsUpdateAccountBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws update account bad request response has a 5xx status code
+func (o *CloudRegistrationAwsUpdateAccountBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws update account bad request response a status code equal to that given
+func (o *CloudRegistrationAwsUpdateAccountBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the cloud registration aws update account bad request response
+func (o *CloudRegistrationAwsUpdateAccountBadRequest) Code() int {
+ return 400
+}
+
+func (o *CloudRegistrationAwsUpdateAccountBadRequest) Error() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountBadRequest) String() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountBadRequest) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsUpdateAccountBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsUpdateAccountForbidden creates a CloudRegistrationAwsUpdateAccountForbidden with default headers values
+func NewCloudRegistrationAwsUpdateAccountForbidden() *CloudRegistrationAwsUpdateAccountForbidden {
+ return &CloudRegistrationAwsUpdateAccountForbidden{}
+}
+
+/*
+CloudRegistrationAwsUpdateAccountForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CloudRegistrationAwsUpdateAccountForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws update account forbidden response has a 2xx status code
+func (o *CloudRegistrationAwsUpdateAccountForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws update account forbidden response has a 3xx status code
+func (o *CloudRegistrationAwsUpdateAccountForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws update account forbidden response has a 4xx status code
+func (o *CloudRegistrationAwsUpdateAccountForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws update account forbidden response has a 5xx status code
+func (o *CloudRegistrationAwsUpdateAccountForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws update account forbidden response a status code equal to that given
+func (o *CloudRegistrationAwsUpdateAccountForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the cloud registration aws update account forbidden response
+func (o *CloudRegistrationAwsUpdateAccountForbidden) Code() int {
+ return 403
+}
+
+func (o *CloudRegistrationAwsUpdateAccountForbidden) Error() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountForbidden) String() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountForbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsUpdateAccountForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsUpdateAccountTooManyRequests creates a CloudRegistrationAwsUpdateAccountTooManyRequests with default headers values
+func NewCloudRegistrationAwsUpdateAccountTooManyRequests() *CloudRegistrationAwsUpdateAccountTooManyRequests {
+ return &CloudRegistrationAwsUpdateAccountTooManyRequests{}
+}
+
+/*
+CloudRegistrationAwsUpdateAccountTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CloudRegistrationAwsUpdateAccountTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cloud registration aws update account too many requests response has a 2xx status code
+func (o *CloudRegistrationAwsUpdateAccountTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws update account too many requests response has a 3xx status code
+func (o *CloudRegistrationAwsUpdateAccountTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws update account too many requests response has a 4xx status code
+func (o *CloudRegistrationAwsUpdateAccountTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws update account too many requests response has a 5xx status code
+func (o *CloudRegistrationAwsUpdateAccountTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws update account too many requests response a status code equal to that given
+func (o *CloudRegistrationAwsUpdateAccountTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the cloud registration aws update account too many requests response
+func (o *CloudRegistrationAwsUpdateAccountTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CloudRegistrationAwsUpdateAccountTooManyRequests) Error() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountTooManyRequests) String() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsUpdateAccountTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsUpdateAccountInternalServerError creates a CloudRegistrationAwsUpdateAccountInternalServerError with default headers values
+func NewCloudRegistrationAwsUpdateAccountInternalServerError() *CloudRegistrationAwsUpdateAccountInternalServerError {
+ return &CloudRegistrationAwsUpdateAccountInternalServerError{}
+}
+
+/*
+CloudRegistrationAwsUpdateAccountInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CloudRegistrationAwsUpdateAccountInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountCreateResponseExtV1
+}
+
+// IsSuccess returns true when this cloud registration aws update account internal server error response has a 2xx status code
+func (o *CloudRegistrationAwsUpdateAccountInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws update account internal server error response has a 3xx status code
+func (o *CloudRegistrationAwsUpdateAccountInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws update account internal server error response has a 4xx status code
+func (o *CloudRegistrationAwsUpdateAccountInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws update account internal server error response has a 5xx status code
+func (o *CloudRegistrationAwsUpdateAccountInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cloud registration aws update account internal server error response a status code equal to that given
+func (o *CloudRegistrationAwsUpdateAccountInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cloud registration aws update account internal server error response
+func (o *CloudRegistrationAwsUpdateAccountInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CloudRegistrationAwsUpdateAccountInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /cloud-security-registration-aws/entities/account/v1][%d] cloudRegistrationAwsUpdateAccountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsUpdateAccountInternalServerError) GetPayload() *models.RestAWSAccountCreateResponseExtV1 {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsUpdateAccountInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountCreateResponseExtV1)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/operations/cloud_registration_aws_validate_accounts_parameters.go b/falcon/client/operations/cloud_registration_aws_validate_accounts_parameters.go
new file mode 100644
index 00000000..0f743f95
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_validate_accounts_parameters.go
@@ -0,0 +1,270 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewCloudRegistrationAwsValidateAccountsParams creates a new CloudRegistrationAwsValidateAccountsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCloudRegistrationAwsValidateAccountsParams() *CloudRegistrationAwsValidateAccountsParams {
+ return &CloudRegistrationAwsValidateAccountsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCloudRegistrationAwsValidateAccountsParamsWithTimeout creates a new CloudRegistrationAwsValidateAccountsParams object
+// with the ability to set a timeout on a request.
+func NewCloudRegistrationAwsValidateAccountsParamsWithTimeout(timeout time.Duration) *CloudRegistrationAwsValidateAccountsParams {
+ return &CloudRegistrationAwsValidateAccountsParams{
+ timeout: timeout,
+ }
+}
+
+// NewCloudRegistrationAwsValidateAccountsParamsWithContext creates a new CloudRegistrationAwsValidateAccountsParams object
+// with the ability to set a context for a request.
+func NewCloudRegistrationAwsValidateAccountsParamsWithContext(ctx context.Context) *CloudRegistrationAwsValidateAccountsParams {
+ return &CloudRegistrationAwsValidateAccountsParams{
+ Context: ctx,
+ }
+}
+
+// NewCloudRegistrationAwsValidateAccountsParamsWithHTTPClient creates a new CloudRegistrationAwsValidateAccountsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCloudRegistrationAwsValidateAccountsParamsWithHTTPClient(client *http.Client) *CloudRegistrationAwsValidateAccountsParams {
+ return &CloudRegistrationAwsValidateAccountsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CloudRegistrationAwsValidateAccountsParams contains all the parameters to send to the API endpoint
+
+ for the cloud registration aws validate accounts operation.
+
+ Typically these are written to a http.Request.
+*/
+type CloudRegistrationAwsValidateAccountsParams struct {
+
+ /* AccountID.
+
+ AWS Account ID
+ */
+ AccountID *string
+
+ /* Feature.
+
+ Features registered for an account
+ */
+ Feature []string
+
+ /* IamRoleArn.
+
+ IAM Role ARN
+ */
+ IamRoleArn *string
+
+ /* Products.
+
+ Product registered for an account
+ */
+ Products string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the cloud registration aws validate accounts params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsValidateAccountsParams) WithDefaults() *CloudRegistrationAwsValidateAccountsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the cloud registration aws validate accounts params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CloudRegistrationAwsValidateAccountsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) WithTimeout(timeout time.Duration) *CloudRegistrationAwsValidateAccountsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) WithContext(ctx context.Context) *CloudRegistrationAwsValidateAccountsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) WithHTTPClient(client *http.Client) *CloudRegistrationAwsValidateAccountsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithAccountID adds the accountID to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) WithAccountID(accountID *string) *CloudRegistrationAwsValidateAccountsParams {
+ o.SetAccountID(accountID)
+ return o
+}
+
+// SetAccountID adds the accountId to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) SetAccountID(accountID *string) {
+ o.AccountID = accountID
+}
+
+// WithFeature adds the feature to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) WithFeature(feature []string) *CloudRegistrationAwsValidateAccountsParams {
+ o.SetFeature(feature)
+ return o
+}
+
+// SetFeature adds the feature to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) SetFeature(feature []string) {
+ o.Feature = feature
+}
+
+// WithIamRoleArn adds the iamRoleArn to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) WithIamRoleArn(iamRoleArn *string) *CloudRegistrationAwsValidateAccountsParams {
+ o.SetIamRoleArn(iamRoleArn)
+ return o
+}
+
+// SetIamRoleArn adds the iamRoleArn to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) SetIamRoleArn(iamRoleArn *string) {
+ o.IamRoleArn = iamRoleArn
+}
+
+// WithProducts adds the products to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) WithProducts(products string) *CloudRegistrationAwsValidateAccountsParams {
+ o.SetProducts(products)
+ return o
+}
+
+// SetProducts adds the products to the cloud registration aws validate accounts params
+func (o *CloudRegistrationAwsValidateAccountsParams) SetProducts(products string) {
+ o.Products = products
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CloudRegistrationAwsValidateAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.AccountID != nil {
+
+ // query param account-id
+ var qrAccountID string
+
+ if o.AccountID != nil {
+ qrAccountID = *o.AccountID
+ }
+ qAccountID := qrAccountID
+ if qAccountID != "" {
+
+ if err := r.SetQueryParam("account-id", qAccountID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Feature != nil {
+
+ // binding items for feature
+ joinedFeature := o.bindParamFeature(reg)
+
+ // query array param feature
+ if err := r.SetQueryParam("feature", joinedFeature...); err != nil {
+ return err
+ }
+ }
+
+ if o.IamRoleArn != nil {
+
+ // query param iam-role-arn
+ var qrIamRoleArn string
+
+ if o.IamRoleArn != nil {
+ qrIamRoleArn = *o.IamRoleArn
+ }
+ qIamRoleArn := qrIamRoleArn
+ if qIamRoleArn != "" {
+
+ if err := r.SetQueryParam("iam-role-arn", qIamRoleArn); err != nil {
+ return err
+ }
+ }
+ }
+
+ // query param products
+ qrProducts := o.Products
+ qProducts := qrProducts
+ if qProducts != "" {
+
+ if err := r.SetQueryParam("products", qProducts); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamCloudRegistrationAwsValidateAccounts binds the parameter feature
+func (o *CloudRegistrationAwsValidateAccountsParams) bindParamFeature(formats strfmt.Registry) []string {
+ featureIR := o.Feature
+
+ var featureIC []string
+ for _, featureIIR := range featureIR { // explode []string
+
+ featureIIV := featureIIR // string as string
+ featureIC = append(featureIC, featureIIV)
+ }
+
+ // items.CollectionFormat: "csv"
+ featureIS := swag.JoinByFormat(featureIC, "csv")
+
+ return featureIS
+}
diff --git a/falcon/client/operations/cloud_registration_aws_validate_accounts_responses.go b/falcon/client/operations/cloud_registration_aws_validate_accounts_responses.go
new file mode 100644
index 00000000..9cb65114
--- /dev/null
+++ b/falcon/client/operations/cloud_registration_aws_validate_accounts_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// CloudRegistrationAwsValidateAccountsReader is a Reader for the CloudRegistrationAwsValidateAccounts structure.
+type CloudRegistrationAwsValidateAccountsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CloudRegistrationAwsValidateAccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCloudRegistrationAwsValidateAccountsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCloudRegistrationAwsValidateAccountsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCloudRegistrationAwsValidateAccountsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewCloudRegistrationAwsValidateAccountsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCloudRegistrationAwsValidateAccountsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /cloud-security-registration-aws/entities/account/validate/v1] cloud-registration-aws-validate-accounts", response, response.Code())
+ }
+}
+
+// NewCloudRegistrationAwsValidateAccountsOK creates a CloudRegistrationAwsValidateAccountsOK with default headers values
+func NewCloudRegistrationAwsValidateAccountsOK() *CloudRegistrationAwsValidateAccountsOK {
+ return &CloudRegistrationAwsValidateAccountsOK{}
+}
+
+/*
+CloudRegistrationAwsValidateAccountsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type CloudRegistrationAwsValidateAccountsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountValidationResponse
+}
+
+// IsSuccess returns true when this cloud registration aws validate accounts o k response has a 2xx status code
+func (o *CloudRegistrationAwsValidateAccountsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this cloud registration aws validate accounts o k response has a 3xx status code
+func (o *CloudRegistrationAwsValidateAccountsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws validate accounts o k response has a 4xx status code
+func (o *CloudRegistrationAwsValidateAccountsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws validate accounts o k response has a 5xx status code
+func (o *CloudRegistrationAwsValidateAccountsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws validate accounts o k response a status code equal to that given
+func (o *CloudRegistrationAwsValidateAccountsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the cloud registration aws validate accounts o k response
+func (o *CloudRegistrationAwsValidateAccountsOK) Code() int {
+ return 200
+}
+
+func (o *CloudRegistrationAwsValidateAccountsOK) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/validate/v1][%d] cloudRegistrationAwsValidateAccountsOK %+v", 200, o.Payload)
+}
+
+func (o *CloudRegistrationAwsValidateAccountsOK) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/validate/v1][%d] cloudRegistrationAwsValidateAccountsOK %+v", 200, o.Payload)
+}
+
+func (o *CloudRegistrationAwsValidateAccountsOK) GetPayload() *models.RestAWSAccountValidationResponse {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsValidateAccountsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountValidationResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsValidateAccountsBadRequest creates a CloudRegistrationAwsValidateAccountsBadRequest with default headers values
+func NewCloudRegistrationAwsValidateAccountsBadRequest() *CloudRegistrationAwsValidateAccountsBadRequest {
+ return &CloudRegistrationAwsValidateAccountsBadRequest{}
+}
+
+/*
+CloudRegistrationAwsValidateAccountsBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type CloudRegistrationAwsValidateAccountsBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountValidationResponse
+}
+
+// IsSuccess returns true when this cloud registration aws validate accounts bad request response has a 2xx status code
+func (o *CloudRegistrationAwsValidateAccountsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws validate accounts bad request response has a 3xx status code
+func (o *CloudRegistrationAwsValidateAccountsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws validate accounts bad request response has a 4xx status code
+func (o *CloudRegistrationAwsValidateAccountsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws validate accounts bad request response has a 5xx status code
+func (o *CloudRegistrationAwsValidateAccountsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws validate accounts bad request response a status code equal to that given
+func (o *CloudRegistrationAwsValidateAccountsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the cloud registration aws validate accounts bad request response
+func (o *CloudRegistrationAwsValidateAccountsBadRequest) Code() int {
+ return 400
+}
+
+func (o *CloudRegistrationAwsValidateAccountsBadRequest) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/validate/v1][%d] cloudRegistrationAwsValidateAccountsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsValidateAccountsBadRequest) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/validate/v1][%d] cloudRegistrationAwsValidateAccountsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CloudRegistrationAwsValidateAccountsBadRequest) GetPayload() *models.RestAWSAccountValidationResponse {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsValidateAccountsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountValidationResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsValidateAccountsForbidden creates a CloudRegistrationAwsValidateAccountsForbidden with default headers values
+func NewCloudRegistrationAwsValidateAccountsForbidden() *CloudRegistrationAwsValidateAccountsForbidden {
+ return &CloudRegistrationAwsValidateAccountsForbidden{}
+}
+
+/*
+CloudRegistrationAwsValidateAccountsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type CloudRegistrationAwsValidateAccountsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecResponseFields
+}
+
+// IsSuccess returns true when this cloud registration aws validate accounts forbidden response has a 2xx status code
+func (o *CloudRegistrationAwsValidateAccountsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws validate accounts forbidden response has a 3xx status code
+func (o *CloudRegistrationAwsValidateAccountsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws validate accounts forbidden response has a 4xx status code
+func (o *CloudRegistrationAwsValidateAccountsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws validate accounts forbidden response has a 5xx status code
+func (o *CloudRegistrationAwsValidateAccountsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws validate accounts forbidden response a status code equal to that given
+func (o *CloudRegistrationAwsValidateAccountsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the cloud registration aws validate accounts forbidden response
+func (o *CloudRegistrationAwsValidateAccountsForbidden) Code() int {
+ return 403
+}
+
+func (o *CloudRegistrationAwsValidateAccountsForbidden) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/validate/v1][%d] cloudRegistrationAwsValidateAccountsForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsValidateAccountsForbidden) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/validate/v1][%d] cloudRegistrationAwsValidateAccountsForbidden %+v", 403, o.Payload)
+}
+
+func (o *CloudRegistrationAwsValidateAccountsForbidden) GetPayload() *models.MsaspecResponseFields {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsValidateAccountsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecResponseFields)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsValidateAccountsTooManyRequests creates a CloudRegistrationAwsValidateAccountsTooManyRequests with default headers values
+func NewCloudRegistrationAwsValidateAccountsTooManyRequests() *CloudRegistrationAwsValidateAccountsTooManyRequests {
+ return &CloudRegistrationAwsValidateAccountsTooManyRequests{}
+}
+
+/*
+CloudRegistrationAwsValidateAccountsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type CloudRegistrationAwsValidateAccountsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this cloud registration aws validate accounts too many requests response has a 2xx status code
+func (o *CloudRegistrationAwsValidateAccountsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws validate accounts too many requests response has a 3xx status code
+func (o *CloudRegistrationAwsValidateAccountsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws validate accounts too many requests response has a 4xx status code
+func (o *CloudRegistrationAwsValidateAccountsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this cloud registration aws validate accounts too many requests response has a 5xx status code
+func (o *CloudRegistrationAwsValidateAccountsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this cloud registration aws validate accounts too many requests response a status code equal to that given
+func (o *CloudRegistrationAwsValidateAccountsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the cloud registration aws validate accounts too many requests response
+func (o *CloudRegistrationAwsValidateAccountsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *CloudRegistrationAwsValidateAccountsTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/validate/v1][%d] cloudRegistrationAwsValidateAccountsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsValidateAccountsTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/validate/v1][%d] cloudRegistrationAwsValidateAccountsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *CloudRegistrationAwsValidateAccountsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsValidateAccountsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCloudRegistrationAwsValidateAccountsInternalServerError creates a CloudRegistrationAwsValidateAccountsInternalServerError with default headers values
+func NewCloudRegistrationAwsValidateAccountsInternalServerError() *CloudRegistrationAwsValidateAccountsInternalServerError {
+ return &CloudRegistrationAwsValidateAccountsInternalServerError{}
+}
+
+/*
+CloudRegistrationAwsValidateAccountsInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type CloudRegistrationAwsValidateAccountsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.RestAWSAccountValidationResponse
+}
+
+// IsSuccess returns true when this cloud registration aws validate accounts internal server error response has a 2xx status code
+func (o *CloudRegistrationAwsValidateAccountsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this cloud registration aws validate accounts internal server error response has a 3xx status code
+func (o *CloudRegistrationAwsValidateAccountsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this cloud registration aws validate accounts internal server error response has a 4xx status code
+func (o *CloudRegistrationAwsValidateAccountsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this cloud registration aws validate accounts internal server error response has a 5xx status code
+func (o *CloudRegistrationAwsValidateAccountsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this cloud registration aws validate accounts internal server error response a status code equal to that given
+func (o *CloudRegistrationAwsValidateAccountsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the cloud registration aws validate accounts internal server error response
+func (o *CloudRegistrationAwsValidateAccountsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CloudRegistrationAwsValidateAccountsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/validate/v1][%d] cloudRegistrationAwsValidateAccountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsValidateAccountsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /cloud-security-registration-aws/entities/account/validate/v1][%d] cloudRegistrationAwsValidateAccountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CloudRegistrationAwsValidateAccountsInternalServerError) GetPayload() *models.RestAWSAccountValidationResponse {
+ return o.Payload
+}
+
+func (o *CloudRegistrationAwsValidateAccountsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.RestAWSAccountValidationResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/operations/operations_client.go b/falcon/client/operations/operations_client.go
new file mode 100644
index 00000000..4f038d60
--- /dev/null
+++ b/falcon/client/operations/operations_client.go
@@ -0,0 +1,284 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package operations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new operations API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for operations API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ CloudRegistrationAwsCreateAccount(params *CloudRegistrationAwsCreateAccountParams, opts ...ClientOption) (*CloudRegistrationAwsCreateAccountCreated, *CloudRegistrationAwsCreateAccountMultiStatus, error)
+
+ CloudRegistrationAwsDeleteAccount(params *CloudRegistrationAwsDeleteAccountParams, opts ...ClientOption) (*CloudRegistrationAwsDeleteAccountOK, *CloudRegistrationAwsDeleteAccountMultiStatus, error)
+
+ CloudRegistrationAwsGetAccounts(params *CloudRegistrationAwsGetAccountsParams, opts ...ClientOption) (*CloudRegistrationAwsGetAccountsOK, *CloudRegistrationAwsGetAccountsMultiStatus, error)
+
+ CloudRegistrationAwsQueryAccounts(params *CloudRegistrationAwsQueryAccountsParams, opts ...ClientOption) (*CloudRegistrationAwsQueryAccountsOK, *CloudRegistrationAwsQueryAccountsMultiStatus, error)
+
+ CloudRegistrationAwsUpdateAccount(params *CloudRegistrationAwsUpdateAccountParams, opts ...ClientOption) (*CloudRegistrationAwsUpdateAccountCreated, *CloudRegistrationAwsUpdateAccountMultiStatus, error)
+
+ CloudRegistrationAwsValidateAccounts(params *CloudRegistrationAwsValidateAccountsParams, opts ...ClientOption) (*CloudRegistrationAwsValidateAccountsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+CloudRegistrationAwsCreateAccount creates a new account in our system for a customer
+*/
+func (a *Client) CloudRegistrationAwsCreateAccount(params *CloudRegistrationAwsCreateAccountParams, opts ...ClientOption) (*CloudRegistrationAwsCreateAccountCreated, *CloudRegistrationAwsCreateAccountMultiStatus, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCloudRegistrationAwsCreateAccountParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "cloud-registration-aws-create-account",
+ Method: "POST",
+ PathPattern: "/cloud-security-registration-aws/entities/account/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CloudRegistrationAwsCreateAccountReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, nil, err
+ }
+ switch value := result.(type) {
+ case *CloudRegistrationAwsCreateAccountCreated:
+ return value, nil, nil
+ case *CloudRegistrationAwsCreateAccountMultiStatus:
+ return nil, value, nil
+ }
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for operations: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+CloudRegistrationAwsDeleteAccount deletes an existing a w s account or organization in our system
+*/
+func (a *Client) CloudRegistrationAwsDeleteAccount(params *CloudRegistrationAwsDeleteAccountParams, opts ...ClientOption) (*CloudRegistrationAwsDeleteAccountOK, *CloudRegistrationAwsDeleteAccountMultiStatus, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCloudRegistrationAwsDeleteAccountParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "cloud-registration-aws-delete-account",
+ Method: "DELETE",
+ PathPattern: "/cloud-security-registration-aws/entities/account/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CloudRegistrationAwsDeleteAccountReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, nil, err
+ }
+ switch value := result.(type) {
+ case *CloudRegistrationAwsDeleteAccountOK:
+ return value, nil, nil
+ case *CloudRegistrationAwsDeleteAccountMultiStatus:
+ return nil, value, nil
+ }
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for operations: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+CloudRegistrationAwsGetAccounts retrieves existing a w s accounts by account i ds
+*/
+func (a *Client) CloudRegistrationAwsGetAccounts(params *CloudRegistrationAwsGetAccountsParams, opts ...ClientOption) (*CloudRegistrationAwsGetAccountsOK, *CloudRegistrationAwsGetAccountsMultiStatus, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCloudRegistrationAwsGetAccountsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "cloud-registration-aws-get-accounts",
+ Method: "GET",
+ PathPattern: "/cloud-security-registration-aws/entities/account/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CloudRegistrationAwsGetAccountsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, nil, err
+ }
+ switch value := result.(type) {
+ case *CloudRegistrationAwsGetAccountsOK:
+ return value, nil, nil
+ case *CloudRegistrationAwsGetAccountsMultiStatus:
+ return nil, value, nil
+ }
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for operations: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+CloudRegistrationAwsQueryAccounts retrieves existing a w s accounts by account i ds
+*/
+func (a *Client) CloudRegistrationAwsQueryAccounts(params *CloudRegistrationAwsQueryAccountsParams, opts ...ClientOption) (*CloudRegistrationAwsQueryAccountsOK, *CloudRegistrationAwsQueryAccountsMultiStatus, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCloudRegistrationAwsQueryAccountsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "cloud-registration-aws-query-accounts",
+ Method: "GET",
+ PathPattern: "/cloud-security-registration-aws/queries/account/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CloudRegistrationAwsQueryAccountsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, nil, err
+ }
+ switch value := result.(type) {
+ case *CloudRegistrationAwsQueryAccountsOK:
+ return value, nil, nil
+ case *CloudRegistrationAwsQueryAccountsMultiStatus:
+ return nil, value, nil
+ }
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for operations: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+CloudRegistrationAwsUpdateAccount patches a existing account in our system for a customer
+*/
+func (a *Client) CloudRegistrationAwsUpdateAccount(params *CloudRegistrationAwsUpdateAccountParams, opts ...ClientOption) (*CloudRegistrationAwsUpdateAccountCreated, *CloudRegistrationAwsUpdateAccountMultiStatus, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCloudRegistrationAwsUpdateAccountParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "cloud-registration-aws-update-account",
+ Method: "PATCH",
+ PathPattern: "/cloud-security-registration-aws/entities/account/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CloudRegistrationAwsUpdateAccountReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, nil, err
+ }
+ switch value := result.(type) {
+ case *CloudRegistrationAwsUpdateAccountCreated:
+ return value, nil, nil
+ case *CloudRegistrationAwsUpdateAccountMultiStatus:
+ return nil, value, nil
+ }
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for operations: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+CloudRegistrationAwsValidateAccounts validates the a w s account in our system for a provided c ID for internal clients only
+*/
+func (a *Client) CloudRegistrationAwsValidateAccounts(params *CloudRegistrationAwsValidateAccountsParams, opts ...ClientOption) (*CloudRegistrationAwsValidateAccountsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCloudRegistrationAwsValidateAccountsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "cloud-registration-aws-validate-accounts",
+ Method: "POST",
+ PathPattern: "/cloud-security-registration-aws/entities/account/validate/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &CloudRegistrationAwsValidateAccountsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*CloudRegistrationAwsValidateAccountsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for cloud-registration-aws-validate-accounts: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/falcon/client/overwatch_dashboard/aggregates_detections_global_counts_responses.go b/falcon/client/overwatch_dashboard/aggregates_detections_global_counts_responses.go
index 839bd9a1..f38b4967 100644
--- a/falcon/client/overwatch_dashboard/aggregates_detections_global_counts_responses.go
+++ b/falcon/client/overwatch_dashboard/aggregates_detections_global_counts_responses.go
@@ -43,6 +43,12 @@ func (o *AggregatesDetectionsGlobalCountsReader) ReadResponse(response runtime.C
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregatesDetectionsGlobalCountsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /overwatch-dashboards/aggregates/detections-global-counts/v1] AggregatesDetectionsGlobalCounts", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregatesDetectionsGlobalCountsTooManyRequests) readResponse(response
return nil
}
+
+// NewAggregatesDetectionsGlobalCountsInternalServerError creates a AggregatesDetectionsGlobalCountsInternalServerError with default headers values
+func NewAggregatesDetectionsGlobalCountsInternalServerError() *AggregatesDetectionsGlobalCountsInternalServerError {
+ return &AggregatesDetectionsGlobalCountsInternalServerError{}
+}
+
+/*
+AggregatesDetectionsGlobalCountsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregatesDetectionsGlobalCountsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregates detections global counts internal server error response has a 2xx status code
+func (o *AggregatesDetectionsGlobalCountsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregates detections global counts internal server error response has a 3xx status code
+func (o *AggregatesDetectionsGlobalCountsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregates detections global counts internal server error response has a 4xx status code
+func (o *AggregatesDetectionsGlobalCountsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregates detections global counts internal server error response has a 5xx status code
+func (o *AggregatesDetectionsGlobalCountsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregates detections global counts internal server error response a status code equal to that given
+func (o *AggregatesDetectionsGlobalCountsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregates detections global counts internal server error response
+func (o *AggregatesDetectionsGlobalCountsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregatesDetectionsGlobalCountsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /overwatch-dashboards/aggregates/detections-global-counts/v1][%d] aggregatesDetectionsGlobalCountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatesDetectionsGlobalCountsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /overwatch-dashboards/aggregates/detections-global-counts/v1][%d] aggregatesDetectionsGlobalCountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatesDetectionsGlobalCountsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregatesDetectionsGlobalCountsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/overwatch_dashboard/aggregates_events_collections_responses.go b/falcon/client/overwatch_dashboard/aggregates_events_collections_responses.go
index 91d9a7d9..8182efd8 100644
--- a/falcon/client/overwatch_dashboard/aggregates_events_collections_responses.go
+++ b/falcon/client/overwatch_dashboard/aggregates_events_collections_responses.go
@@ -43,6 +43,12 @@ func (o *AggregatesEventsCollectionsReader) ReadResponse(response runtime.Client
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregatesEventsCollectionsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /overwatch-dashboards/aggregates/events-collections/GET/v1] AggregatesEventsCollections", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregatesEventsCollectionsTooManyRequests) readResponse(response runti
return nil
}
+
+// NewAggregatesEventsCollectionsInternalServerError creates a AggregatesEventsCollectionsInternalServerError with default headers values
+func NewAggregatesEventsCollectionsInternalServerError() *AggregatesEventsCollectionsInternalServerError {
+ return &AggregatesEventsCollectionsInternalServerError{}
+}
+
+/*
+AggregatesEventsCollectionsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregatesEventsCollectionsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregates events collections internal server error response has a 2xx status code
+func (o *AggregatesEventsCollectionsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregates events collections internal server error response has a 3xx status code
+func (o *AggregatesEventsCollectionsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregates events collections internal server error response has a 4xx status code
+func (o *AggregatesEventsCollectionsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregates events collections internal server error response has a 5xx status code
+func (o *AggregatesEventsCollectionsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregates events collections internal server error response a status code equal to that given
+func (o *AggregatesEventsCollectionsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregates events collections internal server error response
+func (o *AggregatesEventsCollectionsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregatesEventsCollectionsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /overwatch-dashboards/aggregates/events-collections/GET/v1][%d] aggregatesEventsCollectionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatesEventsCollectionsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /overwatch-dashboards/aggregates/events-collections/GET/v1][%d] aggregatesEventsCollectionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatesEventsCollectionsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregatesEventsCollectionsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/overwatch_dashboard/aggregates_events_responses.go b/falcon/client/overwatch_dashboard/aggregates_events_responses.go
index b5ecfacf..f5ee10c6 100644
--- a/falcon/client/overwatch_dashboard/aggregates_events_responses.go
+++ b/falcon/client/overwatch_dashboard/aggregates_events_responses.go
@@ -43,6 +43,12 @@ func (o *AggregatesEventsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregatesEventsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /overwatch-dashboards/aggregates/events/GET/v1] AggregatesEvents", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregatesEventsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewAggregatesEventsInternalServerError creates a AggregatesEventsInternalServerError with default headers values
+func NewAggregatesEventsInternalServerError() *AggregatesEventsInternalServerError {
+ return &AggregatesEventsInternalServerError{}
+}
+
+/*
+AggregatesEventsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregatesEventsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregates events internal server error response has a 2xx status code
+func (o *AggregatesEventsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregates events internal server error response has a 3xx status code
+func (o *AggregatesEventsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregates events internal server error response has a 4xx status code
+func (o *AggregatesEventsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregates events internal server error response has a 5xx status code
+func (o *AggregatesEventsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregates events internal server error response a status code equal to that given
+func (o *AggregatesEventsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregates events internal server error response
+func (o *AggregatesEventsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregatesEventsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /overwatch-dashboards/aggregates/events/GET/v1][%d] aggregatesEventsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatesEventsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /overwatch-dashboards/aggregates/events/GET/v1][%d] aggregatesEventsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatesEventsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregatesEventsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/overwatch_dashboard/aggregates_incidents_global_counts_responses.go b/falcon/client/overwatch_dashboard/aggregates_incidents_global_counts_responses.go
index e49f65e5..3a9ac746 100644
--- a/falcon/client/overwatch_dashboard/aggregates_incidents_global_counts_responses.go
+++ b/falcon/client/overwatch_dashboard/aggregates_incidents_global_counts_responses.go
@@ -43,6 +43,12 @@ func (o *AggregatesIncidentsGlobalCountsReader) ReadResponse(response runtime.Cl
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregatesIncidentsGlobalCountsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /overwatch-dashboards/aggregates/incidents-global-counts/v1] AggregatesIncidentsGlobalCounts", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregatesIncidentsGlobalCountsTooManyRequests) readResponse(response r
return nil
}
+
+// NewAggregatesIncidentsGlobalCountsInternalServerError creates a AggregatesIncidentsGlobalCountsInternalServerError with default headers values
+func NewAggregatesIncidentsGlobalCountsInternalServerError() *AggregatesIncidentsGlobalCountsInternalServerError {
+ return &AggregatesIncidentsGlobalCountsInternalServerError{}
+}
+
+/*
+AggregatesIncidentsGlobalCountsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregatesIncidentsGlobalCountsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregates incidents global counts internal server error response has a 2xx status code
+func (o *AggregatesIncidentsGlobalCountsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregates incidents global counts internal server error response has a 3xx status code
+func (o *AggregatesIncidentsGlobalCountsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregates incidents global counts internal server error response has a 4xx status code
+func (o *AggregatesIncidentsGlobalCountsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregates incidents global counts internal server error response has a 5xx status code
+func (o *AggregatesIncidentsGlobalCountsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregates incidents global counts internal server error response a status code equal to that given
+func (o *AggregatesIncidentsGlobalCountsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregates incidents global counts internal server error response
+func (o *AggregatesIncidentsGlobalCountsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregatesIncidentsGlobalCountsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /overwatch-dashboards/aggregates/incidents-global-counts/v1][%d] aggregatesIncidentsGlobalCountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatesIncidentsGlobalCountsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /overwatch-dashboards/aggregates/incidents-global-counts/v1][%d] aggregatesIncidentsGlobalCountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatesIncidentsGlobalCountsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregatesIncidentsGlobalCountsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/overwatch_dashboard/aggregates_o_w_events_global_counts_responses.go b/falcon/client/overwatch_dashboard/aggregates_o_w_events_global_counts_responses.go
index 3a0fbf67..358de1ce 100644
--- a/falcon/client/overwatch_dashboard/aggregates_o_w_events_global_counts_responses.go
+++ b/falcon/client/overwatch_dashboard/aggregates_o_w_events_global_counts_responses.go
@@ -43,6 +43,12 @@ func (o *AggregatesOWEventsGlobalCountsReader) ReadResponse(response runtime.Cli
return nil, err
}
return nil, result
+ case 500:
+ result := NewAggregatesOWEventsGlobalCountsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /overwatch-dashboards/aggregates/ow-events-global-counts/v1] AggregatesOWEventsGlobalCounts", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *AggregatesOWEventsGlobalCountsTooManyRequests) readResponse(response ru
return nil
}
+
+// NewAggregatesOWEventsGlobalCountsInternalServerError creates a AggregatesOWEventsGlobalCountsInternalServerError with default headers values
+func NewAggregatesOWEventsGlobalCountsInternalServerError() *AggregatesOWEventsGlobalCountsInternalServerError {
+ return &AggregatesOWEventsGlobalCountsInternalServerError{}
+}
+
+/*
+AggregatesOWEventsGlobalCountsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type AggregatesOWEventsGlobalCountsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this aggregates o w events global counts internal server error response has a 2xx status code
+func (o *AggregatesOWEventsGlobalCountsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this aggregates o w events global counts internal server error response has a 3xx status code
+func (o *AggregatesOWEventsGlobalCountsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this aggregates o w events global counts internal server error response has a 4xx status code
+func (o *AggregatesOWEventsGlobalCountsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this aggregates o w events global counts internal server error response has a 5xx status code
+func (o *AggregatesOWEventsGlobalCountsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this aggregates o w events global counts internal server error response a status code equal to that given
+func (o *AggregatesOWEventsGlobalCountsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the aggregates o w events global counts internal server error response
+func (o *AggregatesOWEventsGlobalCountsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *AggregatesOWEventsGlobalCountsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /overwatch-dashboards/aggregates/ow-events-global-counts/v1][%d] aggregatesOWEventsGlobalCountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatesOWEventsGlobalCountsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /overwatch-dashboards/aggregates/ow-events-global-counts/v1][%d] aggregatesOWEventsGlobalCountsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *AggregatesOWEventsGlobalCountsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *AggregatesOWEventsGlobalCountsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quarantine/action_update_count_responses.go b/falcon/client/quarantine/action_update_count_responses.go
index 9fcd480f..4293dbe7 100644
--- a/falcon/client/quarantine/action_update_count_responses.go
+++ b/falcon/client/quarantine/action_update_count_responses.go
@@ -43,6 +43,12 @@ func (o *ActionUpdateCountReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewActionUpdateCountInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /quarantine/aggregates/action-update-count/v1] ActionUpdateCount", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *ActionUpdateCountTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewActionUpdateCountInternalServerError creates a ActionUpdateCountInternalServerError with default headers values
+func NewActionUpdateCountInternalServerError() *ActionUpdateCountInternalServerError {
+ return &ActionUpdateCountInternalServerError{}
+}
+
+/*
+ActionUpdateCountInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ActionUpdateCountInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this action update count internal server error response has a 2xx status code
+func (o *ActionUpdateCountInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this action update count internal server error response has a 3xx status code
+func (o *ActionUpdateCountInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this action update count internal server error response has a 4xx status code
+func (o *ActionUpdateCountInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this action update count internal server error response has a 5xx status code
+func (o *ActionUpdateCountInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this action update count internal server error response a status code equal to that given
+func (o *ActionUpdateCountInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the action update count internal server error response
+func (o *ActionUpdateCountInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ActionUpdateCountInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /quarantine/aggregates/action-update-count/v1][%d] actionUpdateCountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ActionUpdateCountInternalServerError) String() string {
+ return fmt.Sprintf("[GET /quarantine/aggregates/action-update-count/v1][%d] actionUpdateCountInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ActionUpdateCountInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ActionUpdateCountInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quarantine/get_aggregate_files_responses.go b/falcon/client/quarantine/get_aggregate_files_responses.go
index 3f69f7fa..9efc973f 100644
--- a/falcon/client/quarantine/get_aggregate_files_responses.go
+++ b/falcon/client/quarantine/get_aggregate_files_responses.go
@@ -43,6 +43,12 @@ func (o *GetAggregateFilesReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetAggregateFilesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /quarantine/aggregates/quarantined-files/GET/v1] GetAggregateFiles", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetAggregateFilesTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewGetAggregateFilesInternalServerError creates a GetAggregateFilesInternalServerError with default headers values
+func NewGetAggregateFilesInternalServerError() *GetAggregateFilesInternalServerError {
+ return &GetAggregateFilesInternalServerError{}
+}
+
+/*
+GetAggregateFilesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetAggregateFilesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get aggregate files internal server error response has a 2xx status code
+func (o *GetAggregateFilesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get aggregate files internal server error response has a 3xx status code
+func (o *GetAggregateFilesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get aggregate files internal server error response has a 4xx status code
+func (o *GetAggregateFilesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get aggregate files internal server error response has a 5xx status code
+func (o *GetAggregateFilesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get aggregate files internal server error response a status code equal to that given
+func (o *GetAggregateFilesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get aggregate files internal server error response
+func (o *GetAggregateFilesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetAggregateFilesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /quarantine/aggregates/quarantined-files/GET/v1][%d] getAggregateFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetAggregateFilesInternalServerError) String() string {
+ return fmt.Sprintf("[POST /quarantine/aggregates/quarantined-files/GET/v1][%d] getAggregateFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetAggregateFilesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetAggregateFilesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quarantine/get_quarantine_files_responses.go b/falcon/client/quarantine/get_quarantine_files_responses.go
index 78379f2d..cd3b4146 100644
--- a/falcon/client/quarantine/get_quarantine_files_responses.go
+++ b/falcon/client/quarantine/get_quarantine_files_responses.go
@@ -43,6 +43,12 @@ func (o *GetQuarantineFilesReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetQuarantineFilesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /quarantine/entities/quarantined-files/GET/v1] GetQuarantineFiles", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *GetQuarantineFilesTooManyRequests) readResponse(response runtime.Client
return nil
}
+
+// NewGetQuarantineFilesInternalServerError creates a GetQuarantineFilesInternalServerError with default headers values
+func NewGetQuarantineFilesInternalServerError() *GetQuarantineFilesInternalServerError {
+ return &GetQuarantineFilesInternalServerError{}
+}
+
+/*
+GetQuarantineFilesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetQuarantineFilesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get quarantine files internal server error response has a 2xx status code
+func (o *GetQuarantineFilesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get quarantine files internal server error response has a 3xx status code
+func (o *GetQuarantineFilesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get quarantine files internal server error response has a 4xx status code
+func (o *GetQuarantineFilesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get quarantine files internal server error response has a 5xx status code
+func (o *GetQuarantineFilesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get quarantine files internal server error response a status code equal to that given
+func (o *GetQuarantineFilesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get quarantine files internal server error response
+func (o *GetQuarantineFilesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetQuarantineFilesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /quarantine/entities/quarantined-files/GET/v1][%d] getQuarantineFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetQuarantineFilesInternalServerError) String() string {
+ return fmt.Sprintf("[POST /quarantine/entities/quarantined-files/GET/v1][%d] getQuarantineFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetQuarantineFilesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetQuarantineFilesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quarantine/query_quarantine_files_responses.go b/falcon/client/quarantine/query_quarantine_files_responses.go
index 7b8a4f40..c4bca025 100644
--- a/falcon/client/quarantine/query_quarantine_files_responses.go
+++ b/falcon/client/quarantine/query_quarantine_files_responses.go
@@ -43,6 +43,12 @@ func (o *QueryQuarantineFilesReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryQuarantineFilesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /quarantine/queries/quarantined-files/v1] QueryQuarantineFiles", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *QueryQuarantineFilesTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewQueryQuarantineFilesInternalServerError creates a QueryQuarantineFilesInternalServerError with default headers values
+func NewQueryQuarantineFilesInternalServerError() *QueryQuarantineFilesInternalServerError {
+ return &QueryQuarantineFilesInternalServerError{}
+}
+
+/*
+QueryQuarantineFilesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryQuarantineFilesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query quarantine files internal server error response has a 2xx status code
+func (o *QueryQuarantineFilesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query quarantine files internal server error response has a 3xx status code
+func (o *QueryQuarantineFilesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query quarantine files internal server error response has a 4xx status code
+func (o *QueryQuarantineFilesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query quarantine files internal server error response has a 5xx status code
+func (o *QueryQuarantineFilesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query quarantine files internal server error response a status code equal to that given
+func (o *QueryQuarantineFilesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query quarantine files internal server error response
+func (o *QueryQuarantineFilesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryQuarantineFilesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /quarantine/queries/quarantined-files/v1][%d] queryQuarantineFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryQuarantineFilesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /quarantine/queries/quarantined-files/v1][%d] queryQuarantineFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryQuarantineFilesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryQuarantineFilesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quarantine/update_qf_by_query_responses.go b/falcon/client/quarantine/update_qf_by_query_responses.go
index dda5d92f..44c25ace 100644
--- a/falcon/client/quarantine/update_qf_by_query_responses.go
+++ b/falcon/client/quarantine/update_qf_by_query_responses.go
@@ -43,6 +43,12 @@ func (o *UpdateQfByQueryReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateQfByQueryInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /quarantine/queries/quarantined-files/v1] UpdateQfByQuery", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *UpdateQfByQueryTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewUpdateQfByQueryInternalServerError creates a UpdateQfByQueryInternalServerError with default headers values
+func NewUpdateQfByQueryInternalServerError() *UpdateQfByQueryInternalServerError {
+ return &UpdateQfByQueryInternalServerError{}
+}
+
+/*
+UpdateQfByQueryInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateQfByQueryInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update qf by query internal server error response has a 2xx status code
+func (o *UpdateQfByQueryInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update qf by query internal server error response has a 3xx status code
+func (o *UpdateQfByQueryInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update qf by query internal server error response has a 4xx status code
+func (o *UpdateQfByQueryInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update qf by query internal server error response has a 5xx status code
+func (o *UpdateQfByQueryInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update qf by query internal server error response a status code equal to that given
+func (o *UpdateQfByQueryInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update qf by query internal server error response
+func (o *UpdateQfByQueryInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateQfByQueryInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /quarantine/queries/quarantined-files/v1][%d] updateQfByQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateQfByQueryInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /quarantine/queries/quarantined-files/v1][%d] updateQfByQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateQfByQueryInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateQfByQueryInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quarantine/update_quarantined_detects_by_ids_responses.go b/falcon/client/quarantine/update_quarantined_detects_by_ids_responses.go
index 5d7bddc0..1e00b919 100644
--- a/falcon/client/quarantine/update_quarantined_detects_by_ids_responses.go
+++ b/falcon/client/quarantine/update_quarantined_detects_by_ids_responses.go
@@ -43,6 +43,12 @@ func (o *UpdateQuarantinedDetectsByIdsReader) ReadResponse(response runtime.Clie
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateQuarantinedDetectsByIdsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /quarantine/entities/quarantined-files/v1] UpdateQuarantinedDetectsByIds", response, response.Code())
}
@@ -392,3 +398,113 @@ func (o *UpdateQuarantinedDetectsByIdsTooManyRequests) readResponse(response run
return nil
}
+
+// NewUpdateQuarantinedDetectsByIdsInternalServerError creates a UpdateQuarantinedDetectsByIdsInternalServerError with default headers values
+func NewUpdateQuarantinedDetectsByIdsInternalServerError() *UpdateQuarantinedDetectsByIdsInternalServerError {
+ return &UpdateQuarantinedDetectsByIdsInternalServerError{}
+}
+
+/*
+UpdateQuarantinedDetectsByIdsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateQuarantinedDetectsByIdsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update quarantined detects by ids internal server error response has a 2xx status code
+func (o *UpdateQuarantinedDetectsByIdsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update quarantined detects by ids internal server error response has a 3xx status code
+func (o *UpdateQuarantinedDetectsByIdsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update quarantined detects by ids internal server error response has a 4xx status code
+func (o *UpdateQuarantinedDetectsByIdsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update quarantined detects by ids internal server error response has a 5xx status code
+func (o *UpdateQuarantinedDetectsByIdsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update quarantined detects by ids internal server error response a status code equal to that given
+func (o *UpdateQuarantinedDetectsByIdsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update quarantined detects by ids internal server error response
+func (o *UpdateQuarantinedDetectsByIdsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateQuarantinedDetectsByIdsInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /quarantine/entities/quarantined-files/v1][%d] updateQuarantinedDetectsByIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateQuarantinedDetectsByIdsInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /quarantine/entities/quarantined-files/v1][%d] updateQuarantinedDetectsByIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateQuarantinedDetectsByIdsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateQuarantinedDetectsByIdsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quick_scan/get_scans_aggregates_responses.go b/falcon/client/quick_scan/get_scans_aggregates_responses.go
index 8025b479..00682c9b 100644
--- a/falcon/client/quick_scan/get_scans_aggregates_responses.go
+++ b/falcon/client/quick_scan/get_scans_aggregates_responses.go
@@ -43,6 +43,12 @@ func (o *GetScansAggregatesReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetScansAggregatesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /scanner/aggregates/scans/GET/v1] GetScansAggregates", response, response.Code())
}
@@ -379,3 +385,113 @@ func (o *GetScansAggregatesTooManyRequests) readResponse(response runtime.Client
return nil
}
+
+// NewGetScansAggregatesInternalServerError creates a GetScansAggregatesInternalServerError with default headers values
+func NewGetScansAggregatesInternalServerError() *GetScansAggregatesInternalServerError {
+ return &GetScansAggregatesInternalServerError{}
+}
+
+/*
+GetScansAggregatesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetScansAggregatesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get scans aggregates internal server error response has a 2xx status code
+func (o *GetScansAggregatesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get scans aggregates internal server error response has a 3xx status code
+func (o *GetScansAggregatesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get scans aggregates internal server error response has a 4xx status code
+func (o *GetScansAggregatesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get scans aggregates internal server error response has a 5xx status code
+func (o *GetScansAggregatesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get scans aggregates internal server error response a status code equal to that given
+func (o *GetScansAggregatesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get scans aggregates internal server error response
+func (o *GetScansAggregatesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetScansAggregatesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /scanner/aggregates/scans/GET/v1][%d] getScansAggregatesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScansAggregatesInternalServerError) String() string {
+ return fmt.Sprintf("[POST /scanner/aggregates/scans/GET/v1][%d] getScansAggregatesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScansAggregatesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetScansAggregatesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quick_scan_pro/delete_file_parameters.go b/falcon/client/quick_scan_pro/delete_file_parameters.go
new file mode 100644
index 00000000..29f5bc75
--- /dev/null
+++ b/falcon/client/quick_scan_pro/delete_file_parameters.go
@@ -0,0 +1,175 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewDeleteFileParams creates a new DeleteFileParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDeleteFileParams() *DeleteFileParams {
+ return &DeleteFileParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDeleteFileParamsWithTimeout creates a new DeleteFileParams object
+// with the ability to set a timeout on a request.
+func NewDeleteFileParamsWithTimeout(timeout time.Duration) *DeleteFileParams {
+ return &DeleteFileParams{
+ timeout: timeout,
+ }
+}
+
+// NewDeleteFileParamsWithContext creates a new DeleteFileParams object
+// with the ability to set a context for a request.
+func NewDeleteFileParamsWithContext(ctx context.Context) *DeleteFileParams {
+ return &DeleteFileParams{
+ Context: ctx,
+ }
+}
+
+// NewDeleteFileParamsWithHTTPClient creates a new DeleteFileParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDeleteFileParamsWithHTTPClient(client *http.Client) *DeleteFileParams {
+ return &DeleteFileParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DeleteFileParams contains all the parameters to send to the API endpoint
+
+ for the delete file operation.
+
+ Typically these are written to a http.Request.
+*/
+type DeleteFileParams struct {
+
+ /* Ids.
+
+ File's SHA256
+ */
+ Ids []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the delete file params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteFileParams) WithDefaults() *DeleteFileParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the delete file params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteFileParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the delete file params
+func (o *DeleteFileParams) WithTimeout(timeout time.Duration) *DeleteFileParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the delete file params
+func (o *DeleteFileParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the delete file params
+func (o *DeleteFileParams) WithContext(ctx context.Context) *DeleteFileParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the delete file params
+func (o *DeleteFileParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the delete file params
+func (o *DeleteFileParams) WithHTTPClient(client *http.Client) *DeleteFileParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the delete file params
+func (o *DeleteFileParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIds adds the ids to the delete file params
+func (o *DeleteFileParams) WithIds(ids []string) *DeleteFileParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the delete file params
+func (o *DeleteFileParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DeleteFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamDeleteFile binds the parameter ids
+func (o *DeleteFileParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ idsIS := swag.JoinByFormat(idsIC, "multi")
+
+ return idsIS
+}
diff --git a/falcon/client/quick_scan_pro/delete_file_responses.go b/falcon/client/quick_scan_pro/delete_file_responses.go
new file mode 100644
index 00000000..7c35789e
--- /dev/null
+++ b/falcon/client/quick_scan_pro/delete_file_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DeleteFileReader is a Reader for the DeleteFile structure.
+type DeleteFileReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DeleteFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewDeleteFileOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewDeleteFileForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDeleteFileTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDeleteFileInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /quickscanpro/entities/files/v1] DeleteFile", response, response.Code())
+ }
+}
+
+// NewDeleteFileOK creates a DeleteFileOK with default headers values
+func NewDeleteFileOK() *DeleteFileOK {
+ return &DeleteFileOK{}
+}
+
+/*
+DeleteFileOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type DeleteFileOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.QuickscanproDeleteFileResponse
+}
+
+// IsSuccess returns true when this delete file o k response has a 2xx status code
+func (o *DeleteFileOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this delete file o k response has a 3xx status code
+func (o *DeleteFileOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete file o k response has a 4xx status code
+func (o *DeleteFileOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete file o k response has a 5xx status code
+func (o *DeleteFileOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete file o k response a status code equal to that given
+func (o *DeleteFileOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the delete file o k response
+func (o *DeleteFileOK) Code() int {
+ return 200
+}
+
+func (o *DeleteFileOK) Error() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/files/v1][%d] deleteFileOK %+v", 200, o.Payload)
+}
+
+func (o *DeleteFileOK) String() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/files/v1][%d] deleteFileOK %+v", 200, o.Payload)
+}
+
+func (o *DeleteFileOK) GetPayload() *models.QuickscanproDeleteFileResponse {
+ return o.Payload
+}
+
+func (o *DeleteFileOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.QuickscanproDeleteFileResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteFileForbidden creates a DeleteFileForbidden with default headers values
+func NewDeleteFileForbidden() *DeleteFileForbidden {
+ return &DeleteFileForbidden{}
+}
+
+/*
+DeleteFileForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DeleteFileForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete file forbidden response has a 2xx status code
+func (o *DeleteFileForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete file forbidden response has a 3xx status code
+func (o *DeleteFileForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete file forbidden response has a 4xx status code
+func (o *DeleteFileForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete file forbidden response has a 5xx status code
+func (o *DeleteFileForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete file forbidden response a status code equal to that given
+func (o *DeleteFileForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the delete file forbidden response
+func (o *DeleteFileForbidden) Code() int {
+ return 403
+}
+
+func (o *DeleteFileForbidden) Error() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/files/v1][%d] deleteFileForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteFileForbidden) String() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/files/v1][%d] deleteFileForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteFileForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteFileForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteFileTooManyRequests creates a DeleteFileTooManyRequests with default headers values
+func NewDeleteFileTooManyRequests() *DeleteFileTooManyRequests {
+ return &DeleteFileTooManyRequests{}
+}
+
+/*
+DeleteFileTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DeleteFileTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete file too many requests response has a 2xx status code
+func (o *DeleteFileTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete file too many requests response has a 3xx status code
+func (o *DeleteFileTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete file too many requests response has a 4xx status code
+func (o *DeleteFileTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete file too many requests response has a 5xx status code
+func (o *DeleteFileTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete file too many requests response a status code equal to that given
+func (o *DeleteFileTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the delete file too many requests response
+func (o *DeleteFileTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DeleteFileTooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/files/v1][%d] deleteFileTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteFileTooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/files/v1][%d] deleteFileTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteFileTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteFileTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteFileInternalServerError creates a DeleteFileInternalServerError with default headers values
+func NewDeleteFileInternalServerError() *DeleteFileInternalServerError {
+ return &DeleteFileInternalServerError{}
+}
+
+/*
+DeleteFileInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteFileInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete file internal server error response has a 2xx status code
+func (o *DeleteFileInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete file internal server error response has a 3xx status code
+func (o *DeleteFileInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete file internal server error response has a 4xx status code
+func (o *DeleteFileInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete file internal server error response has a 5xx status code
+func (o *DeleteFileInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete file internal server error response a status code equal to that given
+func (o *DeleteFileInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete file internal server error response
+func (o *DeleteFileInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteFileInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/files/v1][%d] deleteFileInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteFileInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/files/v1][%d] deleteFileInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteFileInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteFileInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quick_scan_pro/delete_scan_result_parameters.go b/falcon/client/quick_scan_pro/delete_scan_result_parameters.go
new file mode 100644
index 00000000..1f52b7b8
--- /dev/null
+++ b/falcon/client/quick_scan_pro/delete_scan_result_parameters.go
@@ -0,0 +1,175 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewDeleteScanResultParams creates a new DeleteScanResultParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewDeleteScanResultParams() *DeleteScanResultParams {
+ return &DeleteScanResultParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewDeleteScanResultParamsWithTimeout creates a new DeleteScanResultParams object
+// with the ability to set a timeout on a request.
+func NewDeleteScanResultParamsWithTimeout(timeout time.Duration) *DeleteScanResultParams {
+ return &DeleteScanResultParams{
+ timeout: timeout,
+ }
+}
+
+// NewDeleteScanResultParamsWithContext creates a new DeleteScanResultParams object
+// with the ability to set a context for a request.
+func NewDeleteScanResultParamsWithContext(ctx context.Context) *DeleteScanResultParams {
+ return &DeleteScanResultParams{
+ Context: ctx,
+ }
+}
+
+// NewDeleteScanResultParamsWithHTTPClient creates a new DeleteScanResultParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewDeleteScanResultParamsWithHTTPClient(client *http.Client) *DeleteScanResultParams {
+ return &DeleteScanResultParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+DeleteScanResultParams contains all the parameters to send to the API endpoint
+
+ for the delete scan result operation.
+
+ Typically these are written to a http.Request.
+*/
+type DeleteScanResultParams struct {
+
+ /* Ids.
+
+ Scan job IDs previously created by LaunchScan
+ */
+ Ids []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the delete scan result params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteScanResultParams) WithDefaults() *DeleteScanResultParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the delete scan result params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *DeleteScanResultParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the delete scan result params
+func (o *DeleteScanResultParams) WithTimeout(timeout time.Duration) *DeleteScanResultParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the delete scan result params
+func (o *DeleteScanResultParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the delete scan result params
+func (o *DeleteScanResultParams) WithContext(ctx context.Context) *DeleteScanResultParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the delete scan result params
+func (o *DeleteScanResultParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the delete scan result params
+func (o *DeleteScanResultParams) WithHTTPClient(client *http.Client) *DeleteScanResultParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the delete scan result params
+func (o *DeleteScanResultParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIds adds the ids to the delete scan result params
+func (o *DeleteScanResultParams) WithIds(ids []string) *DeleteScanResultParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the delete scan result params
+func (o *DeleteScanResultParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *DeleteScanResultParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamDeleteScanResult binds the parameter ids
+func (o *DeleteScanResultParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ idsIS := swag.JoinByFormat(idsIC, "multi")
+
+ return idsIS
+}
diff --git a/falcon/client/quick_scan_pro/delete_scan_result_responses.go b/falcon/client/quick_scan_pro/delete_scan_result_responses.go
new file mode 100644
index 00000000..c90bedf7
--- /dev/null
+++ b/falcon/client/quick_scan_pro/delete_scan_result_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// DeleteScanResultReader is a Reader for the DeleteScanResult structure.
+type DeleteScanResultReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *DeleteScanResultReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewDeleteScanResultOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewDeleteScanResultForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewDeleteScanResultTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewDeleteScanResultInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[DELETE /quickscanpro/entities/scans/v1] DeleteScanResult", response, response.Code())
+ }
+}
+
+// NewDeleteScanResultOK creates a DeleteScanResultOK with default headers values
+func NewDeleteScanResultOK() *DeleteScanResultOK {
+ return &DeleteScanResultOK{}
+}
+
+/*
+DeleteScanResultOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type DeleteScanResultOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaspecQueryResponse
+}
+
+// IsSuccess returns true when this delete scan result o k response has a 2xx status code
+func (o *DeleteScanResultOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this delete scan result o k response has a 3xx status code
+func (o *DeleteScanResultOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete scan result o k response has a 4xx status code
+func (o *DeleteScanResultOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete scan result o k response has a 5xx status code
+func (o *DeleteScanResultOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete scan result o k response a status code equal to that given
+func (o *DeleteScanResultOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the delete scan result o k response
+func (o *DeleteScanResultOK) Code() int {
+ return 200
+}
+
+func (o *DeleteScanResultOK) Error() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/scans/v1][%d] deleteScanResultOK %+v", 200, o.Payload)
+}
+
+func (o *DeleteScanResultOK) String() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/scans/v1][%d] deleteScanResultOK %+v", 200, o.Payload)
+}
+
+func (o *DeleteScanResultOK) GetPayload() *models.MsaspecQueryResponse {
+ return o.Payload
+}
+
+func (o *DeleteScanResultOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaspecQueryResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteScanResultForbidden creates a DeleteScanResultForbidden with default headers values
+func NewDeleteScanResultForbidden() *DeleteScanResultForbidden {
+ return &DeleteScanResultForbidden{}
+}
+
+/*
+DeleteScanResultForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type DeleteScanResultForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete scan result forbidden response has a 2xx status code
+func (o *DeleteScanResultForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete scan result forbidden response has a 3xx status code
+func (o *DeleteScanResultForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete scan result forbidden response has a 4xx status code
+func (o *DeleteScanResultForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete scan result forbidden response has a 5xx status code
+func (o *DeleteScanResultForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete scan result forbidden response a status code equal to that given
+func (o *DeleteScanResultForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the delete scan result forbidden response
+func (o *DeleteScanResultForbidden) Code() int {
+ return 403
+}
+
+func (o *DeleteScanResultForbidden) Error() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/scans/v1][%d] deleteScanResultForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteScanResultForbidden) String() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/scans/v1][%d] deleteScanResultForbidden %+v", 403, o.Payload)
+}
+
+func (o *DeleteScanResultForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteScanResultForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteScanResultTooManyRequests creates a DeleteScanResultTooManyRequests with default headers values
+func NewDeleteScanResultTooManyRequests() *DeleteScanResultTooManyRequests {
+ return &DeleteScanResultTooManyRequests{}
+}
+
+/*
+DeleteScanResultTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type DeleteScanResultTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete scan result too many requests response has a 2xx status code
+func (o *DeleteScanResultTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete scan result too many requests response has a 3xx status code
+func (o *DeleteScanResultTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete scan result too many requests response has a 4xx status code
+func (o *DeleteScanResultTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this delete scan result too many requests response has a 5xx status code
+func (o *DeleteScanResultTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this delete scan result too many requests response a status code equal to that given
+func (o *DeleteScanResultTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the delete scan result too many requests response
+func (o *DeleteScanResultTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *DeleteScanResultTooManyRequests) Error() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/scans/v1][%d] deleteScanResultTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteScanResultTooManyRequests) String() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/scans/v1][%d] deleteScanResultTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *DeleteScanResultTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteScanResultTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewDeleteScanResultInternalServerError creates a DeleteScanResultInternalServerError with default headers values
+func NewDeleteScanResultInternalServerError() *DeleteScanResultInternalServerError {
+ return &DeleteScanResultInternalServerError{}
+}
+
+/*
+DeleteScanResultInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteScanResultInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete scan result internal server error response has a 2xx status code
+func (o *DeleteScanResultInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete scan result internal server error response has a 3xx status code
+func (o *DeleteScanResultInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete scan result internal server error response has a 4xx status code
+func (o *DeleteScanResultInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete scan result internal server error response has a 5xx status code
+func (o *DeleteScanResultInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete scan result internal server error response a status code equal to that given
+func (o *DeleteScanResultInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete scan result internal server error response
+func (o *DeleteScanResultInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteScanResultInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/scans/v1][%d] deleteScanResultInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteScanResultInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /quickscanpro/entities/scans/v1][%d] deleteScanResultInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteScanResultInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteScanResultInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quick_scan_pro/get_scan_result_parameters.go b/falcon/client/quick_scan_pro/get_scan_result_parameters.go
new file mode 100644
index 00000000..2aa6cd9f
--- /dev/null
+++ b/falcon/client/quick_scan_pro/get_scan_result_parameters.go
@@ -0,0 +1,175 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetScanResultParams creates a new GetScanResultParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetScanResultParams() *GetScanResultParams {
+ return &GetScanResultParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetScanResultParamsWithTimeout creates a new GetScanResultParams object
+// with the ability to set a timeout on a request.
+func NewGetScanResultParamsWithTimeout(timeout time.Duration) *GetScanResultParams {
+ return &GetScanResultParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetScanResultParamsWithContext creates a new GetScanResultParams object
+// with the ability to set a context for a request.
+func NewGetScanResultParamsWithContext(ctx context.Context) *GetScanResultParams {
+ return &GetScanResultParams{
+ Context: ctx,
+ }
+}
+
+// NewGetScanResultParamsWithHTTPClient creates a new GetScanResultParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetScanResultParamsWithHTTPClient(client *http.Client) *GetScanResultParams {
+ return &GetScanResultParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetScanResultParams contains all the parameters to send to the API endpoint
+
+ for the get scan result operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetScanResultParams struct {
+
+ /* Ids.
+
+ Scan job IDs previously created by LaunchScan
+ */
+ Ids []string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get scan result params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetScanResultParams) WithDefaults() *GetScanResultParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get scan result params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetScanResultParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get scan result params
+func (o *GetScanResultParams) WithTimeout(timeout time.Duration) *GetScanResultParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get scan result params
+func (o *GetScanResultParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get scan result params
+func (o *GetScanResultParams) WithContext(ctx context.Context) *GetScanResultParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get scan result params
+func (o *GetScanResultParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get scan result params
+func (o *GetScanResultParams) WithHTTPClient(client *http.Client) *GetScanResultParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get scan result params
+func (o *GetScanResultParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIds adds the ids to the get scan result params
+func (o *GetScanResultParams) WithIds(ids []string) *GetScanResultParams {
+ o.SetIds(ids)
+ return o
+}
+
+// SetIds adds the ids to the get scan result params
+func (o *GetScanResultParams) SetIds(ids []string) {
+ o.Ids = ids
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetScanResultParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Ids != nil {
+
+ // binding items for ids
+ joinedIds := o.bindParamIds(reg)
+
+ // query array param ids
+ if err := r.SetQueryParam("ids", joinedIds...); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindParamGetScanResult binds the parameter ids
+func (o *GetScanResultParams) bindParamIds(formats strfmt.Registry) []string {
+ idsIR := o.Ids
+
+ var idsIC []string
+ for _, idsIIR := range idsIR { // explode []string
+
+ idsIIV := idsIIR // string as string
+ idsIC = append(idsIC, idsIIV)
+ }
+
+ // items.CollectionFormat: "multi"
+ idsIS := swag.JoinByFormat(idsIC, "multi")
+
+ return idsIS
+}
diff --git a/falcon/client/quick_scan_pro/get_scan_result_responses.go b/falcon/client/quick_scan_pro/get_scan_result_responses.go
new file mode 100644
index 00000000..8cb66183
--- /dev/null
+++ b/falcon/client/quick_scan_pro/get_scan_result_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetScanResultReader is a Reader for the GetScanResult structure.
+type GetScanResultReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetScanResultReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetScanResultOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewGetScanResultForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetScanResultTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetScanResultInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /quickscanpro/entities/scans/v1] GetScanResult", response, response.Code())
+ }
+}
+
+// NewGetScanResultOK creates a GetScanResultOK with default headers values
+func NewGetScanResultOK() *GetScanResultOK {
+ return &GetScanResultOK{}
+}
+
+/*
+GetScanResultOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetScanResultOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.QuickscanproGetScanResultResponse
+}
+
+// IsSuccess returns true when this get scan result o k response has a 2xx status code
+func (o *GetScanResultOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get scan result o k response has a 3xx status code
+func (o *GetScanResultOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get scan result o k response has a 4xx status code
+func (o *GetScanResultOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get scan result o k response has a 5xx status code
+func (o *GetScanResultOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get scan result o k response a status code equal to that given
+func (o *GetScanResultOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get scan result o k response
+func (o *GetScanResultOK) Code() int {
+ return 200
+}
+
+func (o *GetScanResultOK) Error() string {
+ return fmt.Sprintf("[GET /quickscanpro/entities/scans/v1][%d] getScanResultOK %+v", 200, o.Payload)
+}
+
+func (o *GetScanResultOK) String() string {
+ return fmt.Sprintf("[GET /quickscanpro/entities/scans/v1][%d] getScanResultOK %+v", 200, o.Payload)
+}
+
+func (o *GetScanResultOK) GetPayload() *models.QuickscanproGetScanResultResponse {
+ return o.Payload
+}
+
+func (o *GetScanResultOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.QuickscanproGetScanResultResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetScanResultForbidden creates a GetScanResultForbidden with default headers values
+func NewGetScanResultForbidden() *GetScanResultForbidden {
+ return &GetScanResultForbidden{}
+}
+
+/*
+GetScanResultForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetScanResultForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get scan result forbidden response has a 2xx status code
+func (o *GetScanResultForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get scan result forbidden response has a 3xx status code
+func (o *GetScanResultForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get scan result forbidden response has a 4xx status code
+func (o *GetScanResultForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get scan result forbidden response has a 5xx status code
+func (o *GetScanResultForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get scan result forbidden response a status code equal to that given
+func (o *GetScanResultForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get scan result forbidden response
+func (o *GetScanResultForbidden) Code() int {
+ return 403
+}
+
+func (o *GetScanResultForbidden) Error() string {
+ return fmt.Sprintf("[GET /quickscanpro/entities/scans/v1][%d] getScanResultForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetScanResultForbidden) String() string {
+ return fmt.Sprintf("[GET /quickscanpro/entities/scans/v1][%d] getScanResultForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetScanResultForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetScanResultForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetScanResultTooManyRequests creates a GetScanResultTooManyRequests with default headers values
+func NewGetScanResultTooManyRequests() *GetScanResultTooManyRequests {
+ return &GetScanResultTooManyRequests{}
+}
+
+/*
+GetScanResultTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetScanResultTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get scan result too many requests response has a 2xx status code
+func (o *GetScanResultTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get scan result too many requests response has a 3xx status code
+func (o *GetScanResultTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get scan result too many requests response has a 4xx status code
+func (o *GetScanResultTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get scan result too many requests response has a 5xx status code
+func (o *GetScanResultTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get scan result too many requests response a status code equal to that given
+func (o *GetScanResultTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get scan result too many requests response
+func (o *GetScanResultTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetScanResultTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /quickscanpro/entities/scans/v1][%d] getScanResultTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetScanResultTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /quickscanpro/entities/scans/v1][%d] getScanResultTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetScanResultTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetScanResultTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetScanResultInternalServerError creates a GetScanResultInternalServerError with default headers values
+func NewGetScanResultInternalServerError() *GetScanResultInternalServerError {
+ return &GetScanResultInternalServerError{}
+}
+
+/*
+GetScanResultInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetScanResultInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get scan result internal server error response has a 2xx status code
+func (o *GetScanResultInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get scan result internal server error response has a 3xx status code
+func (o *GetScanResultInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get scan result internal server error response has a 4xx status code
+func (o *GetScanResultInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get scan result internal server error response has a 5xx status code
+func (o *GetScanResultInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get scan result internal server error response a status code equal to that given
+func (o *GetScanResultInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get scan result internal server error response
+func (o *GetScanResultInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetScanResultInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /quickscanpro/entities/scans/v1][%d] getScanResultInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScanResultInternalServerError) String() string {
+ return fmt.Sprintf("[GET /quickscanpro/entities/scans/v1][%d] getScanResultInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetScanResultInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetScanResultInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quick_scan_pro/launch_scan_parameters.go b/falcon/client/quick_scan_pro/launch_scan_parameters.go
new file mode 100644
index 00000000..a2acb160
--- /dev/null
+++ b/falcon/client/quick_scan_pro/launch_scan_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// NewLaunchScanParams creates a new LaunchScanParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewLaunchScanParams() *LaunchScanParams {
+ return &LaunchScanParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewLaunchScanParamsWithTimeout creates a new LaunchScanParams object
+// with the ability to set a timeout on a request.
+func NewLaunchScanParamsWithTimeout(timeout time.Duration) *LaunchScanParams {
+ return &LaunchScanParams{
+ timeout: timeout,
+ }
+}
+
+// NewLaunchScanParamsWithContext creates a new LaunchScanParams object
+// with the ability to set a context for a request.
+func NewLaunchScanParamsWithContext(ctx context.Context) *LaunchScanParams {
+ return &LaunchScanParams{
+ Context: ctx,
+ }
+}
+
+// NewLaunchScanParamsWithHTTPClient creates a new LaunchScanParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewLaunchScanParamsWithHTTPClient(client *http.Client) *LaunchScanParams {
+ return &LaunchScanParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+LaunchScanParams contains all the parameters to send to the API endpoint
+
+ for the launch scan operation.
+
+ Typically these are written to a http.Request.
+*/
+type LaunchScanParams struct {
+
+ // Body.
+ Body *models.QuickscanproLaunchScanRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the launch scan params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *LaunchScanParams) WithDefaults() *LaunchScanParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the launch scan params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *LaunchScanParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the launch scan params
+func (o *LaunchScanParams) WithTimeout(timeout time.Duration) *LaunchScanParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the launch scan params
+func (o *LaunchScanParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the launch scan params
+func (o *LaunchScanParams) WithContext(ctx context.Context) *LaunchScanParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the launch scan params
+func (o *LaunchScanParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the launch scan params
+func (o *LaunchScanParams) WithHTTPClient(client *http.Client) *LaunchScanParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the launch scan params
+func (o *LaunchScanParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the launch scan params
+func (o *LaunchScanParams) WithBody(body *models.QuickscanproLaunchScanRequest) *LaunchScanParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the launch scan params
+func (o *LaunchScanParams) SetBody(body *models.QuickscanproLaunchScanRequest) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *LaunchScanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/quick_scan_pro/launch_scan_responses.go b/falcon/client/quick_scan_pro/launch_scan_responses.go
new file mode 100644
index 00000000..0b39fd5d
--- /dev/null
+++ b/falcon/client/quick_scan_pro/launch_scan_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// LaunchScanReader is a Reader for the LaunchScan structure.
+type LaunchScanReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *LaunchScanReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewLaunchScanOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewLaunchScanForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewLaunchScanTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewLaunchScanInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /quickscanpro/entities/scans/v1] LaunchScan", response, response.Code())
+ }
+}
+
+// NewLaunchScanOK creates a LaunchScanOK with default headers values
+func NewLaunchScanOK() *LaunchScanOK {
+ return &LaunchScanOK{}
+}
+
+/*
+LaunchScanOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type LaunchScanOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.QuickscanproLaunchScanResponse
+}
+
+// IsSuccess returns true when this launch scan o k response has a 2xx status code
+func (o *LaunchScanOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this launch scan o k response has a 3xx status code
+func (o *LaunchScanOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this launch scan o k response has a 4xx status code
+func (o *LaunchScanOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this launch scan o k response has a 5xx status code
+func (o *LaunchScanOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this launch scan o k response a status code equal to that given
+func (o *LaunchScanOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the launch scan o k response
+func (o *LaunchScanOK) Code() int {
+ return 200
+}
+
+func (o *LaunchScanOK) Error() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/scans/v1][%d] launchScanOK %+v", 200, o.Payload)
+}
+
+func (o *LaunchScanOK) String() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/scans/v1][%d] launchScanOK %+v", 200, o.Payload)
+}
+
+func (o *LaunchScanOK) GetPayload() *models.QuickscanproLaunchScanResponse {
+ return o.Payload
+}
+
+func (o *LaunchScanOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.QuickscanproLaunchScanResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewLaunchScanForbidden creates a LaunchScanForbidden with default headers values
+func NewLaunchScanForbidden() *LaunchScanForbidden {
+ return &LaunchScanForbidden{}
+}
+
+/*
+LaunchScanForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type LaunchScanForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this launch scan forbidden response has a 2xx status code
+func (o *LaunchScanForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this launch scan forbidden response has a 3xx status code
+func (o *LaunchScanForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this launch scan forbidden response has a 4xx status code
+func (o *LaunchScanForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this launch scan forbidden response has a 5xx status code
+func (o *LaunchScanForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this launch scan forbidden response a status code equal to that given
+func (o *LaunchScanForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the launch scan forbidden response
+func (o *LaunchScanForbidden) Code() int {
+ return 403
+}
+
+func (o *LaunchScanForbidden) Error() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/scans/v1][%d] launchScanForbidden %+v", 403, o.Payload)
+}
+
+func (o *LaunchScanForbidden) String() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/scans/v1][%d] launchScanForbidden %+v", 403, o.Payload)
+}
+
+func (o *LaunchScanForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *LaunchScanForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewLaunchScanTooManyRequests creates a LaunchScanTooManyRequests with default headers values
+func NewLaunchScanTooManyRequests() *LaunchScanTooManyRequests {
+ return &LaunchScanTooManyRequests{}
+}
+
+/*
+LaunchScanTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type LaunchScanTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this launch scan too many requests response has a 2xx status code
+func (o *LaunchScanTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this launch scan too many requests response has a 3xx status code
+func (o *LaunchScanTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this launch scan too many requests response has a 4xx status code
+func (o *LaunchScanTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this launch scan too many requests response has a 5xx status code
+func (o *LaunchScanTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this launch scan too many requests response a status code equal to that given
+func (o *LaunchScanTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the launch scan too many requests response
+func (o *LaunchScanTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *LaunchScanTooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/scans/v1][%d] launchScanTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *LaunchScanTooManyRequests) String() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/scans/v1][%d] launchScanTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *LaunchScanTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *LaunchScanTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewLaunchScanInternalServerError creates a LaunchScanInternalServerError with default headers values
+func NewLaunchScanInternalServerError() *LaunchScanInternalServerError {
+ return &LaunchScanInternalServerError{}
+}
+
+/*
+LaunchScanInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type LaunchScanInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this launch scan internal server error response has a 2xx status code
+func (o *LaunchScanInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this launch scan internal server error response has a 3xx status code
+func (o *LaunchScanInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this launch scan internal server error response has a 4xx status code
+func (o *LaunchScanInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this launch scan internal server error response has a 5xx status code
+func (o *LaunchScanInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this launch scan internal server error response a status code equal to that given
+func (o *LaunchScanInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the launch scan internal server error response
+func (o *LaunchScanInternalServerError) Code() int {
+ return 500
+}
+
+func (o *LaunchScanInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/scans/v1][%d] launchScanInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *LaunchScanInternalServerError) String() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/scans/v1][%d] launchScanInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *LaunchScanInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *LaunchScanInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quick_scan_pro/query_scan_results_parameters.go b/falcon/client/quick_scan_pro/query_scan_results_parameters.go
new file mode 100644
index 00000000..4a46bd46
--- /dev/null
+++ b/falcon/client/quick_scan_pro/query_scan_results_parameters.go
@@ -0,0 +1,272 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewQueryScanResultsParams creates a new QueryScanResultsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewQueryScanResultsParams() *QueryScanResultsParams {
+ return &QueryScanResultsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewQueryScanResultsParamsWithTimeout creates a new QueryScanResultsParams object
+// with the ability to set a timeout on a request.
+func NewQueryScanResultsParamsWithTimeout(timeout time.Duration) *QueryScanResultsParams {
+ return &QueryScanResultsParams{
+ timeout: timeout,
+ }
+}
+
+// NewQueryScanResultsParamsWithContext creates a new QueryScanResultsParams object
+// with the ability to set a context for a request.
+func NewQueryScanResultsParamsWithContext(ctx context.Context) *QueryScanResultsParams {
+ return &QueryScanResultsParams{
+ Context: ctx,
+ }
+}
+
+// NewQueryScanResultsParamsWithHTTPClient creates a new QueryScanResultsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewQueryScanResultsParamsWithHTTPClient(client *http.Client) *QueryScanResultsParams {
+ return &QueryScanResultsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+QueryScanResultsParams contains all the parameters to send to the API endpoint
+
+ for the query scan results operation.
+
+ Typically these are written to a http.Request.
+*/
+type QueryScanResultsParams struct {
+
+ /* Filter.
+
+ FQL query which mentions the SHA256 field
+ */
+ Filter string
+
+ /* Limit.
+
+ Maximum number of IDs to return. Max: 5000.
+
+ Default: 50
+ */
+ Limit *int64
+
+ /* Offset.
+
+ The offset to start retrieving ids from.
+ */
+ Offset *int64
+
+ /* Sort.
+
+ Sort order: `asc` or `desc`. Sort supported fields `created_timestamp`
+ */
+ Sort *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the query scan results params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *QueryScanResultsParams) WithDefaults() *QueryScanResultsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the query scan results params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *QueryScanResultsParams) SetDefaults() {
+ var (
+ limitDefault = int64(50)
+ )
+
+ val := QueryScanResultsParams{
+ Limit: &limitDefault,
+ }
+
+ val.timeout = o.timeout
+ val.Context = o.Context
+ val.HTTPClient = o.HTTPClient
+ *o = val
+}
+
+// WithTimeout adds the timeout to the query scan results params
+func (o *QueryScanResultsParams) WithTimeout(timeout time.Duration) *QueryScanResultsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the query scan results params
+func (o *QueryScanResultsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the query scan results params
+func (o *QueryScanResultsParams) WithContext(ctx context.Context) *QueryScanResultsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the query scan results params
+func (o *QueryScanResultsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the query scan results params
+func (o *QueryScanResultsParams) WithHTTPClient(client *http.Client) *QueryScanResultsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the query scan results params
+func (o *QueryScanResultsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithFilter adds the filter to the query scan results params
+func (o *QueryScanResultsParams) WithFilter(filter string) *QueryScanResultsParams {
+ o.SetFilter(filter)
+ return o
+}
+
+// SetFilter adds the filter to the query scan results params
+func (o *QueryScanResultsParams) SetFilter(filter string) {
+ o.Filter = filter
+}
+
+// WithLimit adds the limit to the query scan results params
+func (o *QueryScanResultsParams) WithLimit(limit *int64) *QueryScanResultsParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the query scan results params
+func (o *QueryScanResultsParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the query scan results params
+func (o *QueryScanResultsParams) WithOffset(offset *int64) *QueryScanResultsParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the query scan results params
+func (o *QueryScanResultsParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WithSort adds the sort to the query scan results params
+func (o *QueryScanResultsParams) WithSort(sort *string) *QueryScanResultsParams {
+ o.SetSort(sort)
+ return o
+}
+
+// SetSort adds the sort to the query scan results params
+func (o *QueryScanResultsParams) SetSort(sort *string) {
+ o.Sort = sort
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *QueryScanResultsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // query param filter
+ qrFilter := o.Filter
+ qFilter := qrFilter
+ if qFilter != "" {
+
+ if err := r.SetQueryParam("filter", qFilter); err != nil {
+ return err
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Sort != nil {
+
+ // query param sort
+ var qrSort string
+
+ if o.Sort != nil {
+ qrSort = *o.Sort
+ }
+ qSort := qrSort
+ if qSort != "" {
+
+ if err := r.SetQueryParam("sort", qSort); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/quick_scan_pro/query_scan_results_responses.go b/falcon/client/quick_scan_pro/query_scan_results_responses.go
new file mode 100644
index 00000000..e1f46753
--- /dev/null
+++ b/falcon/client/quick_scan_pro/query_scan_results_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// QueryScanResultsReader is a Reader for the QueryScanResults structure.
+type QueryScanResultsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *QueryScanResultsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewQueryScanResultsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewQueryScanResultsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewQueryScanResultsTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewQueryScanResultsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /quickscanpro/queries/scans/v1] QueryScanResults", response, response.Code())
+ }
+}
+
+// NewQueryScanResultsOK creates a QueryScanResultsOK with default headers values
+func NewQueryScanResultsOK() *QueryScanResultsOK {
+ return &QueryScanResultsOK{}
+}
+
+/*
+QueryScanResultsOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type QueryScanResultsOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.QuickscanproQueryScanResultsResponse
+}
+
+// IsSuccess returns true when this query scan results o k response has a 2xx status code
+func (o *QueryScanResultsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this query scan results o k response has a 3xx status code
+func (o *QueryScanResultsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query scan results o k response has a 4xx status code
+func (o *QueryScanResultsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query scan results o k response has a 5xx status code
+func (o *QueryScanResultsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query scan results o k response a status code equal to that given
+func (o *QueryScanResultsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the query scan results o k response
+func (o *QueryScanResultsOK) Code() int {
+ return 200
+}
+
+func (o *QueryScanResultsOK) Error() string {
+ return fmt.Sprintf("[GET /quickscanpro/queries/scans/v1][%d] queryScanResultsOK %+v", 200, o.Payload)
+}
+
+func (o *QueryScanResultsOK) String() string {
+ return fmt.Sprintf("[GET /quickscanpro/queries/scans/v1][%d] queryScanResultsOK %+v", 200, o.Payload)
+}
+
+func (o *QueryScanResultsOK) GetPayload() *models.QuickscanproQueryScanResultsResponse {
+ return o.Payload
+}
+
+func (o *QueryScanResultsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.QuickscanproQueryScanResultsResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryScanResultsForbidden creates a QueryScanResultsForbidden with default headers values
+func NewQueryScanResultsForbidden() *QueryScanResultsForbidden {
+ return &QueryScanResultsForbidden{}
+}
+
+/*
+QueryScanResultsForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type QueryScanResultsForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query scan results forbidden response has a 2xx status code
+func (o *QueryScanResultsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query scan results forbidden response has a 3xx status code
+func (o *QueryScanResultsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query scan results forbidden response has a 4xx status code
+func (o *QueryScanResultsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this query scan results forbidden response has a 5xx status code
+func (o *QueryScanResultsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query scan results forbidden response a status code equal to that given
+func (o *QueryScanResultsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the query scan results forbidden response
+func (o *QueryScanResultsForbidden) Code() int {
+ return 403
+}
+
+func (o *QueryScanResultsForbidden) Error() string {
+ return fmt.Sprintf("[GET /quickscanpro/queries/scans/v1][%d] queryScanResultsForbidden %+v", 403, o.Payload)
+}
+
+func (o *QueryScanResultsForbidden) String() string {
+ return fmt.Sprintf("[GET /quickscanpro/queries/scans/v1][%d] queryScanResultsForbidden %+v", 403, o.Payload)
+}
+
+func (o *QueryScanResultsForbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryScanResultsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryScanResultsTooManyRequests creates a QueryScanResultsTooManyRequests with default headers values
+func NewQueryScanResultsTooManyRequests() *QueryScanResultsTooManyRequests {
+ return &QueryScanResultsTooManyRequests{}
+}
+
+/*
+QueryScanResultsTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type QueryScanResultsTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query scan results too many requests response has a 2xx status code
+func (o *QueryScanResultsTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query scan results too many requests response has a 3xx status code
+func (o *QueryScanResultsTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query scan results too many requests response has a 4xx status code
+func (o *QueryScanResultsTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this query scan results too many requests response has a 5xx status code
+func (o *QueryScanResultsTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this query scan results too many requests response a status code equal to that given
+func (o *QueryScanResultsTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the query scan results too many requests response
+func (o *QueryScanResultsTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *QueryScanResultsTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /quickscanpro/queries/scans/v1][%d] queryScanResultsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *QueryScanResultsTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /quickscanpro/queries/scans/v1][%d] queryScanResultsTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *QueryScanResultsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryScanResultsTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewQueryScanResultsInternalServerError creates a QueryScanResultsInternalServerError with default headers values
+func NewQueryScanResultsInternalServerError() *QueryScanResultsInternalServerError {
+ return &QueryScanResultsInternalServerError{}
+}
+
+/*
+QueryScanResultsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryScanResultsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query scan results internal server error response has a 2xx status code
+func (o *QueryScanResultsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query scan results internal server error response has a 3xx status code
+func (o *QueryScanResultsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query scan results internal server error response has a 4xx status code
+func (o *QueryScanResultsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query scan results internal server error response has a 5xx status code
+func (o *QueryScanResultsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query scan results internal server error response a status code equal to that given
+func (o *QueryScanResultsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query scan results internal server error response
+func (o *QueryScanResultsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryScanResultsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /quickscanpro/queries/scans/v1][%d] queryScanResultsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryScanResultsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /quickscanpro/queries/scans/v1][%d] queryScanResultsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryScanResultsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryScanResultsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/quick_scan_pro/quick_scan_pro_client.go b/falcon/client/quick_scan_pro/quick_scan_pro_client.go
new file mode 100644
index 00000000..a04f5f00
--- /dev/null
+++ b/falcon/client/quick_scan_pro/quick_scan_pro_client.go
@@ -0,0 +1,279 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new quick scan pro API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for quick scan pro API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ DeleteFile(params *DeleteFileParams, opts ...ClientOption) (*DeleteFileOK, error)
+
+ DeleteScanResult(params *DeleteScanResultParams, opts ...ClientOption) (*DeleteScanResultOK, error)
+
+ GetScanResult(params *GetScanResultParams, opts ...ClientOption) (*GetScanResultOK, error)
+
+ LaunchScan(params *LaunchScanParams, opts ...ClientOption) (*LaunchScanOK, error)
+
+ QueryScanResults(params *QueryScanResultsParams, opts ...ClientOption) (*QueryScanResultsOK, error)
+
+ UploadFileMixin0Mixin93(params *UploadFileMixin0Mixin93Params, opts ...ClientOption) (*UploadFileMixin0Mixin93OK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+DeleteFile deletes file by its sha256 identifier
+*/
+func (a *Client) DeleteFile(params *DeleteFileParams, opts ...ClientOption) (*DeleteFileOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDeleteFileParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "DeleteFile",
+ Method: "DELETE",
+ PathPattern: "/quickscanpro/entities/files/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DeleteFileReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DeleteFileOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for DeleteFile: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+DeleteScanResult deletes the result of an quick scan pro scan
+*/
+func (a *Client) DeleteScanResult(params *DeleteScanResultParams, opts ...ClientOption) (*DeleteScanResultOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewDeleteScanResultParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "DeleteScanResult",
+ Method: "DELETE",
+ PathPattern: "/quickscanpro/entities/scans/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &DeleteScanResultReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*DeleteScanResultOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for DeleteScanResult: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+GetScanResult gets the result of an quick scan pro scan
+*/
+func (a *Client) GetScanResult(params *GetScanResultParams, opts ...ClientOption) (*GetScanResultOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetScanResultParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetScanResult",
+ Method: "GET",
+ PathPattern: "/quickscanpro/entities/scans/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetScanResultReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetScanResultOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetScanResult: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+LaunchScan starts scanning a file uploaded through quickscanpro entities files v1
+*/
+func (a *Client) LaunchScan(params *LaunchScanParams, opts ...ClientOption) (*LaunchScanOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewLaunchScanParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "LaunchScan",
+ Method: "POST",
+ PathPattern: "/quickscanpro/entities/scans/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &LaunchScanReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*LaunchScanOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for LaunchScan: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+QueryScanResults gets quick scan pro scan jobs for a given f q l filter
+*/
+func (a *Client) QueryScanResults(params *QueryScanResultsParams, opts ...ClientOption) (*QueryScanResultsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewQueryScanResultsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "QueryScanResults",
+ Method: "GET",
+ PathPattern: "/quickscanpro/queries/scans/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &QueryScanResultsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*QueryScanResultsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for QueryScanResults: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+UploadFileMixin0Mixin93 uploads a file to be further analyzed with quick scan pro the samples expire after 90 days
+*/
+func (a *Client) UploadFileMixin0Mixin93(params *UploadFileMixin0Mixin93Params, opts ...ClientOption) (*UploadFileMixin0Mixin93OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewUploadFileMixin0Mixin93Params()
+ }
+ op := &runtime.ClientOperation{
+ ID: "UploadFileMixin0Mixin93",
+ Method: "POST",
+ PathPattern: "/quickscanpro/entities/files/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"multipart/form-data"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &UploadFileMixin0Mixin93Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*UploadFileMixin0Mixin93OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for UploadFileMixin0Mixin93: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/falcon/client/quick_scan_pro/upload_file_mixin0_mixin93_parameters.go b/falcon/client/quick_scan_pro/upload_file_mixin0_mixin93_parameters.go
new file mode 100644
index 00000000..ba6a9bf1
--- /dev/null
+++ b/falcon/client/quick_scan_pro/upload_file_mixin0_mixin93_parameters.go
@@ -0,0 +1,194 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewUploadFileMixin0Mixin93Params creates a new UploadFileMixin0Mixin93Params object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewUploadFileMixin0Mixin93Params() *UploadFileMixin0Mixin93Params {
+ return &UploadFileMixin0Mixin93Params{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewUploadFileMixin0Mixin93ParamsWithTimeout creates a new UploadFileMixin0Mixin93Params object
+// with the ability to set a timeout on a request.
+func NewUploadFileMixin0Mixin93ParamsWithTimeout(timeout time.Duration) *UploadFileMixin0Mixin93Params {
+ return &UploadFileMixin0Mixin93Params{
+ timeout: timeout,
+ }
+}
+
+// NewUploadFileMixin0Mixin93ParamsWithContext creates a new UploadFileMixin0Mixin93Params object
+// with the ability to set a context for a request.
+func NewUploadFileMixin0Mixin93ParamsWithContext(ctx context.Context) *UploadFileMixin0Mixin93Params {
+ return &UploadFileMixin0Mixin93Params{
+ Context: ctx,
+ }
+}
+
+// NewUploadFileMixin0Mixin93ParamsWithHTTPClient creates a new UploadFileMixin0Mixin93Params object
+// with the ability to set a custom HTTPClient for a request.
+func NewUploadFileMixin0Mixin93ParamsWithHTTPClient(client *http.Client) *UploadFileMixin0Mixin93Params {
+ return &UploadFileMixin0Mixin93Params{
+ HTTPClient: client,
+ }
+}
+
+/*
+UploadFileMixin0Mixin93Params contains all the parameters to send to the API endpoint
+
+ for the upload file mixin0 mixin93 operation.
+
+ Typically these are written to a http.Request.
+*/
+type UploadFileMixin0Mixin93Params struct {
+
+ /* File.
+
+ Binary file to be uploaded. Max file size: 256 MB.
+ */
+ File runtime.NamedReadCloser
+
+ /* Scan.
+
+ If true, after upload, it starts scanning immediately. Default scan mode is 'false'
+ */
+ Scan *bool
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the upload file mixin0 mixin93 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UploadFileMixin0Mixin93Params) WithDefaults() *UploadFileMixin0Mixin93Params {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the upload file mixin0 mixin93 params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UploadFileMixin0Mixin93Params) SetDefaults() {
+ var (
+ scanDefault = bool(false)
+ )
+
+ val := UploadFileMixin0Mixin93Params{
+ Scan: &scanDefault,
+ }
+
+ val.timeout = o.timeout
+ val.Context = o.Context
+ val.HTTPClient = o.HTTPClient
+ *o = val
+}
+
+// WithTimeout adds the timeout to the upload file mixin0 mixin93 params
+func (o *UploadFileMixin0Mixin93Params) WithTimeout(timeout time.Duration) *UploadFileMixin0Mixin93Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the upload file mixin0 mixin93 params
+func (o *UploadFileMixin0Mixin93Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the upload file mixin0 mixin93 params
+func (o *UploadFileMixin0Mixin93Params) WithContext(ctx context.Context) *UploadFileMixin0Mixin93Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the upload file mixin0 mixin93 params
+func (o *UploadFileMixin0Mixin93Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the upload file mixin0 mixin93 params
+func (o *UploadFileMixin0Mixin93Params) WithHTTPClient(client *http.Client) *UploadFileMixin0Mixin93Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the upload file mixin0 mixin93 params
+func (o *UploadFileMixin0Mixin93Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithFile adds the file to the upload file mixin0 mixin93 params
+func (o *UploadFileMixin0Mixin93Params) WithFile(file runtime.NamedReadCloser) *UploadFileMixin0Mixin93Params {
+ o.SetFile(file)
+ return o
+}
+
+// SetFile adds the file to the upload file mixin0 mixin93 params
+func (o *UploadFileMixin0Mixin93Params) SetFile(file runtime.NamedReadCloser) {
+ o.File = file
+}
+
+// WithScan adds the scan to the upload file mixin0 mixin93 params
+func (o *UploadFileMixin0Mixin93Params) WithScan(scan *bool) *UploadFileMixin0Mixin93Params {
+ o.SetScan(scan)
+ return o
+}
+
+// SetScan adds the scan to the upload file mixin0 mixin93 params
+func (o *UploadFileMixin0Mixin93Params) SetScan(scan *bool) {
+ o.Scan = scan
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *UploadFileMixin0Mixin93Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ // form file param file
+ if err := r.SetFileParam("file", o.File); err != nil {
+ return err
+ }
+
+ if o.Scan != nil {
+
+ // form param scan
+ var frScan bool
+ if o.Scan != nil {
+ frScan = *o.Scan
+ }
+ fScan := swag.FormatBool(frScan)
+ if fScan != "" {
+ if err := r.SetFormParam("scan", fScan); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/quick_scan_pro/upload_file_mixin0_mixin93_responses.go b/falcon/client/quick_scan_pro/upload_file_mixin0_mixin93_responses.go
new file mode 100644
index 00000000..838899af
--- /dev/null
+++ b/falcon/client/quick_scan_pro/upload_file_mixin0_mixin93_responses.go
@@ -0,0 +1,510 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package quick_scan_pro
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// UploadFileMixin0Mixin93Reader is a Reader for the UploadFileMixin0Mixin93 structure.
+type UploadFileMixin0Mixin93Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *UploadFileMixin0Mixin93Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewUploadFileMixin0Mixin93OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 403:
+ result := NewUploadFileMixin0Mixin93Forbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewUploadFileMixin0Mixin93TooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewUploadFileMixin0Mixin93InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /quickscanpro/entities/files/v1] UploadFileMixin0Mixin93", response, response.Code())
+ }
+}
+
+// NewUploadFileMixin0Mixin93OK creates a UploadFileMixin0Mixin93OK with default headers values
+func NewUploadFileMixin0Mixin93OK() *UploadFileMixin0Mixin93OK {
+ return &UploadFileMixin0Mixin93OK{}
+}
+
+/*
+UploadFileMixin0Mixin93OK describes a response with status code 200, with default header values.
+
+OK
+*/
+type UploadFileMixin0Mixin93OK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.QuickscanproFileUploadResponse
+}
+
+// IsSuccess returns true when this upload file mixin0 mixin93 o k response has a 2xx status code
+func (o *UploadFileMixin0Mixin93OK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this upload file mixin0 mixin93 o k response has a 3xx status code
+func (o *UploadFileMixin0Mixin93OK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload file mixin0 mixin93 o k response has a 4xx status code
+func (o *UploadFileMixin0Mixin93OK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upload file mixin0 mixin93 o k response has a 5xx status code
+func (o *UploadFileMixin0Mixin93OK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upload file mixin0 mixin93 o k response a status code equal to that given
+func (o *UploadFileMixin0Mixin93OK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the upload file mixin0 mixin93 o k response
+func (o *UploadFileMixin0Mixin93OK) Code() int {
+ return 200
+}
+
+func (o *UploadFileMixin0Mixin93OK) Error() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/files/v1][%d] uploadFileMixin0Mixin93OK %+v", 200, o.Payload)
+}
+
+func (o *UploadFileMixin0Mixin93OK) String() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/files/v1][%d] uploadFileMixin0Mixin93OK %+v", 200, o.Payload)
+}
+
+func (o *UploadFileMixin0Mixin93OK) GetPayload() *models.QuickscanproFileUploadResponse {
+ return o.Payload
+}
+
+func (o *UploadFileMixin0Mixin93OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.QuickscanproFileUploadResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUploadFileMixin0Mixin93Forbidden creates a UploadFileMixin0Mixin93Forbidden with default headers values
+func NewUploadFileMixin0Mixin93Forbidden() *UploadFileMixin0Mixin93Forbidden {
+ return &UploadFileMixin0Mixin93Forbidden{}
+}
+
+/*
+UploadFileMixin0Mixin93Forbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type UploadFileMixin0Mixin93Forbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this upload file mixin0 mixin93 forbidden response has a 2xx status code
+func (o *UploadFileMixin0Mixin93Forbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upload file mixin0 mixin93 forbidden response has a 3xx status code
+func (o *UploadFileMixin0Mixin93Forbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload file mixin0 mixin93 forbidden response has a 4xx status code
+func (o *UploadFileMixin0Mixin93Forbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upload file mixin0 mixin93 forbidden response has a 5xx status code
+func (o *UploadFileMixin0Mixin93Forbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upload file mixin0 mixin93 forbidden response a status code equal to that given
+func (o *UploadFileMixin0Mixin93Forbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the upload file mixin0 mixin93 forbidden response
+func (o *UploadFileMixin0Mixin93Forbidden) Code() int {
+ return 403
+}
+
+func (o *UploadFileMixin0Mixin93Forbidden) Error() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/files/v1][%d] uploadFileMixin0Mixin93Forbidden %+v", 403, o.Payload)
+}
+
+func (o *UploadFileMixin0Mixin93Forbidden) String() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/files/v1][%d] uploadFileMixin0Mixin93Forbidden %+v", 403, o.Payload)
+}
+
+func (o *UploadFileMixin0Mixin93Forbidden) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UploadFileMixin0Mixin93Forbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUploadFileMixin0Mixin93TooManyRequests creates a UploadFileMixin0Mixin93TooManyRequests with default headers values
+func NewUploadFileMixin0Mixin93TooManyRequests() *UploadFileMixin0Mixin93TooManyRequests {
+ return &UploadFileMixin0Mixin93TooManyRequests{}
+}
+
+/*
+UploadFileMixin0Mixin93TooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type UploadFileMixin0Mixin93TooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this upload file mixin0 mixin93 too many requests response has a 2xx status code
+func (o *UploadFileMixin0Mixin93TooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upload file mixin0 mixin93 too many requests response has a 3xx status code
+func (o *UploadFileMixin0Mixin93TooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload file mixin0 mixin93 too many requests response has a 4xx status code
+func (o *UploadFileMixin0Mixin93TooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this upload file mixin0 mixin93 too many requests response has a 5xx status code
+func (o *UploadFileMixin0Mixin93TooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this upload file mixin0 mixin93 too many requests response a status code equal to that given
+func (o *UploadFileMixin0Mixin93TooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the upload file mixin0 mixin93 too many requests response
+func (o *UploadFileMixin0Mixin93TooManyRequests) Code() int {
+ return 429
+}
+
+func (o *UploadFileMixin0Mixin93TooManyRequests) Error() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/files/v1][%d] uploadFileMixin0Mixin93TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UploadFileMixin0Mixin93TooManyRequests) String() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/files/v1][%d] uploadFileMixin0Mixin93TooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *UploadFileMixin0Mixin93TooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UploadFileMixin0Mixin93TooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUploadFileMixin0Mixin93InternalServerError creates a UploadFileMixin0Mixin93InternalServerError with default headers values
+func NewUploadFileMixin0Mixin93InternalServerError() *UploadFileMixin0Mixin93InternalServerError {
+ return &UploadFileMixin0Mixin93InternalServerError{}
+}
+
+/*
+UploadFileMixin0Mixin93InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UploadFileMixin0Mixin93InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this upload file mixin0 mixin93 internal server error response has a 2xx status code
+func (o *UploadFileMixin0Mixin93InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this upload file mixin0 mixin93 internal server error response has a 3xx status code
+func (o *UploadFileMixin0Mixin93InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this upload file mixin0 mixin93 internal server error response has a 4xx status code
+func (o *UploadFileMixin0Mixin93InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this upload file mixin0 mixin93 internal server error response has a 5xx status code
+func (o *UploadFileMixin0Mixin93InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this upload file mixin0 mixin93 internal server error response a status code equal to that given
+func (o *UploadFileMixin0Mixin93InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the upload file mixin0 mixin93 internal server error response
+func (o *UploadFileMixin0Mixin93InternalServerError) Code() int {
+ return 500
+}
+
+func (o *UploadFileMixin0Mixin93InternalServerError) Error() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/files/v1][%d] uploadFileMixin0Mixin93InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UploadFileMixin0Mixin93InternalServerError) String() string {
+ return fmt.Sprintf("[POST /quickscanpro/entities/files/v1][%d] uploadFileMixin0Mixin93InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UploadFileMixin0Mixin93InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UploadFileMixin0Mixin93InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_aggregate_sessions_responses.go b/falcon/client/real_time_response/r_t_r_aggregate_sessions_responses.go
index ba8370b3..f55ec42a 100644
--- a/falcon/client/real_time_response/r_t_r_aggregate_sessions_responses.go
+++ b/falcon/client/real_time_response/r_t_r_aggregate_sessions_responses.go
@@ -55,6 +55,12 @@ func (o *RTRAggregateSessionsReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRAggregateSessionsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /real-time-response/aggregates/sessions/GET/v1] RTR-AggregateSessions", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRAggregateSessionsTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewRTRAggregateSessionsInternalServerError creates a RTRAggregateSessionsInternalServerError with default headers values
+func NewRTRAggregateSessionsInternalServerError() *RTRAggregateSessionsInternalServerError {
+ return &RTRAggregateSessionsInternalServerError{}
+}
+
+/*
+RTRAggregateSessionsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRAggregateSessionsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r aggregate sessions internal server error response has a 2xx status code
+func (o *RTRAggregateSessionsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r aggregate sessions internal server error response has a 3xx status code
+func (o *RTRAggregateSessionsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r aggregate sessions internal server error response has a 4xx status code
+func (o *RTRAggregateSessionsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r aggregate sessions internal server error response has a 5xx status code
+func (o *RTRAggregateSessionsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r aggregate sessions internal server error response a status code equal to that given
+func (o *RTRAggregateSessionsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r aggregate sessions internal server error response
+func (o *RTRAggregateSessionsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRAggregateSessionsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /real-time-response/aggregates/sessions/GET/v1][%d] rTRAggregateSessionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRAggregateSessionsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /real-time-response/aggregates/sessions/GET/v1][%d] rTRAggregateSessionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRAggregateSessionsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRAggregateSessionsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_check_active_responder_command_status_responses.go b/falcon/client/real_time_response/r_t_r_check_active_responder_command_status_responses.go
index 1d5f75a7..ce1ae84f 100644
--- a/falcon/client/real_time_response/r_t_r_check_active_responder_command_status_responses.go
+++ b/falcon/client/real_time_response/r_t_r_check_active_responder_command_status_responses.go
@@ -49,6 +49,12 @@ func (o *RTRCheckActiveResponderCommandStatusReader) ReadResponse(response runti
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRCheckActiveResponderCommandStatusInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/entities/active-responder-command/v1] RTR-CheckActiveResponderCommandStatus", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RTRCheckActiveResponderCommandStatusTooManyRequests) readResponse(respo
return nil
}
+
+// NewRTRCheckActiveResponderCommandStatusInternalServerError creates a RTRCheckActiveResponderCommandStatusInternalServerError with default headers values
+func NewRTRCheckActiveResponderCommandStatusInternalServerError() *RTRCheckActiveResponderCommandStatusInternalServerError {
+ return &RTRCheckActiveResponderCommandStatusInternalServerError{}
+}
+
+/*
+RTRCheckActiveResponderCommandStatusInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRCheckActiveResponderCommandStatusInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r check active responder command status internal server error response has a 2xx status code
+func (o *RTRCheckActiveResponderCommandStatusInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r check active responder command status internal server error response has a 3xx status code
+func (o *RTRCheckActiveResponderCommandStatusInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r check active responder command status internal server error response has a 4xx status code
+func (o *RTRCheckActiveResponderCommandStatusInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r check active responder command status internal server error response has a 5xx status code
+func (o *RTRCheckActiveResponderCommandStatusInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r check active responder command status internal server error response a status code equal to that given
+func (o *RTRCheckActiveResponderCommandStatusInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r check active responder command status internal server error response
+func (o *RTRCheckActiveResponderCommandStatusInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRCheckActiveResponderCommandStatusInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/active-responder-command/v1][%d] rTRCheckActiveResponderCommandStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRCheckActiveResponderCommandStatusInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/active-responder-command/v1][%d] rTRCheckActiveResponderCommandStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRCheckActiveResponderCommandStatusInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRCheckActiveResponderCommandStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_check_command_status_responses.go b/falcon/client/real_time_response/r_t_r_check_command_status_responses.go
index a2552cd6..e542253f 100644
--- a/falcon/client/real_time_response/r_t_r_check_command_status_responses.go
+++ b/falcon/client/real_time_response/r_t_r_check_command_status_responses.go
@@ -49,6 +49,12 @@ func (o *RTRCheckCommandStatusReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRCheckCommandStatusInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/entities/command/v1] RTR-CheckCommandStatus", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RTRCheckCommandStatusTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewRTRCheckCommandStatusInternalServerError creates a RTRCheckCommandStatusInternalServerError with default headers values
+func NewRTRCheckCommandStatusInternalServerError() *RTRCheckCommandStatusInternalServerError {
+ return &RTRCheckCommandStatusInternalServerError{}
+}
+
+/*
+RTRCheckCommandStatusInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRCheckCommandStatusInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r check command status internal server error response has a 2xx status code
+func (o *RTRCheckCommandStatusInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r check command status internal server error response has a 3xx status code
+func (o *RTRCheckCommandStatusInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r check command status internal server error response has a 4xx status code
+func (o *RTRCheckCommandStatusInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r check command status internal server error response has a 5xx status code
+func (o *RTRCheckCommandStatusInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r check command status internal server error response a status code equal to that given
+func (o *RTRCheckCommandStatusInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r check command status internal server error response
+func (o *RTRCheckCommandStatusInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRCheckCommandStatusInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/command/v1][%d] rTRCheckCommandStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRCheckCommandStatusInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/command/v1][%d] rTRCheckCommandStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRCheckCommandStatusInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRCheckCommandStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_delete_file_responses.go b/falcon/client/real_time_response/r_t_r_delete_file_responses.go
index 64433bd2..bf0f21c4 100644
--- a/falcon/client/real_time_response/r_t_r_delete_file_responses.go
+++ b/falcon/client/real_time_response/r_t_r_delete_file_responses.go
@@ -55,6 +55,12 @@ func (o *RTRDeleteFileReader) ReadResponse(response runtime.ClientResponse, cons
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRDeleteFileInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /real-time-response/entities/file/v1] RTR-DeleteFile", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRDeleteFileTooManyRequests) readResponse(response runtime.ClientRespo
return nil
}
+
+// NewRTRDeleteFileInternalServerError creates a RTRDeleteFileInternalServerError with default headers values
+func NewRTRDeleteFileInternalServerError() *RTRDeleteFileInternalServerError {
+ return &RTRDeleteFileInternalServerError{}
+}
+
+/*
+RTRDeleteFileInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRDeleteFileInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r delete file internal server error response has a 2xx status code
+func (o *RTRDeleteFileInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r delete file internal server error response has a 3xx status code
+func (o *RTRDeleteFileInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r delete file internal server error response has a 4xx status code
+func (o *RTRDeleteFileInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r delete file internal server error response has a 5xx status code
+func (o *RTRDeleteFileInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r delete file internal server error response a status code equal to that given
+func (o *RTRDeleteFileInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r delete file internal server error response
+func (o *RTRDeleteFileInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRDeleteFileInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/file/v1][%d] rTRDeleteFileInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeleteFileInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/file/v1][%d] rTRDeleteFileInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeleteFileInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRDeleteFileInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_delete_file_v2_responses.go b/falcon/client/real_time_response/r_t_r_delete_file_v2_responses.go
index c826651f..a30d7b55 100644
--- a/falcon/client/real_time_response/r_t_r_delete_file_v2_responses.go
+++ b/falcon/client/real_time_response/r_t_r_delete_file_v2_responses.go
@@ -55,6 +55,12 @@ func (o *RTRDeleteFileV2Reader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRDeleteFileV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /real-time-response/entities/file/v2] RTR-DeleteFileV2", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRDeleteFileV2TooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewRTRDeleteFileV2InternalServerError creates a RTRDeleteFileV2InternalServerError with default headers values
+func NewRTRDeleteFileV2InternalServerError() *RTRDeleteFileV2InternalServerError {
+ return &RTRDeleteFileV2InternalServerError{}
+}
+
+/*
+RTRDeleteFileV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRDeleteFileV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r delete file v2 internal server error response has a 2xx status code
+func (o *RTRDeleteFileV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r delete file v2 internal server error response has a 3xx status code
+func (o *RTRDeleteFileV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r delete file v2 internal server error response has a 4xx status code
+func (o *RTRDeleteFileV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r delete file v2 internal server error response has a 5xx status code
+func (o *RTRDeleteFileV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r delete file v2 internal server error response a status code equal to that given
+func (o *RTRDeleteFileV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r delete file v2 internal server error response
+func (o *RTRDeleteFileV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRDeleteFileV2InternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/file/v2][%d] rTRDeleteFileV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeleteFileV2InternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/file/v2][%d] rTRDeleteFileV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeleteFileV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRDeleteFileV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_delete_queued_session_responses.go b/falcon/client/real_time_response/r_t_r_delete_queued_session_responses.go
index 416d8f54..87e8cbc2 100644
--- a/falcon/client/real_time_response/r_t_r_delete_queued_session_responses.go
+++ b/falcon/client/real_time_response/r_t_r_delete_queued_session_responses.go
@@ -61,6 +61,12 @@ func (o *RTRDeleteQueuedSessionReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRDeleteQueuedSessionInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /real-time-response/entities/queued-sessions/command/v1] RTR-DeleteQueuedSession", response, response.Code())
}
@@ -740,3 +746,113 @@ func (o *RTRDeleteQueuedSessionTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewRTRDeleteQueuedSessionInternalServerError creates a RTRDeleteQueuedSessionInternalServerError with default headers values
+func NewRTRDeleteQueuedSessionInternalServerError() *RTRDeleteQueuedSessionInternalServerError {
+ return &RTRDeleteQueuedSessionInternalServerError{}
+}
+
+/*
+RTRDeleteQueuedSessionInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRDeleteQueuedSessionInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r delete queued session internal server error response has a 2xx status code
+func (o *RTRDeleteQueuedSessionInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r delete queued session internal server error response has a 3xx status code
+func (o *RTRDeleteQueuedSessionInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r delete queued session internal server error response has a 4xx status code
+func (o *RTRDeleteQueuedSessionInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r delete queued session internal server error response has a 5xx status code
+func (o *RTRDeleteQueuedSessionInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r delete queued session internal server error response a status code equal to that given
+func (o *RTRDeleteQueuedSessionInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r delete queued session internal server error response
+func (o *RTRDeleteQueuedSessionInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRDeleteQueuedSessionInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/queued-sessions/command/v1][%d] rTRDeleteQueuedSessionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeleteQueuedSessionInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/queued-sessions/command/v1][%d] rTRDeleteQueuedSessionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeleteQueuedSessionInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRDeleteQueuedSessionInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_delete_session_responses.go b/falcon/client/real_time_response/r_t_r_delete_session_responses.go
index 25b80ba1..3e5a1f69 100644
--- a/falcon/client/real_time_response/r_t_r_delete_session_responses.go
+++ b/falcon/client/real_time_response/r_t_r_delete_session_responses.go
@@ -55,6 +55,12 @@ func (o *RTRDeleteSessionReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRDeleteSessionInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /real-time-response/entities/sessions/v1] RTR-DeleteSession", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRDeleteSessionTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewRTRDeleteSessionInternalServerError creates a RTRDeleteSessionInternalServerError with default headers values
+func NewRTRDeleteSessionInternalServerError() *RTRDeleteSessionInternalServerError {
+ return &RTRDeleteSessionInternalServerError{}
+}
+
+/*
+RTRDeleteSessionInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRDeleteSessionInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r delete session internal server error response has a 2xx status code
+func (o *RTRDeleteSessionInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r delete session internal server error response has a 3xx status code
+func (o *RTRDeleteSessionInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r delete session internal server error response has a 4xx status code
+func (o *RTRDeleteSessionInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r delete session internal server error response has a 5xx status code
+func (o *RTRDeleteSessionInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r delete session internal server error response a status code equal to that given
+func (o *RTRDeleteSessionInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r delete session internal server error response
+func (o *RTRDeleteSessionInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRDeleteSessionInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/sessions/v1][%d] rTRDeleteSessionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeleteSessionInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/sessions/v1][%d] rTRDeleteSessionInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeleteSessionInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRDeleteSessionInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_execute_active_responder_command_responses.go b/falcon/client/real_time_response/r_t_r_execute_active_responder_command_responses.go
index 32e035d3..d5de719e 100644
--- a/falcon/client/real_time_response/r_t_r_execute_active_responder_command_responses.go
+++ b/falcon/client/real_time_response/r_t_r_execute_active_responder_command_responses.go
@@ -49,6 +49,12 @@ func (o *RTRExecuteActiveResponderCommandReader) ReadResponse(response runtime.C
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRExecuteActiveResponderCommandInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /real-time-response/entities/active-responder-command/v1] RTR-ExecuteActiveResponderCommand", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RTRExecuteActiveResponderCommandTooManyRequests) readResponse(response
return nil
}
+
+// NewRTRExecuteActiveResponderCommandInternalServerError creates a RTRExecuteActiveResponderCommandInternalServerError with default headers values
+func NewRTRExecuteActiveResponderCommandInternalServerError() *RTRExecuteActiveResponderCommandInternalServerError {
+ return &RTRExecuteActiveResponderCommandInternalServerError{}
+}
+
+/*
+RTRExecuteActiveResponderCommandInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRExecuteActiveResponderCommandInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r execute active responder command internal server error response has a 2xx status code
+func (o *RTRExecuteActiveResponderCommandInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r execute active responder command internal server error response has a 3xx status code
+func (o *RTRExecuteActiveResponderCommandInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r execute active responder command internal server error response has a 4xx status code
+func (o *RTRExecuteActiveResponderCommandInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r execute active responder command internal server error response has a 5xx status code
+func (o *RTRExecuteActiveResponderCommandInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r execute active responder command internal server error response a status code equal to that given
+func (o *RTRExecuteActiveResponderCommandInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r execute active responder command internal server error response
+func (o *RTRExecuteActiveResponderCommandInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRExecuteActiveResponderCommandInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/active-responder-command/v1][%d] rTRExecuteActiveResponderCommandInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRExecuteActiveResponderCommandInternalServerError) String() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/active-responder-command/v1][%d] rTRExecuteActiveResponderCommandInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRExecuteActiveResponderCommandInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRExecuteActiveResponderCommandInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_execute_command_responses.go b/falcon/client/real_time_response/r_t_r_execute_command_responses.go
index 904b8ba6..4079dbfc 100644
--- a/falcon/client/real_time_response/r_t_r_execute_command_responses.go
+++ b/falcon/client/real_time_response/r_t_r_execute_command_responses.go
@@ -49,6 +49,12 @@ func (o *RTRExecuteCommandReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRExecuteCommandInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /real-time-response/entities/command/v1] RTR-ExecuteCommand", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RTRExecuteCommandTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewRTRExecuteCommandInternalServerError creates a RTRExecuteCommandInternalServerError with default headers values
+func NewRTRExecuteCommandInternalServerError() *RTRExecuteCommandInternalServerError {
+ return &RTRExecuteCommandInternalServerError{}
+}
+
+/*
+RTRExecuteCommandInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRExecuteCommandInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r execute command internal server error response has a 2xx status code
+func (o *RTRExecuteCommandInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r execute command internal server error response has a 3xx status code
+func (o *RTRExecuteCommandInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r execute command internal server error response has a 4xx status code
+func (o *RTRExecuteCommandInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r execute command internal server error response has a 5xx status code
+func (o *RTRExecuteCommandInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r execute command internal server error response a status code equal to that given
+func (o *RTRExecuteCommandInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r execute command internal server error response
+func (o *RTRExecuteCommandInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRExecuteCommandInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/command/v1][%d] rTRExecuteCommandInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRExecuteCommandInternalServerError) String() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/command/v1][%d] rTRExecuteCommandInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRExecuteCommandInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRExecuteCommandInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_list_all_sessions_responses.go b/falcon/client/real_time_response/r_t_r_list_all_sessions_responses.go
index b132bfb4..414f8e7c 100644
--- a/falcon/client/real_time_response/r_t_r_list_all_sessions_responses.go
+++ b/falcon/client/real_time_response/r_t_r_list_all_sessions_responses.go
@@ -55,6 +55,12 @@ func (o *RTRListAllSessionsReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRListAllSessionsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/queries/sessions/v1] RTR-ListAllSessions", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRListAllSessionsTooManyRequests) readResponse(response runtime.Client
return nil
}
+
+// NewRTRListAllSessionsInternalServerError creates a RTRListAllSessionsInternalServerError with default headers values
+func NewRTRListAllSessionsInternalServerError() *RTRListAllSessionsInternalServerError {
+ return &RTRListAllSessionsInternalServerError{}
+}
+
+/*
+RTRListAllSessionsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRListAllSessionsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r list all sessions internal server error response has a 2xx status code
+func (o *RTRListAllSessionsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r list all sessions internal server error response has a 3xx status code
+func (o *RTRListAllSessionsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r list all sessions internal server error response has a 4xx status code
+func (o *RTRListAllSessionsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r list all sessions internal server error response has a 5xx status code
+func (o *RTRListAllSessionsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r list all sessions internal server error response a status code equal to that given
+func (o *RTRListAllSessionsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r list all sessions internal server error response
+func (o *RTRListAllSessionsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRListAllSessionsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/queries/sessions/v1][%d] rTRListAllSessionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListAllSessionsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/queries/sessions/v1][%d] rTRListAllSessionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListAllSessionsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRListAllSessionsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_list_files_responses.go b/falcon/client/real_time_response/r_t_r_list_files_responses.go
index 6659115b..0d209101 100644
--- a/falcon/client/real_time_response/r_t_r_list_files_responses.go
+++ b/falcon/client/real_time_response/r_t_r_list_files_responses.go
@@ -55,6 +55,12 @@ func (o *RTRListFilesReader) ReadResponse(response runtime.ClientResponse, consu
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRListFilesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/entities/file/v1] RTR-ListFiles", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRListFilesTooManyRequests) readResponse(response runtime.ClientRespon
return nil
}
+
+// NewRTRListFilesInternalServerError creates a RTRListFilesInternalServerError with default headers values
+func NewRTRListFilesInternalServerError() *RTRListFilesInternalServerError {
+ return &RTRListFilesInternalServerError{}
+}
+
+/*
+RTRListFilesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRListFilesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r list files internal server error response has a 2xx status code
+func (o *RTRListFilesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r list files internal server error response has a 3xx status code
+func (o *RTRListFilesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r list files internal server error response has a 4xx status code
+func (o *RTRListFilesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r list files internal server error response has a 5xx status code
+func (o *RTRListFilesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r list files internal server error response a status code equal to that given
+func (o *RTRListFilesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r list files internal server error response
+func (o *RTRListFilesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRListFilesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/file/v1][%d] rTRListFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListFilesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/file/v1][%d] rTRListFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListFilesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRListFilesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_list_files_v2_responses.go b/falcon/client/real_time_response/r_t_r_list_files_v2_responses.go
index f9aa0f96..df9213eb 100644
--- a/falcon/client/real_time_response/r_t_r_list_files_v2_responses.go
+++ b/falcon/client/real_time_response/r_t_r_list_files_v2_responses.go
@@ -55,6 +55,12 @@ func (o *RTRListFilesV2Reader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRListFilesV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/entities/file/v2] RTR-ListFilesV2", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRListFilesV2TooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewRTRListFilesV2InternalServerError creates a RTRListFilesV2InternalServerError with default headers values
+func NewRTRListFilesV2InternalServerError() *RTRListFilesV2InternalServerError {
+ return &RTRListFilesV2InternalServerError{}
+}
+
+/*
+RTRListFilesV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRListFilesV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r list files v2 internal server error response has a 2xx status code
+func (o *RTRListFilesV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r list files v2 internal server error response has a 3xx status code
+func (o *RTRListFilesV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r list files v2 internal server error response has a 4xx status code
+func (o *RTRListFilesV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r list files v2 internal server error response has a 5xx status code
+func (o *RTRListFilesV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r list files v2 internal server error response a status code equal to that given
+func (o *RTRListFilesV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r list files v2 internal server error response
+func (o *RTRListFilesV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRListFilesV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/file/v2][%d] rTRListFilesV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListFilesV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/file/v2][%d] rTRListFilesV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListFilesV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRListFilesV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_list_queued_sessions_responses.go b/falcon/client/real_time_response/r_t_r_list_queued_sessions_responses.go
index 1955ef8f..201c9f87 100644
--- a/falcon/client/real_time_response/r_t_r_list_queued_sessions_responses.go
+++ b/falcon/client/real_time_response/r_t_r_list_queued_sessions_responses.go
@@ -61,6 +61,12 @@ func (o *RTRListQueuedSessionsReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRListQueuedSessionsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /real-time-response/entities/queued-sessions/GET/v1] RTR-ListQueuedSessions", response, response.Code())
}
@@ -740,3 +746,113 @@ func (o *RTRListQueuedSessionsTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewRTRListQueuedSessionsInternalServerError creates a RTRListQueuedSessionsInternalServerError with default headers values
+func NewRTRListQueuedSessionsInternalServerError() *RTRListQueuedSessionsInternalServerError {
+ return &RTRListQueuedSessionsInternalServerError{}
+}
+
+/*
+RTRListQueuedSessionsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRListQueuedSessionsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r list queued sessions internal server error response has a 2xx status code
+func (o *RTRListQueuedSessionsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r list queued sessions internal server error response has a 3xx status code
+func (o *RTRListQueuedSessionsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r list queued sessions internal server error response has a 4xx status code
+func (o *RTRListQueuedSessionsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r list queued sessions internal server error response has a 5xx status code
+func (o *RTRListQueuedSessionsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r list queued sessions internal server error response a status code equal to that given
+func (o *RTRListQueuedSessionsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r list queued sessions internal server error response
+func (o *RTRListQueuedSessionsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRListQueuedSessionsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/queued-sessions/GET/v1][%d] rTRListQueuedSessionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListQueuedSessionsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/queued-sessions/GET/v1][%d] rTRListQueuedSessionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListQueuedSessionsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRListQueuedSessionsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response/r_t_r_list_sessions_responses.go b/falcon/client/real_time_response/r_t_r_list_sessions_responses.go
index fc16fca6..1ca8ad14 100644
--- a/falcon/client/real_time_response/r_t_r_list_sessions_responses.go
+++ b/falcon/client/real_time_response/r_t_r_list_sessions_responses.go
@@ -55,6 +55,12 @@ func (o *RTRListSessionsReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRListSessionsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /real-time-response/entities/sessions/GET/v1] RTR-ListSessions", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRListSessionsTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewRTRListSessionsInternalServerError creates a RTRListSessionsInternalServerError with default headers values
+func NewRTRListSessionsInternalServerError() *RTRListSessionsInternalServerError {
+ return &RTRListSessionsInternalServerError{}
+}
+
+/*
+RTRListSessionsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRListSessionsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r list sessions internal server error response has a 2xx status code
+func (o *RTRListSessionsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r list sessions internal server error response has a 3xx status code
+func (o *RTRListSessionsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r list sessions internal server error response has a 4xx status code
+func (o *RTRListSessionsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r list sessions internal server error response has a 5xx status code
+func (o *RTRListSessionsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r list sessions internal server error response a status code equal to that given
+func (o *RTRListSessionsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r list sessions internal server error response
+func (o *RTRListSessionsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRListSessionsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/sessions/GET/v1][%d] rTRListSessionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListSessionsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/sessions/GET/v1][%d] rTRListSessionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListSessionsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRListSessionsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_check_admin_command_status_responses.go b/falcon/client/real_time_response_admin/r_t_r_check_admin_command_status_responses.go
index 0af19501..3bec1a36 100644
--- a/falcon/client/real_time_response_admin/r_t_r_check_admin_command_status_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_check_admin_command_status_responses.go
@@ -49,6 +49,12 @@ func (o *RTRCheckAdminCommandStatusReader) ReadResponse(response runtime.ClientR
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRCheckAdminCommandStatusInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/entities/admin-command/v1] RTR-CheckAdminCommandStatus", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RTRCheckAdminCommandStatusTooManyRequests) readResponse(response runtim
return nil
}
+
+// NewRTRCheckAdminCommandStatusInternalServerError creates a RTRCheckAdminCommandStatusInternalServerError with default headers values
+func NewRTRCheckAdminCommandStatusInternalServerError() *RTRCheckAdminCommandStatusInternalServerError {
+ return &RTRCheckAdminCommandStatusInternalServerError{}
+}
+
+/*
+RTRCheckAdminCommandStatusInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRCheckAdminCommandStatusInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r check admin command status internal server error response has a 2xx status code
+func (o *RTRCheckAdminCommandStatusInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r check admin command status internal server error response has a 3xx status code
+func (o *RTRCheckAdminCommandStatusInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r check admin command status internal server error response has a 4xx status code
+func (o *RTRCheckAdminCommandStatusInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r check admin command status internal server error response has a 5xx status code
+func (o *RTRCheckAdminCommandStatusInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r check admin command status internal server error response a status code equal to that given
+func (o *RTRCheckAdminCommandStatusInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r check admin command status internal server error response
+func (o *RTRCheckAdminCommandStatusInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRCheckAdminCommandStatusInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/admin-command/v1][%d] rTRCheckAdminCommandStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRCheckAdminCommandStatusInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/admin-command/v1][%d] rTRCheckAdminCommandStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRCheckAdminCommandStatusInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRCheckAdminCommandStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_create_put_files_responses.go b/falcon/client/real_time_response_admin/r_t_r_create_put_files_responses.go
index 301057e9..427f4ae9 100644
--- a/falcon/client/real_time_response_admin/r_t_r_create_put_files_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_create_put_files_responses.go
@@ -49,6 +49,12 @@ func (o *RTRCreatePutFilesReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRCreatePutFilesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /real-time-response/entities/put-files/v1] RTR-CreatePut-Files", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RTRCreatePutFilesTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewRTRCreatePutFilesInternalServerError creates a RTRCreatePutFilesInternalServerError with default headers values
+func NewRTRCreatePutFilesInternalServerError() *RTRCreatePutFilesInternalServerError {
+ return &RTRCreatePutFilesInternalServerError{}
+}
+
+/*
+RTRCreatePutFilesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRCreatePutFilesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r create put files internal server error response has a 2xx status code
+func (o *RTRCreatePutFilesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r create put files internal server error response has a 3xx status code
+func (o *RTRCreatePutFilesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r create put files internal server error response has a 4xx status code
+func (o *RTRCreatePutFilesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r create put files internal server error response has a 5xx status code
+func (o *RTRCreatePutFilesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r create put files internal server error response a status code equal to that given
+func (o *RTRCreatePutFilesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r create put files internal server error response
+func (o *RTRCreatePutFilesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRCreatePutFilesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/put-files/v1][%d] rTRCreatePutFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRCreatePutFilesInternalServerError) String() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/put-files/v1][%d] rTRCreatePutFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRCreatePutFilesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRCreatePutFilesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_create_scripts_responses.go b/falcon/client/real_time_response_admin/r_t_r_create_scripts_responses.go
index f2720a62..c73765c8 100644
--- a/falcon/client/real_time_response_admin/r_t_r_create_scripts_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_create_scripts_responses.go
@@ -49,6 +49,12 @@ func (o *RTRCreateScriptsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRCreateScriptsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /real-time-response/entities/scripts/v1] RTR-CreateScripts", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RTRCreateScriptsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewRTRCreateScriptsInternalServerError creates a RTRCreateScriptsInternalServerError with default headers values
+func NewRTRCreateScriptsInternalServerError() *RTRCreateScriptsInternalServerError {
+ return &RTRCreateScriptsInternalServerError{}
+}
+
+/*
+RTRCreateScriptsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRCreateScriptsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r create scripts internal server error response has a 2xx status code
+func (o *RTRCreateScriptsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r create scripts internal server error response has a 3xx status code
+func (o *RTRCreateScriptsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r create scripts internal server error response has a 4xx status code
+func (o *RTRCreateScriptsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r create scripts internal server error response has a 5xx status code
+func (o *RTRCreateScriptsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r create scripts internal server error response a status code equal to that given
+func (o *RTRCreateScriptsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r create scripts internal server error response
+func (o *RTRCreateScriptsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRCreateScriptsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/scripts/v1][%d] rTRCreateScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRCreateScriptsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/scripts/v1][%d] rTRCreateScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRCreateScriptsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRCreateScriptsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_delete_put_files_responses.go b/falcon/client/real_time_response_admin/r_t_r_delete_put_files_responses.go
index f31f8fc8..04c14b6f 100644
--- a/falcon/client/real_time_response_admin/r_t_r_delete_put_files_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_delete_put_files_responses.go
@@ -55,6 +55,12 @@ func (o *RTRDeletePutFilesReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRDeletePutFilesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /real-time-response/entities/put-files/v1] RTR-DeletePut-Files", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRDeletePutFilesTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewRTRDeletePutFilesInternalServerError creates a RTRDeletePutFilesInternalServerError with default headers values
+func NewRTRDeletePutFilesInternalServerError() *RTRDeletePutFilesInternalServerError {
+ return &RTRDeletePutFilesInternalServerError{}
+}
+
+/*
+RTRDeletePutFilesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRDeletePutFilesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r delete put files internal server error response has a 2xx status code
+func (o *RTRDeletePutFilesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r delete put files internal server error response has a 3xx status code
+func (o *RTRDeletePutFilesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r delete put files internal server error response has a 4xx status code
+func (o *RTRDeletePutFilesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r delete put files internal server error response has a 5xx status code
+func (o *RTRDeletePutFilesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r delete put files internal server error response a status code equal to that given
+func (o *RTRDeletePutFilesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r delete put files internal server error response
+func (o *RTRDeletePutFilesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRDeletePutFilesInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/put-files/v1][%d] rTRDeletePutFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeletePutFilesInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/put-files/v1][%d] rTRDeletePutFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeletePutFilesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRDeletePutFilesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_delete_scripts_responses.go b/falcon/client/real_time_response_admin/r_t_r_delete_scripts_responses.go
index 12966cad..ce7dbc7f 100644
--- a/falcon/client/real_time_response_admin/r_t_r_delete_scripts_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_delete_scripts_responses.go
@@ -55,6 +55,12 @@ func (o *RTRDeleteScriptsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRDeleteScriptsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /real-time-response/entities/scripts/v1] RTR-DeleteScripts", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRDeleteScriptsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewRTRDeleteScriptsInternalServerError creates a RTRDeleteScriptsInternalServerError with default headers values
+func NewRTRDeleteScriptsInternalServerError() *RTRDeleteScriptsInternalServerError {
+ return &RTRDeleteScriptsInternalServerError{}
+}
+
+/*
+RTRDeleteScriptsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRDeleteScriptsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r delete scripts internal server error response has a 2xx status code
+func (o *RTRDeleteScriptsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r delete scripts internal server error response has a 3xx status code
+func (o *RTRDeleteScriptsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r delete scripts internal server error response has a 4xx status code
+func (o *RTRDeleteScriptsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r delete scripts internal server error response has a 5xx status code
+func (o *RTRDeleteScriptsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r delete scripts internal server error response a status code equal to that given
+func (o *RTRDeleteScriptsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r delete scripts internal server error response
+func (o *RTRDeleteScriptsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRDeleteScriptsInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/scripts/v1][%d] rTRDeleteScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeleteScriptsInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /real-time-response/entities/scripts/v1][%d] rTRDeleteScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRDeleteScriptsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRDeleteScriptsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_execute_admin_command_responses.go b/falcon/client/real_time_response_admin/r_t_r_execute_admin_command_responses.go
index 34437a5e..f034022e 100644
--- a/falcon/client/real_time_response_admin/r_t_r_execute_admin_command_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_execute_admin_command_responses.go
@@ -49,6 +49,12 @@ func (o *RTRExecuteAdminCommandReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRExecuteAdminCommandInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /real-time-response/entities/admin-command/v1] RTR-ExecuteAdminCommand", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RTRExecuteAdminCommandTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewRTRExecuteAdminCommandInternalServerError creates a RTRExecuteAdminCommandInternalServerError with default headers values
+func NewRTRExecuteAdminCommandInternalServerError() *RTRExecuteAdminCommandInternalServerError {
+ return &RTRExecuteAdminCommandInternalServerError{}
+}
+
+/*
+RTRExecuteAdminCommandInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRExecuteAdminCommandInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r execute admin command internal server error response has a 2xx status code
+func (o *RTRExecuteAdminCommandInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r execute admin command internal server error response has a 3xx status code
+func (o *RTRExecuteAdminCommandInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r execute admin command internal server error response has a 4xx status code
+func (o *RTRExecuteAdminCommandInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r execute admin command internal server error response has a 5xx status code
+func (o *RTRExecuteAdminCommandInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r execute admin command internal server error response a status code equal to that given
+func (o *RTRExecuteAdminCommandInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r execute admin command internal server error response
+func (o *RTRExecuteAdminCommandInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRExecuteAdminCommandInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/admin-command/v1][%d] rTRExecuteAdminCommandInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRExecuteAdminCommandInternalServerError) String() string {
+ return fmt.Sprintf("[POST /real-time-response/entities/admin-command/v1][%d] rTRExecuteAdminCommandInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRExecuteAdminCommandInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRExecuteAdminCommandInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_get_falcon_scripts_responses.go b/falcon/client/real_time_response_admin/r_t_r_get_falcon_scripts_responses.go
index 1e39b0e4..0476be24 100644
--- a/falcon/client/real_time_response_admin/r_t_r_get_falcon_scripts_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_get_falcon_scripts_responses.go
@@ -55,6 +55,12 @@ func (o *RTRGetFalconScriptsReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRGetFalconScriptsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/entities/falcon-scripts/v1] RTR-GetFalconScripts", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRGetFalconScriptsTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewRTRGetFalconScriptsInternalServerError creates a RTRGetFalconScriptsInternalServerError with default headers values
+func NewRTRGetFalconScriptsInternalServerError() *RTRGetFalconScriptsInternalServerError {
+ return &RTRGetFalconScriptsInternalServerError{}
+}
+
+/*
+RTRGetFalconScriptsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRGetFalconScriptsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r get falcon scripts internal server error response has a 2xx status code
+func (o *RTRGetFalconScriptsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r get falcon scripts internal server error response has a 3xx status code
+func (o *RTRGetFalconScriptsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r get falcon scripts internal server error response has a 4xx status code
+func (o *RTRGetFalconScriptsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r get falcon scripts internal server error response has a 5xx status code
+func (o *RTRGetFalconScriptsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r get falcon scripts internal server error response a status code equal to that given
+func (o *RTRGetFalconScriptsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r get falcon scripts internal server error response
+func (o *RTRGetFalconScriptsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRGetFalconScriptsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/falcon-scripts/v1][%d] rTRGetFalconScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRGetFalconScriptsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/falcon-scripts/v1][%d] rTRGetFalconScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRGetFalconScriptsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRGetFalconScriptsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_get_put_files_responses.go b/falcon/client/real_time_response_admin/r_t_r_get_put_files_responses.go
index d793e79e..5c7b28ec 100644
--- a/falcon/client/real_time_response_admin/r_t_r_get_put_files_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_get_put_files_responses.go
@@ -55,6 +55,12 @@ func (o *RTRGetPutFilesReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRGetPutFilesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/entities/put-files/v1] RTR-GetPut-Files", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRGetPutFilesTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewRTRGetPutFilesInternalServerError creates a RTRGetPutFilesInternalServerError with default headers values
+func NewRTRGetPutFilesInternalServerError() *RTRGetPutFilesInternalServerError {
+ return &RTRGetPutFilesInternalServerError{}
+}
+
+/*
+RTRGetPutFilesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRGetPutFilesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r get put files internal server error response has a 2xx status code
+func (o *RTRGetPutFilesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r get put files internal server error response has a 3xx status code
+func (o *RTRGetPutFilesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r get put files internal server error response has a 4xx status code
+func (o *RTRGetPutFilesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r get put files internal server error response has a 5xx status code
+func (o *RTRGetPutFilesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r get put files internal server error response a status code equal to that given
+func (o *RTRGetPutFilesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r get put files internal server error response
+func (o *RTRGetPutFilesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRGetPutFilesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/put-files/v1][%d] rTRGetPutFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRGetPutFilesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/put-files/v1][%d] rTRGetPutFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRGetPutFilesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRGetPutFilesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_get_put_files_v2_responses.go b/falcon/client/real_time_response_admin/r_t_r_get_put_files_v2_responses.go
index 28f99452..219985d5 100644
--- a/falcon/client/real_time_response_admin/r_t_r_get_put_files_v2_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_get_put_files_v2_responses.go
@@ -55,6 +55,12 @@ func (o *RTRGetPutFilesV2Reader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRGetPutFilesV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/entities/put-files/v2] RTR-GetPut-FilesV2", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRGetPutFilesV2TooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewRTRGetPutFilesV2InternalServerError creates a RTRGetPutFilesV2InternalServerError with default headers values
+func NewRTRGetPutFilesV2InternalServerError() *RTRGetPutFilesV2InternalServerError {
+ return &RTRGetPutFilesV2InternalServerError{}
+}
+
+/*
+RTRGetPutFilesV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRGetPutFilesV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r get put files v2 internal server error response has a 2xx status code
+func (o *RTRGetPutFilesV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r get put files v2 internal server error response has a 3xx status code
+func (o *RTRGetPutFilesV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r get put files v2 internal server error response has a 4xx status code
+func (o *RTRGetPutFilesV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r get put files v2 internal server error response has a 5xx status code
+func (o *RTRGetPutFilesV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r get put files v2 internal server error response a status code equal to that given
+func (o *RTRGetPutFilesV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r get put files v2 internal server error response
+func (o *RTRGetPutFilesV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRGetPutFilesV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/put-files/v2][%d] rTRGetPutFilesV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRGetPutFilesV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/put-files/v2][%d] rTRGetPutFilesV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRGetPutFilesV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRGetPutFilesV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_get_scripts_responses.go b/falcon/client/real_time_response_admin/r_t_r_get_scripts_responses.go
index 0d0ffb3d..51adeb05 100644
--- a/falcon/client/real_time_response_admin/r_t_r_get_scripts_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_get_scripts_responses.go
@@ -55,6 +55,12 @@ func (o *RTRGetScriptsReader) ReadResponse(response runtime.ClientResponse, cons
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRGetScriptsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/entities/scripts/v1] RTR-GetScripts", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRGetScriptsTooManyRequests) readResponse(response runtime.ClientRespo
return nil
}
+
+// NewRTRGetScriptsInternalServerError creates a RTRGetScriptsInternalServerError with default headers values
+func NewRTRGetScriptsInternalServerError() *RTRGetScriptsInternalServerError {
+ return &RTRGetScriptsInternalServerError{}
+}
+
+/*
+RTRGetScriptsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRGetScriptsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r get scripts internal server error response has a 2xx status code
+func (o *RTRGetScriptsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r get scripts internal server error response has a 3xx status code
+func (o *RTRGetScriptsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r get scripts internal server error response has a 4xx status code
+func (o *RTRGetScriptsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r get scripts internal server error response has a 5xx status code
+func (o *RTRGetScriptsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r get scripts internal server error response a status code equal to that given
+func (o *RTRGetScriptsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r get scripts internal server error response
+func (o *RTRGetScriptsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRGetScriptsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/scripts/v1][%d] rTRGetScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRGetScriptsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/scripts/v1][%d] rTRGetScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRGetScriptsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRGetScriptsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_get_scripts_v2_responses.go b/falcon/client/real_time_response_admin/r_t_r_get_scripts_v2_responses.go
index b953f00d..9da98b9e 100644
--- a/falcon/client/real_time_response_admin/r_t_r_get_scripts_v2_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_get_scripts_v2_responses.go
@@ -55,6 +55,12 @@ func (o *RTRGetScriptsV2Reader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRGetScriptsV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/entities/scripts/v2] RTR-GetScriptsV2", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRGetScriptsV2TooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewRTRGetScriptsV2InternalServerError creates a RTRGetScriptsV2InternalServerError with default headers values
+func NewRTRGetScriptsV2InternalServerError() *RTRGetScriptsV2InternalServerError {
+ return &RTRGetScriptsV2InternalServerError{}
+}
+
+/*
+RTRGetScriptsV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRGetScriptsV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r get scripts v2 internal server error response has a 2xx status code
+func (o *RTRGetScriptsV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r get scripts v2 internal server error response has a 3xx status code
+func (o *RTRGetScriptsV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r get scripts v2 internal server error response has a 4xx status code
+func (o *RTRGetScriptsV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r get scripts v2 internal server error response has a 5xx status code
+func (o *RTRGetScriptsV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r get scripts v2 internal server error response a status code equal to that given
+func (o *RTRGetScriptsV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r get scripts v2 internal server error response
+func (o *RTRGetScriptsV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRGetScriptsV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/scripts/v2][%d] rTRGetScriptsV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRGetScriptsV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/entities/scripts/v2][%d] rTRGetScriptsV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRGetScriptsV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRGetScriptsV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_list_falcon_scripts_responses.go b/falcon/client/real_time_response_admin/r_t_r_list_falcon_scripts_responses.go
index 652e4d37..2dbbceb1 100644
--- a/falcon/client/real_time_response_admin/r_t_r_list_falcon_scripts_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_list_falcon_scripts_responses.go
@@ -55,6 +55,12 @@ func (o *RTRListFalconScriptsReader) ReadResponse(response runtime.ClientRespons
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRListFalconScriptsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/queries/falcon-scripts/v1] RTR-ListFalconScripts", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRListFalconScriptsTooManyRequests) readResponse(response runtime.Clie
return nil
}
+
+// NewRTRListFalconScriptsInternalServerError creates a RTRListFalconScriptsInternalServerError with default headers values
+func NewRTRListFalconScriptsInternalServerError() *RTRListFalconScriptsInternalServerError {
+ return &RTRListFalconScriptsInternalServerError{}
+}
+
+/*
+RTRListFalconScriptsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRListFalconScriptsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r list falcon scripts internal server error response has a 2xx status code
+func (o *RTRListFalconScriptsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r list falcon scripts internal server error response has a 3xx status code
+func (o *RTRListFalconScriptsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r list falcon scripts internal server error response has a 4xx status code
+func (o *RTRListFalconScriptsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r list falcon scripts internal server error response has a 5xx status code
+func (o *RTRListFalconScriptsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r list falcon scripts internal server error response a status code equal to that given
+func (o *RTRListFalconScriptsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r list falcon scripts internal server error response
+func (o *RTRListFalconScriptsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRListFalconScriptsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/queries/falcon-scripts/v1][%d] rTRListFalconScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListFalconScriptsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/queries/falcon-scripts/v1][%d] rTRListFalconScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListFalconScriptsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRListFalconScriptsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_list_put_files_responses.go b/falcon/client/real_time_response_admin/r_t_r_list_put_files_responses.go
index d95dd1b9..ad34641c 100644
--- a/falcon/client/real_time_response_admin/r_t_r_list_put_files_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_list_put_files_responses.go
@@ -55,6 +55,12 @@ func (o *RTRListPutFilesReader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRListPutFilesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/queries/put-files/v1] RTR-ListPut-Files", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRListPutFilesTooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewRTRListPutFilesInternalServerError creates a RTRListPutFilesInternalServerError with default headers values
+func NewRTRListPutFilesInternalServerError() *RTRListPutFilesInternalServerError {
+ return &RTRListPutFilesInternalServerError{}
+}
+
+/*
+RTRListPutFilesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRListPutFilesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r list put files internal server error response has a 2xx status code
+func (o *RTRListPutFilesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r list put files internal server error response has a 3xx status code
+func (o *RTRListPutFilesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r list put files internal server error response has a 4xx status code
+func (o *RTRListPutFilesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r list put files internal server error response has a 5xx status code
+func (o *RTRListPutFilesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r list put files internal server error response a status code equal to that given
+func (o *RTRListPutFilesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r list put files internal server error response
+func (o *RTRListPutFilesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRListPutFilesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/queries/put-files/v1][%d] rTRListPutFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListPutFilesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/queries/put-files/v1][%d] rTRListPutFilesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListPutFilesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRListPutFilesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_list_scripts_responses.go b/falcon/client/real_time_response_admin/r_t_r_list_scripts_responses.go
index af52c5a8..9a08866b 100644
--- a/falcon/client/real_time_response_admin/r_t_r_list_scripts_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_list_scripts_responses.go
@@ -55,6 +55,12 @@ func (o *RTRListScriptsReader) ReadResponse(response runtime.ClientResponse, con
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRListScriptsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response/queries/scripts/v1] RTR-ListScripts", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRListScriptsTooManyRequests) readResponse(response runtime.ClientResp
return nil
}
+
+// NewRTRListScriptsInternalServerError creates a RTRListScriptsInternalServerError with default headers values
+func NewRTRListScriptsInternalServerError() *RTRListScriptsInternalServerError {
+ return &RTRListScriptsInternalServerError{}
+}
+
+/*
+RTRListScriptsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRListScriptsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r list scripts internal server error response has a 2xx status code
+func (o *RTRListScriptsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r list scripts internal server error response has a 3xx status code
+func (o *RTRListScriptsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r list scripts internal server error response has a 4xx status code
+func (o *RTRListScriptsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r list scripts internal server error response has a 5xx status code
+func (o *RTRListScriptsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r list scripts internal server error response a status code equal to that given
+func (o *RTRListScriptsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r list scripts internal server error response
+func (o *RTRListScriptsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRListScriptsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response/queries/scripts/v1][%d] rTRListScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListScriptsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response/queries/scripts/v1][%d] rTRListScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRListScriptsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRListScriptsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_admin/r_t_r_update_scripts_responses.go b/falcon/client/real_time_response_admin/r_t_r_update_scripts_responses.go
index 24772757..4486c118 100644
--- a/falcon/client/real_time_response_admin/r_t_r_update_scripts_responses.go
+++ b/falcon/client/real_time_response_admin/r_t_r_update_scripts_responses.go
@@ -49,6 +49,12 @@ func (o *RTRUpdateScriptsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRUpdateScriptsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /real-time-response/entities/scripts/v1] RTR-UpdateScripts", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RTRUpdateScriptsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewRTRUpdateScriptsInternalServerError creates a RTRUpdateScriptsInternalServerError with default headers values
+func NewRTRUpdateScriptsInternalServerError() *RTRUpdateScriptsInternalServerError {
+ return &RTRUpdateScriptsInternalServerError{}
+}
+
+/*
+RTRUpdateScriptsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRUpdateScriptsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r update scripts internal server error response has a 2xx status code
+func (o *RTRUpdateScriptsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r update scripts internal server error response has a 3xx status code
+func (o *RTRUpdateScriptsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r update scripts internal server error response has a 4xx status code
+func (o *RTRUpdateScriptsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r update scripts internal server error response has a 5xx status code
+func (o *RTRUpdateScriptsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r update scripts internal server error response a status code equal to that given
+func (o *RTRUpdateScriptsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r update scripts internal server error response
+func (o *RTRUpdateScriptsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRUpdateScriptsInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /real-time-response/entities/scripts/v1][%d] rTRUpdateScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRUpdateScriptsInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /real-time-response/entities/scripts/v1][%d] rTRUpdateScriptsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRUpdateScriptsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRUpdateScriptsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/real_time_response_audit/r_t_r_audit_sessions_responses.go b/falcon/client/real_time_response_audit/r_t_r_audit_sessions_responses.go
index 6bfa4ff4..da129fca 100644
--- a/falcon/client/real_time_response_audit/r_t_r_audit_sessions_responses.go
+++ b/falcon/client/real_time_response_audit/r_t_r_audit_sessions_responses.go
@@ -55,6 +55,12 @@ func (o *RTRAuditSessionsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewRTRAuditSessionsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /real-time-response-audit/combined/sessions/v1] RTRAuditSessions", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RTRAuditSessionsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewRTRAuditSessionsInternalServerError creates a RTRAuditSessionsInternalServerError with default headers values
+func NewRTRAuditSessionsInternalServerError() *RTRAuditSessionsInternalServerError {
+ return &RTRAuditSessionsInternalServerError{}
+}
+
+/*
+RTRAuditSessionsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RTRAuditSessionsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this r t r audit sessions internal server error response has a 2xx status code
+func (o *RTRAuditSessionsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this r t r audit sessions internal server error response has a 3xx status code
+func (o *RTRAuditSessionsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this r t r audit sessions internal server error response has a 4xx status code
+func (o *RTRAuditSessionsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this r t r audit sessions internal server error response has a 5xx status code
+func (o *RTRAuditSessionsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this r t r audit sessions internal server error response a status code equal to that given
+func (o *RTRAuditSessionsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the r t r audit sessions internal server error response
+func (o *RTRAuditSessionsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RTRAuditSessionsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /real-time-response-audit/combined/sessions/v1][%d] rTRAuditSessionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRAuditSessionsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /real-time-response-audit/combined/sessions/v1][%d] rTRAuditSessionsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RTRAuditSessionsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RTRAuditSessionsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/recon/recon_client.go b/falcon/client/recon/recon_client.go
index 5228f831..dbab1e58 100644
--- a/falcon/client/recon/recon_client.go
+++ b/falcon/client/recon/recon_client.go
@@ -515,7 +515,7 @@ func (a *Client) GetFileContentForExportJobsV1(params *GetFileContentForExportJo
ID: "GetFileContentForExportJobsV1",
Method: "GET",
PathPattern: "/recon/entities/export-files/v1",
- ProducesMediaTypes: []string{"application/octet-stream"},
+ ProducesMediaTypes: []string{"application/json", "application/octet-stream"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/falcon/client/report_executions/report_executions_client.go b/falcon/client/report_executions/report_executions_client.go
index 19e89383..9a3596c3 100644
--- a/falcon/client/report_executions/report_executions_client.go
+++ b/falcon/client/report_executions/report_executions_client.go
@@ -53,7 +53,7 @@ func (a *Client) ReportExecutionsDownloadGet(params *ReportExecutionsDownloadGet
ID: "report-executions-download.get",
Method: "GET",
PathPattern: "/reports/entities/report-executions-download/v1",
- ProducesMediaTypes: []string{"*/*"},
+ ProducesMediaTypes: []string{"*/*", "application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/falcon/client/report_executions/report_executions_get_responses.go b/falcon/client/report_executions/report_executions_get_responses.go
index 3a80f266..c5b0aa23 100644
--- a/falcon/client/report_executions/report_executions_get_responses.go
+++ b/falcon/client/report_executions/report_executions_get_responses.go
@@ -49,6 +49,12 @@ func (o *ReportExecutionsGetReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewReportExecutionsGetInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /reports/entities/report-executions/v1] report-executions.get", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *ReportExecutionsGetTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewReportExecutionsGetInternalServerError creates a ReportExecutionsGetInternalServerError with default headers values
+func NewReportExecutionsGetInternalServerError() *ReportExecutionsGetInternalServerError {
+ return &ReportExecutionsGetInternalServerError{}
+}
+
+/*
+ReportExecutionsGetInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ReportExecutionsGetInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this report executions get internal server error response has a 2xx status code
+func (o *ReportExecutionsGetInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this report executions get internal server error response has a 3xx status code
+func (o *ReportExecutionsGetInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this report executions get internal server error response has a 4xx status code
+func (o *ReportExecutionsGetInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this report executions get internal server error response has a 5xx status code
+func (o *ReportExecutionsGetInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this report executions get internal server error response a status code equal to that given
+func (o *ReportExecutionsGetInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the report executions get internal server error response
+func (o *ReportExecutionsGetInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ReportExecutionsGetInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /reports/entities/report-executions/v1][%d] reportExecutionsGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ReportExecutionsGetInternalServerError) String() string {
+ return fmt.Sprintf("[GET /reports/entities/report-executions/v1][%d] reportExecutionsGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ReportExecutionsGetInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ReportExecutionsGetInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/report_executions/report_executions_query_responses.go b/falcon/client/report_executions/report_executions_query_responses.go
index 2a52e985..d04bac97 100644
--- a/falcon/client/report_executions/report_executions_query_responses.go
+++ b/falcon/client/report_executions/report_executions_query_responses.go
@@ -49,6 +49,12 @@ func (o *ReportExecutionsQueryReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewReportExecutionsQueryInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /reports/queries/report-executions/v1] report-executions.query", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *ReportExecutionsQueryTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewReportExecutionsQueryInternalServerError creates a ReportExecutionsQueryInternalServerError with default headers values
+func NewReportExecutionsQueryInternalServerError() *ReportExecutionsQueryInternalServerError {
+ return &ReportExecutionsQueryInternalServerError{}
+}
+
+/*
+ReportExecutionsQueryInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ReportExecutionsQueryInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this report executions query internal server error response has a 2xx status code
+func (o *ReportExecutionsQueryInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this report executions query internal server error response has a 3xx status code
+func (o *ReportExecutionsQueryInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this report executions query internal server error response has a 4xx status code
+func (o *ReportExecutionsQueryInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this report executions query internal server error response has a 5xx status code
+func (o *ReportExecutionsQueryInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this report executions query internal server error response a status code equal to that given
+func (o *ReportExecutionsQueryInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the report executions query internal server error response
+func (o *ReportExecutionsQueryInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ReportExecutionsQueryInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /reports/queries/report-executions/v1][%d] reportExecutionsQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ReportExecutionsQueryInternalServerError) String() string {
+ return fmt.Sprintf("[GET /reports/queries/report-executions/v1][%d] reportExecutionsQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ReportExecutionsQueryInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ReportExecutionsQueryInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/report_executions/report_executions_retry_responses.go b/falcon/client/report_executions/report_executions_retry_responses.go
index daa8cad1..5f4df080 100644
--- a/falcon/client/report_executions/report_executions_retry_responses.go
+++ b/falcon/client/report_executions/report_executions_retry_responses.go
@@ -49,6 +49,12 @@ func (o *ReportExecutionsRetryReader) ReadResponse(response runtime.ClientRespon
return nil, err
}
return nil, result
+ case 500:
+ result := NewReportExecutionsRetryInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /reports/entities/report-executions-retry/v1] report-executions.retry", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *ReportExecutionsRetryTooManyRequests) readResponse(response runtime.Cli
return nil
}
+
+// NewReportExecutionsRetryInternalServerError creates a ReportExecutionsRetryInternalServerError with default headers values
+func NewReportExecutionsRetryInternalServerError() *ReportExecutionsRetryInternalServerError {
+ return &ReportExecutionsRetryInternalServerError{}
+}
+
+/*
+ReportExecutionsRetryInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ReportExecutionsRetryInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this report executions retry internal server error response has a 2xx status code
+func (o *ReportExecutionsRetryInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this report executions retry internal server error response has a 3xx status code
+func (o *ReportExecutionsRetryInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this report executions retry internal server error response has a 4xx status code
+func (o *ReportExecutionsRetryInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this report executions retry internal server error response has a 5xx status code
+func (o *ReportExecutionsRetryInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this report executions retry internal server error response a status code equal to that given
+func (o *ReportExecutionsRetryInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the report executions retry internal server error response
+func (o *ReportExecutionsRetryInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ReportExecutionsRetryInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /reports/entities/report-executions-retry/v1][%d] reportExecutionsRetryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ReportExecutionsRetryInternalServerError) String() string {
+ return fmt.Sprintf("[POST /reports/entities/report-executions-retry/v1][%d] reportExecutionsRetryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ReportExecutionsRetryInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ReportExecutionsRetryInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/scheduled_reports/execute_responses.go b/falcon/client/scheduled_reports/execute_responses.go
index 59f76df5..2d9bcfdb 100644
--- a/falcon/client/scheduled_reports/execute_responses.go
+++ b/falcon/client/scheduled_reports/execute_responses.go
@@ -49,6 +49,12 @@ func (o *ExecuteReader) ReadResponse(response runtime.ClientResponse, consumer r
return nil, err
}
return nil, result
+ case 500:
+ result := NewExecuteInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /reports/entities/scheduled-reports/execution/v1] Execute", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *ExecuteTooManyRequests) readResponse(response runtime.ClientResponse, c
return nil
}
+
+// NewExecuteInternalServerError creates a ExecuteInternalServerError with default headers values
+func NewExecuteInternalServerError() *ExecuteInternalServerError {
+ return &ExecuteInternalServerError{}
+}
+
+/*
+ExecuteInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type ExecuteInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this execute internal server error response has a 2xx status code
+func (o *ExecuteInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute internal server error response has a 3xx status code
+func (o *ExecuteInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute internal server error response has a 4xx status code
+func (o *ExecuteInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this execute internal server error response has a 5xx status code
+func (o *ExecuteInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this execute internal server error response a status code equal to that given
+func (o *ExecuteInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the execute internal server error response
+func (o *ExecuteInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ExecuteInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /reports/entities/scheduled-reports/execution/v1][%d] executeInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ExecuteInternalServerError) String() string {
+ return fmt.Sprintf("[POST /reports/entities/scheduled-reports/execution/v1][%d] executeInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ExecuteInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *ExecuteInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/scheduled_reports/query_by_id_responses.go b/falcon/client/scheduled_reports/query_by_id_responses.go
index 9d0a81ae..26061845 100644
--- a/falcon/client/scheduled_reports/query_by_id_responses.go
+++ b/falcon/client/scheduled_reports/query_by_id_responses.go
@@ -49,6 +49,12 @@ func (o *QueryByIDReader) ReadResponse(response runtime.ClientResponse, consumer
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryByIDInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /reports/entities/scheduled-reports/v1] QueryById", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryByIDTooManyRequests) readResponse(response runtime.ClientResponse,
return nil
}
+
+// NewQueryByIDInternalServerError creates a QueryByIDInternalServerError with default headers values
+func NewQueryByIDInternalServerError() *QueryByIDInternalServerError {
+ return &QueryByIDInternalServerError{}
+}
+
+/*
+QueryByIDInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryByIDInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query by Id internal server error response has a 2xx status code
+func (o *QueryByIDInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query by Id internal server error response has a 3xx status code
+func (o *QueryByIDInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query by Id internal server error response has a 4xx status code
+func (o *QueryByIDInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query by Id internal server error response has a 5xx status code
+func (o *QueryByIDInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query by Id internal server error response a status code equal to that given
+func (o *QueryByIDInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query by Id internal server error response
+func (o *QueryByIDInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryByIDInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /reports/entities/scheduled-reports/v1][%d] queryByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryByIDInternalServerError) String() string {
+ return fmt.Sprintf("[GET /reports/entities/scheduled-reports/v1][%d] queryByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryByIDInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryByIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/scheduled_reports/query_responses.go b/falcon/client/scheduled_reports/query_responses.go
index 4cecf0e0..581b8037 100644
--- a/falcon/client/scheduled_reports/query_responses.go
+++ b/falcon/client/scheduled_reports/query_responses.go
@@ -49,6 +49,12 @@ func (o *QueryReader) ReadResponse(response runtime.ClientResponse, consumer run
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueryInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /reports/queries/scheduled-reports/v1] Query", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *QueryTooManyRequests) readResponse(response runtime.ClientResponse, con
return nil
}
+
+// NewQueryInternalServerError creates a QueryInternalServerError with default headers values
+func NewQueryInternalServerError() *QueryInternalServerError {
+ return &QueryInternalServerError{}
+}
+
+/*
+QueryInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueryInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this query internal server error response has a 2xx status code
+func (o *QueryInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this query internal server error response has a 3xx status code
+func (o *QueryInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this query internal server error response has a 4xx status code
+func (o *QueryInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this query internal server error response has a 5xx status code
+func (o *QueryInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this query internal server error response a status code equal to that given
+func (o *QueryInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the query internal server error response
+func (o *QueryInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueryInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /reports/queries/scheduled-reports/v1][%d] queryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryInternalServerError) String() string {
+ return fmt.Sprintf("[GET /reports/queries/scheduled-reports/v1][%d] queryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueryInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueryInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_download/download_sensor_installer_by_id_responses.go b/falcon/client/sensor_download/download_sensor_installer_by_id_responses.go
index 16141f33..5f27f13b 100644
--- a/falcon/client/sensor_download/download_sensor_installer_by_id_responses.go
+++ b/falcon/client/sensor_download/download_sensor_installer_by_id_responses.go
@@ -56,6 +56,12 @@ func (o *DownloadSensorInstallerByIDReader) ReadResponse(response runtime.Client
return nil, err
}
return nil, result
+ case 500:
+ result := NewDownloadSensorInstallerByIDInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /sensors/entities/download-installer/v1] DownloadSensorInstallerById", response, response.Code())
}
@@ -626,3 +632,113 @@ func (o *DownloadSensorInstallerByIDTooManyRequests) readResponse(response runti
return nil
}
+
+// NewDownloadSensorInstallerByIDInternalServerError creates a DownloadSensorInstallerByIDInternalServerError with default headers values
+func NewDownloadSensorInstallerByIDInternalServerError() *DownloadSensorInstallerByIDInternalServerError {
+ return &DownloadSensorInstallerByIDInternalServerError{}
+}
+
+/*
+DownloadSensorInstallerByIDInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DownloadSensorInstallerByIDInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this download sensor installer by Id internal server error response has a 2xx status code
+func (o *DownloadSensorInstallerByIDInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download sensor installer by Id internal server error response has a 3xx status code
+func (o *DownloadSensorInstallerByIDInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download sensor installer by Id internal server error response has a 4xx status code
+func (o *DownloadSensorInstallerByIDInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this download sensor installer by Id internal server error response has a 5xx status code
+func (o *DownloadSensorInstallerByIDInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this download sensor installer by Id internal server error response a status code equal to that given
+func (o *DownloadSensorInstallerByIDInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the download sensor installer by Id internal server error response
+func (o *DownloadSensorInstallerByIDInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DownloadSensorInstallerByIDInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /sensors/entities/download-installer/v1][%d] downloadSensorInstallerByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DownloadSensorInstallerByIDInternalServerError) String() string {
+ return fmt.Sprintf("[GET /sensors/entities/download-installer/v1][%d] downloadSensorInstallerByIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DownloadSensorInstallerByIDInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DownloadSensorInstallerByIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_download/download_sensor_installer_by_id_v2_responses.go b/falcon/client/sensor_download/download_sensor_installer_by_id_v2_responses.go
index 48a566bb..0b84c18e 100644
--- a/falcon/client/sensor_download/download_sensor_installer_by_id_v2_responses.go
+++ b/falcon/client/sensor_download/download_sensor_installer_by_id_v2_responses.go
@@ -56,6 +56,12 @@ func (o *DownloadSensorInstallerByIDV2Reader) ReadResponse(response runtime.Clie
return nil, err
}
return nil, result
+ case 500:
+ result := NewDownloadSensorInstallerByIDV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /sensors/entities/download-installer/v2] DownloadSensorInstallerByIdV2", response, response.Code())
}
@@ -626,3 +632,113 @@ func (o *DownloadSensorInstallerByIDV2TooManyRequests) readResponse(response run
return nil
}
+
+// NewDownloadSensorInstallerByIDV2InternalServerError creates a DownloadSensorInstallerByIDV2InternalServerError with default headers values
+func NewDownloadSensorInstallerByIDV2InternalServerError() *DownloadSensorInstallerByIDV2InternalServerError {
+ return &DownloadSensorInstallerByIDV2InternalServerError{}
+}
+
+/*
+DownloadSensorInstallerByIDV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DownloadSensorInstallerByIDV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this download sensor installer by Id v2 internal server error response has a 2xx status code
+func (o *DownloadSensorInstallerByIDV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this download sensor installer by Id v2 internal server error response has a 3xx status code
+func (o *DownloadSensorInstallerByIDV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this download sensor installer by Id v2 internal server error response has a 4xx status code
+func (o *DownloadSensorInstallerByIDV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this download sensor installer by Id v2 internal server error response has a 5xx status code
+func (o *DownloadSensorInstallerByIDV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this download sensor installer by Id v2 internal server error response a status code equal to that given
+func (o *DownloadSensorInstallerByIDV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the download sensor installer by Id v2 internal server error response
+func (o *DownloadSensorInstallerByIDV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *DownloadSensorInstallerByIDV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /sensors/entities/download-installer/v2][%d] downloadSensorInstallerByIdV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DownloadSensorInstallerByIDV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /sensors/entities/download-installer/v2][%d] downloadSensorInstallerByIdV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DownloadSensorInstallerByIDV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DownloadSensorInstallerByIDV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_download/get_combined_sensor_installers_by_query_responses.go b/falcon/client/sensor_download/get_combined_sensor_installers_by_query_responses.go
index 15faa2d8..a190a3f7 100644
--- a/falcon/client/sensor_download/get_combined_sensor_installers_by_query_responses.go
+++ b/falcon/client/sensor_download/get_combined_sensor_installers_by_query_responses.go
@@ -49,6 +49,12 @@ func (o *GetCombinedSensorInstallersByQueryReader) ReadResponse(response runtime
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetCombinedSensorInstallersByQueryInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /sensors/combined/installers/v1] GetCombinedSensorInstallersByQuery", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetCombinedSensorInstallersByQueryTooManyRequests) readResponse(respons
return nil
}
+
+// NewGetCombinedSensorInstallersByQueryInternalServerError creates a GetCombinedSensorInstallersByQueryInternalServerError with default headers values
+func NewGetCombinedSensorInstallersByQueryInternalServerError() *GetCombinedSensorInstallersByQueryInternalServerError {
+ return &GetCombinedSensorInstallersByQueryInternalServerError{}
+}
+
+/*
+GetCombinedSensorInstallersByQueryInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetCombinedSensorInstallersByQueryInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get combined sensor installers by query internal server error response has a 2xx status code
+func (o *GetCombinedSensorInstallersByQueryInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get combined sensor installers by query internal server error response has a 3xx status code
+func (o *GetCombinedSensorInstallersByQueryInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get combined sensor installers by query internal server error response has a 4xx status code
+func (o *GetCombinedSensorInstallersByQueryInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get combined sensor installers by query internal server error response has a 5xx status code
+func (o *GetCombinedSensorInstallersByQueryInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get combined sensor installers by query internal server error response a status code equal to that given
+func (o *GetCombinedSensorInstallersByQueryInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get combined sensor installers by query internal server error response
+func (o *GetCombinedSensorInstallersByQueryInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetCombinedSensorInstallersByQueryInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /sensors/combined/installers/v1][%d] getCombinedSensorInstallersByQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCombinedSensorInstallersByQueryInternalServerError) String() string {
+ return fmt.Sprintf("[GET /sensors/combined/installers/v1][%d] getCombinedSensorInstallersByQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCombinedSensorInstallersByQueryInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetCombinedSensorInstallersByQueryInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_download/get_combined_sensor_installers_by_query_v2_responses.go b/falcon/client/sensor_download/get_combined_sensor_installers_by_query_v2_responses.go
index 24cacfd7..477f820c 100644
--- a/falcon/client/sensor_download/get_combined_sensor_installers_by_query_v2_responses.go
+++ b/falcon/client/sensor_download/get_combined_sensor_installers_by_query_v2_responses.go
@@ -49,6 +49,12 @@ func (o *GetCombinedSensorInstallersByQueryV2Reader) ReadResponse(response runti
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetCombinedSensorInstallersByQueryV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /sensors/combined/installers/v2] GetCombinedSensorInstallersByQueryV2", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetCombinedSensorInstallersByQueryV2TooManyRequests) readResponse(respo
return nil
}
+
+// NewGetCombinedSensorInstallersByQueryV2InternalServerError creates a GetCombinedSensorInstallersByQueryV2InternalServerError with default headers values
+func NewGetCombinedSensorInstallersByQueryV2InternalServerError() *GetCombinedSensorInstallersByQueryV2InternalServerError {
+ return &GetCombinedSensorInstallersByQueryV2InternalServerError{}
+}
+
+/*
+GetCombinedSensorInstallersByQueryV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetCombinedSensorInstallersByQueryV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get combined sensor installers by query v2 internal server error response has a 2xx status code
+func (o *GetCombinedSensorInstallersByQueryV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get combined sensor installers by query v2 internal server error response has a 3xx status code
+func (o *GetCombinedSensorInstallersByQueryV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get combined sensor installers by query v2 internal server error response has a 4xx status code
+func (o *GetCombinedSensorInstallersByQueryV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get combined sensor installers by query v2 internal server error response has a 5xx status code
+func (o *GetCombinedSensorInstallersByQueryV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get combined sensor installers by query v2 internal server error response a status code equal to that given
+func (o *GetCombinedSensorInstallersByQueryV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get combined sensor installers by query v2 internal server error response
+func (o *GetCombinedSensorInstallersByQueryV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetCombinedSensorInstallersByQueryV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /sensors/combined/installers/v2][%d] getCombinedSensorInstallersByQueryV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCombinedSensorInstallersByQueryV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /sensors/combined/installers/v2][%d] getCombinedSensorInstallersByQueryV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetCombinedSensorInstallersByQueryV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetCombinedSensorInstallersByQueryV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_download/get_sensor_installers_by_query_responses.go b/falcon/client/sensor_download/get_sensor_installers_by_query_responses.go
index 89476b30..bec6fd77 100644
--- a/falcon/client/sensor_download/get_sensor_installers_by_query_responses.go
+++ b/falcon/client/sensor_download/get_sensor_installers_by_query_responses.go
@@ -49,6 +49,12 @@ func (o *GetSensorInstallersByQueryReader) ReadResponse(response runtime.ClientR
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetSensorInstallersByQueryInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /sensors/queries/installers/v1] GetSensorInstallersByQuery", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetSensorInstallersByQueryTooManyRequests) readResponse(response runtim
return nil
}
+
+// NewGetSensorInstallersByQueryInternalServerError creates a GetSensorInstallersByQueryInternalServerError with default headers values
+func NewGetSensorInstallersByQueryInternalServerError() *GetSensorInstallersByQueryInternalServerError {
+ return &GetSensorInstallersByQueryInternalServerError{}
+}
+
+/*
+GetSensorInstallersByQueryInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetSensorInstallersByQueryInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get sensor installers by query internal server error response has a 2xx status code
+func (o *GetSensorInstallersByQueryInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor installers by query internal server error response has a 3xx status code
+func (o *GetSensorInstallersByQueryInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor installers by query internal server error response has a 4xx status code
+func (o *GetSensorInstallersByQueryInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get sensor installers by query internal server error response has a 5xx status code
+func (o *GetSensorInstallersByQueryInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get sensor installers by query internal server error response a status code equal to that given
+func (o *GetSensorInstallersByQueryInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get sensor installers by query internal server error response
+func (o *GetSensorInstallersByQueryInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetSensorInstallersByQueryInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /sensors/queries/installers/v1][%d] getSensorInstallersByQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorInstallersByQueryInternalServerError) String() string {
+ return fmt.Sprintf("[GET /sensors/queries/installers/v1][%d] getSensorInstallersByQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorInstallersByQueryInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetSensorInstallersByQueryInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_download/get_sensor_installers_by_query_v2_responses.go b/falcon/client/sensor_download/get_sensor_installers_by_query_v2_responses.go
index d36eec72..34b04887 100644
--- a/falcon/client/sensor_download/get_sensor_installers_by_query_v2_responses.go
+++ b/falcon/client/sensor_download/get_sensor_installers_by_query_v2_responses.go
@@ -49,6 +49,12 @@ func (o *GetSensorInstallersByQueryV2Reader) ReadResponse(response runtime.Clien
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetSensorInstallersByQueryV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /sensors/queries/installers/v2] GetSensorInstallersByQueryV2", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetSensorInstallersByQueryV2TooManyRequests) readResponse(response runt
return nil
}
+
+// NewGetSensorInstallersByQueryV2InternalServerError creates a GetSensorInstallersByQueryV2InternalServerError with default headers values
+func NewGetSensorInstallersByQueryV2InternalServerError() *GetSensorInstallersByQueryV2InternalServerError {
+ return &GetSensorInstallersByQueryV2InternalServerError{}
+}
+
+/*
+GetSensorInstallersByQueryV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetSensorInstallersByQueryV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get sensor installers by query v2 internal server error response has a 2xx status code
+func (o *GetSensorInstallersByQueryV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor installers by query v2 internal server error response has a 3xx status code
+func (o *GetSensorInstallersByQueryV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor installers by query v2 internal server error response has a 4xx status code
+func (o *GetSensorInstallersByQueryV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get sensor installers by query v2 internal server error response has a 5xx status code
+func (o *GetSensorInstallersByQueryV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get sensor installers by query v2 internal server error response a status code equal to that given
+func (o *GetSensorInstallersByQueryV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get sensor installers by query v2 internal server error response
+func (o *GetSensorInstallersByQueryV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetSensorInstallersByQueryV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /sensors/queries/installers/v2][%d] getSensorInstallersByQueryV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorInstallersByQueryV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /sensors/queries/installers/v2][%d] getSensorInstallersByQueryV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorInstallersByQueryV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetSensorInstallersByQueryV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_download/get_sensor_installers_c_c_id_by_query_responses.go b/falcon/client/sensor_download/get_sensor_installers_c_c_id_by_query_responses.go
index f29724e3..56f2f011 100644
--- a/falcon/client/sensor_download/get_sensor_installers_c_c_id_by_query_responses.go
+++ b/falcon/client/sensor_download/get_sensor_installers_c_c_id_by_query_responses.go
@@ -49,6 +49,12 @@ func (o *GetSensorInstallersCCIDByQueryReader) ReadResponse(response runtime.Cli
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetSensorInstallersCCIDByQueryInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /sensors/queries/installers/ccid/v1] GetSensorInstallersCCIDByQuery", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetSensorInstallersCCIDByQueryTooManyRequests) readResponse(response ru
return nil
}
+
+// NewGetSensorInstallersCCIDByQueryInternalServerError creates a GetSensorInstallersCCIDByQueryInternalServerError with default headers values
+func NewGetSensorInstallersCCIDByQueryInternalServerError() *GetSensorInstallersCCIDByQueryInternalServerError {
+ return &GetSensorInstallersCCIDByQueryInternalServerError{}
+}
+
+/*
+GetSensorInstallersCCIDByQueryInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetSensorInstallersCCIDByQueryInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get sensor installers c c Id by query internal server error response has a 2xx status code
+func (o *GetSensorInstallersCCIDByQueryInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor installers c c Id by query internal server error response has a 3xx status code
+func (o *GetSensorInstallersCCIDByQueryInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor installers c c Id by query internal server error response has a 4xx status code
+func (o *GetSensorInstallersCCIDByQueryInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get sensor installers c c Id by query internal server error response has a 5xx status code
+func (o *GetSensorInstallersCCIDByQueryInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get sensor installers c c Id by query internal server error response a status code equal to that given
+func (o *GetSensorInstallersCCIDByQueryInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get sensor installers c c Id by query internal server error response
+func (o *GetSensorInstallersCCIDByQueryInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetSensorInstallersCCIDByQueryInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /sensors/queries/installers/ccid/v1][%d] getSensorInstallersCCIdByQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorInstallersCCIDByQueryInternalServerError) String() string {
+ return fmt.Sprintf("[GET /sensors/queries/installers/ccid/v1][%d] getSensorInstallersCCIdByQueryInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorInstallersCCIDByQueryInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetSensorInstallersCCIDByQueryInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_download/get_sensor_installers_entities_responses.go b/falcon/client/sensor_download/get_sensor_installers_entities_responses.go
index 70d7fa7f..7ab76d8b 100644
--- a/falcon/client/sensor_download/get_sensor_installers_entities_responses.go
+++ b/falcon/client/sensor_download/get_sensor_installers_entities_responses.go
@@ -61,6 +61,12 @@ func (o *GetSensorInstallersEntitiesReader) ReadResponse(response runtime.Client
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetSensorInstallersEntitiesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /sensors/entities/installers/v1] GetSensorInstallersEntities", response, response.Code())
}
@@ -740,3 +746,113 @@ func (o *GetSensorInstallersEntitiesTooManyRequests) readResponse(response runti
return nil
}
+
+// NewGetSensorInstallersEntitiesInternalServerError creates a GetSensorInstallersEntitiesInternalServerError with default headers values
+func NewGetSensorInstallersEntitiesInternalServerError() *GetSensorInstallersEntitiesInternalServerError {
+ return &GetSensorInstallersEntitiesInternalServerError{}
+}
+
+/*
+GetSensorInstallersEntitiesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetSensorInstallersEntitiesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get sensor installers entities internal server error response has a 2xx status code
+func (o *GetSensorInstallersEntitiesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor installers entities internal server error response has a 3xx status code
+func (o *GetSensorInstallersEntitiesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor installers entities internal server error response has a 4xx status code
+func (o *GetSensorInstallersEntitiesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get sensor installers entities internal server error response has a 5xx status code
+func (o *GetSensorInstallersEntitiesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get sensor installers entities internal server error response a status code equal to that given
+func (o *GetSensorInstallersEntitiesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get sensor installers entities internal server error response
+func (o *GetSensorInstallersEntitiesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetSensorInstallersEntitiesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /sensors/entities/installers/v1][%d] getSensorInstallersEntitiesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorInstallersEntitiesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /sensors/entities/installers/v1][%d] getSensorInstallersEntitiesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorInstallersEntitiesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetSensorInstallersEntitiesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_download/get_sensor_installers_entities_v2_responses.go b/falcon/client/sensor_download/get_sensor_installers_entities_v2_responses.go
index 49cbacbb..303b7496 100644
--- a/falcon/client/sensor_download/get_sensor_installers_entities_v2_responses.go
+++ b/falcon/client/sensor_download/get_sensor_installers_entities_v2_responses.go
@@ -61,6 +61,12 @@ func (o *GetSensorInstallersEntitiesV2Reader) ReadResponse(response runtime.Clie
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetSensorInstallersEntitiesV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /sensors/entities/installers/v2] GetSensorInstallersEntitiesV2", response, response.Code())
}
@@ -740,3 +746,113 @@ func (o *GetSensorInstallersEntitiesV2TooManyRequests) readResponse(response run
return nil
}
+
+// NewGetSensorInstallersEntitiesV2InternalServerError creates a GetSensorInstallersEntitiesV2InternalServerError with default headers values
+func NewGetSensorInstallersEntitiesV2InternalServerError() *GetSensorInstallersEntitiesV2InternalServerError {
+ return &GetSensorInstallersEntitiesV2InternalServerError{}
+}
+
+/*
+GetSensorInstallersEntitiesV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetSensorInstallersEntitiesV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get sensor installers entities v2 internal server error response has a 2xx status code
+func (o *GetSensorInstallersEntitiesV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor installers entities v2 internal server error response has a 3xx status code
+func (o *GetSensorInstallersEntitiesV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor installers entities v2 internal server error response has a 4xx status code
+func (o *GetSensorInstallersEntitiesV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get sensor installers entities v2 internal server error response has a 5xx status code
+func (o *GetSensorInstallersEntitiesV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get sensor installers entities v2 internal server error response a status code equal to that given
+func (o *GetSensorInstallersEntitiesV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get sensor installers entities v2 internal server error response
+func (o *GetSensorInstallersEntitiesV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetSensorInstallersEntitiesV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /sensors/entities/installers/v2][%d] getSensorInstallersEntitiesV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorInstallersEntitiesV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /sensors/entities/installers/v2][%d] getSensorInstallersEntitiesV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorInstallersEntitiesV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetSensorInstallersEntitiesV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_usage_api/get_sensor_usage_weekly_parameters.go b/falcon/client/sensor_usage_api/get_sensor_usage_weekly_parameters.go
new file mode 100644
index 00000000..dedfada5
--- /dev/null
+++ b/falcon/client/sensor_usage_api/get_sensor_usage_weekly_parameters.go
@@ -0,0 +1,174 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package sensor_usage_api
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetSensorUsageWeeklyParams creates a new GetSensorUsageWeeklyParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetSensorUsageWeeklyParams() *GetSensorUsageWeeklyParams {
+ return &GetSensorUsageWeeklyParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetSensorUsageWeeklyParamsWithTimeout creates a new GetSensorUsageWeeklyParams object
+// with the ability to set a timeout on a request.
+func NewGetSensorUsageWeeklyParamsWithTimeout(timeout time.Duration) *GetSensorUsageWeeklyParams {
+ return &GetSensorUsageWeeklyParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetSensorUsageWeeklyParamsWithContext creates a new GetSensorUsageWeeklyParams object
+// with the ability to set a context for a request.
+func NewGetSensorUsageWeeklyParamsWithContext(ctx context.Context) *GetSensorUsageWeeklyParams {
+ return &GetSensorUsageWeeklyParams{
+ Context: ctx,
+ }
+}
+
+// NewGetSensorUsageWeeklyParamsWithHTTPClient creates a new GetSensorUsageWeeklyParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetSensorUsageWeeklyParamsWithHTTPClient(client *http.Client) *GetSensorUsageWeeklyParams {
+ return &GetSensorUsageWeeklyParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetSensorUsageWeeklyParams contains all the parameters to send to the API endpoint
+
+ for the get sensor usage weekly operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetSensorUsageWeeklyParams struct {
+
+ /* Filter.
+
+ The FQL search filter. Allowed fields:
+ "event_date" : A specified date that will be final date of the results returned. Specified date cannot be after the default.
+ Format: '2024-06-11'
+ Default: the current date, minus 2 days, in UTC
+ "period" : An integer surrounded by single quotes representing the number of days to return.
+ Format: '30'
+ Default: '28'
+ Minimum: '1'
+ Maximum: '395'
+ "selected_cids" : A comma separated list of CIDs to return data for. Caller must be a parent CID or have special access enabled.
+ Format: 'cid_1,cid_2,cid_3'
+ Default: for parent CIDs the default is the parent and all children, otherwise the current CID
+ */
+ Filter *string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get sensor usage weekly params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetSensorUsageWeeklyParams) WithDefaults() *GetSensorUsageWeeklyParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get sensor usage weekly params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetSensorUsageWeeklyParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get sensor usage weekly params
+func (o *GetSensorUsageWeeklyParams) WithTimeout(timeout time.Duration) *GetSensorUsageWeeklyParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get sensor usage weekly params
+func (o *GetSensorUsageWeeklyParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get sensor usage weekly params
+func (o *GetSensorUsageWeeklyParams) WithContext(ctx context.Context) *GetSensorUsageWeeklyParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get sensor usage weekly params
+func (o *GetSensorUsageWeeklyParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get sensor usage weekly params
+func (o *GetSensorUsageWeeklyParams) WithHTTPClient(client *http.Client) *GetSensorUsageWeeklyParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get sensor usage weekly params
+func (o *GetSensorUsageWeeklyParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithFilter adds the filter to the get sensor usage weekly params
+func (o *GetSensorUsageWeeklyParams) WithFilter(filter *string) *GetSensorUsageWeeklyParams {
+ o.SetFilter(filter)
+ return o
+}
+
+// SetFilter adds the filter to the get sensor usage weekly params
+func (o *GetSensorUsageWeeklyParams) SetFilter(filter *string) {
+ o.Filter = filter
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetSensorUsageWeeklyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Filter != nil {
+
+ // query param filter
+ var qrFilter string
+
+ if o.Filter != nil {
+ qrFilter = *o.Filter
+ }
+ qFilter := qrFilter
+ if qFilter != "" {
+
+ if err := r.SetQueryParam("filter", qFilter); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/falcon/client/sensor_usage_api/get_sensor_usage_weekly_responses.go b/falcon/client/sensor_usage_api/get_sensor_usage_weekly_responses.go
new file mode 100644
index 00000000..42bb29a8
--- /dev/null
+++ b/falcon/client/sensor_usage_api/get_sensor_usage_weekly_responses.go
@@ -0,0 +1,626 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package sensor_usage_api
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/crowdstrike/gofalcon/falcon/models"
+)
+
+// GetSensorUsageWeeklyReader is a Reader for the GetSensorUsageWeekly structure.
+type GetSensorUsageWeeklyReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetSensorUsageWeeklyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetSensorUsageWeeklyOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewGetSensorUsageWeeklyBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetSensorUsageWeeklyForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 429:
+ result := NewGetSensorUsageWeeklyTooManyRequests()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetSensorUsageWeeklyInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /billing-dashboards-usage/aggregates/weekly-average/v1] GetSensorUsageWeekly", response, response.Code())
+ }
+}
+
+// NewGetSensorUsageWeeklyOK creates a GetSensorUsageWeeklyOK with default headers values
+func NewGetSensorUsageWeeklyOK() *GetSensorUsageWeeklyOK {
+ return &GetSensorUsageWeeklyOK{}
+}
+
+/*
+GetSensorUsageWeeklyOK describes a response with status code 200, with default header values.
+
+OK
+*/
+type GetSensorUsageWeeklyOK struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.APIWeeklyAverageResponse
+}
+
+// IsSuccess returns true when this get sensor usage weekly o k response has a 2xx status code
+func (o *GetSensorUsageWeeklyOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get sensor usage weekly o k response has a 3xx status code
+func (o *GetSensorUsageWeeklyOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor usage weekly o k response has a 4xx status code
+func (o *GetSensorUsageWeeklyOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get sensor usage weekly o k response has a 5xx status code
+func (o *GetSensorUsageWeeklyOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get sensor usage weekly o k response a status code equal to that given
+func (o *GetSensorUsageWeeklyOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get sensor usage weekly o k response
+func (o *GetSensorUsageWeeklyOK) Code() int {
+ return 200
+}
+
+func (o *GetSensorUsageWeeklyOK) Error() string {
+ return fmt.Sprintf("[GET /billing-dashboards-usage/aggregates/weekly-average/v1][%d] getSensorUsageWeeklyOK %+v", 200, o.Payload)
+}
+
+func (o *GetSensorUsageWeeklyOK) String() string {
+ return fmt.Sprintf("[GET /billing-dashboards-usage/aggregates/weekly-average/v1][%d] getSensorUsageWeeklyOK %+v", 200, o.Payload)
+}
+
+func (o *GetSensorUsageWeeklyOK) GetPayload() *models.APIWeeklyAverageResponse {
+ return o.Payload
+}
+
+func (o *GetSensorUsageWeeklyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.APIWeeklyAverageResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetSensorUsageWeeklyBadRequest creates a GetSensorUsageWeeklyBadRequest with default headers values
+func NewGetSensorUsageWeeklyBadRequest() *GetSensorUsageWeeklyBadRequest {
+ return &GetSensorUsageWeeklyBadRequest{}
+}
+
+/*
+GetSensorUsageWeeklyBadRequest describes a response with status code 400, with default header values.
+
+Bad Request
+*/
+type GetSensorUsageWeeklyBadRequest struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.APIHourlyAverageResponse
+}
+
+// IsSuccess returns true when this get sensor usage weekly bad request response has a 2xx status code
+func (o *GetSensorUsageWeeklyBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor usage weekly bad request response has a 3xx status code
+func (o *GetSensorUsageWeeklyBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor usage weekly bad request response has a 4xx status code
+func (o *GetSensorUsageWeeklyBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get sensor usage weekly bad request response has a 5xx status code
+func (o *GetSensorUsageWeeklyBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get sensor usage weekly bad request response a status code equal to that given
+func (o *GetSensorUsageWeeklyBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the get sensor usage weekly bad request response
+func (o *GetSensorUsageWeeklyBadRequest) Code() int {
+ return 400
+}
+
+func (o *GetSensorUsageWeeklyBadRequest) Error() string {
+ return fmt.Sprintf("[GET /billing-dashboards-usage/aggregates/weekly-average/v1][%d] getSensorUsageWeeklyBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetSensorUsageWeeklyBadRequest) String() string {
+ return fmt.Sprintf("[GET /billing-dashboards-usage/aggregates/weekly-average/v1][%d] getSensorUsageWeeklyBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetSensorUsageWeeklyBadRequest) GetPayload() *models.APIHourlyAverageResponse {
+ return o.Payload
+}
+
+func (o *GetSensorUsageWeeklyBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.APIHourlyAverageResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetSensorUsageWeeklyForbidden creates a GetSensorUsageWeeklyForbidden with default headers values
+func NewGetSensorUsageWeeklyForbidden() *GetSensorUsageWeeklyForbidden {
+ return &GetSensorUsageWeeklyForbidden{}
+}
+
+/*
+GetSensorUsageWeeklyForbidden describes a response with status code 403, with default header values.
+
+Forbidden
+*/
+type GetSensorUsageWeeklyForbidden struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.APIHourlyAverageResponse
+}
+
+// IsSuccess returns true when this get sensor usage weekly forbidden response has a 2xx status code
+func (o *GetSensorUsageWeeklyForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor usage weekly forbidden response has a 3xx status code
+func (o *GetSensorUsageWeeklyForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor usage weekly forbidden response has a 4xx status code
+func (o *GetSensorUsageWeeklyForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get sensor usage weekly forbidden response has a 5xx status code
+func (o *GetSensorUsageWeeklyForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get sensor usage weekly forbidden response a status code equal to that given
+func (o *GetSensorUsageWeeklyForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get sensor usage weekly forbidden response
+func (o *GetSensorUsageWeeklyForbidden) Code() int {
+ return 403
+}
+
+func (o *GetSensorUsageWeeklyForbidden) Error() string {
+ return fmt.Sprintf("[GET /billing-dashboards-usage/aggregates/weekly-average/v1][%d] getSensorUsageWeeklyForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetSensorUsageWeeklyForbidden) String() string {
+ return fmt.Sprintf("[GET /billing-dashboards-usage/aggregates/weekly-average/v1][%d] getSensorUsageWeeklyForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetSensorUsageWeeklyForbidden) GetPayload() *models.APIHourlyAverageResponse {
+ return o.Payload
+}
+
+func (o *GetSensorUsageWeeklyForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.APIHourlyAverageResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetSensorUsageWeeklyTooManyRequests creates a GetSensorUsageWeeklyTooManyRequests with default headers values
+func NewGetSensorUsageWeeklyTooManyRequests() *GetSensorUsageWeeklyTooManyRequests {
+ return &GetSensorUsageWeeklyTooManyRequests{}
+}
+
+/*
+GetSensorUsageWeeklyTooManyRequests describes a response with status code 429, with default header values.
+
+Too Many Requests
+*/
+type GetSensorUsageWeeklyTooManyRequests struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ /* Too many requests, retry after this time (as milliseconds since epoch)
+ */
+ XRateLimitRetryAfter int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get sensor usage weekly too many requests response has a 2xx status code
+func (o *GetSensorUsageWeeklyTooManyRequests) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor usage weekly too many requests response has a 3xx status code
+func (o *GetSensorUsageWeeklyTooManyRequests) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor usage weekly too many requests response has a 4xx status code
+func (o *GetSensorUsageWeeklyTooManyRequests) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get sensor usage weekly too many requests response has a 5xx status code
+func (o *GetSensorUsageWeeklyTooManyRequests) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get sensor usage weekly too many requests response a status code equal to that given
+func (o *GetSensorUsageWeeklyTooManyRequests) IsCode(code int) bool {
+ return code == 429
+}
+
+// Code gets the status code for the get sensor usage weekly too many requests response
+func (o *GetSensorUsageWeeklyTooManyRequests) Code() int {
+ return 429
+}
+
+func (o *GetSensorUsageWeeklyTooManyRequests) Error() string {
+ return fmt.Sprintf("[GET /billing-dashboards-usage/aggregates/weekly-average/v1][%d] getSensorUsageWeeklyTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetSensorUsageWeeklyTooManyRequests) String() string {
+ return fmt.Sprintf("[GET /billing-dashboards-usage/aggregates/weekly-average/v1][%d] getSensorUsageWeeklyTooManyRequests %+v", 429, o.Payload)
+}
+
+func (o *GetSensorUsageWeeklyTooManyRequests) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetSensorUsageWeeklyTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ // hydrates response header X-RateLimit-RetryAfter
+ hdrXRateLimitRetryAfter := response.GetHeader("X-RateLimit-RetryAfter")
+
+ if hdrXRateLimitRetryAfter != "" {
+ valxRateLimitRetryAfter, err := swag.ConvertInt64(hdrXRateLimitRetryAfter)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-RetryAfter", "header", "int64", hdrXRateLimitRetryAfter)
+ }
+ o.XRateLimitRetryAfter = valxRateLimitRetryAfter
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetSensorUsageWeeklyInternalServerError creates a GetSensorUsageWeeklyInternalServerError with default headers values
+func NewGetSensorUsageWeeklyInternalServerError() *GetSensorUsageWeeklyInternalServerError {
+ return &GetSensorUsageWeeklyInternalServerError{}
+}
+
+/*
+GetSensorUsageWeeklyInternalServerError describes a response with status code 500, with default header values.
+
+Internal Server Error
+*/
+type GetSensorUsageWeeklyInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.APIHourlyAverageResponse
+}
+
+// IsSuccess returns true when this get sensor usage weekly internal server error response has a 2xx status code
+func (o *GetSensorUsageWeeklyInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get sensor usage weekly internal server error response has a 3xx status code
+func (o *GetSensorUsageWeeklyInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get sensor usage weekly internal server error response has a 4xx status code
+func (o *GetSensorUsageWeeklyInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get sensor usage weekly internal server error response has a 5xx status code
+func (o *GetSensorUsageWeeklyInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get sensor usage weekly internal server error response a status code equal to that given
+func (o *GetSensorUsageWeeklyInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get sensor usage weekly internal server error response
+func (o *GetSensorUsageWeeklyInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetSensorUsageWeeklyInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /billing-dashboards-usage/aggregates/weekly-average/v1][%d] getSensorUsageWeeklyInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorUsageWeeklyInternalServerError) String() string {
+ return fmt.Sprintf("[GET /billing-dashboards-usage/aggregates/weekly-average/v1][%d] getSensorUsageWeeklyInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetSensorUsageWeeklyInternalServerError) GetPayload() *models.APIHourlyAverageResponse {
+ return o.Payload
+}
+
+func (o *GetSensorUsageWeeklyInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.APIHourlyAverageResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/sensor_usage_api/sensor_usage_api_client.go b/falcon/client/sensor_usage_api/sensor_usage_api_client.go
new file mode 100644
index 00000000..fa62a773
--- /dev/null
+++ b/falcon/client/sensor_usage_api/sensor_usage_api_client.go
@@ -0,0 +1,79 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package sensor_usage_api
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new sensor usage api API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for sensor usage api API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetSensorUsageWeekly(params *GetSensorUsageWeeklyParams, opts ...ClientOption) (*GetSensorUsageWeeklyOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+GetSensorUsageWeekly fetches weekly average each data point represents the average of how many unique a i ds were seen per week for the previous 28 days
+*/
+func (a *Client) GetSensorUsageWeekly(params *GetSensorUsageWeeklyParams, opts ...ClientOption) (*GetSensorUsageWeeklyOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetSensorUsageWeeklyParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "GetSensorUsageWeekly",
+ Method: "GET",
+ PathPattern: "/billing-dashboards-usage/aggregates/weekly-average/v1",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &GetSensorUsageWeeklyReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetSensorUsageWeeklyOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for GetSensorUsageWeekly: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/falcon/client/spotlight_vulnerabilities/get_remediations_v2_responses.go b/falcon/client/spotlight_vulnerabilities/get_remediations_v2_responses.go
index cb1d2db7..c48edffb 100644
--- a/falcon/client/spotlight_vulnerabilities/get_remediations_v2_responses.go
+++ b/falcon/client/spotlight_vulnerabilities/get_remediations_v2_responses.go
@@ -43,6 +43,12 @@ func (o *GetRemediationsV2Reader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetRemediationsV2InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
case 503:
result := NewGetRemediationsV2ServiceUnavailable()
if err := result.readResponse(response, consumer, o.formats); err != nil {
@@ -399,6 +405,116 @@ func (o *GetRemediationsV2TooManyRequests) readResponse(response runtime.ClientR
return nil
}
+// NewGetRemediationsV2InternalServerError creates a GetRemediationsV2InternalServerError with default headers values
+func NewGetRemediationsV2InternalServerError() *GetRemediationsV2InternalServerError {
+ return &GetRemediationsV2InternalServerError{}
+}
+
+/*
+GetRemediationsV2InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetRemediationsV2InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get remediations v2 internal server error response has a 2xx status code
+func (o *GetRemediationsV2InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get remediations v2 internal server error response has a 3xx status code
+func (o *GetRemediationsV2InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get remediations v2 internal server error response has a 4xx status code
+func (o *GetRemediationsV2InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get remediations v2 internal server error response has a 5xx status code
+func (o *GetRemediationsV2InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get remediations v2 internal server error response a status code equal to that given
+func (o *GetRemediationsV2InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get remediations v2 internal server error response
+func (o *GetRemediationsV2InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetRemediationsV2InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /spotlight/entities/remediations/v2][%d] getRemediationsV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRemediationsV2InternalServerError) String() string {
+ return fmt.Sprintf("[GET /spotlight/entities/remediations/v2][%d] getRemediationsV2InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetRemediationsV2InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetRemediationsV2InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
// NewGetRemediationsV2ServiceUnavailable creates a GetRemediationsV2ServiceUnavailable with default headers values
func NewGetRemediationsV2ServiceUnavailable() *GetRemediationsV2ServiceUnavailable {
return &GetRemediationsV2ServiceUnavailable{}
diff --git a/falcon/client/spotlight_vulnerabilities/get_vulnerabilities_responses.go b/falcon/client/spotlight_vulnerabilities/get_vulnerabilities_responses.go
index c15aab58..60185b5b 100644
--- a/falcon/client/spotlight_vulnerabilities/get_vulnerabilities_responses.go
+++ b/falcon/client/spotlight_vulnerabilities/get_vulnerabilities_responses.go
@@ -43,6 +43,12 @@ func (o *GetVulnerabilitiesReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetVulnerabilitiesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
case 503:
result := NewGetVulnerabilitiesServiceUnavailable()
if err := result.readResponse(response, consumer, o.formats); err != nil {
@@ -399,6 +405,116 @@ func (o *GetVulnerabilitiesTooManyRequests) readResponse(response runtime.Client
return nil
}
+// NewGetVulnerabilitiesInternalServerError creates a GetVulnerabilitiesInternalServerError with default headers values
+func NewGetVulnerabilitiesInternalServerError() *GetVulnerabilitiesInternalServerError {
+ return &GetVulnerabilitiesInternalServerError{}
+}
+
+/*
+GetVulnerabilitiesInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetVulnerabilitiesInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get vulnerabilities internal server error response has a 2xx status code
+func (o *GetVulnerabilitiesInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get vulnerabilities internal server error response has a 3xx status code
+func (o *GetVulnerabilitiesInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get vulnerabilities internal server error response has a 4xx status code
+func (o *GetVulnerabilitiesInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get vulnerabilities internal server error response has a 5xx status code
+func (o *GetVulnerabilitiesInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get vulnerabilities internal server error response a status code equal to that given
+func (o *GetVulnerabilitiesInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get vulnerabilities internal server error response
+func (o *GetVulnerabilitiesInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetVulnerabilitiesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /spotlight/entities/vulnerabilities/v2][%d] getVulnerabilitiesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetVulnerabilitiesInternalServerError) String() string {
+ return fmt.Sprintf("[GET /spotlight/entities/vulnerabilities/v2][%d] getVulnerabilitiesInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetVulnerabilitiesInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetVulnerabilitiesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
// NewGetVulnerabilitiesServiceUnavailable creates a GetVulnerabilitiesServiceUnavailable with default headers values
func NewGetVulnerabilitiesServiceUnavailable() *GetVulnerabilitiesServiceUnavailable {
return &GetVulnerabilitiesServiceUnavailable{}
diff --git a/falcon/client/threatgraph/combined_edges_get_responses.go b/falcon/client/threatgraph/combined_edges_get_responses.go
index f491a083..9b9a918c 100644
--- a/falcon/client/threatgraph/combined_edges_get_responses.go
+++ b/falcon/client/threatgraph/combined_edges_get_responses.go
@@ -43,6 +43,12 @@ func (o *CombinedEdgesGetReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewCombinedEdgesGetInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /threatgraph/combined/edges/v1] combined_edges_get", response, response.Code())
}
@@ -379,3 +385,113 @@ func (o *CombinedEdgesGetTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewCombinedEdgesGetInternalServerError creates a CombinedEdgesGetInternalServerError with default headers values
+func NewCombinedEdgesGetInternalServerError() *CombinedEdgesGetInternalServerError {
+ return &CombinedEdgesGetInternalServerError{}
+}
+
+/*
+CombinedEdgesGetInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CombinedEdgesGetInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this combined edges get internal server error response has a 2xx status code
+func (o *CombinedEdgesGetInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined edges get internal server error response has a 3xx status code
+func (o *CombinedEdgesGetInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined edges get internal server error response has a 4xx status code
+func (o *CombinedEdgesGetInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this combined edges get internal server error response has a 5xx status code
+func (o *CombinedEdgesGetInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this combined edges get internal server error response a status code equal to that given
+func (o *CombinedEdgesGetInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the combined edges get internal server error response
+func (o *CombinedEdgesGetInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CombinedEdgesGetInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /threatgraph/combined/edges/v1][%d] combinedEdgesGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CombinedEdgesGetInternalServerError) String() string {
+ return fmt.Sprintf("[GET /threatgraph/combined/edges/v1][%d] combinedEdgesGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CombinedEdgesGetInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CombinedEdgesGetInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/threatgraph/combined_ran_on_get_responses.go b/falcon/client/threatgraph/combined_ran_on_get_responses.go
index 047d4f63..c271813c 100644
--- a/falcon/client/threatgraph/combined_ran_on_get_responses.go
+++ b/falcon/client/threatgraph/combined_ran_on_get_responses.go
@@ -43,6 +43,12 @@ func (o *CombinedRanOnGetReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewCombinedRanOnGetInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /threatgraph/combined/ran-on/v1] combined_ran_on_get", response, response.Code())
}
@@ -379,3 +385,113 @@ func (o *CombinedRanOnGetTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewCombinedRanOnGetInternalServerError creates a CombinedRanOnGetInternalServerError with default headers values
+func NewCombinedRanOnGetInternalServerError() *CombinedRanOnGetInternalServerError {
+ return &CombinedRanOnGetInternalServerError{}
+}
+
+/*
+CombinedRanOnGetInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CombinedRanOnGetInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this combined ran on get internal server error response has a 2xx status code
+func (o *CombinedRanOnGetInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined ran on get internal server error response has a 3xx status code
+func (o *CombinedRanOnGetInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined ran on get internal server error response has a 4xx status code
+func (o *CombinedRanOnGetInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this combined ran on get internal server error response has a 5xx status code
+func (o *CombinedRanOnGetInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this combined ran on get internal server error response a status code equal to that given
+func (o *CombinedRanOnGetInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the combined ran on get internal server error response
+func (o *CombinedRanOnGetInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CombinedRanOnGetInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /threatgraph/combined/ran-on/v1][%d] combinedRanOnGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CombinedRanOnGetInternalServerError) String() string {
+ return fmt.Sprintf("[GET /threatgraph/combined/ran-on/v1][%d] combinedRanOnGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CombinedRanOnGetInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CombinedRanOnGetInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/threatgraph/combined_summary_get_responses.go b/falcon/client/threatgraph/combined_summary_get_responses.go
index de374e11..1d721fc7 100644
--- a/falcon/client/threatgraph/combined_summary_get_responses.go
+++ b/falcon/client/threatgraph/combined_summary_get_responses.go
@@ -43,6 +43,12 @@ func (o *CombinedSummaryGetReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewCombinedSummaryGetInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /threatgraph/combined/{vertex-type}/summary/v1] combined_summary_get", response, response.Code())
}
@@ -379,3 +385,113 @@ func (o *CombinedSummaryGetTooManyRequests) readResponse(response runtime.Client
return nil
}
+
+// NewCombinedSummaryGetInternalServerError creates a CombinedSummaryGetInternalServerError with default headers values
+func NewCombinedSummaryGetInternalServerError() *CombinedSummaryGetInternalServerError {
+ return &CombinedSummaryGetInternalServerError{}
+}
+
+/*
+CombinedSummaryGetInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CombinedSummaryGetInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this combined summary get internal server error response has a 2xx status code
+func (o *CombinedSummaryGetInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this combined summary get internal server error response has a 3xx status code
+func (o *CombinedSummaryGetInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this combined summary get internal server error response has a 4xx status code
+func (o *CombinedSummaryGetInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this combined summary get internal server error response has a 5xx status code
+func (o *CombinedSummaryGetInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this combined summary get internal server error response a status code equal to that given
+func (o *CombinedSummaryGetInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the combined summary get internal server error response
+func (o *CombinedSummaryGetInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CombinedSummaryGetInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /threatgraph/combined/{vertex-type}/summary/v1][%d] combinedSummaryGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CombinedSummaryGetInternalServerError) String() string {
+ return fmt.Sprintf("[GET /threatgraph/combined/{vertex-type}/summary/v1][%d] combinedSummaryGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CombinedSummaryGetInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CombinedSummaryGetInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/threatgraph/queries_edgetypes_get_responses.go b/falcon/client/threatgraph/queries_edgetypes_get_responses.go
index aa6ace28..e96fb1ee 100644
--- a/falcon/client/threatgraph/queries_edgetypes_get_responses.go
+++ b/falcon/client/threatgraph/queries_edgetypes_get_responses.go
@@ -43,6 +43,12 @@ func (o *QueriesEdgetypesGetReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewQueriesEdgetypesGetInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /threatgraph/queries/edge-types/v1] queries_edgetypes_get", response, response.Code())
}
@@ -379,3 +385,113 @@ func (o *QueriesEdgetypesGetTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewQueriesEdgetypesGetInternalServerError creates a QueriesEdgetypesGetInternalServerError with default headers values
+func NewQueriesEdgetypesGetInternalServerError() *QueriesEdgetypesGetInternalServerError {
+ return &QueriesEdgetypesGetInternalServerError{}
+}
+
+/*
+QueriesEdgetypesGetInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type QueriesEdgetypesGetInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this queries edgetypes get internal server error response has a 2xx status code
+func (o *QueriesEdgetypesGetInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this queries edgetypes get internal server error response has a 3xx status code
+func (o *QueriesEdgetypesGetInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this queries edgetypes get internal server error response has a 4xx status code
+func (o *QueriesEdgetypesGetInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this queries edgetypes get internal server error response has a 5xx status code
+func (o *QueriesEdgetypesGetInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this queries edgetypes get internal server error response a status code equal to that given
+func (o *QueriesEdgetypesGetInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the queries edgetypes get internal server error response
+func (o *QueriesEdgetypesGetInternalServerError) Code() int {
+ return 500
+}
+
+func (o *QueriesEdgetypesGetInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /threatgraph/queries/edge-types/v1][%d] queriesEdgetypesGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueriesEdgetypesGetInternalServerError) String() string {
+ return fmt.Sprintf("[GET /threatgraph/queries/edge-types/v1][%d] queriesEdgetypesGetInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *QueriesEdgetypesGetInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *QueriesEdgetypesGetInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/user_management/create_user_responses.go b/falcon/client/user_management/create_user_responses.go
index db79c9ea..fd681c62 100644
--- a/falcon/client/user_management/create_user_responses.go
+++ b/falcon/client/user_management/create_user_responses.go
@@ -49,6 +49,12 @@ func (o *CreateUserReader) ReadResponse(response runtime.ClientResponse, consume
return nil, err
}
return nil, result
+ case 500:
+ result := NewCreateUserInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /users/entities/users/v1] CreateUser", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *CreateUserTooManyRequests) readResponse(response runtime.ClientResponse
return nil
}
+
+// NewCreateUserInternalServerError creates a CreateUserInternalServerError with default headers values
+func NewCreateUserInternalServerError() *CreateUserInternalServerError {
+ return &CreateUserInternalServerError{}
+}
+
+/*
+CreateUserInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type CreateUserInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this create user internal server error response has a 2xx status code
+func (o *CreateUserInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create user internal server error response has a 3xx status code
+func (o *CreateUserInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create user internal server error response has a 4xx status code
+func (o *CreateUserInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create user internal server error response has a 5xx status code
+func (o *CreateUserInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create user internal server error response a status code equal to that given
+func (o *CreateUserInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create user internal server error response
+func (o *CreateUserInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateUserInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /users/entities/users/v1][%d] createUserInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateUserInternalServerError) String() string {
+ return fmt.Sprintf("[POST /users/entities/users/v1][%d] createUserInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateUserInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *CreateUserInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/user_management/delete_user_responses.go b/falcon/client/user_management/delete_user_responses.go
index 555ec6b3..8fe15195 100644
--- a/falcon/client/user_management/delete_user_responses.go
+++ b/falcon/client/user_management/delete_user_responses.go
@@ -55,6 +55,12 @@ func (o *DeleteUserReader) ReadResponse(response runtime.ClientResponse, consume
return nil, err
}
return nil, result
+ case 500:
+ result := NewDeleteUserInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /users/entities/users/v1] DeleteUser", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *DeleteUserTooManyRequests) readResponse(response runtime.ClientResponse
return nil
}
+
+// NewDeleteUserInternalServerError creates a DeleteUserInternalServerError with default headers values
+func NewDeleteUserInternalServerError() *DeleteUserInternalServerError {
+ return &DeleteUserInternalServerError{}
+}
+
+/*
+DeleteUserInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type DeleteUserInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this delete user internal server error response has a 2xx status code
+func (o *DeleteUserInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this delete user internal server error response has a 3xx status code
+func (o *DeleteUserInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this delete user internal server error response has a 4xx status code
+func (o *DeleteUserInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this delete user internal server error response has a 5xx status code
+func (o *DeleteUserInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this delete user internal server error response a status code equal to that given
+func (o *DeleteUserInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the delete user internal server error response
+func (o *DeleteUserInternalServerError) Code() int {
+ return 500
+}
+
+func (o *DeleteUserInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /users/entities/users/v1][%d] deleteUserInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteUserInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /users/entities/users/v1][%d] deleteUserInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *DeleteUserInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *DeleteUserInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/user_management/grant_user_role_ids_responses.go b/falcon/client/user_management/grant_user_role_ids_responses.go
index c48c252a..10471ee5 100644
--- a/falcon/client/user_management/grant_user_role_ids_responses.go
+++ b/falcon/client/user_management/grant_user_role_ids_responses.go
@@ -49,6 +49,12 @@ func (o *GrantUserRoleIdsReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewGrantUserRoleIdsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[POST /user-roles/entities/user-roles/v1] GrantUserRoleIds", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GrantUserRoleIdsTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewGrantUserRoleIdsInternalServerError creates a GrantUserRoleIdsInternalServerError with default headers values
+func NewGrantUserRoleIdsInternalServerError() *GrantUserRoleIdsInternalServerError {
+ return &GrantUserRoleIdsInternalServerError{}
+}
+
+/*
+GrantUserRoleIdsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GrantUserRoleIdsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this grant user role ids internal server error response has a 2xx status code
+func (o *GrantUserRoleIdsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this grant user role ids internal server error response has a 3xx status code
+func (o *GrantUserRoleIdsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this grant user role ids internal server error response has a 4xx status code
+func (o *GrantUserRoleIdsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this grant user role ids internal server error response has a 5xx status code
+func (o *GrantUserRoleIdsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this grant user role ids internal server error response a status code equal to that given
+func (o *GrantUserRoleIdsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the grant user role ids internal server error response
+func (o *GrantUserRoleIdsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GrantUserRoleIdsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /user-roles/entities/user-roles/v1][%d] grantUserRoleIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GrantUserRoleIdsInternalServerError) String() string {
+ return fmt.Sprintf("[POST /user-roles/entities/user-roles/v1][%d] grantUserRoleIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GrantUserRoleIdsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GrantUserRoleIdsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/user_management/retrieve_emails_by_c_id_responses.go b/falcon/client/user_management/retrieve_emails_by_c_id_responses.go
index ba06b944..ad2d467d 100644
--- a/falcon/client/user_management/retrieve_emails_by_c_id_responses.go
+++ b/falcon/client/user_management/retrieve_emails_by_c_id_responses.go
@@ -49,6 +49,12 @@ func (o *RetrieveEmailsByCIDReader) ReadResponse(response runtime.ClientResponse
return nil, err
}
return nil, result
+ case 500:
+ result := NewRetrieveEmailsByCIDInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /users/queries/emails-by-cid/v1] RetrieveEmailsByCID", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RetrieveEmailsByCIDTooManyRequests) readResponse(response runtime.Clien
return nil
}
+
+// NewRetrieveEmailsByCIDInternalServerError creates a RetrieveEmailsByCIDInternalServerError with default headers values
+func NewRetrieveEmailsByCIDInternalServerError() *RetrieveEmailsByCIDInternalServerError {
+ return &RetrieveEmailsByCIDInternalServerError{}
+}
+
+/*
+RetrieveEmailsByCIDInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RetrieveEmailsByCIDInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this retrieve emails by c Id internal server error response has a 2xx status code
+func (o *RetrieveEmailsByCIDInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this retrieve emails by c Id internal server error response has a 3xx status code
+func (o *RetrieveEmailsByCIDInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this retrieve emails by c Id internal server error response has a 4xx status code
+func (o *RetrieveEmailsByCIDInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this retrieve emails by c Id internal server error response has a 5xx status code
+func (o *RetrieveEmailsByCIDInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this retrieve emails by c Id internal server error response a status code equal to that given
+func (o *RetrieveEmailsByCIDInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the retrieve emails by c Id internal server error response
+func (o *RetrieveEmailsByCIDInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RetrieveEmailsByCIDInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /users/queries/emails-by-cid/v1][%d] retrieveEmailsByCIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RetrieveEmailsByCIDInternalServerError) String() string {
+ return fmt.Sprintf("[GET /users/queries/emails-by-cid/v1][%d] retrieveEmailsByCIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RetrieveEmailsByCIDInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RetrieveEmailsByCIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/user_management/retrieve_user_responses.go b/falcon/client/user_management/retrieve_user_responses.go
index eb2360aa..5ceb34bd 100644
--- a/falcon/client/user_management/retrieve_user_responses.go
+++ b/falcon/client/user_management/retrieve_user_responses.go
@@ -55,6 +55,12 @@ func (o *RetrieveUserReader) ReadResponse(response runtime.ClientResponse, consu
return nil, err
}
return nil, result
+ case 500:
+ result := NewRetrieveUserInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /users/entities/users/v1] retrieveUser", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RetrieveUserTooManyRequests) readResponse(response runtime.ClientRespon
return nil
}
+
+// NewRetrieveUserInternalServerError creates a RetrieveUserInternalServerError with default headers values
+func NewRetrieveUserInternalServerError() *RetrieveUserInternalServerError {
+ return &RetrieveUserInternalServerError{}
+}
+
+/*
+RetrieveUserInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RetrieveUserInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this retrieve user internal server error response has a 2xx status code
+func (o *RetrieveUserInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this retrieve user internal server error response has a 3xx status code
+func (o *RetrieveUserInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this retrieve user internal server error response has a 4xx status code
+func (o *RetrieveUserInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this retrieve user internal server error response has a 5xx status code
+func (o *RetrieveUserInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this retrieve user internal server error response a status code equal to that given
+func (o *RetrieveUserInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the retrieve user internal server error response
+func (o *RetrieveUserInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RetrieveUserInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /users/entities/users/v1][%d] retrieveUserInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RetrieveUserInternalServerError) String() string {
+ return fmt.Sprintf("[GET /users/entities/users/v1][%d] retrieveUserInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RetrieveUserInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RetrieveUserInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/user_management/retrieve_user_u_ui_ds_by_c_id_responses.go b/falcon/client/user_management/retrieve_user_u_ui_ds_by_c_id_responses.go
index 057566e8..6b7ce284 100644
--- a/falcon/client/user_management/retrieve_user_u_ui_ds_by_c_id_responses.go
+++ b/falcon/client/user_management/retrieve_user_u_ui_ds_by_c_id_responses.go
@@ -49,6 +49,12 @@ func (o *RetrieveUserUUIDsByCIDReader) ReadResponse(response runtime.ClientRespo
return nil, err
}
return nil, result
+ case 500:
+ result := NewRetrieveUserUUIDsByCIDInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /users/queries/user-uuids-by-cid/v1] RetrieveUserUUIDsByCID", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RetrieveUserUUIDsByCIDTooManyRequests) readResponse(response runtime.Cl
return nil
}
+
+// NewRetrieveUserUUIDsByCIDInternalServerError creates a RetrieveUserUUIDsByCIDInternalServerError with default headers values
+func NewRetrieveUserUUIDsByCIDInternalServerError() *RetrieveUserUUIDsByCIDInternalServerError {
+ return &RetrieveUserUUIDsByCIDInternalServerError{}
+}
+
+/*
+RetrieveUserUUIDsByCIDInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RetrieveUserUUIDsByCIDInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this retrieve user u Ui ds by c Id internal server error response has a 2xx status code
+func (o *RetrieveUserUUIDsByCIDInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this retrieve user u Ui ds by c Id internal server error response has a 3xx status code
+func (o *RetrieveUserUUIDsByCIDInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this retrieve user u Ui ds by c Id internal server error response has a 4xx status code
+func (o *RetrieveUserUUIDsByCIDInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this retrieve user u Ui ds by c Id internal server error response has a 5xx status code
+func (o *RetrieveUserUUIDsByCIDInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this retrieve user u Ui ds by c Id internal server error response a status code equal to that given
+func (o *RetrieveUserUUIDsByCIDInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the retrieve user u Ui ds by c Id internal server error response
+func (o *RetrieveUserUUIDsByCIDInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RetrieveUserUUIDsByCIDInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /users/queries/user-uuids-by-cid/v1][%d] retrieveUserUUiDsByCIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RetrieveUserUUIDsByCIDInternalServerError) String() string {
+ return fmt.Sprintf("[GET /users/queries/user-uuids-by-cid/v1][%d] retrieveUserUUiDsByCIdInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RetrieveUserUUIDsByCIDInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RetrieveUserUUIDsByCIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/user_management/retrieve_user_uuid_responses.go b/falcon/client/user_management/retrieve_user_uuid_responses.go
index dd77faa1..a29f0a10 100644
--- a/falcon/client/user_management/retrieve_user_uuid_responses.go
+++ b/falcon/client/user_management/retrieve_user_uuid_responses.go
@@ -55,6 +55,12 @@ func (o *RetrieveUserUUIDReader) ReadResponse(response runtime.ClientResponse, c
return nil, err
}
return nil, result
+ case 500:
+ result := NewRetrieveUserUUIDInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /users/queries/user-uuids-by-email/v1] RetrieveUserUUID", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *RetrieveUserUUIDTooManyRequests) readResponse(response runtime.ClientRe
return nil
}
+
+// NewRetrieveUserUUIDInternalServerError creates a RetrieveUserUUIDInternalServerError with default headers values
+func NewRetrieveUserUUIDInternalServerError() *RetrieveUserUUIDInternalServerError {
+ return &RetrieveUserUUIDInternalServerError{}
+}
+
+/*
+RetrieveUserUUIDInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RetrieveUserUUIDInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this retrieve user Uuid internal server error response has a 2xx status code
+func (o *RetrieveUserUUIDInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this retrieve user Uuid internal server error response has a 3xx status code
+func (o *RetrieveUserUUIDInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this retrieve user Uuid internal server error response has a 4xx status code
+func (o *RetrieveUserUUIDInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this retrieve user Uuid internal server error response has a 5xx status code
+func (o *RetrieveUserUUIDInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this retrieve user Uuid internal server error response a status code equal to that given
+func (o *RetrieveUserUUIDInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the retrieve user Uuid internal server error response
+func (o *RetrieveUserUUIDInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RetrieveUserUUIDInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /users/queries/user-uuids-by-email/v1][%d] retrieveUserUuidInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RetrieveUserUUIDInternalServerError) String() string {
+ return fmt.Sprintf("[GET /users/queries/user-uuids-by-email/v1][%d] retrieveUserUuidInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RetrieveUserUUIDInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RetrieveUserUUIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/user_management/revoke_user_role_ids_responses.go b/falcon/client/user_management/revoke_user_role_ids_responses.go
index 73ef904a..743e87ff 100644
--- a/falcon/client/user_management/revoke_user_role_ids_responses.go
+++ b/falcon/client/user_management/revoke_user_role_ids_responses.go
@@ -49,6 +49,12 @@ func (o *RevokeUserRoleIdsReader) ReadResponse(response runtime.ClientResponse,
return nil, err
}
return nil, result
+ case 500:
+ result := NewRevokeUserRoleIdsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[DELETE /user-roles/entities/user-roles/v1] RevokeUserRoleIds", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *RevokeUserRoleIdsTooManyRequests) readResponse(response runtime.ClientR
return nil
}
+
+// NewRevokeUserRoleIdsInternalServerError creates a RevokeUserRoleIdsInternalServerError with default headers values
+func NewRevokeUserRoleIdsInternalServerError() *RevokeUserRoleIdsInternalServerError {
+ return &RevokeUserRoleIdsInternalServerError{}
+}
+
+/*
+RevokeUserRoleIdsInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type RevokeUserRoleIdsInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this revoke user role ids internal server error response has a 2xx status code
+func (o *RevokeUserRoleIdsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this revoke user role ids internal server error response has a 3xx status code
+func (o *RevokeUserRoleIdsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this revoke user role ids internal server error response has a 4xx status code
+func (o *RevokeUserRoleIdsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this revoke user role ids internal server error response has a 5xx status code
+func (o *RevokeUserRoleIdsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this revoke user role ids internal server error response a status code equal to that given
+func (o *RevokeUserRoleIdsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the revoke user role ids internal server error response
+func (o *RevokeUserRoleIdsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RevokeUserRoleIdsInternalServerError) Error() string {
+ return fmt.Sprintf("[DELETE /user-roles/entities/user-roles/v1][%d] revokeUserRoleIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RevokeUserRoleIdsInternalServerError) String() string {
+ return fmt.Sprintf("[DELETE /user-roles/entities/user-roles/v1][%d] revokeUserRoleIdsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RevokeUserRoleIdsInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *RevokeUserRoleIdsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/user_management/update_user_responses.go b/falcon/client/user_management/update_user_responses.go
index 728c3724..018e900d 100644
--- a/falcon/client/user_management/update_user_responses.go
+++ b/falcon/client/user_management/update_user_responses.go
@@ -55,6 +55,12 @@ func (o *UpdateUserReader) ReadResponse(response runtime.ClientResponse, consume
return nil, err
}
return nil, result
+ case 500:
+ result := NewUpdateUserInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[PATCH /users/entities/users/v1] UpdateUser", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *UpdateUserTooManyRequests) readResponse(response runtime.ClientResponse
return nil
}
+
+// NewUpdateUserInternalServerError creates a UpdateUserInternalServerError with default headers values
+func NewUpdateUserInternalServerError() *UpdateUserInternalServerError {
+ return &UpdateUserInternalServerError{}
+}
+
+/*
+UpdateUserInternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type UpdateUserInternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this update user internal server error response has a 2xx status code
+func (o *UpdateUserInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update user internal server error response has a 3xx status code
+func (o *UpdateUserInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update user internal server error response has a 4xx status code
+func (o *UpdateUserInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update user internal server error response has a 5xx status code
+func (o *UpdateUserInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update user internal server error response a status code equal to that given
+func (o *UpdateUserInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update user internal server error response
+func (o *UpdateUserInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateUserInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /users/entities/users/v1][%d] updateUserInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateUserInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /users/entities/users/v1][%d] updateUserInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateUserInternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *UpdateUserInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/workflows/execute_responses.go b/falcon/client/workflows/execute_responses.go
index 671e1bf7..9ab41a7a 100644
--- a/falcon/client/workflows/execute_responses.go
+++ b/falcon/client/workflows/execute_responses.go
@@ -37,6 +37,12 @@ func (o *ExecuteReader) ReadResponse(response runtime.ClientResponse, consumer r
return nil, err
}
return nil, result
+ case 401:
+ result := NewExecuteUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
case 403:
result := NewExecuteForbidden()
if err := result.readResponse(response, consumer, o.formats); err != nil {
@@ -286,6 +292,116 @@ func (o *ExecuteBadRequest) readResponse(response runtime.ClientResponse, consum
return nil
}
+// NewExecuteUnauthorized creates a ExecuteUnauthorized with default headers values
+func NewExecuteUnauthorized() *ExecuteUnauthorized {
+ return &ExecuteUnauthorized{}
+}
+
+/*
+ExecuteUnauthorized describes a response with status code 401, with default header values.
+
+Unauthorized
+*/
+type ExecuteUnauthorized struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.APIMFAResourceIDsResponse
+}
+
+// IsSuccess returns true when this execute unauthorized response has a 2xx status code
+func (o *ExecuteUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this execute unauthorized response has a 3xx status code
+func (o *ExecuteUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this execute unauthorized response has a 4xx status code
+func (o *ExecuteUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this execute unauthorized response has a 5xx status code
+func (o *ExecuteUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this execute unauthorized response a status code equal to that given
+func (o *ExecuteUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the execute unauthorized response
+func (o *ExecuteUnauthorized) Code() int {
+ return 401
+}
+
+func (o *ExecuteUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /workflows/entities/execute/v1][%d] executeUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ExecuteUnauthorized) String() string {
+ return fmt.Sprintf("[POST /workflows/entities/execute/v1][%d] executeUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ExecuteUnauthorized) GetPayload() *models.APIMFAResourceIDsResponse {
+ return o.Payload
+}
+
+func (o *ExecuteUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.APIMFAResourceIDsResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
// NewExecuteForbidden creates a ExecuteForbidden with default headers values
func NewExecuteForbidden() *ExecuteForbidden {
return &ExecuteForbidden{}
diff --git a/falcon/client/workflows/workflows_client.go b/falcon/client/workflows/workflows_client.go
index 3bc8104e..9c1d5abf 100644
--- a/falcon/client/workflows/workflows_client.go
+++ b/falcon/client/workflows/workflows_client.go
@@ -383,7 +383,7 @@ func (a *Client) WorkflowDefinitionsExport(params *WorkflowDefinitionsExportPara
ID: "WorkflowDefinitionsExport",
Method: "GET",
PathPattern: "/workflows/entities/definitions/export/v1",
- ProducesMediaTypes: []string{"application/yaml"},
+ ProducesMediaTypes: []string{"application/json", "application/yaml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/falcon/client/zero_trust_assessment/get_assessment_v1_responses.go b/falcon/client/zero_trust_assessment/get_assessment_v1_responses.go
index b94f588a..908f0afd 100644
--- a/falcon/client/zero_trust_assessment/get_assessment_v1_responses.go
+++ b/falcon/client/zero_trust_assessment/get_assessment_v1_responses.go
@@ -49,6 +49,12 @@ func (o *GetAssessmentV1Reader) ReadResponse(response runtime.ClientResponse, co
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetAssessmentV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /zero-trust-assessment/entities/assessments/v1] getAssessmentV1", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetAssessmentV1TooManyRequests) readResponse(response runtime.ClientRes
return nil
}
+
+// NewGetAssessmentV1InternalServerError creates a GetAssessmentV1InternalServerError with default headers values
+func NewGetAssessmentV1InternalServerError() *GetAssessmentV1InternalServerError {
+ return &GetAssessmentV1InternalServerError{}
+}
+
+/*
+GetAssessmentV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetAssessmentV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get assessment v1 internal server error response has a 2xx status code
+func (o *GetAssessmentV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get assessment v1 internal server error response has a 3xx status code
+func (o *GetAssessmentV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get assessment v1 internal server error response has a 4xx status code
+func (o *GetAssessmentV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get assessment v1 internal server error response has a 5xx status code
+func (o *GetAssessmentV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get assessment v1 internal server error response a status code equal to that given
+func (o *GetAssessmentV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get assessment v1 internal server error response
+func (o *GetAssessmentV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetAssessmentV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /zero-trust-assessment/entities/assessments/v1][%d] getAssessmentV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetAssessmentV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /zero-trust-assessment/entities/assessments/v1][%d] getAssessmentV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetAssessmentV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetAssessmentV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/zero_trust_assessment/get_assessments_by_score_v1_responses.go b/falcon/client/zero_trust_assessment/get_assessments_by_score_v1_responses.go
index 41c5477d..cf39fd10 100644
--- a/falcon/client/zero_trust_assessment/get_assessments_by_score_v1_responses.go
+++ b/falcon/client/zero_trust_assessment/get_assessments_by_score_v1_responses.go
@@ -55,6 +55,12 @@ func (o *GetAssessmentsByScoreV1Reader) ReadResponse(response runtime.ClientResp
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetAssessmentsByScoreV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /zero-trust-assessment/queries/assessments/v1] getAssessmentsByScoreV1", response, response.Code())
}
@@ -624,3 +630,113 @@ func (o *GetAssessmentsByScoreV1TooManyRequests) readResponse(response runtime.C
return nil
}
+
+// NewGetAssessmentsByScoreV1InternalServerError creates a GetAssessmentsByScoreV1InternalServerError with default headers values
+func NewGetAssessmentsByScoreV1InternalServerError() *GetAssessmentsByScoreV1InternalServerError {
+ return &GetAssessmentsByScoreV1InternalServerError{}
+}
+
+/*
+GetAssessmentsByScoreV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetAssessmentsByScoreV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get assessments by score v1 internal server error response has a 2xx status code
+func (o *GetAssessmentsByScoreV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get assessments by score v1 internal server error response has a 3xx status code
+func (o *GetAssessmentsByScoreV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get assessments by score v1 internal server error response has a 4xx status code
+func (o *GetAssessmentsByScoreV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get assessments by score v1 internal server error response has a 5xx status code
+func (o *GetAssessmentsByScoreV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get assessments by score v1 internal server error response a status code equal to that given
+func (o *GetAssessmentsByScoreV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get assessments by score v1 internal server error response
+func (o *GetAssessmentsByScoreV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetAssessmentsByScoreV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /zero-trust-assessment/queries/assessments/v1][%d] getAssessmentsByScoreV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetAssessmentsByScoreV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /zero-trust-assessment/queries/assessments/v1][%d] getAssessmentsByScoreV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetAssessmentsByScoreV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetAssessmentsByScoreV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/client/zero_trust_assessment/get_audit_v1_responses.go b/falcon/client/zero_trust_assessment/get_audit_v1_responses.go
index eaac95ed..114ccc21 100644
--- a/falcon/client/zero_trust_assessment/get_audit_v1_responses.go
+++ b/falcon/client/zero_trust_assessment/get_audit_v1_responses.go
@@ -49,6 +49,12 @@ func (o *GetAuditV1Reader) ReadResponse(response runtime.ClientResponse, consume
return nil, err
}
return nil, result
+ case 500:
+ result := NewGetAuditV1InternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
default:
return nil, runtime.NewAPIError("[GET /zero-trust-assessment/entities/audit/v1] getAuditV1", response, response.Code())
}
@@ -508,3 +514,113 @@ func (o *GetAuditV1TooManyRequests) readResponse(response runtime.ClientResponse
return nil
}
+
+// NewGetAuditV1InternalServerError creates a GetAuditV1InternalServerError with default headers values
+func NewGetAuditV1InternalServerError() *GetAuditV1InternalServerError {
+ return &GetAuditV1InternalServerError{}
+}
+
+/*
+GetAuditV1InternalServerError describes a response with status code 500, with default header values.
+
+Unexpected Error
+*/
+type GetAuditV1InternalServerError struct {
+
+ /* Trace-ID: submit to support if resolving an issue
+ */
+ XCSTRACEID string
+
+ /* Request limit per minute.
+ */
+ XRateLimitLimit int64
+
+ /* The number of requests remaining for the sliding one minute window.
+ */
+ XRateLimitRemaining int64
+
+ Payload *models.MsaReplyMetaOnly
+}
+
+// IsSuccess returns true when this get audit v1 internal server error response has a 2xx status code
+func (o *GetAuditV1InternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get audit v1 internal server error response has a 3xx status code
+func (o *GetAuditV1InternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get audit v1 internal server error response has a 4xx status code
+func (o *GetAuditV1InternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get audit v1 internal server error response has a 5xx status code
+func (o *GetAuditV1InternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get audit v1 internal server error response a status code equal to that given
+func (o *GetAuditV1InternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get audit v1 internal server error response
+func (o *GetAuditV1InternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetAuditV1InternalServerError) Error() string {
+ return fmt.Sprintf("[GET /zero-trust-assessment/entities/audit/v1][%d] getAuditV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetAuditV1InternalServerError) String() string {
+ return fmt.Sprintf("[GET /zero-trust-assessment/entities/audit/v1][%d] getAuditV1InternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetAuditV1InternalServerError) GetPayload() *models.MsaReplyMetaOnly {
+ return o.Payload
+}
+
+func (o *GetAuditV1InternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header X-CS-TRACEID
+ hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID")
+
+ if hdrXCSTRACEID != "" {
+ o.XCSTRACEID = hdrXCSTRACEID
+ }
+
+ // hydrates response header X-RateLimit-Limit
+ hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit")
+
+ if hdrXRateLimitLimit != "" {
+ valxRateLimitLimit, err := swag.ConvertInt64(hdrXRateLimitLimit)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Limit", "header", "int64", hdrXRateLimitLimit)
+ }
+ o.XRateLimitLimit = valxRateLimitLimit
+ }
+
+ // hydrates response header X-RateLimit-Remaining
+ hdrXRateLimitRemaining := response.GetHeader("X-RateLimit-Remaining")
+
+ if hdrXRateLimitRemaining != "" {
+ valxRateLimitRemaining, err := swag.ConvertInt64(hdrXRateLimitRemaining)
+ if err != nil {
+ return errors.InvalidType("X-RateLimit-Remaining", "header", "int64", hdrXRateLimitRemaining)
+ }
+ o.XRateLimitRemaining = valxRateLimitRemaining
+ }
+
+ o.Payload = new(models.MsaReplyMetaOnly)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/falcon/models/activities_activity.go b/falcon/models/activities_activity.go
index 03277054..6172ef46 100644
--- a/falcon/models/activities_activity.go
+++ b/falcon/models/activities_activity.go
@@ -23,6 +23,16 @@ type ActivitiesActivity struct {
// Required api scope to use this activity.
APIScope string `json:"api_scope,omitempty"`
+ // Optional ID if the activity is exposed through an app from Store
+ AppID string `json:"app_id,omitempty"`
+
+ // The CID that owns this activity, if this is empty it is a global activity
+ // Required: true
+ Cid *string `json:"cid"`
+
+ // Activity class to identify how it should be orchestrated. E.g. External, Break, CreateVariable and UpdateVariable
+ Class string `json:"class,omitempty"`
+
// A detailed description of what this action does
// Required: true
Description *string `json:"description"`
@@ -42,6 +52,9 @@ type ActivitiesActivity struct {
// Input fields required for configuring activity
InputFields []*ActivitiesActivityExtField `json:"input_fields"`
+ // JSON Schema describing the structured input of the activity for execution
+ InputSchema *JsonschemaSchema `json:"input_schema,omitempty"`
+
// A machine or developer-generated output, which should conform to the activity's output schema.
MockOutput ActivitiesActivityMockOutput `json:"mock_output,omitempty"`
@@ -65,6 +78,12 @@ type ActivitiesActivity struct {
// Format: date-time
Updated strfmt.DateTime `json:"updated,omitempty"`
+ // UseCases used by this activity
+ UseCases []string `json:"use_cases"`
+
+ // Vendors used by this activity
+ Vendor string `json:"vendor,omitempty"`
+
// An incrementing version number
Version int32 `json:"version,omitempty"`
}
@@ -73,6 +92,10 @@ type ActivitiesActivity struct {
func (m *ActivitiesActivity) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateCid(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateDescription(formats); err != nil {
res = append(res, err)
}
@@ -93,6 +116,10 @@ func (m *ActivitiesActivity) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateInputSchema(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateName(formats); err != nil {
res = append(res, err)
}
@@ -115,6 +142,15 @@ func (m *ActivitiesActivity) Validate(formats strfmt.Registry) error {
return nil
}
+func (m *ActivitiesActivity) validateCid(formats strfmt.Registry) error {
+
+ if err := validate.Required("cid", "body", m.Cid); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ActivitiesActivity) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("description", "body", m.Description); err != nil {
@@ -177,6 +213,25 @@ func (m *ActivitiesActivity) validateInputFields(formats strfmt.Registry) error
return nil
}
+func (m *ActivitiesActivity) validateInputSchema(formats strfmt.Registry) error {
+ if swag.IsZero(m.InputSchema) { // not required
+ return nil
+ }
+
+ if m.InputSchema != nil {
+ if err := m.InputSchema.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("input_schema")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("input_schema")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *ActivitiesActivity) validateName(formats strfmt.Registry) error {
if err := validate.Required("name", "body", m.Name); err != nil {
@@ -251,6 +306,10 @@ func (m *ActivitiesActivity) ContextValidate(ctx context.Context, formats strfmt
res = append(res, err)
}
+ if err := m.contextValidateInputSchema(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.contextValidateOutputFields(ctx, formats); err != nil {
res = append(res, err)
}
@@ -290,6 +349,27 @@ func (m *ActivitiesActivity) contextValidateInputFields(ctx context.Context, for
return nil
}
+func (m *ActivitiesActivity) contextValidateInputSchema(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.InputSchema != nil {
+
+ if swag.IsZero(m.InputSchema) { // not required
+ return nil
+ }
+
+ if err := m.InputSchema.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("input_schema")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("input_schema")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *ActivitiesActivity) contextValidateOutputFields(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.OutputFields); i++ {
diff --git a/falcon/models/activity.go b/falcon/models/activity.go
new file mode 100644
index 00000000..a372f523
--- /dev/null
+++ b/falcon/models/activity.go
@@ -0,0 +1,160 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// Activity activity
+//
+// swagger:model .activity
+type Activity struct {
+
+ // access type
+ AccessType *TypesPolicyRulesCondition `json:"accessType,omitempty"`
+
+ // access type custom
+ AccessTypeCustom *TypesPolicyRulesCondition `json:"accessTypeCustom,omitempty"`
+}
+
+// Validate validates this activity
+func (m *Activity) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAccessType(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateAccessTypeCustom(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *Activity) validateAccessType(formats strfmt.Registry) error {
+ if swag.IsZero(m.AccessType) { // not required
+ return nil
+ }
+
+ if m.AccessType != nil {
+ if err := m.AccessType.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("accessType")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("accessType")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *Activity) validateAccessTypeCustom(formats strfmt.Registry) error {
+ if swag.IsZero(m.AccessTypeCustom) { // not required
+ return nil
+ }
+
+ if m.AccessTypeCustom != nil {
+ if err := m.AccessTypeCustom.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("accessTypeCustom")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("accessTypeCustom")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this activity based on the context it is used
+func (m *Activity) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateAccessType(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateAccessTypeCustom(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *Activity) contextValidateAccessType(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.AccessType != nil {
+
+ if swag.IsZero(m.AccessType) { // not required
+ return nil
+ }
+
+ if err := m.AccessType.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("accessType")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("accessType")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *Activity) contextValidateAccessTypeCustom(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.AccessTypeCustom != nil {
+
+ if swag.IsZero(m.AccessTypeCustom) { // not required
+ return nil
+ }
+
+ if err := m.AccessTypeCustom.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("accessTypeCustom")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("accessTypeCustom")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *Activity) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *Activity) UnmarshalBinary(b []byte) error {
+ var res Activity
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/alerts_container_alerts_count_value.go b/falcon/models/alerts_container_alerts_count_value.go
index fa74070f..11ef396e 100644
--- a/falcon/models/alerts_container_alerts_count_value.go
+++ b/falcon/models/alerts_container_alerts_count_value.go
@@ -20,31 +20,31 @@ import (
// swagger:model alerts.containerAlertsCountValue
type AlertsContainerAlertsCountValue struct {
- // resources
- // Required: true
- Resources []*CommonCountAsResource `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*CommonCountAsResource `json:"resources"`
}
// Validate validates this alerts container alerts count value
func (m *AlertsContainerAlertsCountValue) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *AlertsContainerAlertsCountValue) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *AlertsContainerAlertsCountValue) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *AlertsContainerAlertsCountValue) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *AlertsContainerAlertsCountValue) validateMeta(formats strfmt.Registry)
return nil
}
+func (m *AlertsContainerAlertsCountValue) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this alerts container alerts count value based on the context it is used
func (m *AlertsContainerAlertsCountValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *AlertsContainerAlertsCountValue) ContextValidate(ctx context.Context, f
return nil
}
-func (m *AlertsContainerAlertsCountValue) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *AlertsContainerAlertsCountValue) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *AlertsContainerAlertsCountValue) contextValidateMeta(ctx context.Contex
return nil
}
+func (m *AlertsContainerAlertsCountValue) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *AlertsContainerAlertsCountValue) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/api_hourly_average_response.go b/falcon/models/api_hourly_average_response.go
new file mode 100644
index 00000000..8c6f429f
--- /dev/null
+++ b/falcon/models/api_hourly_average_response.go
@@ -0,0 +1,235 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// APIHourlyAverageResponse api hourly average response
+//
+// swagger:model api.HourlyAverageResponse
+type APIHourlyAverageResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*EntitiesRollingAverage `json:"resources"`
+}
+
+// Validate validates this api hourly average response
+func (m *APIHourlyAverageResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *APIHourlyAverageResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *APIHourlyAverageResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *APIHourlyAverageResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this api hourly average response based on the context it is used
+func (m *APIHourlyAverageResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *APIHourlyAverageResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *APIHourlyAverageResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *APIHourlyAverageResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *APIHourlyAverageResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *APIHourlyAverageResponse) UnmarshalBinary(b []byte) error {
+ var res APIHourlyAverageResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/api_m_f_a_resource_i_ds_response.go b/falcon/models/api_m_f_a_resource_i_ds_response.go
new file mode 100644
index 00000000..d0bbb94a
--- /dev/null
+++ b/falcon/models/api_m_f_a_resource_i_ds_response.go
@@ -0,0 +1,191 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// APIMFAResourceIDsResponse api m f a resource i ds response
+//
+// swagger:model api.MFAResourceIDsResponse
+type APIMFAResourceIDsResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // next
+ Next APIMFAResourceIDsResponseNext `json:"next,omitempty"`
+
+ // resources
+ // Required: true
+ Resources []string `json:"resources"`
+}
+
+// Validate validates this api m f a resource i ds response
+func (m *APIMFAResourceIDsResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *APIMFAResourceIDsResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *APIMFAResourceIDsResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *APIMFAResourceIDsResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this api m f a resource i ds response based on the context it is used
+func (m *APIMFAResourceIDsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *APIMFAResourceIDsResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *APIMFAResourceIDsResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *APIMFAResourceIDsResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *APIMFAResourceIDsResponse) UnmarshalBinary(b []byte) error {
+ var res APIMFAResourceIDsResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/api_m_f_a_resource_i_ds_response_next.go b/falcon/models/api_m_f_a_resource_i_ds_response_next.go
new file mode 100644
index 00000000..84fc7632
--- /dev/null
+++ b/falcon/models/api_m_f_a_resource_i_ds_response_next.go
@@ -0,0 +1,11 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+// APIMFAResourceIDsResponseNext api m f a resource i ds response next
+//
+// swagger:model api.MFAResourceIDsResponse.next
+type APIMFAResourceIDsResponseNext interface{}
diff --git a/falcon/models/api_meta_info.go b/falcon/models/api_meta_info.go
index a0895ccd..8eab0afc 100644
--- a/falcon/models/api_meta_info.go
+++ b/falcon/models/api_meta_info.go
@@ -19,17 +19,17 @@ import (
// swagger:model api.MetaInfo
type APIMetaInfo struct {
- // pagination
- Pagination *APIPaging `json:"pagination,omitempty"`
+ // Pagination-related metadata
+ Pagination *APIResponsePagination `json:"pagination,omitempty"`
- // powered by
+ // The alias of the service which handled the request
PoweredBy string `json:"powered_by,omitempty"`
- // query time
+ // The duration (in seconds) that the service took to handle the request
// Required: true
QueryTime *float64 `json:"query_time"`
- // trace id
+ // Identifier used to debug the request
// Required: true
TraceID *string `json:"trace_id"`
}
diff --git a/falcon/models/api_object_metadata.go b/falcon/models/api_object_metadata.go
index 8a5dc5b4..d1d3165b 100644
--- a/falcon/models/api_object_metadata.go
+++ b/falcon/models/api_object_metadata.go
@@ -23,6 +23,9 @@ type APIObjectMetadata struct {
// Required: true
CollectionName *string `json:"collection_name"`
+ // collection version
+ CollectionVersion string `json:"collection_version,omitempty"`
+
// last modified time
// Format: date-time
LastModifiedTime strfmt.DateTime `json:"last_modified_time,omitempty"`
diff --git a/falcon/models/api_paging.go b/falcon/models/api_paging.go
deleted file mode 100644
index 31419924..00000000
--- a/falcon/models/api_paging.go
+++ /dev/null
@@ -1,62 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// APIPaging api paging
-//
-// swagger:model api.Paging
-type APIPaging struct {
-
- // number of records returned
- Count int32 `json:"count,omitempty"`
-
- // maximum number of records to return in a page
- Limit int32 `json:"limit,omitempty"`
-
- // start key to list results of next page, used in list APIs
- Next string `json:"next,omitempty"`
-
- // index of the first record of the next page in search results
- Offset int32 `json:"offset,omitempty"`
-
- // total number of records matching the filter criteria
- Total int32 `json:"total,omitempty"`
-}
-
-// Validate validates this api paging
-func (m *APIPaging) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// ContextValidate validates this api paging based on context it is used
-func (m *APIPaging) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *APIPaging) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *APIPaging) UnmarshalBinary(b []byte) error {
- var res APIPaging
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/falcon/models/api_response_pagination.go b/falcon/models/api_response_pagination.go
new file mode 100644
index 00000000..bc4e9e55
--- /dev/null
+++ b/falcon/models/api_response_pagination.go
@@ -0,0 +1,74 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// APIResponsePagination api response pagination
+//
+// swagger:model api.ResponsePagination
+type APIResponsePagination struct {
+
+ // Encoded state used for pagination
+ Offset string `json:"offset,omitempty"`
+
+ // The total number of elements
+ // Required: true
+ Total *int64 `json:"total"`
+}
+
+// Validate validates this api response pagination
+func (m *APIResponsePagination) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateTotal(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *APIResponsePagination) validateTotal(formats strfmt.Registry) error {
+
+ if err := validate.Required("total", "body", m.Total); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this api response pagination based on context it is used
+func (m *APIResponsePagination) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *APIResponsePagination) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *APIResponsePagination) UnmarshalBinary(b []byte) error {
+ var res APIResponsePagination
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/api_weekly_average_response.go b/falcon/models/api_weekly_average_response.go
new file mode 100644
index 00000000..7e4dc838
--- /dev/null
+++ b/falcon/models/api_weekly_average_response.go
@@ -0,0 +1,235 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// APIWeeklyAverageResponse api weekly average response
+//
+// swagger:model api.WeeklyAverageResponse
+type APIWeeklyAverageResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*EntitiesRollingAverage `json:"resources"`
+}
+
+// Validate validates this api weekly average response
+func (m *APIWeeklyAverageResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *APIWeeklyAverageResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *APIWeeklyAverageResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *APIWeeklyAverageResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this api weekly average response based on the context it is used
+func (m *APIWeeklyAverageResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *APIWeeklyAverageResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *APIWeeklyAverageResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *APIWeeklyAverageResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *APIWeeklyAverageResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *APIWeeklyAverageResponse) UnmarshalBinary(b []byte) error {
+ var res APIWeeklyAverageResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/common_count_as_resource.go b/falcon/models/common_count_as_resource.go
index 6a70597e..109d0f5c 100644
--- a/falcon/models/common_count_as_resource.go
+++ b/falcon/models/common_count_as_resource.go
@@ -22,10 +22,6 @@ type CommonCountAsResource struct {
// count
// Required: true
Count *int64 `json:"count"`
-
- // label
- // Required: true
- Label *string `json:"label"`
}
// Validate validates this common count as resource
@@ -36,10 +32,6 @@ func (m *CommonCountAsResource) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
- if err := m.validateLabel(formats); err != nil {
- res = append(res, err)
- }
-
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -55,15 +47,6 @@ func (m *CommonCountAsResource) validateCount(formats strfmt.Registry) error {
return nil
}
-func (m *CommonCountAsResource) validateLabel(formats strfmt.Registry) error {
-
- if err := validate.Required("label", "body", m.Label); err != nil {
- return err
- }
-
- return nil
-}
-
// ContextValidate validates this common count as resource based on context it is used
func (m *CommonCountAsResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
diff --git a/falcon/models/common_count_response.go b/falcon/models/common_count_response.go
index 5015f6bb..f00f1789 100644
--- a/falcon/models/common_count_response.go
+++ b/falcon/models/common_count_response.go
@@ -20,31 +20,31 @@ import (
// swagger:model common.CountResponse
type CommonCountResponse struct {
- // resources
- // Required: true
- Resources []*CommonCountAsResource `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*CommonCountAsResource `json:"resources"`
}
// Validate validates this common count response
func (m *CommonCountResponse) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *CommonCountResponse) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *CommonCountResponse) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *CommonCountResponse) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *CommonCountResponse) validateMeta(formats strfmt.Registry) error {
return nil
}
+func (m *CommonCountResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this common count response based on the context it is used
func (m *CommonCountResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *CommonCountResponse) ContextValidate(ctx context.Context, formats strfm
return nil
}
-func (m *CommonCountResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *CommonCountResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *CommonCountResponse) contextValidateMeta(ctx context.Context, formats s
return nil
}
+func (m *CommonCountResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *CommonCountResponse) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/common_entities_response.go b/falcon/models/common_entities_response.go
new file mode 100644
index 00000000..0673797a
--- /dev/null
+++ b/falcon/models/common_entities_response.go
@@ -0,0 +1,190 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// CommonEntitiesResponse common entities response
+//
+// swagger:model common.EntitiesResponse
+type CommonEntitiesResponse struct {
+
+ // errors
+ // Required: true
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources CommonEntitiesResponseResources `json:"resources"`
+}
+
+// Validate validates this common entities response
+func (m *CommonEntitiesResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *CommonEntitiesResponse) validateErrors(formats strfmt.Registry) error {
+
+ if err := validate.Required("errors", "body", m.Errors); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *CommonEntitiesResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *CommonEntitiesResponse) validateResources(formats strfmt.Registry) error {
+
+ if m.Resources == nil {
+ return errors.Required("resources", "body", nil)
+ }
+
+ return nil
+}
+
+// ContextValidate validate this common entities response based on the context it is used
+func (m *CommonEntitiesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *CommonEntitiesResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *CommonEntitiesResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *CommonEntitiesResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *CommonEntitiesResponse) UnmarshalBinary(b []byte) error {
+ var res CommonEntitiesResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/common_entities_response_resources.go b/falcon/models/common_entities_response_resources.go
new file mode 100644
index 00000000..12f4f6d3
--- /dev/null
+++ b/falcon/models/common_entities_response_resources.go
@@ -0,0 +1,11 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+// CommonEntitiesResponseResources common entities response resources
+//
+// swagger:model common.EntitiesResponse.resources
+type CommonEntitiesResponseResources interface{}
diff --git a/falcon/models/custom_type3352885422.go b/falcon/models/custom_type3352885422.go
new file mode 100644
index 00000000..8838e55b
--- /dev/null
+++ b/falcon/models/custom_type3352885422.go
@@ -0,0 +1,11 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+// CustomType3352885422 custom type 3352885422
+//
+// swagger:model CustomType_3352885422
+type CustomType3352885422 interface{}
diff --git a/falcon/models/definitions_definition_ext.go b/falcon/models/definitions_definition_ext.go
index 852104f2..663f6cc7 100644
--- a/falcon/models/definitions_definition_ext.go
+++ b/falcon/models/definitions_definition_ext.go
@@ -71,6 +71,9 @@ type DefinitionsDefinitionExt struct {
// provision on install
ProvisionOnInstall bool `json:"provision_on_install,omitempty"`
+ // summary
+ Summary string `json:"summary,omitempty"`
+
// trigger
// Required: true
Trigger *V2Trigger `json:"trigger"`
@@ -82,6 +85,12 @@ type DefinitionsDefinitionExt struct {
// Required: true
UniqNodeSeen map[string]bool `json:"uniqNodeSeen"`
+ // use cases
+ UseCases []string `json:"use_cases"`
+
+ // vendors
+ Vendors []string `json:"vendors"`
+
// Version of the workflow. A given definition ID can have many versions. Each time an update is applied a new version is generated.
// Required: true
Version *int32 `json:"version"`
diff --git a/falcon/models/destination.go b/falcon/models/destination.go
new file mode 100644
index 00000000..84ac3398
--- /dev/null
+++ b/falcon/models/destination.go
@@ -0,0 +1,160 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// Destination destination
+//
+// swagger:model .destination
+type Destination struct {
+
+ // entity Id
+ EntityID *TypesPolicyRulesCondition `json:"entityId,omitempty"`
+
+ // group membership
+ GroupMembership *TypesPolicyRulesCondition `json:"groupMembership,omitempty"`
+}
+
+// Validate validates this destination
+func (m *Destination) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateEntityID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateGroupMembership(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *Destination) validateEntityID(formats strfmt.Registry) error {
+ if swag.IsZero(m.EntityID) { // not required
+ return nil
+ }
+
+ if m.EntityID != nil {
+ if err := m.EntityID.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("entityId")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("entityId")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *Destination) validateGroupMembership(formats strfmt.Registry) error {
+ if swag.IsZero(m.GroupMembership) { // not required
+ return nil
+ }
+
+ if m.GroupMembership != nil {
+ if err := m.GroupMembership.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("groupMembership")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("groupMembership")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this destination based on the context it is used
+func (m *Destination) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateEntityID(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateGroupMembership(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *Destination) contextValidateEntityID(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.EntityID != nil {
+
+ if swag.IsZero(m.EntityID) { // not required
+ return nil
+ }
+
+ if err := m.EntityID.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("entityId")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("entityId")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *Destination) contextValidateGroupMembership(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.GroupMembership != nil {
+
+ if swag.IsZero(m.GroupMembership) { // not required
+ return nil
+ }
+
+ if err := m.GroupMembership.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("groupMembership")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("groupMembership")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *Destination) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *Destination) UnmarshalBinary(b []byte) error {
+ var res Destination
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/detections_api_assessment_detections.go b/falcon/models/detections_api_assessment_detections.go
index 4010dd8a..9cc761f8 100644
--- a/falcon/models/detections_api_assessment_detections.go
+++ b/falcon/models/detections_api_assessment_detections.go
@@ -20,31 +20,31 @@ import (
// swagger:model detections.apiAssessmentDetections
type DetectionsAPIAssessmentDetections struct {
- // resources
- // Required: true
- Resources []*ModelsAPIAssessmentDetections `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*ModelsAPIAssessmentDetections `json:"resources"`
}
// Validate validates this detections api assessment detections
func (m *DetectionsAPIAssessmentDetections) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *DetectionsAPIAssessmentDetections) Validate(formats strfmt.Registry) er
return nil
}
-func (m *DetectionsAPIAssessmentDetections) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *DetectionsAPIAssessmentDetections) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *DetectionsAPIAssessmentDetections) validateMeta(formats strfmt.Registry
return nil
}
+func (m *DetectionsAPIAssessmentDetections) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this detections api assessment detections based on the context it is used
func (m *DetectionsAPIAssessmentDetections) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *DetectionsAPIAssessmentDetections) ContextValidate(ctx context.Context,
return nil
}
-func (m *DetectionsAPIAssessmentDetections) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *DetectionsAPIAssessmentDetections) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *DetectionsAPIAssessmentDetections) contextValidateMeta(ctx context.Cont
return nil
}
+func (m *DetectionsAPIAssessmentDetections) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *DetectionsAPIAssessmentDetections) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/detections_api_combined_detections.go b/falcon/models/detections_api_combined_detections.go
index 0bfdcc1e..3a605ef2 100644
--- a/falcon/models/detections_api_combined_detections.go
+++ b/falcon/models/detections_api_combined_detections.go
@@ -20,31 +20,31 @@ import (
// swagger:model detections.apiCombinedDetections
type DetectionsAPICombinedDetections struct {
- // resources
- // Required: true
- Resources []*ModelsAPICombinedDetections `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*ModelsAPICombinedDetections `json:"resources"`
}
// Validate validates this detections api combined detections
func (m *DetectionsAPICombinedDetections) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *DetectionsAPICombinedDetections) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *DetectionsAPICombinedDetections) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *DetectionsAPICombinedDetections) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *DetectionsAPICombinedDetections) validateMeta(formats strfmt.Registry)
return nil
}
+func (m *DetectionsAPICombinedDetections) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this detections api combined detections based on the context it is used
func (m *DetectionsAPICombinedDetections) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *DetectionsAPICombinedDetections) ContextValidate(ctx context.Context, f
return nil
}
-func (m *DetectionsAPICombinedDetections) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *DetectionsAPICombinedDetections) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *DetectionsAPICombinedDetections) contextValidateMeta(ctx context.Contex
return nil
}
+func (m *DetectionsAPICombinedDetections) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *DetectionsAPICombinedDetections) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/detections_api_detections_count.go b/falcon/models/detections_api_detections_count.go
index edddde67..dce22b93 100644
--- a/falcon/models/detections_api_detections_count.go
+++ b/falcon/models/detections_api_detections_count.go
@@ -20,31 +20,31 @@ import (
// swagger:model detections.apiDetectionsCount
type DetectionsAPIDetectionsCount struct {
- // resources
- // Required: true
- Resources []*ModelsAPIDetectionCount `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*ModelsAPIDetectionCount `json:"resources"`
}
// Validate validates this detections api detections count
func (m *DetectionsAPIDetectionsCount) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *DetectionsAPIDetectionsCount) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *DetectionsAPIDetectionsCount) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *DetectionsAPIDetectionsCount) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *DetectionsAPIDetectionsCount) validateMeta(formats strfmt.Registry) err
return nil
}
+func (m *DetectionsAPIDetectionsCount) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this detections api detections count based on the context it is used
func (m *DetectionsAPIDetectionsCount) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *DetectionsAPIDetectionsCount) ContextValidate(ctx context.Context, form
return nil
}
-func (m *DetectionsAPIDetectionsCount) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *DetectionsAPIDetectionsCount) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *DetectionsAPIDetectionsCount) contextValidateMeta(ctx context.Context,
return nil
}
+func (m *DetectionsAPIDetectionsCount) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *DetectionsAPIDetectionsCount) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/detects_alert.go b/falcon/models/detects_alert.go
index d42452b2..539e7a44 100644
--- a/falcon/models/detects_alert.go
+++ b/falcon/models/detects_alert.go
@@ -7,6 +7,8 @@ package models
import (
"context"
+ "encoding/json"
+ "strconv"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
@@ -20,98 +22,197 @@ import (
type DetectsAlert struct {
// Device or sensor ID for which the Alert was generated
- AgentID string `json:"agent_id,omitempty"`
+ // Required: true
+ AgentID *string `json:"agent_id"`
// Common linkage between multiple Alerts that belong to the same detection bouquet
// Required: true
AggregateID *string `json:"aggregate_id"`
+ // alleged filetype
+ AllegedFiletype string `json:"alleged_filetype,omitempty"`
+
// Name of the person this Alert is assigned to
- AssignedToName string `json:"assigned_to_name,omitempty"`
+ // Required: true
+ AssignedToName *string `json:"assigned_to_name"`
// UserID to which this Alert is assigned to
- AssignedToUID string `json:"assigned_to_uid,omitempty"`
+ // Required: true
+ AssignedToUID *string `json:"assigned_to_uid"`
// UUID to which this Alert is assigned to
- AssignedToUUID string `json:"assigned_to_uuid,omitempty"`
+ // Required: true
+ AssignedToUUID *string `json:"assigned_to_uuid"`
// Unique ID of CrowdStrike customers
- Cid string `json:"cid,omitempty"`
+ // Required: true
+ Cid *string `json:"cid"`
+
+ // cloud indicator
+ CloudIndicator string `json:"cloud_indicator,omitempty"`
+
+ // cmdline
+ Cmdline string `json:"cmdline,omitempty"`
// An opaque internal identifier that can uniquely identify an Alert
- CompositeID string `json:"composite_id,omitempty"`
+ // Required: true
+ CompositeID *string `json:"composite_id"`
// Confidence is a 1-100 integer value denoting the confidence that, when this Alert fires, it is indicative of malicious activity
- Confidence int64 `json:"confidence,omitempty"`
+ // Required: true
+ Confidence *int64 `json:"confidence"`
+
+ // context timestamp
+ // Format: date-time
+ ContextTimestamp strfmt.DateTime `json:"context_timestamp,omitempty"`
+
+ // control graph id
+ ControlGraphID string `json:"control_graph_id,omitempty"`
- // internal only
- CrawlEdgeIds map[string][]string `json:"crawl_edge_ids,omitempty"`
+ // crawl edge ids
+ CrawlEdgeIds *DetectsAlertCrawlEdgeIds `json:"crawl_edge_ids,omitempty"`
- // internal only
- CrawlVertexIds map[string][]string `json:"crawl_vertex_ids,omitempty"`
+ // crawl vertex ids
+ CrawlVertexIds *DetectsAlertCrawlVertexIds `json:"crawl_vertex_ids,omitempty"`
// indicates when ThreatGraph was crawled to gather info for this alert creation/update
+ // Required: true
// Format: date-time
- CrawledTimestamp strfmt.DateTime `json:"crawled_timestamp,omitempty"`
+ CrawledTimestamp *strfmt.DateTime `json:"crawled_timestamp"`
// indicates when the Alert was first written to backend store
+ // Required: true
// Format: date-time
- CreatedTimestamp strfmt.DateTime `json:"created_timestamp,omitempty"`
+ CreatedTimestamp *strfmt.DateTime `json:"created_timestamp"`
// Data Domains represents domains to which this alert belongs to
+ // Required: true
DataDomains []string `json:"data_domains"`
// Short, customer-visible summary of the detected activity
- Description string `json:"description,omitempty"`
+ // Required: true
+ Description *string `json:"description"`
+
+ // device
+ Device *DetectsAlertDevice `json:"device,omitempty"`
// Customer visible name for the Alert's pattern
- DisplayName string `json:"display_name,omitempty"`
+ // Required: true
+ DisplayName *string `json:"display_name"`
// Boolean to know if we sent email regarding this Alert
- EmailSent bool `json:"email_sent,omitempty"`
+ // Required: true
+ EmailSent *bool `json:"email_sent"`
- // internal only
- EsDocID string `json:"es_doc_id,omitempty"`
+ // Boolean indicating if this Alert is internal or external
+ // Required: true
+ External *bool `json:"external"`
- // internal only
- EsDocVersion int64 `json:"es_doc_version,omitempty"`
+ // falcon host link
+ FalconHostLink string `json:"falcon_host_link,omitempty"`
- // internal only
- EsRoutingID string `json:"es_routing_id,omitempty"`
+ // filename
+ Filename string `json:"filename,omitempty"`
- // internal only
- EsSourceSize int32 `json:"es_source_size,omitempty"`
+ // filepath
+ Filepath string `json:"filepath,omitempty"`
- // Boolean indicating if this Alert is internal or external
- External bool `json:"external,omitempty"`
+ // grandparent details
+ GrandparentDetails *DetectsAlertGrandparentDetails `json:"grandparent_details,omitempty"`
+
+ // has script or module ioce
+ HasScriptOrModuleIoce bool `json:"has_script_or_module_ioce,omitempty"`
// Vertex key which triggers the formation of the Alert
- ID string `json:"id,omitempty"`
+ // Required: true
+ ID *string `json:"id"`
+
+ // indicator id
+ IndicatorID string `json:"indicator_id,omitempty"`
+
+ // ioc context
+ IocContext []*DetectsAlertIocContextItems0 `json:"ioc_context"`
+
+ // ioc description
+ IocDescription string `json:"ioc_description,omitempty"`
+
+ // ioc source
+ IocSource string `json:"ioc_source,omitempty"`
+
+ // ioc type
+ IocType string `json:"ioc_type,omitempty"`
+
+ // ioc value
+ IocValue string `json:"ioc_value,omitempty"`
+
+ // ioc values
+ IocValues []string `json:"ioc_values"`
+
+ // is synthetic quarantine disposition
+ IsSyntheticQuarantineDisposition bool `json:"is_synthetic_quarantine_disposition,omitempty"`
+
+ // local process id
+ LocalProcessID string `json:"local_process_id,omitempty"`
+
+ // logon domain
+ LogonDomain string `json:"logon_domain,omitempty"`
+
+ // md5
+ Md5 string `json:"md5,omitempty"`
// Pattern Name coming either from Taxonomy or directly from the ingested Alert
- Name string `json:"name,omitempty"`
+ // Required: true
+ Name *string `json:"name"`
// End goal that an attack adversary intends to achieve according to MITRE
- Objective string `json:"objective,omitempty"`
+ // Required: true
+ Objective *string `json:"objective"`
+
+ // parent details
+ ParentDetails *DetectsAlertParentDetails `json:"parent_details,omitempty"`
+
+ // parent process id
+ ParentProcessID string `json:"parent_process_id,omitempty"`
+
+ // pattern disposition
+ PatternDisposition *int64 `json:"pattern_disposition,omitempty"`
+
+ // pattern disposition description
+ PatternDispositionDescription string `json:"pattern_disposition_description,omitempty"`
+
+ // pattern disposition details
+ PatternDispositionDetails *DetectsAlertPatternDispositionDetails `json:"pattern_disposition_details,omitempty"`
// Taxonomy patternID for this Alert
- PatternID int64 `json:"pattern_id,omitempty"`
+ // Required: true
+ PatternID *int64 `json:"pattern_id"`
// Platform that this Alert was triggered on e.g. Android, Windows, etc..
- Platform string `json:"platform,omitempty"`
+ // Required: true
+ Platform *string `json:"platform"`
// poly id
PolyID string `json:"poly_id,omitempty"`
+ // process end time
+ ProcessEndTime string `json:"process_end_time,omitempty"`
+
+ // process id
+ ProcessID string `json:"process_id,omitempty"`
+
+ // process start time
+ ProcessStartTime string `json:"process_start_time,omitempty"`
+
// Product specifies the SKU that this Alert belongs to e.g. mobile, idp, epp
- Product string `json:"product,omitempty"`
+ // Required: true
+ Product *string `json:"product"`
- // indicates when the Alert was marked as 'Resolved'
- // Format: date-time
- ResolvedTimestamp strfmt.DateTime `json:"resolved_timestamp,omitempty"`
+ // quarantined files
+ QuarantinedFiles []*DetectsAlertQuarantinedFilesItems0 `json:"quarantined_files"`
// Scenario was used pre-Handrails to display additional killchain context for UI alerts. With handrails, this field is mostly obsolete in favor of tactic/technique. Still, it can be useful for determining specific pattern types that are not straightforward to distinguish from other fields alone
- Scenario string `json:"scenario,omitempty"`
+ // Required: true
+ Scenario *string `json:"scenario"`
// Seconds To Resolved represents the seconds elapsed since this alert has been resolved
// Required: true
@@ -122,229 +223,2672 @@ type DetectsAlert struct {
SecondsToTriaged *int64 `json:"seconds_to_triaged"`
// Severity is also a 1-100 integer value, but unlike confidence severity impacts how a Alert is displayed in the UI
- Severity int64 `json:"severity,omitempty"`
+ // Required: true
+ Severity *int64 `json:"severity"`
// Severity name is a UI friendly bucketing of the severity integer
- SeverityName string `json:"severity_name,omitempty"`
+ // Required: true
+ SeverityName *string `json:"severity_name"`
- // Boolean indicating if this Alert will be shown in the UI or if it's hidden'
- ShowInUI bool `json:"show_in_ui,omitempty"`
+ // sha1
+ Sha1 string `json:"sha1,omitempty"`
- // show in ui updated timestamp
- // Format: date-time
- ShowInUIUpdatedTimestamp strfmt.DateTime `json:"show_in_ui_updated_timestamp,omitempty"`
+ // sha256
+ Sha256 string `json:"sha256,omitempty"`
+
+ // Boolean indicating if this Alert will be shown in the UI or if it's hidden'
+ // Required: true
+ ShowInUI *bool `json:"show_in_ui"`
// Source Products are products that produced events which contributed to this alert
+ // Required: true
SourceProducts []string `json:"source_products"`
// Source Vendors are vendors that produced events which contributed to this alert
+ // Required: true
SourceVendors []string `json:"source_vendors"`
// Could be one of the following - New, closed, in_progress, reopened
- Status string `json:"status,omitempty"`
+ // Required: true
+ Status *string `json:"status"`
// Tactic and Technique are references to MITRE ATT&CK, which is a public framework for tracking and modeling adversary tools techniques and procedures
- Tactic string `json:"tactic,omitempty"`
+ // Required: true
+ Tactic *string `json:"tactic"`
// Unique ID for the tactic seen in the Alert
- TacticID string `json:"tactic_id,omitempty"`
+ // Required: true
+ TacticID *string `json:"tactic_id"`
// Tags are string values associated with the alert that can be added or removed through the API
+ // Required: true
Tags []string `json:"tags"`
// Tactic and Technique are references to MITRE ATT&CK, which is a public framework for tracking and modeling adversary tools techniques and procedures
- Technique string `json:"technique,omitempty"`
+ // Required: true
+ Technique *string `json:"technique"`
// Unique ID for the technique seen in the Alert
- TechniqueID string `json:"technique_id,omitempty"`
+ // Required: true
+ TechniqueID *string `json:"technique_id"`
// stored value coming in directly from the ingested event or set by cloud in the absence of it
+ // Required: true
// Format: date-time
- Timestamp strfmt.DateTime `json:"timestamp,omitempty"`
+ Timestamp *strfmt.DateTime `json:"timestamp"`
+
+ // tree id
+ TreeID string `json:"tree_id,omitempty"`
+
+ // tree root
+ TreeRoot string `json:"tree_root,omitempty"`
+
+ // triggering process graph id
+ TriggeringProcessGraphID string `json:"triggering_process_graph_id,omitempty"`
// Type of definition Detections Extensibility use. Keyed-off of Pattern of the incoming events/Alerts
// Required: true
Type *string `json:"type"`
// indicates when the Alert was last modified
+ // Required: true
// Format: date-time
- UpdatedTimestamp strfmt.DateTime `json:"updated_timestamp,omitempty"`
+ UpdatedTimestamp *strfmt.DateTime `json:"updated_timestamp"`
+
+ // user id
+ UserID string `json:"user_id,omitempty"`
+
+ // user name
+ UserName string `json:"user_name,omitempty"`
+
+ // detects alert additional properties
+ DetectsAlertAdditionalProperties map[string]interface{} `json:"-"`
}
-// Validate validates this detects alert
-func (m *DetectsAlert) Validate(formats strfmt.Registry) error {
- var res []error
+// UnmarshalJSON unmarshals this object with additional properties from JSON
+func (m *DetectsAlert) UnmarshalJSON(data []byte) error {
+ // stage 1, bind the properties
+ var stage1 struct {
- if err := m.validateAggregateID(formats); err != nil {
- res = append(res, err)
- }
+ // Device or sensor ID for which the Alert was generated
+ // Required: true
+ AgentID *string `json:"agent_id"`
- if err := m.validateCrawledTimestamp(formats); err != nil {
- res = append(res, err)
- }
+ // Common linkage between multiple Alerts that belong to the same detection bouquet
+ // Required: true
+ AggregateID *string `json:"aggregate_id"`
- if err := m.validateCreatedTimestamp(formats); err != nil {
- res = append(res, err)
- }
+ // alleged filetype
+ AllegedFiletype string `json:"alleged_filetype,omitempty"`
- if err := m.validateResolvedTimestamp(formats); err != nil {
- res = append(res, err)
- }
+ // Name of the person this Alert is assigned to
+ // Required: true
+ AssignedToName *string `json:"assigned_to_name"`
- if err := m.validateSecondsToResolved(formats); err != nil {
- res = append(res, err)
- }
+ // UserID to which this Alert is assigned to
+ // Required: true
+ AssignedToUID *string `json:"assigned_to_uid"`
- if err := m.validateSecondsToTriaged(formats); err != nil {
- res = append(res, err)
- }
+ // UUID to which this Alert is assigned to
+ // Required: true
+ AssignedToUUID *string `json:"assigned_to_uuid"`
- if err := m.validateShowInUIUpdatedTimestamp(formats); err != nil {
- res = append(res, err)
- }
+ // Unique ID of CrowdStrike customers
+ // Required: true
+ Cid *string `json:"cid"`
- if err := m.validateTimestamp(formats); err != nil {
- res = append(res, err)
- }
+ // cloud indicator
+ CloudIndicator string `json:"cloud_indicator,omitempty"`
- if err := m.validateType(formats); err != nil {
- res = append(res, err)
- }
+ // cmdline
+ Cmdline string `json:"cmdline,omitempty"`
- if err := m.validateUpdatedTimestamp(formats); err != nil {
- res = append(res, err)
- }
+ // An opaque internal identifier that can uniquely identify an Alert
+ // Required: true
+ CompositeID *string `json:"composite_id"`
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
+ // Confidence is a 1-100 integer value denoting the confidence that, when this Alert fires, it is indicative of malicious activity
+ // Required: true
+ Confidence *int64 `json:"confidence"`
-func (m *DetectsAlert) validateAggregateID(formats strfmt.Registry) error {
+ // context timestamp
+ // Format: date-time
+ ContextTimestamp strfmt.DateTime `json:"context_timestamp,omitempty"`
- if err := validate.Required("aggregate_id", "body", m.AggregateID); err != nil {
- return err
- }
+ // control graph id
+ ControlGraphID string `json:"control_graph_id,omitempty"`
- return nil
-}
+ // crawl edge ids
+ CrawlEdgeIds *DetectsAlertCrawlEdgeIds `json:"crawl_edge_ids,omitempty"`
-func (m *DetectsAlert) validateCrawledTimestamp(formats strfmt.Registry) error {
- if swag.IsZero(m.CrawledTimestamp) { // not required
- return nil
- }
+ // crawl vertex ids
+ CrawlVertexIds *DetectsAlertCrawlVertexIds `json:"crawl_vertex_ids,omitempty"`
- if err := validate.FormatOf("crawled_timestamp", "body", "date-time", m.CrawledTimestamp.String(), formats); err != nil {
- return err
- }
+ // indicates when ThreatGraph was crawled to gather info for this alert creation/update
+ // Required: true
+ // Format: date-time
+ CrawledTimestamp *strfmt.DateTime `json:"crawled_timestamp"`
- return nil
-}
+ // indicates when the Alert was first written to backend store
+ // Required: true
+ // Format: date-time
+ CreatedTimestamp *strfmt.DateTime `json:"created_timestamp"`
-func (m *DetectsAlert) validateCreatedTimestamp(formats strfmt.Registry) error {
- if swag.IsZero(m.CreatedTimestamp) { // not required
- return nil
- }
+ // Data Domains represents domains to which this alert belongs to
+ // Required: true
+ DataDomains []string `json:"data_domains"`
- if err := validate.FormatOf("created_timestamp", "body", "date-time", m.CreatedTimestamp.String(), formats); err != nil {
- return err
- }
+ // Short, customer-visible summary of the detected activity
+ // Required: true
+ Description *string `json:"description"`
- return nil
-}
+ // device
+ Device *DetectsAlertDevice `json:"device,omitempty"`
-func (m *DetectsAlert) validateResolvedTimestamp(formats strfmt.Registry) error {
- if swag.IsZero(m.ResolvedTimestamp) { // not required
- return nil
- }
+ // Customer visible name for the Alert's pattern
+ // Required: true
+ DisplayName *string `json:"display_name"`
- if err := validate.FormatOf("resolved_timestamp", "body", "date-time", m.ResolvedTimestamp.String(), formats); err != nil {
- return err
- }
+ // Boolean to know if we sent email regarding this Alert
+ // Required: true
+ EmailSent *bool `json:"email_sent"`
- return nil
-}
+ // Boolean indicating if this Alert is internal or external
+ // Required: true
+ External *bool `json:"external"`
-func (m *DetectsAlert) validateSecondsToResolved(formats strfmt.Registry) error {
+ // falcon host link
+ FalconHostLink string `json:"falcon_host_link,omitempty"`
- if err := validate.Required("seconds_to_resolved", "body", m.SecondsToResolved); err != nil {
- return err
- }
+ // filename
+ Filename string `json:"filename,omitempty"`
- return nil
-}
+ // filepath
+ Filepath string `json:"filepath,omitempty"`
-func (m *DetectsAlert) validateSecondsToTriaged(formats strfmt.Registry) error {
+ // grandparent details
+ GrandparentDetails *DetectsAlertGrandparentDetails `json:"grandparent_details,omitempty"`
- if err := validate.Required("seconds_to_triaged", "body", m.SecondsToTriaged); err != nil {
- return err
- }
+ // has script or module ioce
+ HasScriptOrModuleIoce bool `json:"has_script_or_module_ioce,omitempty"`
- return nil
-}
+ // Vertex key which triggers the formation of the Alert
+ // Required: true
+ ID *string `json:"id"`
-func (m *DetectsAlert) validateShowInUIUpdatedTimestamp(formats strfmt.Registry) error {
- if swag.IsZero(m.ShowInUIUpdatedTimestamp) { // not required
- return nil
- }
+ // indicator id
+ IndicatorID string `json:"indicator_id,omitempty"`
- if err := validate.FormatOf("show_in_ui_updated_timestamp", "body", "date-time", m.ShowInUIUpdatedTimestamp.String(), formats); err != nil {
- return err
- }
+ // ioc context
+ IocContext []*DetectsAlertIocContextItems0 `json:"ioc_context"`
- return nil
-}
+ // ioc description
+ IocDescription string `json:"ioc_description,omitempty"`
-func (m *DetectsAlert) validateTimestamp(formats strfmt.Registry) error {
- if swag.IsZero(m.Timestamp) { // not required
- return nil
- }
+ // ioc source
+ IocSource string `json:"ioc_source,omitempty"`
- if err := validate.FormatOf("timestamp", "body", "date-time", m.Timestamp.String(), formats); err != nil {
- return err
- }
+ // ioc type
+ IocType string `json:"ioc_type,omitempty"`
- return nil
-}
+ // ioc value
+ IocValue string `json:"ioc_value,omitempty"`
-func (m *DetectsAlert) validateType(formats strfmt.Registry) error {
+ // ioc values
+ IocValues []string `json:"ioc_values"`
- if err := validate.Required("type", "body", m.Type); err != nil {
- return err
- }
+ // is synthetic quarantine disposition
+ IsSyntheticQuarantineDisposition bool `json:"is_synthetic_quarantine_disposition,omitempty"`
- return nil
-}
+ // local process id
+ LocalProcessID string `json:"local_process_id,omitempty"`
-func (m *DetectsAlert) validateUpdatedTimestamp(formats strfmt.Registry) error {
- if swag.IsZero(m.UpdatedTimestamp) { // not required
- return nil
- }
+ // logon domain
+ LogonDomain string `json:"logon_domain,omitempty"`
- if err := validate.FormatOf("updated_timestamp", "body", "date-time", m.UpdatedTimestamp.String(), formats); err != nil {
+ // md5
+ Md5 string `json:"md5,omitempty"`
+
+ // Pattern Name coming either from Taxonomy or directly from the ingested Alert
+ // Required: true
+ Name *string `json:"name"`
+
+ // End goal that an attack adversary intends to achieve according to MITRE
+ // Required: true
+ Objective *string `json:"objective"`
+
+ // parent details
+ ParentDetails *DetectsAlertParentDetails `json:"parent_details,omitempty"`
+
+ // parent process id
+ ParentProcessID string `json:"parent_process_id,omitempty"`
+
+ // pattern disposition
+ PatternDisposition *int64 `json:"pattern_disposition,omitempty"`
+
+ // pattern disposition description
+ PatternDispositionDescription string `json:"pattern_disposition_description,omitempty"`
+
+ // pattern disposition details
+ PatternDispositionDetails *DetectsAlertPatternDispositionDetails `json:"pattern_disposition_details,omitempty"`
+
+ // Taxonomy patternID for this Alert
+ // Required: true
+ PatternID *int64 `json:"pattern_id"`
+
+ // Platform that this Alert was triggered on e.g. Android, Windows, etc..
+ // Required: true
+ Platform *string `json:"platform"`
+
+ // poly id
+ PolyID string `json:"poly_id,omitempty"`
+
+ // process end time
+ ProcessEndTime string `json:"process_end_time,omitempty"`
+
+ // process id
+ ProcessID string `json:"process_id,omitempty"`
+
+ // process start time
+ ProcessStartTime string `json:"process_start_time,omitempty"`
+
+ // Product specifies the SKU that this Alert belongs to e.g. mobile, idp, epp
+ // Required: true
+ Product *string `json:"product"`
+
+ // quarantined files
+ QuarantinedFiles []*DetectsAlertQuarantinedFilesItems0 `json:"quarantined_files"`
+
+ // Scenario was used pre-Handrails to display additional killchain context for UI alerts. With handrails, this field is mostly obsolete in favor of tactic/technique. Still, it can be useful for determining specific pattern types that are not straightforward to distinguish from other fields alone
+ // Required: true
+ Scenario *string `json:"scenario"`
+
+ // Seconds To Resolved represents the seconds elapsed since this alert has been resolved
+ // Required: true
+ SecondsToResolved *int64 `json:"seconds_to_resolved"`
+
+ // Seconds To Triage represents the seconds elapsed since this alert has been triaged
+ // Required: true
+ SecondsToTriaged *int64 `json:"seconds_to_triaged"`
+
+ // Severity is also a 1-100 integer value, but unlike confidence severity impacts how a Alert is displayed in the UI
+ // Required: true
+ Severity *int64 `json:"severity"`
+
+ // Severity name is a UI friendly bucketing of the severity integer
+ // Required: true
+ SeverityName *string `json:"severity_name"`
+
+ // sha1
+ Sha1 string `json:"sha1,omitempty"`
+
+ // sha256
+ Sha256 string `json:"sha256,omitempty"`
+
+ // Boolean indicating if this Alert will be shown in the UI or if it's hidden'
+ // Required: true
+ ShowInUI *bool `json:"show_in_ui"`
+
+ // Source Products are products that produced events which contributed to this alert
+ // Required: true
+ SourceProducts []string `json:"source_products"`
+
+ // Source Vendors are vendors that produced events which contributed to this alert
+ // Required: true
+ SourceVendors []string `json:"source_vendors"`
+
+ // Could be one of the following - New, closed, in_progress, reopened
+ // Required: true
+ Status *string `json:"status"`
+
+ // Tactic and Technique are references to MITRE ATT&CK, which is a public framework for tracking and modeling adversary tools techniques and procedures
+ // Required: true
+ Tactic *string `json:"tactic"`
+
+ // Unique ID for the tactic seen in the Alert
+ // Required: true
+ TacticID *string `json:"tactic_id"`
+
+ // Tags are string values associated with the alert that can be added or removed through the API
+ // Required: true
+ Tags []string `json:"tags"`
+
+ // Tactic and Technique are references to MITRE ATT&CK, which is a public framework for tracking and modeling adversary tools techniques and procedures
+ // Required: true
+ Technique *string `json:"technique"`
+
+ // Unique ID for the technique seen in the Alert
+ // Required: true
+ TechniqueID *string `json:"technique_id"`
+
+ // stored value coming in directly from the ingested event or set by cloud in the absence of it
+ // Required: true
+ // Format: date-time
+ Timestamp *strfmt.DateTime `json:"timestamp"`
+
+ // tree id
+ TreeID string `json:"tree_id,omitempty"`
+
+ // tree root
+ TreeRoot string `json:"tree_root,omitempty"`
+
+ // triggering process graph id
+ TriggeringProcessGraphID string `json:"triggering_process_graph_id,omitempty"`
+
+ // Type of definition Detections Extensibility use. Keyed-off of Pattern of the incoming events/Alerts
+ // Required: true
+ Type *string `json:"type"`
+
+ // indicates when the Alert was last modified
+ // Required: true
+ // Format: date-time
+ UpdatedTimestamp *strfmt.DateTime `json:"updated_timestamp"`
+
+ // user id
+ UserID string `json:"user_id,omitempty"`
+
+ // user name
+ UserName string `json:"user_name,omitempty"`
+ }
+ if err := json.Unmarshal(data, &stage1); err != nil {
+ return err
+ }
+ var rcv DetectsAlert
+
+ rcv.AgentID = stage1.AgentID
+ rcv.AggregateID = stage1.AggregateID
+ rcv.AllegedFiletype = stage1.AllegedFiletype
+ rcv.AssignedToName = stage1.AssignedToName
+ rcv.AssignedToUID = stage1.AssignedToUID
+ rcv.AssignedToUUID = stage1.AssignedToUUID
+ rcv.Cid = stage1.Cid
+ rcv.CloudIndicator = stage1.CloudIndicator
+ rcv.Cmdline = stage1.Cmdline
+ rcv.CompositeID = stage1.CompositeID
+ rcv.Confidence = stage1.Confidence
+ rcv.ContextTimestamp = stage1.ContextTimestamp
+ rcv.ControlGraphID = stage1.ControlGraphID
+ rcv.CrawlEdgeIds = stage1.CrawlEdgeIds
+ rcv.CrawlVertexIds = stage1.CrawlVertexIds
+ rcv.CrawledTimestamp = stage1.CrawledTimestamp
+ rcv.CreatedTimestamp = stage1.CreatedTimestamp
+ rcv.DataDomains = stage1.DataDomains
+ rcv.Description = stage1.Description
+ rcv.Device = stage1.Device
+ rcv.DisplayName = stage1.DisplayName
+ rcv.EmailSent = stage1.EmailSent
+ rcv.External = stage1.External
+ rcv.FalconHostLink = stage1.FalconHostLink
+ rcv.Filename = stage1.Filename
+ rcv.Filepath = stage1.Filepath
+ rcv.GrandparentDetails = stage1.GrandparentDetails
+ rcv.HasScriptOrModuleIoce = stage1.HasScriptOrModuleIoce
+ rcv.ID = stage1.ID
+ rcv.IndicatorID = stage1.IndicatorID
+ rcv.IocContext = stage1.IocContext
+ rcv.IocDescription = stage1.IocDescription
+ rcv.IocSource = stage1.IocSource
+ rcv.IocType = stage1.IocType
+ rcv.IocValue = stage1.IocValue
+ rcv.IocValues = stage1.IocValues
+ rcv.IsSyntheticQuarantineDisposition = stage1.IsSyntheticQuarantineDisposition
+ rcv.LocalProcessID = stage1.LocalProcessID
+ rcv.LogonDomain = stage1.LogonDomain
+ rcv.Md5 = stage1.Md5
+ rcv.Name = stage1.Name
+ rcv.Objective = stage1.Objective
+ rcv.ParentDetails = stage1.ParentDetails
+ rcv.ParentProcessID = stage1.ParentProcessID
+ rcv.PatternDisposition = stage1.PatternDisposition
+ rcv.PatternDispositionDescription = stage1.PatternDispositionDescription
+ rcv.PatternDispositionDetails = stage1.PatternDispositionDetails
+ rcv.PatternID = stage1.PatternID
+ rcv.Platform = stage1.Platform
+ rcv.PolyID = stage1.PolyID
+ rcv.ProcessEndTime = stage1.ProcessEndTime
+ rcv.ProcessID = stage1.ProcessID
+ rcv.ProcessStartTime = stage1.ProcessStartTime
+ rcv.Product = stage1.Product
+ rcv.QuarantinedFiles = stage1.QuarantinedFiles
+ rcv.Scenario = stage1.Scenario
+ rcv.SecondsToResolved = stage1.SecondsToResolved
+ rcv.SecondsToTriaged = stage1.SecondsToTriaged
+ rcv.Severity = stage1.Severity
+ rcv.SeverityName = stage1.SeverityName
+ rcv.Sha1 = stage1.Sha1
+ rcv.Sha256 = stage1.Sha256
+ rcv.ShowInUI = stage1.ShowInUI
+ rcv.SourceProducts = stage1.SourceProducts
+ rcv.SourceVendors = stage1.SourceVendors
+ rcv.Status = stage1.Status
+ rcv.Tactic = stage1.Tactic
+ rcv.TacticID = stage1.TacticID
+ rcv.Tags = stage1.Tags
+ rcv.Technique = stage1.Technique
+ rcv.TechniqueID = stage1.TechniqueID
+ rcv.Timestamp = stage1.Timestamp
+ rcv.TreeID = stage1.TreeID
+ rcv.TreeRoot = stage1.TreeRoot
+ rcv.TriggeringProcessGraphID = stage1.TriggeringProcessGraphID
+ rcv.Type = stage1.Type
+ rcv.UpdatedTimestamp = stage1.UpdatedTimestamp
+ rcv.UserID = stage1.UserID
+ rcv.UserName = stage1.UserName
+ *m = rcv
+
+ // stage 2, remove properties and add to map
+ stage2 := make(map[string]json.RawMessage)
+ if err := json.Unmarshal(data, &stage2); err != nil {
return err
}
- return nil
-}
+ delete(stage2, "agent_id")
+ delete(stage2, "aggregate_id")
+ delete(stage2, "alleged_filetype")
+ delete(stage2, "assigned_to_name")
+ delete(stage2, "assigned_to_uid")
+ delete(stage2, "assigned_to_uuid")
+ delete(stage2, "cid")
+ delete(stage2, "cloud_indicator")
+ delete(stage2, "cmdline")
+ delete(stage2, "composite_id")
+ delete(stage2, "confidence")
+ delete(stage2, "context_timestamp")
+ delete(stage2, "control_graph_id")
+ delete(stage2, "crawl_edge_ids")
+ delete(stage2, "crawl_vertex_ids")
+ delete(stage2, "crawled_timestamp")
+ delete(stage2, "created_timestamp")
+ delete(stage2, "data_domains")
+ delete(stage2, "description")
+ delete(stage2, "device")
+ delete(stage2, "display_name")
+ delete(stage2, "email_sent")
+ delete(stage2, "external")
+ delete(stage2, "falcon_host_link")
+ delete(stage2, "filename")
+ delete(stage2, "filepath")
+ delete(stage2, "grandparent_details")
+ delete(stage2, "has_script_or_module_ioce")
+ delete(stage2, "id")
+ delete(stage2, "indicator_id")
+ delete(stage2, "ioc_context")
+ delete(stage2, "ioc_description")
+ delete(stage2, "ioc_source")
+ delete(stage2, "ioc_type")
+ delete(stage2, "ioc_value")
+ delete(stage2, "ioc_values")
+ delete(stage2, "is_synthetic_quarantine_disposition")
+ delete(stage2, "local_process_id")
+ delete(stage2, "logon_domain")
+ delete(stage2, "md5")
+ delete(stage2, "name")
+ delete(stage2, "objective")
+ delete(stage2, "parent_details")
+ delete(stage2, "parent_process_id")
+ delete(stage2, "pattern_disposition")
+ delete(stage2, "pattern_disposition_description")
+ delete(stage2, "pattern_disposition_details")
+ delete(stage2, "pattern_id")
+ delete(stage2, "platform")
+ delete(stage2, "poly_id")
+ delete(stage2, "process_end_time")
+ delete(stage2, "process_id")
+ delete(stage2, "process_start_time")
+ delete(stage2, "product")
+ delete(stage2, "quarantined_files")
+ delete(stage2, "scenario")
+ delete(stage2, "seconds_to_resolved")
+ delete(stage2, "seconds_to_triaged")
+ delete(stage2, "severity")
+ delete(stage2, "severity_name")
+ delete(stage2, "sha1")
+ delete(stage2, "sha256")
+ delete(stage2, "show_in_ui")
+ delete(stage2, "source_products")
+ delete(stage2, "source_vendors")
+ delete(stage2, "status")
+ delete(stage2, "tactic")
+ delete(stage2, "tactic_id")
+ delete(stage2, "tags")
+ delete(stage2, "technique")
+ delete(stage2, "technique_id")
+ delete(stage2, "timestamp")
+ delete(stage2, "tree_id")
+ delete(stage2, "tree_root")
+ delete(stage2, "triggering_process_graph_id")
+ delete(stage2, "type")
+ delete(stage2, "updated_timestamp")
+ delete(stage2, "user_id")
+ delete(stage2, "user_name")
+ // stage 3, add additional properties values
+ if len(stage2) > 0 {
+ result := make(map[string]interface{})
+ for k, v := range stage2 {
+ var toadd interface{}
+ if err := json.Unmarshal(v, &toadd); err != nil {
+ return err
+ }
+ result[k] = toadd
+ }
+ m.DetectsAlertAdditionalProperties = result
+ }
-// ContextValidate validates this detects alert based on context it is used
-func (m *DetectsAlert) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
-// MarshalBinary interface implementation
-func (m *DetectsAlert) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
+// MarshalJSON marshals this object with additional properties into a JSON object
+func (m DetectsAlert) MarshalJSON() ([]byte, error) {
+ var stage1 struct {
-// UnmarshalBinary interface implementation
-func (m *DetectsAlert) UnmarshalBinary(b []byte) error {
- var res DetectsAlert
+ // Device or sensor ID for which the Alert was generated
+ // Required: true
+ AgentID *string `json:"agent_id"`
+
+ // Common linkage between multiple Alerts that belong to the same detection bouquet
+ // Required: true
+ AggregateID *string `json:"aggregate_id"`
+
+ // alleged filetype
+ AllegedFiletype string `json:"alleged_filetype,omitempty"`
+
+ // Name of the person this Alert is assigned to
+ // Required: true
+ AssignedToName *string `json:"assigned_to_name"`
+
+ // UserID to which this Alert is assigned to
+ // Required: true
+ AssignedToUID *string `json:"assigned_to_uid"`
+
+ // UUID to which this Alert is assigned to
+ // Required: true
+ AssignedToUUID *string `json:"assigned_to_uuid"`
+
+ // Unique ID of CrowdStrike customers
+ // Required: true
+ Cid *string `json:"cid"`
+
+ // cloud indicator
+ CloudIndicator string `json:"cloud_indicator,omitempty"`
+
+ // cmdline
+ Cmdline string `json:"cmdline,omitempty"`
+
+ // An opaque internal identifier that can uniquely identify an Alert
+ // Required: true
+ CompositeID *string `json:"composite_id"`
+
+ // Confidence is a 1-100 integer value denoting the confidence that, when this Alert fires, it is indicative of malicious activity
+ // Required: true
+ Confidence *int64 `json:"confidence"`
+
+ // context timestamp
+ // Format: date-time
+ ContextTimestamp strfmt.DateTime `json:"context_timestamp,omitempty"`
+
+ // control graph id
+ ControlGraphID string `json:"control_graph_id,omitempty"`
+
+ // crawl edge ids
+ CrawlEdgeIds *DetectsAlertCrawlEdgeIds `json:"crawl_edge_ids,omitempty"`
+
+ // crawl vertex ids
+ CrawlVertexIds *DetectsAlertCrawlVertexIds `json:"crawl_vertex_ids,omitempty"`
+
+ // indicates when ThreatGraph was crawled to gather info for this alert creation/update
+ // Required: true
+ // Format: date-time
+ CrawledTimestamp *strfmt.DateTime `json:"crawled_timestamp"`
+
+ // indicates when the Alert was first written to backend store
+ // Required: true
+ // Format: date-time
+ CreatedTimestamp *strfmt.DateTime `json:"created_timestamp"`
+
+ // Data Domains represents domains to which this alert belongs to
+ // Required: true
+ DataDomains []string `json:"data_domains"`
+
+ // Short, customer-visible summary of the detected activity
+ // Required: true
+ Description *string `json:"description"`
+
+ // device
+ Device *DetectsAlertDevice `json:"device,omitempty"`
+
+ // Customer visible name for the Alert's pattern
+ // Required: true
+ DisplayName *string `json:"display_name"`
+
+ // Boolean to know if we sent email regarding this Alert
+ // Required: true
+ EmailSent *bool `json:"email_sent"`
+
+ // Boolean indicating if this Alert is internal or external
+ // Required: true
+ External *bool `json:"external"`
+
+ // falcon host link
+ FalconHostLink string `json:"falcon_host_link,omitempty"`
+
+ // filename
+ Filename string `json:"filename,omitempty"`
+
+ // filepath
+ Filepath string `json:"filepath,omitempty"`
+
+ // grandparent details
+ GrandparentDetails *DetectsAlertGrandparentDetails `json:"grandparent_details,omitempty"`
+
+ // has script or module ioce
+ HasScriptOrModuleIoce bool `json:"has_script_or_module_ioce,omitempty"`
+
+ // Vertex key which triggers the formation of the Alert
+ // Required: true
+ ID *string `json:"id"`
+
+ // indicator id
+ IndicatorID string `json:"indicator_id,omitempty"`
+
+ // ioc context
+ IocContext []*DetectsAlertIocContextItems0 `json:"ioc_context"`
+
+ // ioc description
+ IocDescription string `json:"ioc_description,omitempty"`
+
+ // ioc source
+ IocSource string `json:"ioc_source,omitempty"`
+
+ // ioc type
+ IocType string `json:"ioc_type,omitempty"`
+
+ // ioc value
+ IocValue string `json:"ioc_value,omitempty"`
+
+ // ioc values
+ IocValues []string `json:"ioc_values"`
+
+ // is synthetic quarantine disposition
+ IsSyntheticQuarantineDisposition bool `json:"is_synthetic_quarantine_disposition,omitempty"`
+
+ // local process id
+ LocalProcessID string `json:"local_process_id,omitempty"`
+
+ // logon domain
+ LogonDomain string `json:"logon_domain,omitempty"`
+
+ // md5
+ Md5 string `json:"md5,omitempty"`
+
+ // Pattern Name coming either from Taxonomy or directly from the ingested Alert
+ // Required: true
+ Name *string `json:"name"`
+
+ // End goal that an attack adversary intends to achieve according to MITRE
+ // Required: true
+ Objective *string `json:"objective"`
+
+ // parent details
+ ParentDetails *DetectsAlertParentDetails `json:"parent_details,omitempty"`
+
+ // parent process id
+ ParentProcessID string `json:"parent_process_id,omitempty"`
+
+ // pattern disposition
+ PatternDisposition *int64 `json:"pattern_disposition,omitempty"`
+
+ // pattern disposition description
+ PatternDispositionDescription string `json:"pattern_disposition_description,omitempty"`
+
+ // pattern disposition details
+ PatternDispositionDetails *DetectsAlertPatternDispositionDetails `json:"pattern_disposition_details,omitempty"`
+
+ // Taxonomy patternID for this Alert
+ // Required: true
+ PatternID *int64 `json:"pattern_id"`
+
+ // Platform that this Alert was triggered on e.g. Android, Windows, etc..
+ // Required: true
+ Platform *string `json:"platform"`
+
+ // poly id
+ PolyID string `json:"poly_id,omitempty"`
+
+ // process end time
+ ProcessEndTime string `json:"process_end_time,omitempty"`
+
+ // process id
+ ProcessID string `json:"process_id,omitempty"`
+
+ // process start time
+ ProcessStartTime string `json:"process_start_time,omitempty"`
+
+ // Product specifies the SKU that this Alert belongs to e.g. mobile, idp, epp
+ // Required: true
+ Product *string `json:"product"`
+
+ // quarantined files
+ QuarantinedFiles []*DetectsAlertQuarantinedFilesItems0 `json:"quarantined_files"`
+
+ // Scenario was used pre-Handrails to display additional killchain context for UI alerts. With handrails, this field is mostly obsolete in favor of tactic/technique. Still, it can be useful for determining specific pattern types that are not straightforward to distinguish from other fields alone
+ // Required: true
+ Scenario *string `json:"scenario"`
+
+ // Seconds To Resolved represents the seconds elapsed since this alert has been resolved
+ // Required: true
+ SecondsToResolved *int64 `json:"seconds_to_resolved"`
+
+ // Seconds To Triage represents the seconds elapsed since this alert has been triaged
+ // Required: true
+ SecondsToTriaged *int64 `json:"seconds_to_triaged"`
+
+ // Severity is also a 1-100 integer value, but unlike confidence severity impacts how a Alert is displayed in the UI
+ // Required: true
+ Severity *int64 `json:"severity"`
+
+ // Severity name is a UI friendly bucketing of the severity integer
+ // Required: true
+ SeverityName *string `json:"severity_name"`
+
+ // sha1
+ Sha1 string `json:"sha1,omitempty"`
+
+ // sha256
+ Sha256 string `json:"sha256,omitempty"`
+
+ // Boolean indicating if this Alert will be shown in the UI or if it's hidden'
+ // Required: true
+ ShowInUI *bool `json:"show_in_ui"`
+
+ // Source Products are products that produced events which contributed to this alert
+ // Required: true
+ SourceProducts []string `json:"source_products"`
+
+ // Source Vendors are vendors that produced events which contributed to this alert
+ // Required: true
+ SourceVendors []string `json:"source_vendors"`
+
+ // Could be one of the following - New, closed, in_progress, reopened
+ // Required: true
+ Status *string `json:"status"`
+
+ // Tactic and Technique are references to MITRE ATT&CK, which is a public framework for tracking and modeling adversary tools techniques and procedures
+ // Required: true
+ Tactic *string `json:"tactic"`
+
+ // Unique ID for the tactic seen in the Alert
+ // Required: true
+ TacticID *string `json:"tactic_id"`
+
+ // Tags are string values associated with the alert that can be added or removed through the API
+ // Required: true
+ Tags []string `json:"tags"`
+
+ // Tactic and Technique are references to MITRE ATT&CK, which is a public framework for tracking and modeling adversary tools techniques and procedures
+ // Required: true
+ Technique *string `json:"technique"`
+
+ // Unique ID for the technique seen in the Alert
+ // Required: true
+ TechniqueID *string `json:"technique_id"`
+
+ // stored value coming in directly from the ingested event or set by cloud in the absence of it
+ // Required: true
+ // Format: date-time
+ Timestamp *strfmt.DateTime `json:"timestamp"`
+
+ // tree id
+ TreeID string `json:"tree_id,omitempty"`
+
+ // tree root
+ TreeRoot string `json:"tree_root,omitempty"`
+
+ // triggering process graph id
+ TriggeringProcessGraphID string `json:"triggering_process_graph_id,omitempty"`
+
+ // Type of definition Detections Extensibility use. Keyed-off of Pattern of the incoming events/Alerts
+ // Required: true
+ Type *string `json:"type"`
+
+ // indicates when the Alert was last modified
+ // Required: true
+ // Format: date-time
+ UpdatedTimestamp *strfmt.DateTime `json:"updated_timestamp"`
+
+ // user id
+ UserID string `json:"user_id,omitempty"`
+
+ // user name
+ UserName string `json:"user_name,omitempty"`
+ }
+
+ stage1.AgentID = m.AgentID
+ stage1.AggregateID = m.AggregateID
+ stage1.AllegedFiletype = m.AllegedFiletype
+ stage1.AssignedToName = m.AssignedToName
+ stage1.AssignedToUID = m.AssignedToUID
+ stage1.AssignedToUUID = m.AssignedToUUID
+ stage1.Cid = m.Cid
+ stage1.CloudIndicator = m.CloudIndicator
+ stage1.Cmdline = m.Cmdline
+ stage1.CompositeID = m.CompositeID
+ stage1.Confidence = m.Confidence
+ stage1.ContextTimestamp = m.ContextTimestamp
+ stage1.ControlGraphID = m.ControlGraphID
+ stage1.CrawlEdgeIds = m.CrawlEdgeIds
+ stage1.CrawlVertexIds = m.CrawlVertexIds
+ stage1.CrawledTimestamp = m.CrawledTimestamp
+ stage1.CreatedTimestamp = m.CreatedTimestamp
+ stage1.DataDomains = m.DataDomains
+ stage1.Description = m.Description
+ stage1.Device = m.Device
+ stage1.DisplayName = m.DisplayName
+ stage1.EmailSent = m.EmailSent
+ stage1.External = m.External
+ stage1.FalconHostLink = m.FalconHostLink
+ stage1.Filename = m.Filename
+ stage1.Filepath = m.Filepath
+ stage1.GrandparentDetails = m.GrandparentDetails
+ stage1.HasScriptOrModuleIoce = m.HasScriptOrModuleIoce
+ stage1.ID = m.ID
+ stage1.IndicatorID = m.IndicatorID
+ stage1.IocContext = m.IocContext
+ stage1.IocDescription = m.IocDescription
+ stage1.IocSource = m.IocSource
+ stage1.IocType = m.IocType
+ stage1.IocValue = m.IocValue
+ stage1.IocValues = m.IocValues
+ stage1.IsSyntheticQuarantineDisposition = m.IsSyntheticQuarantineDisposition
+ stage1.LocalProcessID = m.LocalProcessID
+ stage1.LogonDomain = m.LogonDomain
+ stage1.Md5 = m.Md5
+ stage1.Name = m.Name
+ stage1.Objective = m.Objective
+ stage1.ParentDetails = m.ParentDetails
+ stage1.ParentProcessID = m.ParentProcessID
+ stage1.PatternDisposition = m.PatternDisposition
+ stage1.PatternDispositionDescription = m.PatternDispositionDescription
+ stage1.PatternDispositionDetails = m.PatternDispositionDetails
+ stage1.PatternID = m.PatternID
+ stage1.Platform = m.Platform
+ stage1.PolyID = m.PolyID
+ stage1.ProcessEndTime = m.ProcessEndTime
+ stage1.ProcessID = m.ProcessID
+ stage1.ProcessStartTime = m.ProcessStartTime
+ stage1.Product = m.Product
+ stage1.QuarantinedFiles = m.QuarantinedFiles
+ stage1.Scenario = m.Scenario
+ stage1.SecondsToResolved = m.SecondsToResolved
+ stage1.SecondsToTriaged = m.SecondsToTriaged
+ stage1.Severity = m.Severity
+ stage1.SeverityName = m.SeverityName
+ stage1.Sha1 = m.Sha1
+ stage1.Sha256 = m.Sha256
+ stage1.ShowInUI = m.ShowInUI
+ stage1.SourceProducts = m.SourceProducts
+ stage1.SourceVendors = m.SourceVendors
+ stage1.Status = m.Status
+ stage1.Tactic = m.Tactic
+ stage1.TacticID = m.TacticID
+ stage1.Tags = m.Tags
+ stage1.Technique = m.Technique
+ stage1.TechniqueID = m.TechniqueID
+ stage1.Timestamp = m.Timestamp
+ stage1.TreeID = m.TreeID
+ stage1.TreeRoot = m.TreeRoot
+ stage1.TriggeringProcessGraphID = m.TriggeringProcessGraphID
+ stage1.Type = m.Type
+ stage1.UpdatedTimestamp = m.UpdatedTimestamp
+ stage1.UserID = m.UserID
+ stage1.UserName = m.UserName
+
+ // make JSON object for known properties
+ props, err := json.Marshal(stage1)
+ if err != nil {
+ return nil, err
+ }
+
+ if len(m.DetectsAlertAdditionalProperties) == 0 { // no additional properties
+ return props, nil
+ }
+
+ // make JSON object for the additional properties
+ additional, err := json.Marshal(m.DetectsAlertAdditionalProperties)
+ if err != nil {
+ return nil, err
+ }
+
+ if len(props) < 3 { // "{}": only additional properties
+ return additional, nil
+ }
+
+ // concatenate the 2 objects
+ return swag.ConcatJSON(props, additional), nil
+}
+
+// Validate validates this detects alert
+func (m *DetectsAlert) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAgentID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateAggregateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateAssignedToName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateAssignedToUID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateAssignedToUUID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCid(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCompositeID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateConfidence(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateContextTimestamp(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCrawlEdgeIds(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCrawlVertexIds(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCrawledTimestamp(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCreatedTimestamp(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDataDomains(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDescription(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDevice(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDisplayName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateEmailSent(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateExternal(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateGrandparentDetails(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateIocContext(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateObjective(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateParentDetails(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePatternDispositionDetails(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePatternID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePlatform(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateProduct(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateQuarantinedFiles(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateScenario(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSecondsToResolved(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSecondsToTriaged(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSeverity(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSeverityName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateShowInUI(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSourceProducts(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSourceVendors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTactic(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTacticID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTags(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTechnique(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTechniqueID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTimestamp(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateType(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdatedTimestamp(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DetectsAlert) validateAgentID(formats strfmt.Registry) error {
+
+ if err := validate.Required("agent_id", "body", m.AgentID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateAggregateID(formats strfmt.Registry) error {
+
+ if err := validate.Required("aggregate_id", "body", m.AggregateID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateAssignedToName(formats strfmt.Registry) error {
+
+ if err := validate.Required("assigned_to_name", "body", m.AssignedToName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateAssignedToUID(formats strfmt.Registry) error {
+
+ if err := validate.Required("assigned_to_uid", "body", m.AssignedToUID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateAssignedToUUID(formats strfmt.Registry) error {
+
+ if err := validate.Required("assigned_to_uuid", "body", m.AssignedToUUID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateCid(formats strfmt.Registry) error {
+
+ if err := validate.Required("cid", "body", m.Cid); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateCompositeID(formats strfmt.Registry) error {
+
+ if err := validate.Required("composite_id", "body", m.CompositeID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateConfidence(formats strfmt.Registry) error {
+
+ if err := validate.Required("confidence", "body", m.Confidence); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateContextTimestamp(formats strfmt.Registry) error {
+ if swag.IsZero(m.ContextTimestamp) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("context_timestamp", "body", "date-time", m.ContextTimestamp.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateCrawlEdgeIds(formats strfmt.Registry) error {
+ if swag.IsZero(m.CrawlEdgeIds) { // not required
+ return nil
+ }
+
+ if m.CrawlEdgeIds != nil {
+ if err := m.CrawlEdgeIds.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("crawl_edge_ids")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("crawl_edge_ids")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateCrawlVertexIds(formats strfmt.Registry) error {
+ if swag.IsZero(m.CrawlVertexIds) { // not required
+ return nil
+ }
+
+ if m.CrawlVertexIds != nil {
+ if err := m.CrawlVertexIds.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("crawl_vertex_ids")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("crawl_vertex_ids")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateCrawledTimestamp(formats strfmt.Registry) error {
+
+ if err := validate.Required("crawled_timestamp", "body", m.CrawledTimestamp); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("crawled_timestamp", "body", "date-time", m.CrawledTimestamp.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateCreatedTimestamp(formats strfmt.Registry) error {
+
+ if err := validate.Required("created_timestamp", "body", m.CreatedTimestamp); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("created_timestamp", "body", "date-time", m.CreatedTimestamp.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateDataDomains(formats strfmt.Registry) error {
+
+ if err := validate.Required("data_domains", "body", m.DataDomains); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateDescription(formats strfmt.Registry) error {
+
+ if err := validate.Required("description", "body", m.Description); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateDevice(formats strfmt.Registry) error {
+ if swag.IsZero(m.Device) { // not required
+ return nil
+ }
+
+ if m.Device != nil {
+ if err := m.Device.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("device")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("device")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateDisplayName(formats strfmt.Registry) error {
+
+ if err := validate.Required("display_name", "body", m.DisplayName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateEmailSent(formats strfmt.Registry) error {
+
+ if err := validate.Required("email_sent", "body", m.EmailSent); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateExternal(formats strfmt.Registry) error {
+
+ if err := validate.Required("external", "body", m.External); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateGrandparentDetails(formats strfmt.Registry) error {
+ if swag.IsZero(m.GrandparentDetails) { // not required
+ return nil
+ }
+
+ if m.GrandparentDetails != nil {
+ if err := m.GrandparentDetails.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("grandparent_details")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("grandparent_details")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateID(formats strfmt.Registry) error {
+
+ if err := validate.Required("id", "body", m.ID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateIocContext(formats strfmt.Registry) error {
+ if swag.IsZero(m.IocContext) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.IocContext); i++ {
+ if swag.IsZero(m.IocContext[i]) { // not required
+ continue
+ }
+
+ if m.IocContext[i] != nil {
+ if err := m.IocContext[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("ioc_context" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("ioc_context" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateName(formats strfmt.Registry) error {
+
+ if err := validate.Required("name", "body", m.Name); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateObjective(formats strfmt.Registry) error {
+
+ if err := validate.Required("objective", "body", m.Objective); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateParentDetails(formats strfmt.Registry) error {
+ if swag.IsZero(m.ParentDetails) { // not required
+ return nil
+ }
+
+ if m.ParentDetails != nil {
+ if err := m.ParentDetails.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("parent_details")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("parent_details")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validatePatternDispositionDetails(formats strfmt.Registry) error {
+ if swag.IsZero(m.PatternDispositionDetails) { // not required
+ return nil
+ }
+
+ if m.PatternDispositionDetails != nil {
+ if err := m.PatternDispositionDetails.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("pattern_disposition_details")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("pattern_disposition_details")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validatePatternID(formats strfmt.Registry) error {
+
+ if err := validate.Required("pattern_id", "body", m.PatternID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validatePlatform(formats strfmt.Registry) error {
+
+ if err := validate.Required("platform", "body", m.Platform); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateProduct(formats strfmt.Registry) error {
+
+ if err := validate.Required("product", "body", m.Product); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateQuarantinedFiles(formats strfmt.Registry) error {
+ if swag.IsZero(m.QuarantinedFiles) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.QuarantinedFiles); i++ {
+ if swag.IsZero(m.QuarantinedFiles[i]) { // not required
+ continue
+ }
+
+ if m.QuarantinedFiles[i] != nil {
+ if err := m.QuarantinedFiles[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("quarantined_files" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("quarantined_files" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateScenario(formats strfmt.Registry) error {
+
+ if err := validate.Required("scenario", "body", m.Scenario); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateSecondsToResolved(formats strfmt.Registry) error {
+
+ if err := validate.Required("seconds_to_resolved", "body", m.SecondsToResolved); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateSecondsToTriaged(formats strfmt.Registry) error {
+
+ if err := validate.Required("seconds_to_triaged", "body", m.SecondsToTriaged); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateSeverity(formats strfmt.Registry) error {
+
+ if err := validate.Required("severity", "body", m.Severity); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateSeverityName(formats strfmt.Registry) error {
+
+ if err := validate.Required("severity_name", "body", m.SeverityName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateShowInUI(formats strfmt.Registry) error {
+
+ if err := validate.Required("show_in_ui", "body", m.ShowInUI); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateSourceProducts(formats strfmt.Registry) error {
+
+ if err := validate.Required("source_products", "body", m.SourceProducts); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateSourceVendors(formats strfmt.Registry) error {
+
+ if err := validate.Required("source_vendors", "body", m.SourceVendors); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("status", "body", m.Status); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateTactic(formats strfmt.Registry) error {
+
+ if err := validate.Required("tactic", "body", m.Tactic); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateTacticID(formats strfmt.Registry) error {
+
+ if err := validate.Required("tactic_id", "body", m.TacticID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateTags(formats strfmt.Registry) error {
+
+ if err := validate.Required("tags", "body", m.Tags); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateTechnique(formats strfmt.Registry) error {
+
+ if err := validate.Required("technique", "body", m.Technique); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateTechniqueID(formats strfmt.Registry) error {
+
+ if err := validate.Required("technique_id", "body", m.TechniqueID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateTimestamp(formats strfmt.Registry) error {
+
+ if err := validate.Required("timestamp", "body", m.Timestamp); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("timestamp", "body", "date-time", m.Timestamp.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateType(formats strfmt.Registry) error {
+
+ if err := validate.Required("type", "body", m.Type); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) validateUpdatedTimestamp(formats strfmt.Registry) error {
+
+ if err := validate.Required("updated_timestamp", "body", m.UpdatedTimestamp); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("updated_timestamp", "body", "date-time", m.UpdatedTimestamp.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this detects alert based on the context it is used
+func (m *DetectsAlert) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateCrawlEdgeIds(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateCrawlVertexIds(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateDevice(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateGrandparentDetails(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateIocContext(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateParentDetails(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidatePatternDispositionDetails(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateQuarantinedFiles(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DetectsAlert) contextValidateCrawlEdgeIds(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.CrawlEdgeIds != nil {
+
+ if swag.IsZero(m.CrawlEdgeIds) { // not required
+ return nil
+ }
+
+ if err := m.CrawlEdgeIds.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("crawl_edge_ids")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("crawl_edge_ids")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) contextValidateCrawlVertexIds(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.CrawlVertexIds != nil {
+
+ if swag.IsZero(m.CrawlVertexIds) { // not required
+ return nil
+ }
+
+ if err := m.CrawlVertexIds.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("crawl_vertex_ids")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("crawl_vertex_ids")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) contextValidateDevice(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Device != nil {
+
+ if swag.IsZero(m.Device) { // not required
+ return nil
+ }
+
+ if err := m.Device.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("device")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("device")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) contextValidateGrandparentDetails(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.GrandparentDetails != nil {
+
+ if swag.IsZero(m.GrandparentDetails) { // not required
+ return nil
+ }
+
+ if err := m.GrandparentDetails.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("grandparent_details")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("grandparent_details")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) contextValidateIocContext(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.IocContext); i++ {
+
+ if m.IocContext[i] != nil {
+
+ if swag.IsZero(m.IocContext[i]) { // not required
+ return nil
+ }
+
+ if err := m.IocContext[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("ioc_context" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("ioc_context" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) contextValidateParentDetails(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.ParentDetails != nil {
+
+ if swag.IsZero(m.ParentDetails) { // not required
+ return nil
+ }
+
+ if err := m.ParentDetails.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("parent_details")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("parent_details")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) contextValidatePatternDispositionDetails(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.PatternDispositionDetails != nil {
+
+ if swag.IsZero(m.PatternDispositionDetails) { // not required
+ return nil
+ }
+
+ if err := m.PatternDispositionDetails.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("pattern_disposition_details")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("pattern_disposition_details")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlert) contextValidateQuarantinedFiles(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.QuarantinedFiles); i++ {
+
+ if m.QuarantinedFiles[i] != nil {
+
+ if swag.IsZero(m.QuarantinedFiles[i]) { // not required
+ return nil
+ }
+
+ if err := m.QuarantinedFiles[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("quarantined_files" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("quarantined_files" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DetectsAlert) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DetectsAlert) UnmarshalBinary(b []byte) error {
+ var res DetectsAlert
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
+
+// DetectsAlertCrawlEdgeIds detects alert crawl edge ids
+//
+// swagger:model DetectsAlertCrawlEdgeIds
+type DetectsAlertCrawlEdgeIds struct {
+
+ // sensor
+ Sensor []string `json:"Sensor"`
+}
+
+// Validate validates this detects alert crawl edge ids
+func (m *DetectsAlertCrawlEdgeIds) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this detects alert crawl edge ids based on context it is used
+func (m *DetectsAlertCrawlEdgeIds) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DetectsAlertCrawlEdgeIds) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DetectsAlertCrawlEdgeIds) UnmarshalBinary(b []byte) error {
+ var res DetectsAlertCrawlEdgeIds
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
+
+// DetectsAlertCrawlVertexIds detects alert crawl vertex ids
+//
+// swagger:model DetectsAlertCrawlVertexIds
+type DetectsAlertCrawlVertexIds struct {
+
+ // sensor
+ Sensor []string `json:"Sensor"`
+}
+
+// Validate validates this detects alert crawl vertex ids
+func (m *DetectsAlertCrawlVertexIds) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this detects alert crawl vertex ids based on context it is used
+func (m *DetectsAlertCrawlVertexIds) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DetectsAlertCrawlVertexIds) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DetectsAlertCrawlVertexIds) UnmarshalBinary(b []byte) error {
+ var res DetectsAlertCrawlVertexIds
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
+
+// DetectsAlertDevice detects alert device
+//
+// swagger:model DetectsAlertDevice
+type DetectsAlertDevice struct {
+
+ // agent load flags
+ AgentLoadFlags string `json:"agent_load_flags,omitempty"`
+
+ // agent local time
+ // Format: date-time
+ AgentLocalTime strfmt.DateTime `json:"agent_local_time,omitempty"`
+
+ // agent version
+ AgentVersion string `json:"agent_version,omitempty"`
+
+ // The manufacturer of the device's BIOS
+ BiosManufacturer string `json:"bios_manufacturer,omitempty"`
+
+ // Version of the device's BIOS
+ BiosVersion string `json:"bios_version,omitempty"`
+
+ // cid
+ Cid string `json:"cid,omitempty"`
+
+ // config id base
+ ConfigIDBase string `json:"config_id_base,omitempty"`
+
+ // config id build
+ ConfigIDBuild string `json:"config_id_build,omitempty"`
+
+ // config id platform
+ ConfigIDPlatform string `json:"config_id_platform,omitempty"`
+
+ // device id
+ DeviceID string `json:"device_id,omitempty"`
+
+ // external ip
+ ExternalIP string `json:"external_ip,omitempty"`
+
+ // Timestamp indicating when the device was first seen
+ // Format: date-time
+ FirstSeen strfmt.DateTime `json:"first_seen,omitempty"`
+
+ // groups
+ Groups []string `json:"groups"`
+
+ // hostinfo
+ Hostinfo *DetectsAlertDeviceHostinfo `json:"hostinfo,omitempty"`
+
+ // hostname
+ Hostname string `json:"hostname,omitempty"`
+
+ // id
+ ID string `json:"id,omitempty"`
+
+ // last seen
+ // Format: date-time
+ LastSeen strfmt.DateTime `json:"last_seen,omitempty"`
+
+ // Local IP address of the device
+ LocalIP string `json:"local_ip,omitempty"`
+
+ // MAC address of the device
+ MacAddress string `json:"mac_address,omitempty"`
+
+ // Domain name of the device's machine
+ MachineDomain string `json:"machine_domain,omitempty"`
+
+ // major version
+ MajorVersion string `json:"major_version,omitempty"`
+
+ // minor version
+ MinorVersion string `json:"minor_version,omitempty"`
+
+ // Timestamp indicating when the device information was last modified
+ // Format: date-time
+ ModifiedTimestamp strfmt.DateTime `json:"modified_timestamp,omitempty"`
+
+ // Operating system version running on the device
+ OsVersion string `json:"os_version,omitempty"`
+
+ // Organizational units the device belongs to
+ Ou []string `json:"ou"`
+
+ // ID of the platform the device is running on
+ PlatformID string `json:"platform_id,omitempty"`
+
+ // Name of the platform the device is running on
+ PlatformName string `json:"platform_name,omitempty"`
+
+ // pod labels
+ PodLabels []string `json:"pod_labels"`
+
+ // Product type identifier for the device
+ ProductType string `json:"product_type,omitempty"`
+
+ // Description of the product type for the device
+ ProductTypeDesc string `json:"product_type_desc,omitempty"`
+
+ // Site name where the device is located
+ SiteName string `json:"site_name,omitempty"`
+
+ // Current status of the device (e.g., normal, inactive)
+ Status string `json:"status,omitempty"`
+
+ // manufacturer of the system hardware
+ SystemManufacturer string `json:"system_manufacturer,omitempty"`
+
+ // product name of the system hardware
+ SystemProductName string `json:"system_product_name,omitempty"`
+
+ // tags
+ Tags []string `json:"tags"`
+}
+
+// Validate validates this detects alert device
+func (m *DetectsAlertDevice) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAgentLocalTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateFirstSeen(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateHostinfo(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateLastSeen(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateModifiedTimestamp(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DetectsAlertDevice) validateAgentLocalTime(formats strfmt.Registry) error {
+ if swag.IsZero(m.AgentLocalTime) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("device"+"."+"agent_local_time", "body", "date-time", m.AgentLocalTime.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlertDevice) validateFirstSeen(formats strfmt.Registry) error {
+ if swag.IsZero(m.FirstSeen) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("device"+"."+"first_seen", "body", "date-time", m.FirstSeen.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlertDevice) validateHostinfo(formats strfmt.Registry) error {
+ if swag.IsZero(m.Hostinfo) { // not required
+ return nil
+ }
+
+ if m.Hostinfo != nil {
+ if err := m.Hostinfo.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("device" + "." + "hostinfo")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("device" + "." + "hostinfo")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DetectsAlertDevice) validateLastSeen(formats strfmt.Registry) error {
+ if swag.IsZero(m.LastSeen) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("device"+"."+"last_seen", "body", "date-time", m.LastSeen.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DetectsAlertDevice) validateModifiedTimestamp(formats strfmt.Registry) error {
+ if swag.IsZero(m.ModifiedTimestamp) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("device"+"."+"modified_timestamp", "body", "date-time", m.ModifiedTimestamp.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this detects alert device based on the context it is used
+func (m *DetectsAlertDevice) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateHostinfo(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DetectsAlertDevice) contextValidateHostinfo(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Hostinfo != nil {
+
+ if swag.IsZero(m.Hostinfo) { // not required
+ return nil
+ }
+
+ if err := m.Hostinfo.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("device" + "." + "hostinfo")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("device" + "." + "hostinfo")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DetectsAlertDevice) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DetectsAlertDevice) UnmarshalBinary(b []byte) error {
+ var res DetectsAlertDevice
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
+
+// DetectsAlertDeviceHostinfo detects alert device hostinfo
+//
+// swagger:model DetectsAlertDeviceHostinfo
+type DetectsAlertDeviceHostinfo struct {
+
+ // active directory dn display
+ ActiveDirectoryDnDisplay []string `json:"active_directory_dn_display"`
+
+ // domain
+ Domain string `json:"domain,omitempty"`
+}
+
+// Validate validates this detects alert device hostinfo
+func (m *DetectsAlertDeviceHostinfo) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this detects alert device hostinfo based on context it is used
+func (m *DetectsAlertDeviceHostinfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DetectsAlertDeviceHostinfo) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DetectsAlertDeviceHostinfo) UnmarshalBinary(b []byte) error {
+ var res DetectsAlertDeviceHostinfo
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
+
+// DetectsAlertGrandparentDetails detects alert grandparent details
+//
+// swagger:model DetectsAlertGrandparentDetails
+type DetectsAlertGrandparentDetails struct {
+
+ // cmdline
+ Cmdline string `json:"cmdline,omitempty"`
+
+ // filename
+ Filename string `json:"filename,omitempty"`
+
+ // filepath
+ Filepath string `json:"filepath,omitempty"`
+
+ // local process id
+ LocalProcessID string `json:"local_process_id,omitempty"`
+
+ // md5
+ Md5 string `json:"md5,omitempty"`
+
+ // process graph id
+ ProcessGraphID string `json:"process_graph_id,omitempty"`
+
+ // process id
+ ProcessID string `json:"process_id,omitempty"`
+
+ // sha256
+ Sha256 string `json:"sha256,omitempty"`
+
+ // timestamp
+ // Format: date-time
+ Timestamp strfmt.DateTime `json:"timestamp,omitempty"`
+
+ // user graph id
+ UserGraphID string `json:"user_graph_id,omitempty"`
+
+ // user id
+ UserID string `json:"user_id,omitempty"`
+
+ // user name
+ UserName string `json:"user_name,omitempty"`
+}
+
+// Validate validates this detects alert grandparent details
+func (m *DetectsAlertGrandparentDetails) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateTimestamp(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DetectsAlertGrandparentDetails) validateTimestamp(formats strfmt.Registry) error {
+ if swag.IsZero(m.Timestamp) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("grandparent_details"+"."+"timestamp", "body", "date-time", m.Timestamp.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this detects alert grandparent details based on context it is used
+func (m *DetectsAlertGrandparentDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DetectsAlertGrandparentDetails) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DetectsAlertGrandparentDetails) UnmarshalBinary(b []byte) error {
+ var res DetectsAlertGrandparentDetails
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
+
+// DetectsAlertIocContextItems0 detects alert ioc context items0
+//
+// swagger:model DetectsAlertIocContextItems0
+type DetectsAlertIocContextItems0 struct {
+
+ // ioc description
+ IocDescription string `json:"ioc_description,omitempty"`
+
+ // ioc source
+ IocSource string `json:"ioc_source,omitempty"`
+
+ // ioc type
+ IocType string `json:"ioc_type,omitempty"`
+
+ // ioc value
+ IocValue string `json:"ioc_value,omitempty"`
+
+ // md5
+ Md5 string `json:"md5,omitempty"`
+
+ // sha256
+ Sha256 string `json:"sha256,omitempty"`
+
+ // type
+ Type string `json:"type,omitempty"`
+}
+
+// Validate validates this detects alert ioc context items0
+func (m *DetectsAlertIocContextItems0) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this detects alert ioc context items0 based on context it is used
+func (m *DetectsAlertIocContextItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DetectsAlertIocContextItems0) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DetectsAlertIocContextItems0) UnmarshalBinary(b []byte) error {
+ var res DetectsAlertIocContextItems0
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
+
+// DetectsAlertParentDetails detects alert parent details
+//
+// swagger:model DetectsAlertParentDetails
+type DetectsAlertParentDetails struct {
+
+ // cmdline
+ Cmdline string `json:"cmdline,omitempty"`
+
+ // filename
+ Filename string `json:"filename,omitempty"`
+
+ // filepath
+ Filepath string `json:"filepath,omitempty"`
+
+ // local process id
+ LocalProcessID string `json:"local_process_id,omitempty"`
+
+ // md5
+ Md5 string `json:"md5,omitempty"`
+
+ // process graph id
+ ProcessGraphID string `json:"process_graph_id,omitempty"`
+
+ // process id
+ ProcessID string `json:"process_id,omitempty"`
+
+ // sha256
+ Sha256 string `json:"sha256,omitempty"`
+
+ // timestamp
+ Timestamp string `json:"timestamp,omitempty"`
+
+ // user graph id
+ UserGraphID string `json:"user_graph_id,omitempty"`
+
+ // user id
+ UserID string `json:"user_id,omitempty"`
+
+ // user name
+ UserName string `json:"user_name,omitempty"`
+}
+
+// Validate validates this detects alert parent details
+func (m *DetectsAlertParentDetails) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this detects alert parent details based on context it is used
+func (m *DetectsAlertParentDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DetectsAlertParentDetails) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DetectsAlertParentDetails) UnmarshalBinary(b []byte) error {
+ var res DetectsAlertParentDetails
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
+
+// DetectsAlertPatternDispositionDetails detects alert pattern disposition details
+//
+// swagger:model DetectsAlertPatternDispositionDetails
+type DetectsAlertPatternDispositionDetails struct {
+
+ // blocking unsupported or disabled
+ BlockingUnsupportedOrDisabled *bool `json:"blocking_unsupported_or_disabled,omitempty"`
+
+ // bootup safeguard enabled
+ BootupSafeguardEnabled *bool `json:"bootup_safeguard_enabled,omitempty"`
+
+ // containment file system
+ ContainmentFileSystem *bool `json:"containment_file_system,omitempty"`
+
+ // critical process disabled
+ CriticalProcessDisabled *bool `json:"critical_process_disabled,omitempty"`
+
+ // detect
+ Detect *bool `json:"detect,omitempty"`
+
+ // fs operation blocked
+ FsOperationBlocked *bool `json:"fs_operation_blocked,omitempty"`
+
+ // handle operation downgraded
+ HandleOperationDowngraded *bool `json:"handle_operation_downgraded,omitempty"`
+
+ // inddet mask
+ InddetMask *bool `json:"inddet_mask,omitempty"`
+
+ // indicator
+ Indicator *bool `json:"indicator,omitempty"`
+
+ // kill action failed
+ KillActionFailed *bool `json:"kill_action_failed,omitempty"`
+
+ // kill parent
+ KillParent *bool `json:"kill_parent,omitempty"`
+
+ // kill process
+ KillProcess *bool `json:"kill_process,omitempty"`
+
+ // kill subprocess
+ KillSubprocess *bool `json:"kill_subprocess,omitempty"`
+
+ // mfa required
+ MfaRequired *bool `json:"mfa_required,omitempty"`
+
+ // operation blocked
+ OperationBlocked *bool `json:"operation_blocked,omitempty"`
+
+ // policy disabled
+ PolicyDisabled *bool `json:"policy_disabled,omitempty"`
+
+ // prevention provisioning enabled
+ PreventionProvisioningEnabled *bool `json:"prevention_provisioning_enabled,omitempty"`
+
+ // process blocked
+ ProcessBlocked *bool `json:"process_blocked,omitempty"`
+
+ // quarantine file
+ QuarantineFile *bool `json:"quarantine_file,omitempty"`
+
+ // quarantine machine
+ QuarantineMachine *bool `json:"quarantine_machine,omitempty"`
+
+ // registry operation blocked
+ RegistryOperationBlocked *bool `json:"registry_operation_blocked,omitempty"`
+
+ // response action already applied
+ ResponseActionAlreadyApplied *bool `json:"response_action_already_applied,omitempty"`
+
+ // response action failed
+ ResponseActionFailed *bool `json:"response_action_failed,omitempty"`
+
+ // response action triggered
+ ResponseActionTriggered *bool `json:"response_action_triggered,omitempty"`
+
+ // rooting
+ Rooting *bool `json:"rooting,omitempty"`
+
+ // sensor only
+ SensorOnly *bool `json:"sensor_only,omitempty"`
+
+ // suspend parent
+ SuspendParent *bool `json:"suspend_parent,omitempty"`
+
+ // suspend process
+ SuspendProcess *bool `json:"suspend_process,omitempty"`
+}
+
+// Validate validates this detects alert pattern disposition details
+func (m *DetectsAlertPatternDispositionDetails) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this detects alert pattern disposition details based on context it is used
+func (m *DetectsAlertPatternDispositionDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DetectsAlertPatternDispositionDetails) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DetectsAlertPatternDispositionDetails) UnmarshalBinary(b []byte) error {
+ var res DetectsAlertPatternDispositionDetails
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
+
+// DetectsAlertQuarantinedFilesItems0 detects alert quarantined files items0
+//
+// swagger:model DetectsAlertQuarantinedFilesItems0
+type DetectsAlertQuarantinedFilesItems0 struct {
+
+ // filename
+ Filename string `json:"filename,omitempty"`
+
+ // id
+ ID string `json:"id,omitempty"`
+
+ // sha256
+ Sha256 string `json:"sha256,omitempty"`
+
+ // state
+ State string `json:"state,omitempty"`
+}
+
+// Validate validates this detects alert quarantined files items0
+func (m *DetectsAlertQuarantinedFilesItems0) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this detects alert quarantined files items0 based on context it is used
+func (m *DetectsAlertQuarantinedFilesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DetectsAlertQuarantinedFilesItems0) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DetectsAlertQuarantinedFilesItems0) UnmarshalBinary(b []byte) error {
+ var res DetectsAlertQuarantinedFilesItems0
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/falcon/models/device_mapped_device_policies.go b/falcon/models/device_mapped_device_policies.go
index 62c25b06..264e585b 100644
--- a/falcon/models/device_mapped_device_policies.go
+++ b/falcon/models/device_mapped_device_policies.go
@@ -27,12 +27,18 @@ type DeviceMappedDevicePolicies struct {
// aws verified access
AwsVerifiedAccess *DeviceDevicePolicy `json:"aws-verified-access,omitempty"`
+ // customer entitlements
+ CustomerEntitlements *DeviceDevicePolicy `json:"customer-entitlements,omitempty"`
+
// data protection
DataProtection *DeviceDevicePolicy `json:"data-protection,omitempty"`
// device control
DeviceControl *DeviceDevicePolicy `json:"device_control,omitempty"`
+ // falcon for it
+ FalconForIt *DeviceDevicePolicy `json:"falcon-for-it,omitempty"`
+
// fim
Fim *DeviceDevicePolicy `json:"fim,omitempty"`
@@ -54,6 +60,9 @@ type DeviceMappedDevicePolicies struct {
// kubernetes admission control
KubernetesAdmissionControl *DeviceDevicePolicy `json:"kubernetes-admission-control,omitempty"`
+ // legacy os
+ LegacyOs *DeviceDevicePolicy `json:"legacy-os,omitempty"`
+
// mobile
Mobile *DeviceDevicePolicy `json:"mobile,omitempty"`
@@ -98,6 +107,10 @@ func (m *DeviceMappedDevicePolicies) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateCustomerEntitlements(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateDataProtection(formats); err != nil {
res = append(res, err)
}
@@ -106,6 +119,10 @@ func (m *DeviceMappedDevicePolicies) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateFalconForIt(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateFim(formats); err != nil {
res = append(res, err)
}
@@ -134,6 +151,10 @@ func (m *DeviceMappedDevicePolicies) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateLegacyOs(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateMobile(formats); err != nil {
res = append(res, err)
}
@@ -233,6 +254,25 @@ func (m *DeviceMappedDevicePolicies) validateAwsVerifiedAccess(formats strfmt.Re
return nil
}
+func (m *DeviceMappedDevicePolicies) validateCustomerEntitlements(formats strfmt.Registry) error {
+ if swag.IsZero(m.CustomerEntitlements) { // not required
+ return nil
+ }
+
+ if m.CustomerEntitlements != nil {
+ if err := m.CustomerEntitlements.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("customer-entitlements")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("customer-entitlements")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *DeviceMappedDevicePolicies) validateDataProtection(formats strfmt.Registry) error {
if swag.IsZero(m.DataProtection) { // not required
return nil
@@ -271,6 +311,25 @@ func (m *DeviceMappedDevicePolicies) validateDeviceControl(formats strfmt.Regist
return nil
}
+func (m *DeviceMappedDevicePolicies) validateFalconForIt(formats strfmt.Registry) error {
+ if swag.IsZero(m.FalconForIt) { // not required
+ return nil
+ }
+
+ if m.FalconForIt != nil {
+ if err := m.FalconForIt.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("falcon-for-it")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("falcon-for-it")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *DeviceMappedDevicePolicies) validateFim(formats strfmt.Registry) error {
if swag.IsZero(m.Fim) { // not required
return nil
@@ -404,6 +463,25 @@ func (m *DeviceMappedDevicePolicies) validateKubernetesAdmissionControl(formats
return nil
}
+func (m *DeviceMappedDevicePolicies) validateLegacyOs(formats strfmt.Registry) error {
+ if swag.IsZero(m.LegacyOs) { // not required
+ return nil
+ }
+
+ if m.LegacyOs != nil {
+ if err := m.LegacyOs.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("legacy-os")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("legacy-os")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *DeviceMappedDevicePolicies) validateMobile(formats strfmt.Registry) error {
if swag.IsZero(m.Mobile) { // not required
return nil
@@ -591,6 +669,10 @@ func (m *DeviceMappedDevicePolicies) ContextValidate(ctx context.Context, format
res = append(res, err)
}
+ if err := m.contextValidateCustomerEntitlements(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.contextValidateDataProtection(ctx, formats); err != nil {
res = append(res, err)
}
@@ -599,6 +681,10 @@ func (m *DeviceMappedDevicePolicies) ContextValidate(ctx context.Context, format
res = append(res, err)
}
+ if err := m.contextValidateFalconForIt(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.contextValidateFim(ctx, formats); err != nil {
res = append(res, err)
}
@@ -627,6 +713,10 @@ func (m *DeviceMappedDevicePolicies) ContextValidate(ctx context.Context, format
res = append(res, err)
}
+ if err := m.contextValidateLegacyOs(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.contextValidateMobile(ctx, formats); err != nil {
res = append(res, err)
}
@@ -732,6 +822,27 @@ func (m *DeviceMappedDevicePolicies) contextValidateAwsVerifiedAccess(ctx contex
return nil
}
+func (m *DeviceMappedDevicePolicies) contextValidateCustomerEntitlements(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.CustomerEntitlements != nil {
+
+ if swag.IsZero(m.CustomerEntitlements) { // not required
+ return nil
+ }
+
+ if err := m.CustomerEntitlements.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("customer-entitlements")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("customer-entitlements")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *DeviceMappedDevicePolicies) contextValidateDataProtection(ctx context.Context, formats strfmt.Registry) error {
if m.DataProtection != nil {
@@ -774,6 +885,27 @@ func (m *DeviceMappedDevicePolicies) contextValidateDeviceControl(ctx context.Co
return nil
}
+func (m *DeviceMappedDevicePolicies) contextValidateFalconForIt(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.FalconForIt != nil {
+
+ if swag.IsZero(m.FalconForIt) { // not required
+ return nil
+ }
+
+ if err := m.FalconForIt.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("falcon-for-it")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("falcon-for-it")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *DeviceMappedDevicePolicies) contextValidateFim(ctx context.Context, formats strfmt.Registry) error {
if m.Fim != nil {
@@ -921,6 +1053,27 @@ func (m *DeviceMappedDevicePolicies) contextValidateKubernetesAdmissionControl(c
return nil
}
+func (m *DeviceMappedDevicePolicies) contextValidateLegacyOs(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.LegacyOs != nil {
+
+ if swag.IsZero(m.LegacyOs) { // not required
+ return nil
+ }
+
+ if err := m.LegacyOs.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("legacy-os")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("legacy-os")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *DeviceMappedDevicePolicies) contextValidateMobile(ctx context.Context, formats strfmt.Registry) error {
if m.Mobile != nil {
diff --git a/falcon/models/domain_a_w_s_account_resource_metadata.go b/falcon/models/domain_a_w_s_account_resource_metadata.go
new file mode 100644
index 00000000..fe0d857c
--- /dev/null
+++ b/falcon/models/domain_a_w_s_account_resource_metadata.go
@@ -0,0 +1,68 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// DomainAWSAccountResourceMetadata domain a w s account resource metadata
+//
+// swagger:model domain.AWSAccountResourceMetadata
+type DomainAWSAccountResourceMetadata struct {
+
+ // AWS CloudTrail bucket name to store logs.
+ AwsCloudtrailBucketName string `json:"aws_cloudtrail_bucket_name,omitempty"`
+
+ // AWS CloudTrail region.
+ AwsCloudtrailRegion string `json:"aws_cloudtrail_region,omitempty"`
+
+ // AWS Eventbus ARN.
+ AwsEventbusArn string `json:"aws_eventbus_arn,omitempty"`
+
+ // eventbus name
+ EventbusName string `json:"eventbus_name,omitempty"`
+
+ // ID assigned for use with cross account IAM role access.
+ ExternalID string `json:"external_id,omitempty"`
+
+ // The full arn of the IAM role created in this account to control access.
+ IamRoleArn string `json:"iam_role_arn,omitempty"`
+
+ // intermediate role arn
+ IntermediateRoleArn string `json:"intermediate_role_arn,omitempty"`
+}
+
+// Validate validates this domain a w s account resource metadata
+func (m *DomainAWSAccountResourceMetadata) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this domain a w s account resource metadata based on context it is used
+func (m *DomainAWSAccountResourceMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainAWSAccountResourceMetadata) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainAWSAccountResourceMetadata) UnmarshalBinary(b []byte) error {
+ var res DomainAWSAccountResourceMetadata
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_api_compliance_control_v1.go b/falcon/models/domain_api_compliance_control_v1.go
new file mode 100644
index 00000000..c533002f
--- /dev/null
+++ b/falcon/models/domain_api_compliance_control_v1.go
@@ -0,0 +1,88 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainAPIComplianceControlV1 domain API compliance control v1
+//
+// swagger:model domain.APIComplianceControlV1
+type DomainAPIComplianceControlV1 struct {
+
+ // control
+ // Required: true
+ Control *string `json:"control"`
+
+ // id
+ // Required: true
+ ID *string `json:"id"`
+}
+
+// Validate validates this domain API compliance control v1
+func (m *DomainAPIComplianceControlV1) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateControl(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainAPIComplianceControlV1) validateControl(formats strfmt.Registry) error {
+
+ if err := validate.Required("control", "body", m.Control); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainAPIComplianceControlV1) validateID(formats strfmt.Registry) error {
+
+ if err := validate.Required("id", "body", m.ID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this domain API compliance control v1 based on context it is used
+func (m *DomainAPIComplianceControlV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainAPIComplianceControlV1) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainAPIComplianceControlV1) UnmarshalBinary(b []byte) error {
+ var res DomainAPIComplianceControlV1
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_api_compliance_mapping_v1.go b/falcon/models/domain_api_compliance_mapping_v1.go
new file mode 100644
index 00000000..86de9ddd
--- /dev/null
+++ b/falcon/models/domain_api_compliance_mapping_v1.go
@@ -0,0 +1,156 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainAPIComplianceMappingV1 domain API compliance mapping v1
+//
+// swagger:model domain.APIComplianceMappingV1
+type DomainAPIComplianceMappingV1 struct {
+
+ // controls
+ Controls []*DomainAPIComplianceControlV1 `json:"controls"`
+
+ // framework
+ // Required: true
+ Framework *string `json:"framework"`
+
+ // version
+ // Required: true
+ Version *string `json:"version"`
+}
+
+// Validate validates this domain API compliance mapping v1
+func (m *DomainAPIComplianceMappingV1) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateControls(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateFramework(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateVersion(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainAPIComplianceMappingV1) validateControls(formats strfmt.Registry) error {
+ if swag.IsZero(m.Controls) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Controls); i++ {
+ if swag.IsZero(m.Controls[i]) { // not required
+ continue
+ }
+
+ if m.Controls[i] != nil {
+ if err := m.Controls[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("controls" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("controls" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainAPIComplianceMappingV1) validateFramework(formats strfmt.Registry) error {
+
+ if err := validate.Required("framework", "body", m.Framework); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainAPIComplianceMappingV1) validateVersion(formats strfmt.Registry) error {
+
+ if err := validate.Required("version", "body", m.Version); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain API compliance mapping v1 based on the context it is used
+func (m *DomainAPIComplianceMappingV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateControls(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainAPIComplianceMappingV1) contextValidateControls(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Controls); i++ {
+
+ if m.Controls[i] != nil {
+
+ if swag.IsZero(m.Controls[i]) { // not required
+ return nil
+ }
+
+ if err := m.Controls[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("controls" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("controls" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainAPIComplianceMappingV1) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainAPIComplianceMappingV1) UnmarshalBinary(b []byte) error {
+ var res DomainAPIComplianceMappingV1
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_api_entity_matched_v1.go b/falcon/models/domain_api_entity_matched_v1.go
deleted file mode 100644
index 264d52c3..00000000
--- a/falcon/models/domain_api_entity_matched_v1.go
+++ /dev/null
@@ -1,56 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// DomainAPIEntityMatchedV1 domain API entity matched v1
-//
-// swagger:model domain.APIEntityMatchedV1
-type DomainAPIEntityMatchedV1 struct {
-
- // asset id
- AssetID string `json:"asset_id,omitempty"`
-
- // data provider
- DataProvider string `json:"data_provider,omitempty"`
-
- // provider asset id
- ProviderAssetID string `json:"provider_asset_id,omitempty"`
-}
-
-// Validate validates this domain API entity matched v1
-func (m *DomainAPIEntityMatchedV1) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// ContextValidate validates this domain API entity matched v1 based on context it is used
-func (m *DomainAPIEntityMatchedV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *DomainAPIEntityMatchedV1) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *DomainAPIEntityMatchedV1) UnmarshalBinary(b []byte) error {
- var res DomainAPIEntityMatchedV1
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/falcon/models/domain_api_evaluation_logic_host_info_v1.go b/falcon/models/domain_api_evaluation_logic_host_info_v1.go
deleted file mode 100644
index bec6676c..00000000
--- a/falcon/models/domain_api_evaluation_logic_host_info_v1.go
+++ /dev/null
@@ -1,124 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "strconv"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// DomainAPIEvaluationLogicHostInfoV1 domain API evaluation logic host info v1
-//
-// swagger:model domain.APIEvaluationLogicHostInfoV1
-type DomainAPIEvaluationLogicHostInfoV1 struct {
-
- // Refers to all the entities that were matched together during entity resolution process
- // Required: true
- EntitiesMatched []*DomainAPIEntityMatchedV1 `json:"entities_matched"`
-}
-
-// Validate validates this domain API evaluation logic host info v1
-func (m *DomainAPIEvaluationLogicHostInfoV1) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateEntitiesMatched(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *DomainAPIEvaluationLogicHostInfoV1) validateEntitiesMatched(formats strfmt.Registry) error {
-
- if err := validate.Required("entities_matched", "body", m.EntitiesMatched); err != nil {
- return err
- }
-
- for i := 0; i < len(m.EntitiesMatched); i++ {
- if swag.IsZero(m.EntitiesMatched[i]) { // not required
- continue
- }
-
- if m.EntitiesMatched[i] != nil {
- if err := m.EntitiesMatched[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("entities_matched" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("entities_matched" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
-// ContextValidate validate this domain API evaluation logic host info v1 based on the context it is used
-func (m *DomainAPIEvaluationLogicHostInfoV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- if err := m.contextValidateEntitiesMatched(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *DomainAPIEvaluationLogicHostInfoV1) contextValidateEntitiesMatched(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.EntitiesMatched); i++ {
-
- if m.EntitiesMatched[i] != nil {
-
- if swag.IsZero(m.EntitiesMatched[i]) { // not required
- return nil
- }
-
- if err := m.EntitiesMatched[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("entities_matched" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("entities_matched" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *DomainAPIEvaluationLogicHostInfoV1) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *DomainAPIEvaluationLogicHostInfoV1) UnmarshalBinary(b []byte) error {
- var res DomainAPIEvaluationLogicHostInfoV1
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/falcon/models/domain_api_evaluation_logic_item_v1.go b/falcon/models/domain_api_evaluation_logic_item_v1.go
index 14d0ca8d..129ae08a 100644
--- a/falcon/models/domain_api_evaluation_logic_item_v1.go
+++ b/falcon/models/domain_api_evaluation_logic_item_v1.go
@@ -26,9 +26,6 @@ type DomainAPIEvaluationLogicItemV1 struct {
// comparisons
Comparisons *DomainAPIEvaluationLogicComparisonsV1 `json:"comparisons,omitempty"`
- // description
- Description string `json:"description,omitempty"`
-
// determined by comparison
DeterminedByComparison bool `json:"determined_by_comparison,omitempty"`
@@ -44,6 +41,10 @@ type DomainAPIEvaluationLogicItemV1 struct {
// negate
Negate bool `json:"negate,omitempty"`
+ // status
+ // Required: true
+ Status *string `json:"status"`
+
// title
// Required: true
Title *string `json:"title"`
@@ -61,6 +62,10 @@ func (m *DomainAPIEvaluationLogicItemV1) Validate(formats strfmt.Registry) error
res = append(res, err)
}
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateTitle(formats); err != nil {
res = append(res, err)
}
@@ -94,6 +99,15 @@ func (m *DomainAPIEvaluationLogicItemV1) validateComparisons(formats strfmt.Regi
return nil
}
+func (m *DomainAPIEvaluationLogicItemV1) validateStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("status", "body", m.Status); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *DomainAPIEvaluationLogicItemV1) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("title", "body", m.Title); err != nil {
diff --git a/falcon/models/domain_api_evaluation_logic_v1.go b/falcon/models/domain_api_evaluation_logic_v1.go
index bc988bc7..7bbbb7de 100644
--- a/falcon/models/domain_api_evaluation_logic_v1.go
+++ b/falcon/models/domain_api_evaluation_logic_v1.go
@@ -20,32 +20,26 @@ import (
// swagger:model domain.APIEvaluationLogicV1
type DomainAPIEvaluationLogicV1 struct {
- // Refers to an asset identifier
+ // aid
Aid string `json:"aid,omitempty"`
- // Refers to a customer identifier
+ // cid
Cid string `json:"cid,omitempty"`
- // Refers to a point in time when evaluation logic data was created in the system
- CreatedTimestamp string `json:"created_timestamp,omitempty"`
-
- // Refers to a label given to the entity that provided this data
- DataProvider string `json:"data_provider,omitempty"`
+ // complex check operator
+ ComplexCheckOperator string `json:"complex_check_operator,omitempty"`
- // Refers back to the asset for which vulnerability was detected - contains only relevant information for working with evaluation logic data
- HostInfo *DomainAPIEvaluationLogicHostInfoV1 `json:"host_info,omitempty"`
+ // created timestamp
+ CreatedTimestamp string `json:"created_timestamp,omitempty"`
- // Contains a unique identifier for the evaluation logic
+ // id
// Required: true
ID *string `json:"id"`
- // Refers to the actual evaluation logic data
+ // logic
Logic []*DomainAPIEvaluationLogicItemV1 `json:"logic"`
- // Refers to the identifier of the scanner that generated the evaluation logic
- ScannerID string `json:"scanner_id,omitempty"`
-
- // Refers to a point in time when evaluation logic data was updated in the system
+ // updated timestamp
UpdatedTimestamp string `json:"updated_timestamp,omitempty"`
}
@@ -53,10 +47,6 @@ type DomainAPIEvaluationLogicV1 struct {
func (m *DomainAPIEvaluationLogicV1) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateHostInfo(formats); err != nil {
- res = append(res, err)
- }
-
if err := m.validateID(formats); err != nil {
res = append(res, err)
}
@@ -71,25 +61,6 @@ func (m *DomainAPIEvaluationLogicV1) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *DomainAPIEvaluationLogicV1) validateHostInfo(formats strfmt.Registry) error {
- if swag.IsZero(m.HostInfo) { // not required
- return nil
- }
-
- if m.HostInfo != nil {
- if err := m.HostInfo.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("host_info")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("host_info")
- }
- return err
- }
- }
-
- return nil
-}
-
func (m *DomainAPIEvaluationLogicV1) validateID(formats strfmt.Registry) error {
if err := validate.Required("id", "body", m.ID); err != nil {
@@ -129,10 +100,6 @@ func (m *DomainAPIEvaluationLogicV1) validateLogic(formats strfmt.Registry) erro
func (m *DomainAPIEvaluationLogicV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateHostInfo(ctx, formats); err != nil {
- res = append(res, err)
- }
-
if err := m.contextValidateLogic(ctx, formats); err != nil {
res = append(res, err)
}
@@ -143,27 +110,6 @@ func (m *DomainAPIEvaluationLogicV1) ContextValidate(ctx context.Context, format
return nil
}
-func (m *DomainAPIEvaluationLogicV1) contextValidateHostInfo(ctx context.Context, formats strfmt.Registry) error {
-
- if m.HostInfo != nil {
-
- if swag.IsZero(m.HostInfo) { // not required
- return nil
- }
-
- if err := m.HostInfo.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("host_info")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("host_info")
- }
- return err
- }
- }
-
- return nil
-}
-
func (m *DomainAPIEvaluationLogicV1) contextValidateLogic(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Logic); i++ {
diff --git a/falcon/models/domain_api_finding_rule_v1.go b/falcon/models/domain_api_finding_rule_v1.go
index 3adb42cb..53e30b0b 100644
--- a/falcon/models/domain_api_finding_rule_v1.go
+++ b/falcon/models/domain_api_finding_rule_v1.go
@@ -29,6 +29,9 @@ type DomainAPIFindingRuleV1 struct {
// cce
Cce string `json:"cce,omitempty"`
+ // compliance mappings
+ ComplianceMappings []*DomainAPIComplianceMappingV1 `json:"compliance_mappings"`
+
// edited
// Required: true
Edited *bool `json:"edited"`
@@ -72,6 +75,10 @@ type DomainAPIFindingRuleV1 struct {
func (m *DomainAPIFindingRuleV1) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateComplianceMappings(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateEdited(formats); err != nil {
res = append(res, err)
}
@@ -90,6 +97,32 @@ func (m *DomainAPIFindingRuleV1) Validate(formats strfmt.Registry) error {
return nil
}
+func (m *DomainAPIFindingRuleV1) validateComplianceMappings(formats strfmt.Registry) error {
+ if swag.IsZero(m.ComplianceMappings) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.ComplianceMappings); i++ {
+ if swag.IsZero(m.ComplianceMappings[i]) { // not required
+ continue
+ }
+
+ if m.ComplianceMappings[i] != nil {
+ if err := m.ComplianceMappings[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("compliance_mappings" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("compliance_mappings" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
func (m *DomainAPIFindingRuleV1) validateEdited(formats strfmt.Registry) error {
if err := validate.Required("edited", "body", m.Edited); err != nil {
@@ -138,6 +171,10 @@ func (m *DomainAPIFindingRuleV1) validateMitreAttackTactics(formats strfmt.Regis
func (m *DomainAPIFindingRuleV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
+ if err := m.contextValidateComplianceMappings(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.contextValidateMitreAttackTactics(ctx, formats); err != nil {
res = append(res, err)
}
@@ -148,6 +185,31 @@ func (m *DomainAPIFindingRuleV1) ContextValidate(ctx context.Context, formats st
return nil
}
+func (m *DomainAPIFindingRuleV1) contextValidateComplianceMappings(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.ComplianceMappings); i++ {
+
+ if m.ComplianceMappings[i] != nil {
+
+ if swag.IsZero(m.ComplianceMappings[i]) { // not required
+ return nil
+ }
+
+ if err := m.ComplianceMappings[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("compliance_mappings" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("compliance_mappings" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
func (m *DomainAPIFindingRuleV1) contextValidateMitreAttackTactics(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.MitreAttackTactics); i++ {
diff --git a/falcon/models/domain_api_remediation_info.go b/falcon/models/domain_api_remediation_info.go
new file mode 100644
index 00000000..84b8d911
--- /dev/null
+++ b/falcon/models/domain_api_remediation_info.go
@@ -0,0 +1,56 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// DomainAPIRemediationInfo domain API remediation info
+//
+// swagger:model domain.APIRemediationInfo
+type DomainAPIRemediationInfo struct {
+
+ // Contains the ID of the minimum remediation
+ MinimumID string `json:"minimum_id,omitempty"`
+
+ // Contains the timestamp when earliest remediation was published
+ PatchPublicationDate string `json:"patch_publication_date,omitempty"`
+
+ // Contains the ID of the recommended remediation
+ RecommendedID string `json:"recommended_id,omitempty"`
+}
+
+// Validate validates this domain API remediation info
+func (m *DomainAPIRemediationInfo) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this domain API remediation info based on context it is used
+func (m *DomainAPIRemediationInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainAPIRemediationInfo) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainAPIRemediationInfo) UnmarshalBinary(b []byte) error {
+ var res DomainAPIRemediationInfo
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_api_remediation_v2.go b/falcon/models/domain_api_remediation_v2.go
index 59aaed05..9faf6872 100644
--- a/falcon/models/domain_api_remediation_v2.go
+++ b/falcon/models/domain_api_remediation_v2.go
@@ -31,6 +31,12 @@ type DomainAPIRemediationV2 struct {
// Required: true
Link *string `json:"link"`
+ // The timestamp that this remediation was published
+ PatchPublicationDate string `json:"patch_publication_date,omitempty"`
+
+ // The type of recommendation for this remediation, usually either 'recommended' or 'minimum'
+ RecommendationType string `json:"recommendation_type,omitempty"`
+
// Relevant reference for the remediation that can be used to get additional details for the remediation. For example, a KB number that needs to be installed for a KB_SECURITY_UPDATE
// Required: true
Reference *string `json:"reference"`
diff --git a/falcon/models/domain_api_rule_details_v1.go b/falcon/models/domain_api_rule_details_v1.go
index 91baa835..5f6e7507 100644
--- a/falcon/models/domain_api_rule_details_v1.go
+++ b/falcon/models/domain_api_rule_details_v1.go
@@ -7,6 +7,7 @@ package models
import (
"context"
+ "strconv"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
@@ -43,6 +44,9 @@ type DomainAPIRuleDetailsV1 struct {
// Required: true
BenchmarkTitle *string `json:"benchmark_title"`
+ // compliance mappings
+ ComplianceMappings []*DomainAPIComplianceMappingV1 `json:"compliance_mappings"`
+
// description
// Required: true
Description *string `json:"description"`
@@ -107,6 +111,10 @@ func (m *DomainAPIRuleDetailsV1) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateComplianceMappings(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateDescription(formats); err != nil {
res = append(res, err)
}
@@ -199,6 +207,32 @@ func (m *DomainAPIRuleDetailsV1) validateBenchmarkTitle(formats strfmt.Registry)
return nil
}
+func (m *DomainAPIRuleDetailsV1) validateComplianceMappings(formats strfmt.Registry) error {
+ if swag.IsZero(m.ComplianceMappings) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.ComplianceMappings); i++ {
+ if swag.IsZero(m.ComplianceMappings[i]) { // not required
+ continue
+ }
+
+ if m.ComplianceMappings[i] != nil {
+ if err := m.ComplianceMappings[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("compliance_mappings" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("compliance_mappings" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
func (m *DomainAPIRuleDetailsV1) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("description", "body", m.Description); err != nil {
@@ -271,8 +305,42 @@ func (m *DomainAPIRuleDetailsV1) validateTitle(formats strfmt.Registry) error {
return nil
}
-// ContextValidate validates this domain API rule details v1 based on context it is used
+// ContextValidate validate this domain API rule details v1 based on the context it is used
func (m *DomainAPIRuleDetailsV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateComplianceMappings(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainAPIRuleDetailsV1) contextValidateComplianceMappings(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.ComplianceMappings); i++ {
+
+ if m.ComplianceMappings[i] != nil {
+
+ if swag.IsZero(m.ComplianceMappings[i]) { // not required
+ return nil
+ }
+
+ if err := m.ComplianceMappings[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("compliance_mappings" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("compliance_mappings" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
return nil
}
diff --git a/falcon/models/domain_api_vulnerability_app_v2.go b/falcon/models/domain_api_vulnerability_app_v2.go
index e4d3ed96..b5162044 100644
--- a/falcon/models/domain_api_vulnerability_app_v2.go
+++ b/falcon/models/domain_api_vulnerability_app_v2.go
@@ -26,6 +26,10 @@ type DomainAPIVulnerabilityAppV2 struct {
// Refers to the un-normalized combination of product name and version of the product for which the vulnerability has been detected
// Required: true
ProductNameVersion *string `json:"product_name_version"`
+
+ // Refers to the normalized vendor name of the product for which the vulnerability has been detected
+ // Required: true
+ VendorNormalized *string `json:"vendor_normalized"`
}
// Validate validates this domain API vulnerability app v2
@@ -40,6 +44,10 @@ func (m *DomainAPIVulnerabilityAppV2) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateVendorNormalized(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -64,6 +72,15 @@ func (m *DomainAPIVulnerabilityAppV2) validateProductNameVersion(formats strfmt.
return nil
}
+func (m *DomainAPIVulnerabilityAppV2) validateVendorNormalized(formats strfmt.Registry) error {
+
+ if err := validate.Required("vendor_normalized", "body", m.VendorNormalized); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// ContextValidate validates this domain API vulnerability app v2 based on context it is used
func (m *DomainAPIVulnerabilityAppV2) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
diff --git a/falcon/models/domain_api_vulnerability_extended_app_v2.go b/falcon/models/domain_api_vulnerability_extended_app_v2.go
index f4d42e43..75744b2b 100644
--- a/falcon/models/domain_api_vulnerability_extended_app_v2.go
+++ b/falcon/models/domain_api_vulnerability_extended_app_v2.go
@@ -22,6 +22,9 @@ type DomainAPIVulnerabilityExtendedAppV2 struct {
// Contains specific evaluation logic info for the vulnerability, affecting this specific product
EvaluationLogic *DomainAPIEvaluationLogicV1 `json:"evaluation_logic,omitempty"`
+ // Contains the timestamp when earliest remediation was published
+ PatchPublicationDate string `json:"patch_publication_date,omitempty"`
+
// Refers to the normalized product name of the product for which the vulnerability has been detected
// Required: true
ProductNameNormalized *string `json:"product_name_normalized"`
@@ -33,8 +36,15 @@ type DomainAPIVulnerabilityExtendedAppV2 struct {
// Contains specific remediation details for the vulnerability, affecting this specific product
Remediation *DomainAPIRemediationIDs `json:"remediation,omitempty"`
+ // Contains specific remediation details for the vulnerability affecting this specific product, specifically the recommended and minimum IDs
+ RemediationInfo *DomainAPIRemediationInfo `json:"remediation_info,omitempty"`
+
// Contains vulnerability status for a particular product - can differentiate in cases where a vulnerability is detected for multiple products
SubStatus string `json:"sub_status,omitempty"`
+
+ // Refers to the normalized vendor name of the product for which the vulnerability has been detected
+ // Required: true
+ VendorNormalized *string `json:"vendor_normalized"`
}
// Validate validates this domain API vulnerability extended app v2
@@ -57,6 +67,14 @@ func (m *DomainAPIVulnerabilityExtendedAppV2) Validate(formats strfmt.Registry)
res = append(res, err)
}
+ if err := m.validateRemediationInfo(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateVendorNormalized(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -119,6 +137,34 @@ func (m *DomainAPIVulnerabilityExtendedAppV2) validateRemediation(formats strfmt
return nil
}
+func (m *DomainAPIVulnerabilityExtendedAppV2) validateRemediationInfo(formats strfmt.Registry) error {
+ if swag.IsZero(m.RemediationInfo) { // not required
+ return nil
+ }
+
+ if m.RemediationInfo != nil {
+ if err := m.RemediationInfo.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("remediation_info")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("remediation_info")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainAPIVulnerabilityExtendedAppV2) validateVendorNormalized(formats strfmt.Registry) error {
+
+ if err := validate.Required("vendor_normalized", "body", m.VendorNormalized); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// ContextValidate validate this domain API vulnerability extended app v2 based on the context it is used
func (m *DomainAPIVulnerabilityExtendedAppV2) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
@@ -131,6 +177,10 @@ func (m *DomainAPIVulnerabilityExtendedAppV2) ContextValidate(ctx context.Contex
res = append(res, err)
}
+ if err := m.contextValidateRemediationInfo(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -179,6 +229,27 @@ func (m *DomainAPIVulnerabilityExtendedAppV2) contextValidateRemediation(ctx con
return nil
}
+func (m *DomainAPIVulnerabilityExtendedAppV2) contextValidateRemediationInfo(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.RemediationInfo != nil {
+
+ if swag.IsZero(m.RemediationInfo) { // not required
+ return nil
+ }
+
+ if err := m.RemediationInfo.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("remediation_info")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("remediation_info")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *DomainAPIVulnerabilityExtendedAppV2) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/domain_assessment_paging.go b/falcon/models/domain_assessment_paging.go
new file mode 100644
index 00000000..712748a8
--- /dev/null
+++ b/falcon/models/domain_assessment_paging.go
@@ -0,0 +1,94 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainAssessmentPaging domain assessment paging
+//
+// swagger:model domain.AssessmentPaging
+type DomainAssessmentPaging struct {
+
+ // expires at
+ ExpiresAt int64 `json:"expires_at,omitempty"`
+
+ // limit
+ Limit int32 `json:"limit,omitempty"`
+
+ // offset
+ // Required: true
+ Offset *string `json:"offset"`
+
+ // total
+ // Required: true
+ Total *int64 `json:"total"`
+}
+
+// Validate validates this domain assessment paging
+func (m *DomainAssessmentPaging) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateOffset(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTotal(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainAssessmentPaging) validateOffset(formats strfmt.Registry) error {
+
+ if err := validate.Required("offset", "body", m.Offset); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainAssessmentPaging) validateTotal(formats strfmt.Registry) error {
+
+ if err := validate.Required("total", "body", m.Total); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this domain assessment paging based on context it is used
+func (m *DomainAssessmentPaging) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainAssessmentPaging) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainAssessmentPaging) UnmarshalBinary(b []byte) error {
+ var res DomainAssessmentPaging
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_case_creation_request_v2.go b/falcon/models/domain_case_creation_request_v2.go
index 8c19c5e1..d5880093 100644
--- a/falcon/models/domain_case_creation_request_v2.go
+++ b/falcon/models/domain_case_creation_request_v2.go
@@ -32,6 +32,14 @@ type DomainCaseCreationRequestV2 struct {
// Required: true
Incidents []*MessagesIncident `json:"incidents"`
+ // malware submission id
+ // Required: true
+ MalwareSubmissionID *string `json:"malware_submission_id"`
+
+ // recon rule type
+ // Required: true
+ ReconRuleType *string `json:"recon_rule_type"`
+
// title
// Required: true
Title *string `json:"title"`
@@ -60,6 +68,14 @@ func (m *DomainCaseCreationRequestV2) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateMalwareSubmissionID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateReconRuleType(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateTitle(formats); err != nil {
res = append(res, err)
}
@@ -137,6 +153,24 @@ func (m *DomainCaseCreationRequestV2) validateIncidents(formats strfmt.Registry)
return nil
}
+func (m *DomainCaseCreationRequestV2) validateMalwareSubmissionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("malware_submission_id", "body", m.MalwareSubmissionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCaseCreationRequestV2) validateReconRuleType(formats strfmt.Registry) error {
+
+ if err := validate.Required("recon_rule_type", "body", m.ReconRuleType); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *DomainCaseCreationRequestV2) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("title", "body", m.Title); err != nil {
diff --git a/falcon/models/domain_cloud_a_w_s_account_v1.go b/falcon/models/domain_cloud_a_w_s_account_v1.go
new file mode 100644
index 00000000..18f08ce7
--- /dev/null
+++ b/falcon/models/domain_cloud_a_w_s_account_v1.go
@@ -0,0 +1,564 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainCloudAWSAccountV1 domain cloud a w s account v1
+//
+// swagger:model domain.CloudAWSAccountV1
+type DomainCloudAWSAccountV1 struct {
+
+ // created at
+ // Required: true
+ // Format: date-time
+ CreatedAt *strfmt.DateTime `json:"CreatedAt"`
+
+ // deleted at
+ // Required: true
+ // Format: date-time
+ DeletedAt *strfmt.DateTime `json:"DeletedAt"`
+
+ // ID
+ // Required: true
+ ID *int64 `json:"ID"`
+
+ // updated at
+ // Required: true
+ // Format: date-time
+ UpdatedAt *strfmt.DateTime `json:"UpdatedAt"`
+
+ // 12 digit AWS provided unique identifier for the account.
+ AccountID string `json:"account_id,omitempty"`
+
+ // AWS account name
+ AccountName string `json:"account_name,omitempty"`
+
+ // account type
+ AccountType string `json:"account_type,omitempty"`
+
+ // active regions
+ ActiveRegions []string `json:"active_regions"`
+
+ // cid
+ Cid string `json:"cid,omitempty"`
+
+ // conditions
+ Conditions []*DomainCloudCondition `json:"conditions"`
+
+ // csp live events are enabled
+ CspEvents bool `json:"csp_events,omitempty"`
+
+ // environment
+ Environment string `json:"environment,omitempty"`
+
+ // Permissions status for each product returned via API.
+ // Required: true
+ IamServicePermissionsStatus []*DomainProductPermission `json:"iam_service_permissions_status"`
+
+ // inventory filter
+ // Required: true
+ InventoryFilter []*DomainAWSInventoryFilterSetting `json:"inventory_filter"`
+
+ // is custom rolename
+ // Required: true
+ IsCustomRolename *bool `json:"is_custom_rolename"`
+
+ // is master
+ IsMaster bool `json:"is_master,omitempty"`
+
+ // Up to 34 character AWS provided unique identifier for the organization.
+ OrganizationID string `json:"organization_id,omitempty"`
+
+ // products
+ // Required: true
+ Products []*DomainProductFeatures `json:"products"`
+
+ // resource metadata
+ // Required: true
+ ResourceMetadata *DomainAWSAccountResourceMetadata `json:"resource_metadata"`
+
+ // 12 digit AWS provided unique identifier for the root account (of the organization this account belongs to).
+ RootAccountID string `json:"root_account_id,omitempty"`
+
+ // root iam role
+ RootIamRole bool `json:"root_iam_role,omitempty"`
+
+ // Account registration status for each product and feature
+ Status []*DomainProductFeaturesStatus `json:"status"`
+
+ // target ous
+ TargetOus []string `json:"target_ous"`
+
+ // use existing cloudtrail
+ UseExistingCloudtrail bool `json:"use_existing_cloudtrail,omitempty"`
+}
+
+// Validate validates this domain cloud a w s account v1
+func (m *DomainCloudAWSAccountV1) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateCreatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDeletedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateConditions(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateIamServicePermissionsStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateInventoryFilter(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateIsCustomRolename(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateProducts(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResourceMetadata(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateCreatedAt(formats strfmt.Registry) error {
+
+ if err := validate.Required("CreatedAt", "body", m.CreatedAt); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("CreatedAt", "body", "date-time", m.CreatedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateDeletedAt(formats strfmt.Registry) error {
+
+ if err := validate.Required("DeletedAt", "body", m.DeletedAt); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("DeletedAt", "body", "date-time", m.DeletedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateID(formats strfmt.Registry) error {
+
+ if err := validate.Required("ID", "body", m.ID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateUpdatedAt(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdatedAt", "body", m.UpdatedAt); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("UpdatedAt", "body", "date-time", m.UpdatedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateConditions(formats strfmt.Registry) error {
+ if swag.IsZero(m.Conditions) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Conditions); i++ {
+ if swag.IsZero(m.Conditions[i]) { // not required
+ continue
+ }
+
+ if m.Conditions[i] != nil {
+ if err := m.Conditions[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("conditions" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("conditions" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateIamServicePermissionsStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("iam_service_permissions_status", "body", m.IamServicePermissionsStatus); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.IamServicePermissionsStatus); i++ {
+ if swag.IsZero(m.IamServicePermissionsStatus[i]) { // not required
+ continue
+ }
+
+ if m.IamServicePermissionsStatus[i] != nil {
+ if err := m.IamServicePermissionsStatus[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("iam_service_permissions_status" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("iam_service_permissions_status" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateInventoryFilter(formats strfmt.Registry) error {
+
+ if err := validate.Required("inventory_filter", "body", m.InventoryFilter); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.InventoryFilter); i++ {
+ if swag.IsZero(m.InventoryFilter[i]) { // not required
+ continue
+ }
+
+ if m.InventoryFilter[i] != nil {
+ if err := m.InventoryFilter[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("inventory_filter" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("inventory_filter" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateIsCustomRolename(formats strfmt.Registry) error {
+
+ if err := validate.Required("is_custom_rolename", "body", m.IsCustomRolename); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateProducts(formats strfmt.Registry) error {
+
+ if err := validate.Required("products", "body", m.Products); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Products); i++ {
+ if swag.IsZero(m.Products[i]) { // not required
+ continue
+ }
+
+ if m.Products[i] != nil {
+ if err := m.Products[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("products" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("products" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateResourceMetadata(formats strfmt.Registry) error {
+
+ if err := validate.Required("resource_metadata", "body", m.ResourceMetadata); err != nil {
+ return err
+ }
+
+ if m.ResourceMetadata != nil {
+ if err := m.ResourceMetadata.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resource_metadata")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resource_metadata")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) validateStatus(formats strfmt.Registry) error {
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Status); i++ {
+ if swag.IsZero(m.Status[i]) { // not required
+ continue
+ }
+
+ if m.Status[i] != nil {
+ if err := m.Status[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain cloud a w s account v1 based on the context it is used
+func (m *DomainCloudAWSAccountV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateConditions(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateIamServicePermissionsStatus(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateInventoryFilter(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateProducts(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateResourceMetadata(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateStatus(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) contextValidateConditions(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Conditions); i++ {
+
+ if m.Conditions[i] != nil {
+
+ if swag.IsZero(m.Conditions[i]) { // not required
+ return nil
+ }
+
+ if err := m.Conditions[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("conditions" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("conditions" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) contextValidateIamServicePermissionsStatus(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.IamServicePermissionsStatus); i++ {
+
+ if m.IamServicePermissionsStatus[i] != nil {
+
+ if swag.IsZero(m.IamServicePermissionsStatus[i]) { // not required
+ return nil
+ }
+
+ if err := m.IamServicePermissionsStatus[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("iam_service_permissions_status" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("iam_service_permissions_status" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) contextValidateInventoryFilter(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.InventoryFilter); i++ {
+
+ if m.InventoryFilter[i] != nil {
+
+ if swag.IsZero(m.InventoryFilter[i]) { // not required
+ return nil
+ }
+
+ if err := m.InventoryFilter[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("inventory_filter" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("inventory_filter" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) contextValidateProducts(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Products); i++ {
+
+ if m.Products[i] != nil {
+
+ if swag.IsZero(m.Products[i]) { // not required
+ return nil
+ }
+
+ if err := m.Products[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("products" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("products" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) contextValidateResourceMetadata(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.ResourceMetadata != nil {
+
+ if err := m.ResourceMetadata.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resource_metadata")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resource_metadata")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainCloudAWSAccountV1) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Status); i++ {
+
+ if m.Status[i] != nil {
+
+ if swag.IsZero(m.Status[i]) { // not required
+ return nil
+ }
+
+ if err := m.Status[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainCloudAWSAccountV1) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainCloudAWSAccountV1) UnmarshalBinary(b []byte) error {
+ var res DomainCloudAWSAccountV1
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_cloud_condition.go b/falcon/models/domain_cloud_condition.go
new file mode 100644
index 00000000..625e7538
--- /dev/null
+++ b/falcon/models/domain_cloud_condition.go
@@ -0,0 +1,153 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainCloudCondition domain cloud condition
+//
+// swagger:model domain.CloudCondition
+type DomainCloudCondition struct {
+
+ // feature
+ // Required: true
+ Feature *string `json:"feature"`
+
+ // is visible
+ // Required: true
+ IsVisible *bool `json:"is_visible"`
+
+ // last transition
+ // Required: true
+ // Format: date-time
+ LastTransition *strfmt.DateTime `json:"last_transition"`
+
+ // message
+ Message string `json:"message,omitempty"`
+
+ // product
+ Product string `json:"product,omitempty"`
+
+ // reason
+ Reason string `json:"reason,omitempty"`
+
+ // status
+ // Required: true
+ Status *string `json:"status"`
+
+ // type
+ // Required: true
+ Type *string `json:"type"`
+}
+
+// Validate validates this domain cloud condition
+func (m *DomainCloudCondition) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFeature(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateIsVisible(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateLastTransition(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateType(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainCloudCondition) validateFeature(formats strfmt.Registry) error {
+
+ if err := validate.Required("feature", "body", m.Feature); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCloudCondition) validateIsVisible(formats strfmt.Registry) error {
+
+ if err := validate.Required("is_visible", "body", m.IsVisible); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCloudCondition) validateLastTransition(formats strfmt.Registry) error {
+
+ if err := validate.Required("last_transition", "body", m.LastTransition); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("last_transition", "body", "date-time", m.LastTransition.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCloudCondition) validateStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("status", "body", m.Status); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCloudCondition) validateType(formats strfmt.Registry) error {
+
+ if err := validate.Required("type", "body", m.Type); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this domain cloud condition based on context it is used
+func (m *DomainCloudCondition) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainCloudCondition) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainCloudCondition) UnmarshalBinary(b []byte) error {
+ var res DomainCloudCondition
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_compliance.go b/falcon/models/domain_compliance.go
new file mode 100644
index 00000000..e9238025
--- /dev/null
+++ b/falcon/models/domain_compliance.go
@@ -0,0 +1,62 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// DomainCompliance domain compliance
+//
+// swagger:model domain.Compliance
+type DomainCompliance struct {
+
+ // benchmarks
+ Benchmarks []string `json:"benchmarks"`
+
+ // frameworks
+ Frameworks []string `json:"frameworks"`
+
+ // requirements
+ Requirements []string `json:"requirements"`
+
+ // sections
+ Sections []string `json:"sections"`
+
+ // versions
+ Versions []string `json:"versions"`
+}
+
+// Validate validates this domain compliance
+func (m *DomainCompliance) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this domain compliance based on context it is used
+func (m *DomainCompliance) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainCompliance) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainCompliance) UnmarshalBinary(b []byte) error {
+ var res DomainCompliance
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_control.go b/falcon/models/domain_control.go
new file mode 100644
index 00000000..5e871421
--- /dev/null
+++ b/falcon/models/domain_control.go
@@ -0,0 +1,136 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// DomainControl domain control
+//
+// swagger:model domain.Control
+type DomainControl struct {
+
+ // benchmarks
+ Benchmarks []*DomainControlBenchmark `json:"benchmarks"`
+
+ // description
+ Description string `json:"description,omitempty"`
+
+ // framework
+ Framework string `json:"framework,omitempty"`
+
+ // name
+ Name string `json:"name,omitempty"`
+
+ // section
+ Section string `json:"section,omitempty"`
+
+ // version
+ Version string `json:"version,omitempty"`
+}
+
+// Validate validates this domain control
+func (m *DomainControl) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateBenchmarks(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainControl) validateBenchmarks(formats strfmt.Registry) error {
+ if swag.IsZero(m.Benchmarks) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Benchmarks); i++ {
+ if swag.IsZero(m.Benchmarks[i]) { // not required
+ continue
+ }
+
+ if m.Benchmarks[i] != nil {
+ if err := m.Benchmarks[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("benchmarks" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("benchmarks" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain control based on the context it is used
+func (m *DomainControl) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateBenchmarks(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainControl) contextValidateBenchmarks(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Benchmarks); i++ {
+
+ if m.Benchmarks[i] != nil {
+
+ if swag.IsZero(m.Benchmarks[i]) { // not required
+ return nil
+ }
+
+ if err := m.Benchmarks[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("benchmarks" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("benchmarks" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainControl) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainControl) UnmarshalBinary(b []byte) error {
+ var res DomainControl
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_control_benchmark.go b/falcon/models/domain_control_benchmark.go
new file mode 100644
index 00000000..5a771871
--- /dev/null
+++ b/falcon/models/domain_control_benchmark.go
@@ -0,0 +1,53 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// DomainControlBenchmark domain control benchmark
+//
+// swagger:model domain.ControlBenchmark
+type DomainControlBenchmark struct {
+
+ // name
+ Name string `json:"name,omitempty"`
+
+ // version
+ Version string `json:"version,omitempty"`
+}
+
+// Validate validates this domain control benchmark
+func (m *DomainControlBenchmark) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this domain control benchmark based on context it is used
+func (m *DomainControlBenchmark) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainControlBenchmark) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainControlBenchmark) UnmarshalBinary(b []byte) error {
+ var res DomainControlBenchmark
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_create_submission_v1_error_response.go b/falcon/models/domain_create_submission_v1_error_response.go
new file mode 100644
index 00000000..fb81c818
--- /dev/null
+++ b/falcon/models/domain_create_submission_v1_error_response.go
@@ -0,0 +1,170 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainCreateSubmissionV1ErrorResponse domain create submission v1 error response
+//
+// swagger:model domain.CreateSubmissionV1ErrorResponse
+type DomainCreateSubmissionV1ErrorResponse struct {
+
+ // analyzer
+ // Required: true
+ // Enum: [rapidscan]
+ Analyzer *string `json:"analyzer"`
+
+ // entity
+ // Required: true
+ Entity *string `json:"entity"`
+
+ // type
+ // Required: true
+ // Enum: [file]
+ Type *string `json:"type"`
+}
+
+// Validate validates this domain create submission v1 error response
+func (m *DomainCreateSubmissionV1ErrorResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAnalyzer(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateEntity(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateType(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+var domainCreateSubmissionV1ErrorResponseTypeAnalyzerPropEnum []interface{}
+
+func init() {
+ var res []string
+ if err := json.Unmarshal([]byte(`["rapidscan"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ domainCreateSubmissionV1ErrorResponseTypeAnalyzerPropEnum = append(domainCreateSubmissionV1ErrorResponseTypeAnalyzerPropEnum, v)
+ }
+}
+
+const (
+
+ // DomainCreateSubmissionV1ErrorResponseAnalyzerRapidscan captures enum value "rapidscan"
+ DomainCreateSubmissionV1ErrorResponseAnalyzerRapidscan string = "rapidscan"
+)
+
+// prop value enum
+func (m *DomainCreateSubmissionV1ErrorResponse) validateAnalyzerEnum(path, location string, value string) error {
+ if err := validate.EnumCase(path, location, value, domainCreateSubmissionV1ErrorResponseTypeAnalyzerPropEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (m *DomainCreateSubmissionV1ErrorResponse) validateAnalyzer(formats strfmt.Registry) error {
+
+ if err := validate.Required("analyzer", "body", m.Analyzer); err != nil {
+ return err
+ }
+
+ // value enum
+ if err := m.validateAnalyzerEnum("analyzer", "body", *m.Analyzer); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainCreateSubmissionV1ErrorResponse) validateEntity(formats strfmt.Registry) error {
+
+ if err := validate.Required("entity", "body", m.Entity); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+var domainCreateSubmissionV1ErrorResponseTypeTypePropEnum []interface{}
+
+func init() {
+ var res []string
+ if err := json.Unmarshal([]byte(`["file"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ domainCreateSubmissionV1ErrorResponseTypeTypePropEnum = append(domainCreateSubmissionV1ErrorResponseTypeTypePropEnum, v)
+ }
+}
+
+const (
+
+ // DomainCreateSubmissionV1ErrorResponseTypeFile captures enum value "file"
+ DomainCreateSubmissionV1ErrorResponseTypeFile string = "file"
+)
+
+// prop value enum
+func (m *DomainCreateSubmissionV1ErrorResponse) validateTypeEnum(path, location string, value string) error {
+ if err := validate.EnumCase(path, location, value, domainCreateSubmissionV1ErrorResponseTypeTypePropEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (m *DomainCreateSubmissionV1ErrorResponse) validateType(formats strfmt.Registry) error {
+
+ if err := validate.Required("type", "body", m.Type); err != nil {
+ return err
+ }
+
+ // value enum
+ if err := m.validateTypeEnum("type", "body", *m.Type); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this domain create submission v1 error response based on context it is used
+func (m *DomainCreateSubmissionV1ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainCreateSubmissionV1ErrorResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainCreateSubmissionV1ErrorResponse) UnmarshalBinary(b []byte) error {
+ var res DomainCreateSubmissionV1ErrorResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_discover_api_application_browser_extension.go b/falcon/models/domain_discover_api_application_browser_extension.go
index 7fc90dd2..f8c50309 100644
--- a/falcon/models/domain_discover_api_application_browser_extension.go
+++ b/falcon/models/domain_discover_api_application_browser_extension.go
@@ -20,6 +20,9 @@ import (
// swagger:model domain.DiscoverAPIApplicationBrowserExtension
type DomainDiscoverAPIApplicationBrowserExtension struct {
+ // The architecture of the browser extension
+ Architecture string `json:"architecture,omitempty"`
+
// The name of the browser that's running the extension
BrowserName string `json:"browser_name,omitempty"`
diff --git a/falcon/models/domain_discover_api_host.go b/falcon/models/domain_discover_api_host.go
index 9951905d..7eba1507 100644
--- a/falcon/models/domain_discover_api_host.go
+++ b/falcon/models/domain_discover_api_host.go
@@ -325,6 +325,9 @@ type DomainDiscoverAPIHost struct {
// The asset's network interfaces (Cannot be used for filtering, sorting, or querying).
NetworkInterfaces []*DomainDiscoverAPINetworkInterface `json:"network_interfaces"`
+ // The set of unique identifiers for the asset scanned by the Falcon sensor.
+ NetworkScannedIds []string `json:"network_scanned_ids"`
+
// The number of active physical drives available on the system.
NumberOfDiskDrives int32 `json:"number_of_disk_drives,omitempty"`
diff --git a/falcon/models/domain_external_asset_api_delete_request_v1.go b/falcon/models/domain_external_asset_api_delete_request_v1.go
new file mode 100644
index 00000000..8d561077
--- /dev/null
+++ b/falcon/models/domain_external_asset_api_delete_request_v1.go
@@ -0,0 +1,50 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// DomainExternalAssetAPIDeleteRequestV1 domain external asset API delete request v1
+//
+// swagger:model domain.ExternalAssetAPIDeleteRequestV1
+type DomainExternalAssetAPIDeleteRequestV1 struct {
+
+ // Some description that the user attached to the delete
+ Description string `json:"description,omitempty"`
+}
+
+// Validate validates this domain external asset API delete request v1
+func (m *DomainExternalAssetAPIDeleteRequestV1) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this domain external asset API delete request v1 based on context it is used
+func (m *DomainExternalAssetAPIDeleteRequestV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainExternalAssetAPIDeleteRequestV1) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainExternalAssetAPIDeleteRequestV1) UnmarshalBinary(b []byte) error {
+ var res DomainExternalAssetAPIDeleteRequestV1
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_external_export_job.go b/falcon/models/domain_external_export_job.go
new file mode 100644
index 00000000..84cee255
--- /dev/null
+++ b/falcon/models/domain_external_export_job.go
@@ -0,0 +1,156 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainExternalExportJob domain external export job
+//
+// swagger:model domain.ExternalExportJob
+type DomainExternalExportJob struct {
+
+ // created at
+ // Required: true
+ CreatedAt *string `json:"created_at"`
+
+ // id
+ // Required: true
+ ID *string `json:"id"`
+
+ // Resource to be exported
+ // Required: true
+ Resource *string `json:"resource"`
+
+ // Number of times the job was retried
+ // Required: true
+ Retries *int32 `json:"retries"`
+
+ // Current status of the job. One of [READY, WAITING, IN_PROGRESS, DONE, FAILED, WAITING_FOR_RETRY, CANCELED, RESULT_DELETED]
+ // Required: true
+ Status *string `json:"status"`
+
+ // updated at
+ // Required: true
+ UpdatedAt *string `json:"updated_at"`
+}
+
+// Validate validates this domain external export job
+func (m *DomainExternalExportJob) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateCreatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResource(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateRetries(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainExternalExportJob) validateCreatedAt(formats strfmt.Registry) error {
+
+ if err := validate.Required("created_at", "body", m.CreatedAt); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainExternalExportJob) validateID(formats strfmt.Registry) error {
+
+ if err := validate.Required("id", "body", m.ID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainExternalExportJob) validateResource(formats strfmt.Registry) error {
+
+ if err := validate.Required("resource", "body", m.Resource); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainExternalExportJob) validateRetries(formats strfmt.Registry) error {
+
+ if err := validate.Required("retries", "body", m.Retries); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainExternalExportJob) validateStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("status", "body", m.Status); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainExternalExportJob) validateUpdatedAt(formats strfmt.Registry) error {
+
+ if err := validate.Required("updated_at", "body", m.UpdatedAt); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this domain external export job based on context it is used
+func (m *DomainExternalExportJob) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainExternalExportJob) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainExternalExportJob) UnmarshalBinary(b []byte) error {
+ var res DomainExternalExportJob
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_feature_permission.go b/falcon/models/domain_feature_permission.go
new file mode 100644
index 00000000..c69186e0
--- /dev/null
+++ b/falcon/models/domain_feature_permission.go
@@ -0,0 +1,141 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainFeaturePermission domain feature permission
+//
+// swagger:model domain.FeaturePermission
+type DomainFeaturePermission struct {
+
+ // feature
+ // Required: true
+ Feature *string `json:"feature"`
+
+ // permissions
+ // Required: true
+ Permissions []*DomainPermission `json:"permissions"`
+}
+
+// Validate validates this domain feature permission
+func (m *DomainFeaturePermission) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFeature(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePermissions(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFeaturePermission) validateFeature(formats strfmt.Registry) error {
+
+ if err := validate.Required("feature", "body", m.Feature); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainFeaturePermission) validatePermissions(formats strfmt.Registry) error {
+
+ if err := validate.Required("permissions", "body", m.Permissions); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Permissions); i++ {
+ if swag.IsZero(m.Permissions[i]) { // not required
+ continue
+ }
+
+ if m.Permissions[i] != nil {
+ if err := m.Permissions[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("permissions" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("permissions" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain feature permission based on the context it is used
+func (m *DomainFeaturePermission) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidatePermissions(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFeaturePermission) contextValidatePermissions(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Permissions); i++ {
+
+ if m.Permissions[i] != nil {
+
+ if swag.IsZero(m.Permissions[i]) { // not required
+ return nil
+ }
+
+ if err := m.Permissions[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("permissions" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("permissions" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainFeaturePermission) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainFeaturePermission) UnmarshalBinary(b []byte) error {
+ var res DomainFeaturePermission
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_feature_status.go b/falcon/models/domain_feature_status.go
new file mode 100644
index 00000000..e70f0e07
--- /dev/null
+++ b/falcon/models/domain_feature_status.go
@@ -0,0 +1,88 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainFeatureStatus domain feature status
+//
+// swagger:model domain.FeatureStatus
+type DomainFeatureStatus struct {
+
+ // feature
+ // Required: true
+ Feature *string `json:"feature"`
+
+ // status
+ // Required: true
+ Status *string `json:"status"`
+}
+
+// Validate validates this domain feature status
+func (m *DomainFeatureStatus) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFeature(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFeatureStatus) validateFeature(formats strfmt.Registry) error {
+
+ if err := validate.Required("feature", "body", m.Feature); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainFeatureStatus) validateStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("status", "body", m.Status); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this domain feature status based on context it is used
+func (m *DomainFeatureStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainFeatureStatus) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainFeatureStatus) UnmarshalBinary(b []byte) error {
+ var res DomainFeatureStatus
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_fem_ecosystem_subsidiaries_entities_response.go b/falcon/models/domain_fem_ecosystem_subsidiaries_entities_response.go
new file mode 100644
index 00000000..2be68f3e
--- /dev/null
+++ b/falcon/models/domain_fem_ecosystem_subsidiaries_entities_response.go
@@ -0,0 +1,173 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainFemEcosystemSubsidiariesEntitiesResponse domain fem ecosystem subsidiaries entities response
+//
+// swagger:model domain.FemEcosystemSubsidiariesEntitiesResponse
+type DomainFemEcosystemSubsidiariesEntitiesResponse struct {
+
+ // fem ecosystem subsidiaries response fields
+ // Required: true
+ FemEcosystemSubsidiariesResponseFields *DomainFemEcosystemSubsidiariesResponseFields `json:"FemEcosystemSubsidiariesResponseFields"`
+
+ // Contains entities returned by the API
+ // Required: true
+ Resources []*DomainFemEcosystemSubsidiary `json:"resources"`
+}
+
+// Validate validates this domain fem ecosystem subsidiaries entities response
+func (m *DomainFemEcosystemSubsidiariesEntitiesResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFemEcosystemSubsidiariesResponseFields(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesEntitiesResponse) validateFemEcosystemSubsidiariesResponseFields(formats strfmt.Registry) error {
+
+ if err := validate.Required("FemEcosystemSubsidiariesResponseFields", "body", m.FemEcosystemSubsidiariesResponseFields); err != nil {
+ return err
+ }
+
+ if m.FemEcosystemSubsidiariesResponseFields != nil {
+ if err := m.FemEcosystemSubsidiariesResponseFields.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("FemEcosystemSubsidiariesResponseFields")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("FemEcosystemSubsidiariesResponseFields")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesEntitiesResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain fem ecosystem subsidiaries entities response based on the context it is used
+func (m *DomainFemEcosystemSubsidiariesEntitiesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateFemEcosystemSubsidiariesResponseFields(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesEntitiesResponse) contextValidateFemEcosystemSubsidiariesResponseFields(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.FemEcosystemSubsidiariesResponseFields != nil {
+
+ if err := m.FemEcosystemSubsidiariesResponseFields.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("FemEcosystemSubsidiariesResponseFields")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("FemEcosystemSubsidiariesResponseFields")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesEntitiesResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainFemEcosystemSubsidiariesEntitiesResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainFemEcosystemSubsidiariesEntitiesResponse) UnmarshalBinary(b []byte) error {
+ var res DomainFemEcosystemSubsidiariesEntitiesResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_fem_ecosystem_subsidiaries_meta.go b/falcon/models/domain_fem_ecosystem_subsidiaries_meta.go
new file mode 100644
index 00000000..aa4fffd6
--- /dev/null
+++ b/falcon/models/domain_fem_ecosystem_subsidiaries_meta.go
@@ -0,0 +1,125 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainFemEcosystemSubsidiariesMeta domain fem ecosystem subsidiaries meta
+//
+// swagger:model domain.FemEcosystemSubsidiariesMeta
+type DomainFemEcosystemSubsidiariesMeta struct {
+
+ // meta info
+ // Required: true
+ MetaInfo *MsaMetaInfo `json:"MetaInfo"`
+
+ // The version ID of an ecosystem
+ // Required: true
+ VersionID *string `json:"version_id"`
+}
+
+// Validate validates this domain fem ecosystem subsidiaries meta
+func (m *DomainFemEcosystemSubsidiariesMeta) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateMetaInfo(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesMeta) validateMetaInfo(formats strfmt.Registry) error {
+
+ if err := validate.Required("MetaInfo", "body", m.MetaInfo); err != nil {
+ return err
+ }
+
+ if m.MetaInfo != nil {
+ if err := m.MetaInfo.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("MetaInfo")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("MetaInfo")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesMeta) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("version_id", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain fem ecosystem subsidiaries meta based on the context it is used
+func (m *DomainFemEcosystemSubsidiariesMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateMetaInfo(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesMeta) contextValidateMetaInfo(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.MetaInfo != nil {
+
+ if err := m.MetaInfo.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("MetaInfo")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("MetaInfo")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainFemEcosystemSubsidiariesMeta) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainFemEcosystemSubsidiariesMeta) UnmarshalBinary(b []byte) error {
+ var res DomainFemEcosystemSubsidiariesMeta
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_fem_ecosystem_subsidiaries_query_response.go b/falcon/models/domain_fem_ecosystem_subsidiaries_query_response.go
new file mode 100644
index 00000000..23d88e8f
--- /dev/null
+++ b/falcon/models/domain_fem_ecosystem_subsidiaries_query_response.go
@@ -0,0 +1,125 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainFemEcosystemSubsidiariesQueryResponse domain fem ecosystem subsidiaries query response
+//
+// swagger:model domain.FemEcosystemSubsidiariesQueryResponse
+type DomainFemEcosystemSubsidiariesQueryResponse struct {
+
+ // fem ecosystem subsidiaries response fields
+ // Required: true
+ FemEcosystemSubsidiariesResponseFields *DomainFemEcosystemSubsidiariesResponseFields `json:"FemEcosystemSubsidiariesResponseFields"`
+
+ // Contains entities returned by the API
+ // Required: true
+ Resources []string `json:"resources"`
+}
+
+// Validate validates this domain fem ecosystem subsidiaries query response
+func (m *DomainFemEcosystemSubsidiariesQueryResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFemEcosystemSubsidiariesResponseFields(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesQueryResponse) validateFemEcosystemSubsidiariesResponseFields(formats strfmt.Registry) error {
+
+ if err := validate.Required("FemEcosystemSubsidiariesResponseFields", "body", m.FemEcosystemSubsidiariesResponseFields); err != nil {
+ return err
+ }
+
+ if m.FemEcosystemSubsidiariesResponseFields != nil {
+ if err := m.FemEcosystemSubsidiariesResponseFields.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("FemEcosystemSubsidiariesResponseFields")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("FemEcosystemSubsidiariesResponseFields")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesQueryResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain fem ecosystem subsidiaries query response based on the context it is used
+func (m *DomainFemEcosystemSubsidiariesQueryResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateFemEcosystemSubsidiariesResponseFields(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesQueryResponse) contextValidateFemEcosystemSubsidiariesResponseFields(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.FemEcosystemSubsidiariesResponseFields != nil {
+
+ if err := m.FemEcosystemSubsidiariesResponseFields.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("FemEcosystemSubsidiariesResponseFields")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("FemEcosystemSubsidiariesResponseFields")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainFemEcosystemSubsidiariesQueryResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainFemEcosystemSubsidiariesQueryResponse) UnmarshalBinary(b []byte) error {
+ var res DomainFemEcosystemSubsidiariesQueryResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_fem_ecosystem_subsidiaries_response_fields.go b/falcon/models/domain_fem_ecosystem_subsidiaries_response_fields.go
new file mode 100644
index 00000000..429ec75e
--- /dev/null
+++ b/falcon/models/domain_fem_ecosystem_subsidiaries_response_fields.go
@@ -0,0 +1,171 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainFemEcosystemSubsidiariesResponseFields domain fem ecosystem subsidiaries response fields
+//
+// swagger:model domain.FemEcosystemSubsidiariesResponseFields
+type DomainFemEcosystemSubsidiariesResponseFields struct {
+
+ // Array of errors returned in case of request issues or processing failures
+ Errors []*MsaAPIError `json:"errors"`
+
+ // Holds metadata details like pagination and other response-related info
+ // Required: true
+ Meta *DomainFemEcosystemSubsidiariesMeta `json:"meta"`
+}
+
+// Validate validates this domain fem ecosystem subsidiaries response fields
+func (m *DomainFemEcosystemSubsidiariesResponseFields) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesResponseFields) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesResponseFields) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain fem ecosystem subsidiaries response fields based on the context it is used
+func (m *DomainFemEcosystemSubsidiariesResponseFields) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesResponseFields) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiariesResponseFields) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainFemEcosystemSubsidiariesResponseFields) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainFemEcosystemSubsidiariesResponseFields) UnmarshalBinary(b []byte) error {
+ var res DomainFemEcosystemSubsidiariesResponseFields
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_fem_ecosystem_subsidiary.go b/falcon/models/domain_fem_ecosystem_subsidiary.go
new file mode 100644
index 00000000..7783f07a
--- /dev/null
+++ b/falcon/models/domain_fem_ecosystem_subsidiary.go
@@ -0,0 +1,218 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainFemEcosystemSubsidiary domain fem ecosystem subsidiary
+//
+// swagger:model domain.FemEcosystemSubsidiary
+type DomainFemEcosystemSubsidiary struct {
+
+ // The number of assets associated with the subsidiary
+ AssetCount int32 `json:"asset_count,omitempty"`
+
+ // The number of subsidiary children
+ // Required: true
+ ChildrenCount *int32 `json:"children_count"`
+
+ // The customer ID
+ // Required: true
+ Cid *string `json:"cid"`
+
+ // An object that shows how this subsidiary has been linked to the customer inventory
+ Discovery *DomainExternalAssetDiscoveryAttributes `json:"discovery,omitempty"`
+
+ // The ID of the subsidiary
+ // Required: true
+ ID *string `json:"id"`
+
+ // The name of the subsidiary
+ // Required: true
+ Name *string `json:"name"`
+
+ // The ID of the parent subsidiary
+ // Required: true
+ ParentID *string `json:"parent_id"`
+
+ // The primary domain of the subsidiary (Originally was called apex_domain)
+ // Required: true
+ PrimaryDomain *string `json:"primary_domain"`
+
+ // The risk score of the subsidiary
+ RiskScore float64 `json:"risk_score,omitempty"`
+}
+
+// Validate validates this domain fem ecosystem subsidiary
+func (m *DomainFemEcosystemSubsidiary) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateChildrenCount(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCid(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDiscovery(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateParentID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePrimaryDomain(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiary) validateChildrenCount(formats strfmt.Registry) error {
+
+ if err := validate.Required("children_count", "body", m.ChildrenCount); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiary) validateCid(formats strfmt.Registry) error {
+
+ if err := validate.Required("cid", "body", m.Cid); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiary) validateDiscovery(formats strfmt.Registry) error {
+ if swag.IsZero(m.Discovery) { // not required
+ return nil
+ }
+
+ if m.Discovery != nil {
+ if err := m.Discovery.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("discovery")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("discovery")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiary) validateID(formats strfmt.Registry) error {
+
+ if err := validate.Required("id", "body", m.ID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiary) validateName(formats strfmt.Registry) error {
+
+ if err := validate.Required("name", "body", m.Name); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiary) validateParentID(formats strfmt.Registry) error {
+
+ if err := validate.Required("parent_id", "body", m.ParentID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiary) validatePrimaryDomain(formats strfmt.Registry) error {
+
+ if err := validate.Required("primary_domain", "body", m.PrimaryDomain); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain fem ecosystem subsidiary based on the context it is used
+func (m *DomainFemEcosystemSubsidiary) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateDiscovery(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainFemEcosystemSubsidiary) contextValidateDiscovery(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Discovery != nil {
+
+ if swag.IsZero(m.Discovery) { // not required
+ return nil
+ }
+
+ if err := m.Discovery.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("discovery")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("discovery")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainFemEcosystemSubsidiary) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainFemEcosystemSubsidiary) UnmarshalBinary(b []byte) error {
+ var res DomainFemEcosystemSubsidiary
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_meta_info.go b/falcon/models/domain_meta_info.go
index c9f07b21..024ca819 100644
--- a/falcon/models/domain_meta_info.go
+++ b/falcon/models/domain_meta_info.go
@@ -20,7 +20,7 @@ import (
type DomainMetaInfo struct {
// pagination
- Pagination *MsaPaging `json:"pagination,omitempty"`
+ Pagination *DomainAssessmentPaging `json:"pagination,omitempty"`
// powered by
PoweredBy string `json:"powered_by,omitempty"`
@@ -29,15 +29,9 @@ type DomainMetaInfo struct {
// Required: true
QueryTime *float64 `json:"query_time"`
- // quota
- Quota *DomainQuota `json:"quota,omitempty"`
-
// trace id
// Required: true
TraceID *string `json:"trace_id"`
-
- // writes
- Writes *MsaspecWrites `json:"writes,omitempty"`
}
// Validate validates this domain meta info
@@ -52,18 +46,10 @@ func (m *DomainMetaInfo) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
- if err := m.validateQuota(formats); err != nil {
- res = append(res, err)
- }
-
if err := m.validateTraceID(formats); err != nil {
res = append(res, err)
}
- if err := m.validateWrites(formats); err != nil {
- res = append(res, err)
- }
-
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -98,25 +84,6 @@ func (m *DomainMetaInfo) validateQueryTime(formats strfmt.Registry) error {
return nil
}
-func (m *DomainMetaInfo) validateQuota(formats strfmt.Registry) error {
- if swag.IsZero(m.Quota) { // not required
- return nil
- }
-
- if m.Quota != nil {
- if err := m.Quota.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("quota")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("quota")
- }
- return err
- }
- }
-
- return nil
-}
-
func (m *DomainMetaInfo) validateTraceID(formats strfmt.Registry) error {
if err := validate.Required("trace_id", "body", m.TraceID); err != nil {
@@ -126,25 +93,6 @@ func (m *DomainMetaInfo) validateTraceID(formats strfmt.Registry) error {
return nil
}
-func (m *DomainMetaInfo) validateWrites(formats strfmt.Registry) error {
- if swag.IsZero(m.Writes) { // not required
- return nil
- }
-
- if m.Writes != nil {
- if err := m.Writes.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("writes")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("writes")
- }
- return err
- }
- }
-
- return nil
-}
-
// ContextValidate validate this domain meta info based on the context it is used
func (m *DomainMetaInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
@@ -153,14 +101,6 @@ func (m *DomainMetaInfo) ContextValidate(ctx context.Context, formats strfmt.Reg
res = append(res, err)
}
- if err := m.contextValidateQuota(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateWrites(ctx, formats); err != nil {
- res = append(res, err)
- }
-
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -188,48 +128,6 @@ func (m *DomainMetaInfo) contextValidatePagination(ctx context.Context, formats
return nil
}
-func (m *DomainMetaInfo) contextValidateQuota(ctx context.Context, formats strfmt.Registry) error {
-
- if m.Quota != nil {
-
- if swag.IsZero(m.Quota) { // not required
- return nil
- }
-
- if err := m.Quota.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("quota")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("quota")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *DomainMetaInfo) contextValidateWrites(ctx context.Context, formats strfmt.Registry) error {
-
- if m.Writes != nil {
-
- if swag.IsZero(m.Writes) { // not required
- return nil
- }
-
- if err := m.Writes.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("writes")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("writes")
- }
- return err
- }
- }
-
- return nil
-}
-
// MarshalBinary interface implementation
func (m *DomainMetaInfo) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/domain_news_document.go b/falcon/models/domain_news_document.go
index 137c1e83..d3e0dc44 100644
--- a/falcon/models/domain_news_document.go
+++ b/falcon/models/domain_news_document.go
@@ -68,6 +68,9 @@ type DomainNewsDocument struct {
// Rich text description with markup
RichTextDescription string `json:"rich_text_description,omitempty"`
+ // Rich text short description with markup
+ RichTextShortDescription string `json:"rich_text_short_description,omitempty"`
+
// Short description of the report content
ShortDescription string `json:"short_description,omitempty"`
diff --git a/falcon/models/domain_platform.go b/falcon/models/domain_platform.go
index a215be34..8112411a 100644
--- a/falcon/models/domain_platform.go
+++ b/falcon/models/domain_platform.go
@@ -21,11 +21,11 @@ type DomainPlatform struct {
// id
// Required: true
- ID *string `json:"id"`
+ ID *int64 `json:"id"`
- // label
+ // name
// Required: true
- Label *string `json:"label"`
+ Name *string `json:"name"`
}
// Validate validates this domain platform
@@ -36,7 +36,7 @@ func (m *DomainPlatform) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
- if err := m.validateLabel(formats); err != nil {
+ if err := m.validateName(formats); err != nil {
res = append(res, err)
}
@@ -55,9 +55,9 @@ func (m *DomainPlatform) validateID(formats strfmt.Registry) error {
return nil
}
-func (m *DomainPlatform) validateLabel(formats strfmt.Registry) error {
+func (m *DomainPlatform) validateName(formats strfmt.Registry) error {
- if err := validate.Required("label", "body", m.Label); err != nil {
+ if err := validate.Required("name", "body", m.Name); err != nil {
return err
}
diff --git a/falcon/models/domain_policy_info.go b/falcon/models/domain_policy_info.go
index f756dfcb..727ce58e 100644
--- a/falcon/models/domain_policy_info.go
+++ b/falcon/models/domain_policy_info.go
@@ -7,6 +7,7 @@ package models
import (
"context"
+ "strconv"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
@@ -87,18 +88,30 @@ type DomainPolicyInfo struct {
// cloud service friendly
CloudServiceFriendly string `json:"cloud_service_friendly,omitempty"`
+ // cloud service id
+ CloudServiceID int32 `json:"cloud_service_id,omitempty"`
+
// cloud service subtype
CloudServiceSubtype string `json:"cloud_service_subtype,omitempty"`
// cloud service type
CloudServiceType string `json:"cloud_service_type,omitempty"`
+ // compliance
+ Compliance *DomainCompliance `json:"compliance,omitempty"`
+
// confidence
Confidence string `json:"confidence,omitempty"`
+ // controls
+ Controls []*DomainControl `json:"controls"`
+
// default severity
DefaultSeverity string `json:"default_severity,omitempty"`
+ // deprecated
+ Deprecated bool `json:"deprecated,omitempty"`
+
// description
Description string `json:"description,omitempty"`
@@ -167,6 +180,12 @@ type DomainPolicyInfo struct {
// remediation summary
RemediationSummary string `json:"remediation_summary,omitempty"`
+ // resource type friendly name
+ ResourceTypeFriendlyName string `json:"resource_type_friendly_name,omitempty"`
+
+ // resource type id
+ ResourceTypeID string `json:"resource_type_id,omitempty"`
+
// soc2 benchmark ids
Soc2BenchmarkIds []int64 `json:"soc2_benchmark_ids"`
@@ -213,6 +232,14 @@ func (m *DomainPolicyInfo) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateCompliance(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateControls(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateIsEnabled(formats); err != nil {
res = append(res, err)
}
@@ -284,6 +311,51 @@ func (m *DomainPolicyInfo) validateAccountScope(formats strfmt.Registry) error {
return nil
}
+func (m *DomainPolicyInfo) validateCompliance(formats strfmt.Registry) error {
+ if swag.IsZero(m.Compliance) { // not required
+ return nil
+ }
+
+ if m.Compliance != nil {
+ if err := m.Compliance.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("compliance")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("compliance")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainPolicyInfo) validateControls(formats strfmt.Registry) error {
+ if swag.IsZero(m.Controls) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Controls); i++ {
+ if swag.IsZero(m.Controls[i]) { // not required
+ continue
+ }
+
+ if m.Controls[i] != nil {
+ if err := m.Controls[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("controls" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("controls" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
func (m *DomainPolicyInfo) validateIsEnabled(formats strfmt.Registry) error {
if err := validate.Required("is_enabled", "body", m.IsEnabled); err != nil {
@@ -302,8 +374,67 @@ func (m *DomainPolicyInfo) validateIsRemediable(formats strfmt.Registry) error {
return nil
}
-// ContextValidate validates this domain policy info based on context it is used
+// ContextValidate validate this domain policy info based on the context it is used
func (m *DomainPolicyInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateCompliance(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateControls(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainPolicyInfo) contextValidateCompliance(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Compliance != nil {
+
+ if swag.IsZero(m.Compliance) { // not required
+ return nil
+ }
+
+ if err := m.Compliance.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("compliance")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("compliance")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainPolicyInfo) contextValidateControls(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Controls); i++ {
+
+ if m.Controls[i] != nil {
+
+ if swag.IsZero(m.Controls[i]) { // not required
+ return nil
+ }
+
+ if err := m.Controls[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("controls" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("controls" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
return nil
}
diff --git a/falcon/models/domain_product.go b/falcon/models/domain_product.go
deleted file mode 100644
index 442d672b..00000000
--- a/falcon/models/domain_product.go
+++ /dev/null
@@ -1,105 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// DomainProduct domain product
-//
-// swagger:model domain.Product
-type DomainProduct struct {
-
- // id
- // Required: true
- ID *string `json:"id"`
-
- // name
- // Required: true
- Name *string `json:"name"`
-
- // type
- // Required: true
- Type *string `json:"type"`
-}
-
-// Validate validates this domain product
-func (m *DomainProduct) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateName(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateType(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *DomainProduct) validateID(formats strfmt.Registry) error {
-
- if err := validate.Required("id", "body", m.ID); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *DomainProduct) validateName(formats strfmt.Registry) error {
-
- if err := validate.Required("name", "body", m.Name); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *DomainProduct) validateType(formats strfmt.Registry) error {
-
- if err := validate.Required("type", "body", m.Type); err != nil {
- return err
- }
-
- return nil
-}
-
-// ContextValidate validates this domain product based on context it is used
-func (m *DomainProduct) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *DomainProduct) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *DomainProduct) UnmarshalBinary(b []byte) error {
- var res DomainProduct
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/falcon/models/domain_product_features.go b/falcon/models/domain_product_features.go
new file mode 100644
index 00000000..ffaf3288
--- /dev/null
+++ b/falcon/models/domain_product_features.go
@@ -0,0 +1,88 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainProductFeatures domain product features
+//
+// swagger:model domain.ProductFeatures
+type DomainProductFeatures struct {
+
+ // features
+ // Required: true
+ Features []string `json:"features"`
+
+ // product
+ // Required: true
+ Product *string `json:"product"`
+}
+
+// Validate validates this domain product features
+func (m *DomainProductFeatures) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFeatures(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateProduct(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainProductFeatures) validateFeatures(formats strfmt.Registry) error {
+
+ if err := validate.Required("features", "body", m.Features); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainProductFeatures) validateProduct(formats strfmt.Registry) error {
+
+ if err := validate.Required("product", "body", m.Product); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this domain product features based on context it is used
+func (m *DomainProductFeatures) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainProductFeatures) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainProductFeatures) UnmarshalBinary(b []byte) error {
+ var res DomainProductFeatures
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_product_features_status.go b/falcon/models/domain_product_features_status.go
new file mode 100644
index 00000000..6c0c3d87
--- /dev/null
+++ b/falcon/models/domain_product_features_status.go
@@ -0,0 +1,141 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainProductFeaturesStatus domain product features status
+//
+// swagger:model domain.ProductFeaturesStatus
+type DomainProductFeaturesStatus struct {
+
+ // features
+ // Required: true
+ Features []*DomainFeatureStatus `json:"features"`
+
+ // product
+ // Required: true
+ Product *string `json:"product"`
+}
+
+// Validate validates this domain product features status
+func (m *DomainProductFeaturesStatus) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFeatures(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateProduct(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainProductFeaturesStatus) validateFeatures(formats strfmt.Registry) error {
+
+ if err := validate.Required("features", "body", m.Features); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Features); i++ {
+ if swag.IsZero(m.Features[i]) { // not required
+ continue
+ }
+
+ if m.Features[i] != nil {
+ if err := m.Features[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("features" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("features" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainProductFeaturesStatus) validateProduct(formats strfmt.Registry) error {
+
+ if err := validate.Required("product", "body", m.Product); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain product features status based on the context it is used
+func (m *DomainProductFeaturesStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateFeatures(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainProductFeaturesStatus) contextValidateFeatures(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Features); i++ {
+
+ if m.Features[i] != nil {
+
+ if swag.IsZero(m.Features[i]) { // not required
+ return nil
+ }
+
+ if err := m.Features[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("features" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("features" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainProductFeaturesStatus) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainProductFeaturesStatus) UnmarshalBinary(b []byte) error {
+ var res DomainProductFeaturesStatus
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_product_permission.go b/falcon/models/domain_product_permission.go
new file mode 100644
index 00000000..206c4064
--- /dev/null
+++ b/falcon/models/domain_product_permission.go
@@ -0,0 +1,141 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainProductPermission domain product permission
+//
+// swagger:model domain.ProductPermission
+type DomainProductPermission struct {
+
+ // features
+ // Required: true
+ Features []*DomainFeaturePermission `json:"features"`
+
+ // product
+ // Required: true
+ Product *string `json:"product"`
+}
+
+// Validate validates this domain product permission
+func (m *DomainProductPermission) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFeatures(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateProduct(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainProductPermission) validateFeatures(formats strfmt.Registry) error {
+
+ if err := validate.Required("features", "body", m.Features); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Features); i++ {
+ if swag.IsZero(m.Features[i]) { // not required
+ continue
+ }
+
+ if m.Features[i] != nil {
+ if err := m.Features[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("features" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("features" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *DomainProductPermission) validateProduct(formats strfmt.Registry) error {
+
+ if err := validate.Required("product", "body", m.Product); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain product permission based on the context it is used
+func (m *DomainProductPermission) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateFeatures(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainProductPermission) contextValidateFeatures(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Features); i++ {
+
+ if m.Features[i] != nil {
+
+ if swag.IsZero(m.Features[i]) { // not required
+ return nil
+ }
+
+ if err := m.Features[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("features" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("features" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainProductPermission) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainProductPermission) UnmarshalBinary(b []byte) error {
+ var res DomainProductPermission
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_query_response.go b/falcon/models/domain_query_response.go
index 1bf1d2dc..237ea9e9 100644
--- a/falcon/models/domain_query_response.go
+++ b/falcon/models/domain_query_response.go
@@ -20,14 +20,15 @@ import (
// swagger:model domain.QueryResponse
type DomainQueryResponse struct {
- // errors
+ // Array of API Errors
+ // Required: true
Errors []*MsaAPIError `json:"errors"`
- // meta
+ // Meta information of a request, including traceID of the request and pagination information
// Required: true
- Meta *DomainMsaMetaInfo `json:"meta"`
+ Meta *MsaMetaInfo `json:"meta"`
- // resources
+ // Array of string IDs that matches the query request
// Required: true
Resources []string `json:"resources"`
}
@@ -55,8 +56,9 @@ func (m *DomainQueryResponse) Validate(formats strfmt.Registry) error {
}
func (m *DomainQueryResponse) validateErrors(formats strfmt.Registry) error {
- if swag.IsZero(m.Errors) { // not required
- return nil
+
+ if err := validate.Required("errors", "body", m.Errors); err != nil {
+ return err
}
for i := 0; i < len(m.Errors); i++ {
diff --git a/falcon/models/domain_report_params.go b/falcon/models/domain_report_params.go
index 5c315df2..da786289 100644
--- a/falcon/models/domain_report_params.go
+++ b/falcon/models/domain_report_params.go
@@ -53,6 +53,9 @@ type DomainReportParams struct {
// sort
// Required: true
Sort *string `json:"sort"`
+
+ // spotlight params
+ SpotlightParams *DomainSpotlightParams `json:"spotlight_params,omitempty"`
}
// Validate validates this domain report params
@@ -91,6 +94,10 @@ func (m *DomainReportParams) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateSpotlightParams(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -169,8 +176,57 @@ func (m *DomainReportParams) validateSort(formats strfmt.Registry) error {
return nil
}
-// ContextValidate validates this domain report params based on context it is used
+func (m *DomainReportParams) validateSpotlightParams(formats strfmt.Registry) error {
+ if swag.IsZero(m.SpotlightParams) { // not required
+ return nil
+ }
+
+ if m.SpotlightParams != nil {
+ if err := m.SpotlightParams.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("spotlight_params")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("spotlight_params")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this domain report params based on the context it is used
func (m *DomainReportParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateSpotlightParams(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainReportParams) contextValidateSpotlightParams(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.SpotlightParams != nil {
+
+ if swag.IsZero(m.SpotlightParams) { // not required
+ return nil
+ }
+
+ if err := m.SpotlightParams.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("spotlight_params")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("spotlight_params")
+ }
+ return err
+ }
+ }
+
return nil
}
diff --git a/falcon/models/domain_scan.go b/falcon/models/domain_scan.go
index b95e5168..f2804e20 100644
--- a/falcon/models/domain_scan.go
+++ b/falcon/models/domain_scan.go
@@ -80,9 +80,6 @@ type DomainScan struct {
// max duration
MaxDuration int32 `json:"max_duration,omitempty"`
- // max file size
- MaxFileSize int32 `json:"max_file_size,omitempty"`
-
// metadata
Metadata []*DomainScanMetadata `json:"metadata"`
@@ -107,6 +104,9 @@ type DomainScan struct {
// quarantine
Quarantine bool `json:"quarantine,omitempty"`
+ // rollup version
+ RollupVersion int32 `json:"rollup_version,omitempty"`
+
// scan completed on
// Format: date-time
ScanCompletedOn strfmt.DateTime `json:"scan_completed_on,omitempty"`
diff --git a/falcon/models/domain_scan_v2.go b/falcon/models/domain_scan_v2.go
index 6d66f8ef..451aaff8 100644
--- a/falcon/models/domain_scan_v2.go
+++ b/falcon/models/domain_scan_v2.go
@@ -82,9 +82,6 @@ type DomainScanV2 struct {
// max duration
MaxDuration int32 `json:"max_duration,omitempty"`
- // max file size
- MaxFileSize int32 `json:"max_file_size,omitempty"`
-
// metadata
Metadata []string `json:"metadata"`
diff --git a/falcon/models/domain_scheduled_report_v1.go b/falcon/models/domain_scheduled_report_v1.go
index 235a4b2c..225f786b 100644
--- a/falcon/models/domain_scheduled_report_v1.go
+++ b/falcon/models/domain_scheduled_report_v1.go
@@ -64,6 +64,9 @@ type DomainScheduledReportV1 struct {
// Required: true
Notifications []*DomainNotifications `json:"notifications"`
+ // owned by cs
+ OwnedByCs bool `json:"owned_by_cs,omitempty"`
+
// report metadata
ReportMetadata *DomainReportMetadata `json:"report_metadata,omitempty"`
diff --git a/falcon/models/domain_spotlight_params.go b/falcon/models/domain_spotlight_params.go
new file mode 100644
index 00000000..a592e14b
--- /dev/null
+++ b/falcon/models/domain_spotlight_params.go
@@ -0,0 +1,105 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// DomainSpotlightParams domain spotlight params
+//
+// swagger:model domain.SpotlightParams
+type DomainSpotlightParams struct {
+
+ // template fields
+ // Required: true
+ TemplateFields []string `json:"template_fields"`
+
+ // template name
+ // Required: true
+ TemplateName *string `json:"template_name"`
+
+ // top n results
+ // Required: true
+ TopnResults *int32 `json:"top_n_results"`
+}
+
+// Validate validates this domain spotlight params
+func (m *DomainSpotlightParams) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateTemplateFields(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTemplateName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTopnResults(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *DomainSpotlightParams) validateTemplateFields(formats strfmt.Registry) error {
+
+ if err := validate.Required("template_fields", "body", m.TemplateFields); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainSpotlightParams) validateTemplateName(formats strfmt.Registry) error {
+
+ if err := validate.Required("template_name", "body", m.TemplateName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *DomainSpotlightParams) validateTopnResults(formats strfmt.Registry) error {
+
+ if err := validate.Required("top_n_results", "body", m.TopnResults); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this domain spotlight params based on context it is used
+func (m *DomainSpotlightParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *DomainSpotlightParams) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *DomainSpotlightParams) UnmarshalBinary(b []byte) error {
+ var res DomainSpotlightParams
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/domain_vulnerability.go b/falcon/models/domain_vulnerability.go
index 66f640a4..f6b9c602 100644
--- a/falcon/models/domain_vulnerability.go
+++ b/falcon/models/domain_vulnerability.go
@@ -31,10 +31,10 @@ type DomainVulnerability struct {
Cve *string `json:"cve"`
// Vulnerability severity score, according to Common Vulnerability Scoring System V2
- CvssV2Base string `json:"cvss_v2_base,omitempty"`
+ CvssV2Base *IntelCVSSv2 `json:"cvss_v2_base,omitempty"`
// Vulnerability severity score, according to Common Vulnerability Scoring System V3
- CvssV3Base string `json:"cvss_v3_base,omitempty"`
+ CvssV3Base *IntelCVSSv3 `json:"cvss_v3_base,omitempty"`
// Text description of the vulnerability
Description string `json:"description,omitempty"`
@@ -76,6 +76,14 @@ func (m *DomainVulnerability) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateCvssV2Base(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCvssV3Base(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateRelatedActors(formats); err != nil {
res = append(res, err)
}
@@ -129,6 +137,44 @@ func (m *DomainVulnerability) validateCve(formats strfmt.Registry) error {
return nil
}
+func (m *DomainVulnerability) validateCvssV2Base(formats strfmt.Registry) error {
+ if swag.IsZero(m.CvssV2Base) { // not required
+ return nil
+ }
+
+ if m.CvssV2Base != nil {
+ if err := m.CvssV2Base.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("cvss_v2_base")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("cvss_v2_base")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainVulnerability) validateCvssV3Base(formats strfmt.Registry) error {
+ if swag.IsZero(m.CvssV3Base) { // not required
+ return nil
+ }
+
+ if m.CvssV3Base != nil {
+ if err := m.CvssV3Base.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("cvss_v3_base")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("cvss_v3_base")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *DomainVulnerability) validateRelatedActors(formats strfmt.Registry) error {
if swag.IsZero(m.RelatedActors) { // not required
return nil
@@ -215,6 +261,14 @@ func (m *DomainVulnerability) ContextValidate(ctx context.Context, formats strfm
res = append(res, err)
}
+ if err := m.contextValidateCvssV2Base(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateCvssV3Base(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.contextValidateRelatedActors(ctx, formats); err != nil {
res = append(res, err)
}
@@ -258,6 +312,48 @@ func (m *DomainVulnerability) contextValidateAffectedProducts(ctx context.Contex
return nil
}
+func (m *DomainVulnerability) contextValidateCvssV2Base(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.CvssV2Base != nil {
+
+ if swag.IsZero(m.CvssV2Base) { // not required
+ return nil
+ }
+
+ if err := m.CvssV2Base.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("cvss_v2_base")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("cvss_v2_base")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *DomainVulnerability) contextValidateCvssV3Base(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.CvssV3Base != nil {
+
+ if swag.IsZero(m.CvssV3Base) { // not required
+ return nil
+ }
+
+ if err := m.CvssV3Base.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("cvss_v3_base")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("cvss_v3_base")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *DomainVulnerability) contextValidateRelatedActors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.RelatedActors); i++ {
diff --git a/falcon/models/domain_x_d_r_params.go b/falcon/models/domain_x_d_r_params.go
index 2effc838..b9d2d186 100644
--- a/falcon/models/domain_x_d_r_params.go
+++ b/falcon/models/domain_x_d_r_params.go
@@ -67,6 +67,10 @@ type DomainXDRParams struct {
// Required: true
TemplateID *string `json:"template_id"`
+ // trigger mode
+ // Required: true
+ TriggerMode *string `json:"trigger_mode"`
+
// type
// Required: true
Type *string `json:"type"`
@@ -124,6 +128,10 @@ func (m *DomainXDRParams) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateTriggerMode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateType(formats); err != nil {
res = append(res, err)
}
@@ -242,6 +250,15 @@ func (m *DomainXDRParams) validateTemplateID(formats strfmt.Registry) error {
return nil
}
+func (m *DomainXDRParams) validateTriggerMode(formats strfmt.Registry) error {
+
+ if err := validate.Required("trigger_mode", "body", m.TriggerMode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *DomainXDRParams) validateType(formats strfmt.Registry) error {
if err := validate.Required("type", "body", m.Type); err != nil {
diff --git a/falcon/models/driftindicators_drift_indicators_count_value.go b/falcon/models/driftindicators_drift_indicators_count_value.go
index 06f37f0f..26d0ce25 100644
--- a/falcon/models/driftindicators_drift_indicators_count_value.go
+++ b/falcon/models/driftindicators_drift_indicators_count_value.go
@@ -20,31 +20,31 @@ import (
// swagger:model driftindicators.driftIndicatorsCountValue
type DriftindicatorsDriftIndicatorsCountValue struct {
- // resources
- // Required: true
- Resources []*CommonCountAsResource `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*CommonCountAsResource `json:"resources"`
}
// Validate validates this driftindicators drift indicators count value
func (m *DriftindicatorsDriftIndicatorsCountValue) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *DriftindicatorsDriftIndicatorsCountValue) Validate(formats strfmt.Regis
return nil
}
-func (m *DriftindicatorsDriftIndicatorsCountValue) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *DriftindicatorsDriftIndicatorsCountValue) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *DriftindicatorsDriftIndicatorsCountValue) validateMeta(formats strfmt.R
return nil
}
+func (m *DriftindicatorsDriftIndicatorsCountValue) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this driftindicators drift indicators count value based on the context it is used
func (m *DriftindicatorsDriftIndicatorsCountValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *DriftindicatorsDriftIndicatorsCountValue) ContextValidate(ctx context.C
return nil
}
-func (m *DriftindicatorsDriftIndicatorsCountValue) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *DriftindicatorsDriftIndicatorsCountValue) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *DriftindicatorsDriftIndicatorsCountValue) contextValidateMeta(ctx conte
return nil
}
+func (m *DriftindicatorsDriftIndicatorsCountValue) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *DriftindicatorsDriftIndicatorsCountValue) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/driftindicators_drift_indicators_field_value.go b/falcon/models/driftindicators_drift_indicators_field_value.go
index fa161942..ac06524d 100644
--- a/falcon/models/driftindicators_drift_indicators_field_value.go
+++ b/falcon/models/driftindicators_drift_indicators_field_value.go
@@ -20,31 +20,31 @@ import (
// swagger:model driftindicators.driftIndicatorsFieldValue
type DriftindicatorsDriftIndicatorsFieldValue struct {
- // resources
- // Required: true
- Resources []*ModelsAPIFilterResponse `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*ModelsAPIFilterResponse `json:"resources"`
}
// Validate validates this driftindicators drift indicators field value
func (m *DriftindicatorsDriftIndicatorsFieldValue) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *DriftindicatorsDriftIndicatorsFieldValue) Validate(formats strfmt.Regis
return nil
}
-func (m *DriftindicatorsDriftIndicatorsFieldValue) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *DriftindicatorsDriftIndicatorsFieldValue) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *DriftindicatorsDriftIndicatorsFieldValue) validateMeta(formats strfmt.R
return nil
}
+func (m *DriftindicatorsDriftIndicatorsFieldValue) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this driftindicators drift indicators field value based on the context it is used
func (m *DriftindicatorsDriftIndicatorsFieldValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *DriftindicatorsDriftIndicatorsFieldValue) ContextValidate(ctx context.C
return nil
}
-func (m *DriftindicatorsDriftIndicatorsFieldValue) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *DriftindicatorsDriftIndicatorsFieldValue) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *DriftindicatorsDriftIndicatorsFieldValue) contextValidateMeta(ctx conte
return nil
}
+func (m *DriftindicatorsDriftIndicatorsFieldValue) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *DriftindicatorsDriftIndicatorsFieldValue) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/entities_o_d_s_scan_request.go b/falcon/models/entities_o_d_s_scan_request.go
index f49ffa56..b6660c70 100644
--- a/falcon/models/entities_o_d_s_scan_request.go
+++ b/falcon/models/entities_o_d_s_scan_request.go
@@ -59,10 +59,6 @@ type EntitiesODSScanRequest struct {
// Required: true
MaxDuration *int32 `json:"max_duration"`
- // max file size
- // Required: true
- MaxFileSize *int32 `json:"max_file_size"`
-
// pause duration
// Required: true
PauseDuration *int32 `json:"pause_duration"`
@@ -132,10 +128,6 @@ func (m *EntitiesODSScanRequest) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
- if err := m.validateMaxFileSize(formats); err != nil {
- res = append(res, err)
- }
-
if err := m.validatePauseDuration(formats); err != nil {
res = append(res, err)
}
@@ -256,15 +248,6 @@ func (m *EntitiesODSScanRequest) validateMaxDuration(formats strfmt.Registry) er
return nil
}
-func (m *EntitiesODSScanRequest) validateMaxFileSize(formats strfmt.Registry) error {
-
- if err := validate.Required("max_file_size", "body", m.MaxFileSize); err != nil {
- return err
- }
-
- return nil
-}
-
func (m *EntitiesODSScanRequest) validatePauseDuration(formats strfmt.Registry) error {
if err := validate.Required("pause_duration", "body", m.PauseDuration); err != nil {
diff --git a/falcon/models/entities_rolling_average.go b/falcon/models/entities_rolling_average.go
new file mode 100644
index 00000000..d2f473a5
--- /dev/null
+++ b/falcon/models/entities_rolling_average.go
@@ -0,0 +1,229 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// EntitiesRollingAverage entities rolling average
+//
+// swagger:model entities.RollingAverage
+type EntitiesRollingAverage struct {
+
+ // chrome os
+ // Required: true
+ ChromeOs *float64 `json:"chrome_os"`
+
+ // containers
+ // Required: true
+ Containers *float64 `json:"containers"`
+
+ // date
+ // Required: true
+ // Format: date
+ Date *strfmt.Date `json:"date"`
+
+ // lumos
+ // Required: true
+ Lumos *float64 `json:"lumos"`
+
+ // mobile
+ // Required: true
+ Mobile *float64 `json:"mobile"`
+
+ // public cloud with containers
+ // Required: true
+ PublicCloudWithContainers *float64 `json:"public_cloud_with_containers"`
+
+ // public cloud without containers
+ // Required: true
+ PublicCloudWithoutContainers *float64 `json:"public_cloud_without_containers"`
+
+ // servers with containers
+ // Required: true
+ ServersWithContainers *float64 `json:"servers_with_containers"`
+
+ // servers without containers
+ // Required: true
+ ServersWithoutContainers *float64 `json:"servers_without_containers"`
+
+ // workstations
+ // Required: true
+ Workstations *float64 `json:"workstations"`
+}
+
+// Validate validates this entities rolling average
+func (m *EntitiesRollingAverage) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateChromeOs(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateContainers(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDate(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateLumos(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMobile(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePublicCloudWithContainers(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePublicCloudWithoutContainers(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateServersWithContainers(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateServersWithoutContainers(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateWorkstations(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *EntitiesRollingAverage) validateChromeOs(formats strfmt.Registry) error {
+
+ if err := validate.Required("chrome_os", "body", m.ChromeOs); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *EntitiesRollingAverage) validateContainers(formats strfmt.Registry) error {
+
+ if err := validate.Required("containers", "body", m.Containers); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *EntitiesRollingAverage) validateDate(formats strfmt.Registry) error {
+
+ if err := validate.Required("date", "body", m.Date); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("date", "body", "date", m.Date.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *EntitiesRollingAverage) validateLumos(formats strfmt.Registry) error {
+
+ if err := validate.Required("lumos", "body", m.Lumos); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *EntitiesRollingAverage) validateMobile(formats strfmt.Registry) error {
+
+ if err := validate.Required("mobile", "body", m.Mobile); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *EntitiesRollingAverage) validatePublicCloudWithContainers(formats strfmt.Registry) error {
+
+ if err := validate.Required("public_cloud_with_containers", "body", m.PublicCloudWithContainers); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *EntitiesRollingAverage) validatePublicCloudWithoutContainers(formats strfmt.Registry) error {
+
+ if err := validate.Required("public_cloud_without_containers", "body", m.PublicCloudWithoutContainers); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *EntitiesRollingAverage) validateServersWithContainers(formats strfmt.Registry) error {
+
+ if err := validate.Required("servers_with_containers", "body", m.ServersWithContainers); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *EntitiesRollingAverage) validateServersWithoutContainers(formats strfmt.Registry) error {
+
+ if err := validate.Required("servers_without_containers", "body", m.ServersWithoutContainers); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *EntitiesRollingAverage) validateWorkstations(formats strfmt.Registry) error {
+
+ if err := validate.Required("workstations", "body", m.Workstations); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this entities rolling average based on context it is used
+func (m *EntitiesRollingAverage) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *EntitiesRollingAverage) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *EntitiesRollingAverage) UnmarshalBinary(b []byte) error {
+ var res EntitiesRollingAverage
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/executions_execution_result.go b/falcon/models/executions_execution_result.go
index 81e8d874..5fed55f9 100644
--- a/falcon/models/executions_execution_result.go
+++ b/falcon/models/executions_execution_result.go
@@ -48,6 +48,9 @@ type ExecutionsExecutionResult struct {
// Required: true
Loops []*ExecutionsLoopResult `json:"loops"`
+ // Output from this workflow execution
+ Output interface{} `json:"output,omitempty"`
+
// A boolean value indicating whether the failed workflow execution is retryable
// Required: true
Retryable *bool `json:"retryable"`
diff --git a/falcon/models/executions_loop_result.go b/falcon/models/executions_loop_result.go
index bb62c571..ee33bcfc 100644
--- a/falcon/models/executions_loop_result.go
+++ b/falcon/models/executions_loop_result.go
@@ -49,6 +49,9 @@ type ExecutionsLoopResult struct {
// Required: true
NodeID *string `json:"node_id"`
+ // Outputs from all the iterations of the sub model
+ Outputs []ExecutionsLoopResultOutputs `json:"outputs"`
+
// Timestamp of when the execution first started.
// Required: true
// Format: date-time
diff --git a/falcon/models/executions_loop_result_outputs.go b/falcon/models/executions_loop_result_outputs.go
new file mode 100644
index 00000000..37e2b56c
--- /dev/null
+++ b/falcon/models/executions_loop_result_outputs.go
@@ -0,0 +1,11 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+// ExecutionsLoopResultOutputs executions loop result outputs
+//
+// swagger:model executions.LoopResult.outputs
+type ExecutionsLoopResultOutputs interface{}
diff --git a/falcon/models/exports_exports_response.go b/falcon/models/exports_exports_response.go
new file mode 100644
index 00000000..67cabdd4
--- /dev/null
+++ b/falcon/models/exports_exports_response.go
@@ -0,0 +1,235 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ExportsExportsResponse exports exports response
+//
+// swagger:model exports.ExportsResponse
+type ExportsExportsResponse struct {
+
+ // resources
+ // Required: true
+ Resources []*DomainExternalExportJob `json:"Resources"`
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+}
+
+// Validate validates this exports exports response
+func (m *ExportsExportsResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ExportsExportsResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("Resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *ExportsExportsResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *ExportsExportsResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this exports exports response based on the context it is used
+func (m *ExportsExportsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ExportsExportsResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *ExportsExportsResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *ExportsExportsResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ExportsExportsResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ExportsExportsResponse) UnmarshalBinary(b []byte) error {
+ var res ExportsExportsResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/exports_launch_export_request.go b/falcon/models/exports_launch_export_request.go
new file mode 100644
index 00000000..8da36ba5
--- /dev/null
+++ b/falcon/models/exports_launch_export_request.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ExportsLaunchExportRequest exports launch export request
+//
+// swagger:model exports.LaunchExportRequest
+type ExportsLaunchExportRequest struct {
+
+ // Format of the export file. One of: csv, json
+ // Required: true
+ Format *string `json:"format"`
+
+ // Falcon Query Language string to filter documents
+ Fql string `json:"fql,omitempty"`
+
+ // Resource to export. Refer to API docs for the possible values
+ // Required: true
+ Resource *string `json:"resource"`
+
+ // Sort value to apply to documents. Note: not all resources support sorting
+ // Required: true
+ Sort *string `json:"sort"`
+}
+
+// Validate validates this exports launch export request
+func (m *ExportsLaunchExportRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFormat(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResource(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSort(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ExportsLaunchExportRequest) validateFormat(formats strfmt.Registry) error {
+
+ if err := validate.Required("format", "body", m.Format); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ExportsLaunchExportRequest) validateResource(formats strfmt.Registry) error {
+
+ if err := validate.Required("resource", "body", m.Resource); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ExportsLaunchExportRequest) validateSort(formats strfmt.Registry) error {
+
+ if err := validate.Required("sort", "body", m.Sort); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this exports launch export request based on context it is used
+func (m *ExportsLaunchExportRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ExportsLaunchExportRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ExportsLaunchExportRequest) UnmarshalBinary(b []byte) error {
+ var res ExportsLaunchExportRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/exports_launch_export_response.go b/falcon/models/exports_launch_export_response.go
new file mode 100644
index 00000000..3d757add
--- /dev/null
+++ b/falcon/models/exports_launch_export_response.go
@@ -0,0 +1,188 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ExportsLaunchExportResponse exports launch export response
+//
+// swagger:model exports.LaunchExportResponse
+type ExportsLaunchExportResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // Export job IDs
+ // Required: true
+ Resources []string `json:"resources"`
+}
+
+// Validate validates this exports launch export response
+func (m *ExportsLaunchExportResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ExportsLaunchExportResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *ExportsLaunchExportResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *ExportsLaunchExportResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this exports launch export response based on the context it is used
+func (m *ExportsLaunchExportResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ExportsLaunchExportResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *ExportsLaunchExportResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ExportsLaunchExportResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ExportsLaunchExportResponse) UnmarshalBinary(b []byte) error {
+ var res ExportsLaunchExportResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/falconx_report_v1.go b/falcon/models/falconx_report_v1.go
index b98c6f79..4b028902 100644
--- a/falcon/models/falconx_report_v1.go
+++ b/falcon/models/falconx_report_v1.go
@@ -19,6 +19,9 @@ import (
// swagger:model falconx.ReportV1
type FalconxReportV1 struct {
+ // aid
+ Aid string `json:"aid,omitempty"`
+
// cid
Cid string `json:"cid,omitempty"`
diff --git a/falcon/models/graph_condition.go b/falcon/models/graph_condition.go
index f8fc2f02..38fcd3b9 100644
--- a/falcon/models/graph_condition.go
+++ b/falcon/models/graph_condition.go
@@ -17,6 +17,9 @@ import (
// swagger:model graph.Condition
type GraphCondition struct {
+ // CEL expression for the condition, should evaluate to a boolean.
+ CelExpression string `json:"cel_expression,omitempty"`
+
// User friendly description of the FQL expression. This would be supplied by the UI/caller and is not set by the API.
Display []string `json:"display"`
diff --git a/falcon/models/graph_end.go b/falcon/models/graph_end.go
index 3cb5b606..760947a3 100644
--- a/falcon/models/graph_end.go
+++ b/falcon/models/graph_end.go
@@ -29,6 +29,9 @@ type GraphEnd struct {
// Keys of the fields that are the output for this model
OutputFields []string `json:"output_fields"`
+
+ // Summary of the workflow is free form text with possibly embedded variables
+ Summary string `json:"summary,omitempty"`
}
// Validate validates this graph end
diff --git a/falcon/models/graph_sub_model.go b/falcon/models/graph_sub_model.go
index fa8c4fc8..3d9a9726 100644
--- a/falcon/models/graph_sub_model.go
+++ b/falcon/models/graph_sub_model.go
@@ -31,7 +31,7 @@ type GraphSubModel struct {
// Required: true
Multi *GraphMulti `json:"multi"`
- // Optional user provided name for the activity, if not specified a name based on the array field is used.
+ // Optional user provided name for the submodel.
Name string `json:"name,omitempty"`
// node ID
diff --git a/falcon/models/intel_c_v_s_sv2.go b/falcon/models/intel_c_v_s_sv2.go
new file mode 100644
index 00000000..0a9143ad
--- /dev/null
+++ b/falcon/models/intel_c_v_s_sv2.go
@@ -0,0 +1,71 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// IntelCVSSv2 intel c v s sv2
+//
+// swagger:model intel.CVSSv2
+type IntelCVSSv2 struct {
+
+ // access complexity
+ AccessComplexity string `json:"access_complexity,omitempty"`
+
+ // access vector
+ AccessVector string `json:"access_vector,omitempty"`
+
+ // authentication
+ Authentication string `json:"authentication,omitempty"`
+
+ // availability impact
+ AvailabilityImpact string `json:"availability_impact,omitempty"`
+
+ // confidentiality impact
+ ConfidentialityImpact string `json:"confidentiality_impact,omitempty"`
+
+ // integrity impact
+ IntegrityImpact string `json:"integrity_impact,omitempty"`
+
+ // score
+ Score float64 `json:"score,omitempty"`
+
+ // severity
+ Severity string `json:"severity,omitempty"`
+}
+
+// Validate validates this intel c v s sv2
+func (m *IntelCVSSv2) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this intel c v s sv2 based on context it is used
+func (m *IntelCVSSv2) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IntelCVSSv2) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IntelCVSSv2) UnmarshalBinary(b []byte) error {
+ var res IntelCVSSv2
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/intel_c_v_s_sv3.go b/falcon/models/intel_c_v_s_sv3.go
new file mode 100644
index 00000000..b5887198
--- /dev/null
+++ b/falcon/models/intel_c_v_s_sv3.go
@@ -0,0 +1,77 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// IntelCVSSv3 intel c v s sv3
+//
+// swagger:model intel.CVSSv3
+type IntelCVSSv3 struct {
+
+ // attack complexity
+ AttackComplexity string `json:"attack_complexity,omitempty"`
+
+ // attack vector
+ AttackVector string `json:"attack_vector,omitempty"`
+
+ // availability impact
+ AvailabilityImpact string `json:"availability_impact,omitempty"`
+
+ // confidentiality impact
+ ConfidentialityImpact string `json:"confidentiality_impact,omitempty"`
+
+ // integrity impact
+ IntegrityImpact string `json:"integrity_impact,omitempty"`
+
+ // privileges required
+ PrivilegesRequired string `json:"privileges_required,omitempty"`
+
+ // scope
+ Scope string `json:"scope,omitempty"`
+
+ // score
+ Score float64 `json:"score,omitempty"`
+
+ // severity
+ Severity string `json:"severity,omitempty"`
+
+ // user interaction
+ UserInteraction string `json:"user_interaction,omitempty"`
+}
+
+// Validate validates this intel c v s sv3
+func (m *IntelCVSSv3) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this intel c v s sv3 based on context it is used
+func (m *IntelCVSSv3) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IntelCVSSv3) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IntelCVSSv3) UnmarshalBinary(b []byte) error {
+ var res IntelCVSSv3
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/jsonschema_condition_group_fields.go b/falcon/models/jsonschema_condition_group_fields.go
index ca015402..5f99e565 100644
--- a/falcon/models/jsonschema_condition_group_fields.go
+++ b/falcon/models/jsonschema_condition_group_fields.go
@@ -30,6 +30,9 @@ type JsonschemaConditionGroupFields struct {
// dependent control
DependentControl string `json:"dependent_control,omitempty"`
+ // requires meta
+ RequiresMeta string `json:"requires_meta,omitempty"`
+
// reset fields
ResetFields *JsonschemaResetFields `json:"reset_fields,omitempty"`
}
diff --git a/falcon/models/jsonschema_duration_option.go b/falcon/models/jsonschema_duration_option.go
new file mode 100644
index 00000000..b53f2f5a
--- /dev/null
+++ b/falcon/models/jsonschema_duration_option.go
@@ -0,0 +1,88 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// JsonschemaDurationOption jsonschema duration option
+//
+// swagger:model jsonschema.DurationOption
+type JsonschemaDurationOption struct {
+
+ // name
+ // Required: true
+ Name *string `json:"name"`
+
+ // value
+ // Required: true
+ Value *string `json:"value"`
+}
+
+// Validate validates this jsonschema duration option
+func (m *JsonschemaDurationOption) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateValue(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *JsonschemaDurationOption) validateName(formats strfmt.Registry) error {
+
+ if err := validate.Required("name", "body", m.Name); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *JsonschemaDurationOption) validateValue(formats strfmt.Registry) error {
+
+ if err := validate.Required("value", "body", m.Value); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this jsonschema duration option based on context it is used
+func (m *JsonschemaDurationOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *JsonschemaDurationOption) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *JsonschemaDurationOption) UnmarshalBinary(b []byte) error {
+ var res JsonschemaDurationOption
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/jsonschema_sub_schema.go b/falcon/models/jsonschema_sub_schema.go
index 861fb178..3e6de678 100644
--- a/falcon/models/jsonschema_sub_schema.go
+++ b/falcon/models/jsonschema_sub_schema.go
@@ -158,6 +158,9 @@ type JsonschemaSubSchema struct {
// x cs do not hide
XCsDoNotHide bool `json:"x-cs-do-not-hide,omitempty"`
+ // x cs immutable
+ XCsImmutable bool `json:"x-cs-immutable,omitempty"`
+
// x cs indexable
XCsIndexable bool `json:"x-cs-indexable,omitempty"`
@@ -194,6 +197,9 @@ type JsonschemaSubSchema struct {
// x cs tags
XCsTags []string `json:"x-cs-tags"`
+ // x cs ui
+ XCsUI *JsonschemaUIExtensions `json:"x-cs-ui,omitempty"`
+
// x cs workflow
XCsWorkflow *JsonschemaWorkflowExtensions `json:"x-cs-workflow,omitempty"`
}
@@ -270,6 +276,10 @@ func (m *JsonschemaSubSchema) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateXCsUI(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateXCsWorkflow(formats); err != nil {
res = append(res, err)
}
@@ -652,6 +662,25 @@ func (m *JsonschemaSubSchema) validateXCsSignals(formats strfmt.Registry) error
return nil
}
+func (m *JsonschemaSubSchema) validateXCsUI(formats strfmt.Registry) error {
+ if swag.IsZero(m.XCsUI) { // not required
+ return nil
+ }
+
+ if m.XCsUI != nil {
+ if err := m.XCsUI.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("x-cs-ui")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("x-cs-ui")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *JsonschemaSubSchema) validateXCsWorkflow(formats strfmt.Registry) error {
if swag.IsZero(m.XCsWorkflow) { // not required
return nil
@@ -743,6 +772,10 @@ func (m *JsonschemaSubSchema) ContextValidate(ctx context.Context, formats strfm
res = append(res, err)
}
+ if err := m.contextValidateXCsUI(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.contextValidateXCsWorkflow(ctx, formats); err != nil {
res = append(res, err)
}
@@ -1108,6 +1141,27 @@ func (m *JsonschemaSubSchema) contextValidateXCsSignals(ctx context.Context, for
return nil
}
+func (m *JsonschemaSubSchema) contextValidateXCsUI(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.XCsUI != nil {
+
+ if swag.IsZero(m.XCsUI) { // not required
+ return nil
+ }
+
+ if err := m.XCsUI.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("x-cs-ui")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("x-cs-ui")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *JsonschemaSubSchema) contextValidateXCsWorkflow(ctx context.Context, formats strfmt.Registry) error {
if m.XCsWorkflow != nil {
diff --git a/falcon/models/jsonschema_ui_extensions.go b/falcon/models/jsonschema_ui_extensions.go
new file mode 100644
index 00000000..15617b19
--- /dev/null
+++ b/falcon/models/jsonschema_ui_extensions.go
@@ -0,0 +1,136 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// JsonschemaUIExtensions jsonschema UI extensions
+//
+// swagger:model jsonschema.UIExtensions
+type JsonschemaUIExtensions struct {
+
+ // supported file extensions for file upload, eg. '.yaml', '.json'
+ Accept []string `json:"accept"`
+
+ // component
+ Component string `json:"component,omitempty"`
+
+ // custom group name
+ CustomGroupName string `json:"customGroupName,omitempty"`
+
+ // duration options
+ DurationOptions []*JsonschemaDurationOption `json:"durationOptions"`
+
+ // supported encoding for file upload, eg. 'base64'
+ Encoding string `json:"encoding,omitempty"`
+
+ // helper text
+ HelperText string `json:"helperText,omitempty"`
+}
+
+// Validate validates this jsonschema UI extensions
+func (m *JsonschemaUIExtensions) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateDurationOptions(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *JsonschemaUIExtensions) validateDurationOptions(formats strfmt.Registry) error {
+ if swag.IsZero(m.DurationOptions) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.DurationOptions); i++ {
+ if swag.IsZero(m.DurationOptions[i]) { // not required
+ continue
+ }
+
+ if m.DurationOptions[i] != nil {
+ if err := m.DurationOptions[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("durationOptions" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("durationOptions" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this jsonschema UI extensions based on the context it is used
+func (m *JsonschemaUIExtensions) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateDurationOptions(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *JsonschemaUIExtensions) contextValidateDurationOptions(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.DurationOptions); i++ {
+
+ if m.DurationOptions[i] != nil {
+
+ if swag.IsZero(m.DurationOptions[i]) { // not required
+ return nil
+ }
+
+ if err := m.DurationOptions[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("durationOptions" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("durationOptions" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *JsonschemaUIExtensions) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *JsonschemaUIExtensions) UnmarshalBinary(b []byte) error {
+ var res JsonschemaUIExtensions
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/jsonschema_workflow_extensions.go b/falcon/models/jsonschema_workflow_extensions.go
index f8ae4708..207d2089 100644
--- a/falcon/models/jsonschema_workflow_extensions.go
+++ b/falcon/models/jsonschema_workflow_extensions.go
@@ -20,6 +20,9 @@ type JsonschemaWorkflowExtensions struct {
// description
Description string `json:"description,omitempty"`
+ // max file size allowed in bytes
+ MaxFileSize int32 `json:"max_file_size,omitempty"`
+
// name
Name string `json:"name,omitempty"`
diff --git a/falcon/models/k8sioms_kubernetes_i_o_m_count_value.go b/falcon/models/k8sioms_kubernetes_i_o_m_count_value.go
index a459f7dd..62abbc93 100644
--- a/falcon/models/k8sioms_kubernetes_i_o_m_count_value.go
+++ b/falcon/models/k8sioms_kubernetes_i_o_m_count_value.go
@@ -20,31 +20,31 @@ import (
// swagger:model k8sioms.kubernetesIOMCountValue
type K8siomsKubernetesIOMCountValue struct {
- // resources
- // Required: true
- Resources []*CommonCountAsResource `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*CommonCountAsResource `json:"resources"`
}
// Validate validates this k8sioms kubernetes i o m count value
func (m *K8siomsKubernetesIOMCountValue) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *K8siomsKubernetesIOMCountValue) Validate(formats strfmt.Registry) error
return nil
}
-func (m *K8siomsKubernetesIOMCountValue) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *K8siomsKubernetesIOMCountValue) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *K8siomsKubernetesIOMCountValue) validateMeta(formats strfmt.Registry) e
return nil
}
+func (m *K8siomsKubernetesIOMCountValue) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this k8sioms kubernetes i o m count value based on the context it is used
func (m *K8siomsKubernetesIOMCountValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *K8siomsKubernetesIOMCountValue) ContextValidate(ctx context.Context, fo
return nil
}
-func (m *K8siomsKubernetesIOMCountValue) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *K8siomsKubernetesIOMCountValue) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *K8siomsKubernetesIOMCountValue) contextValidateMeta(ctx context.Context
return nil
}
+func (m *K8siomsKubernetesIOMCountValue) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *K8siomsKubernetesIOMCountValue) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/k8sioms_kubernetes_i_o_m_field_value.go b/falcon/models/k8sioms_kubernetes_i_o_m_field_value.go
index 58dd70f4..45b85e12 100644
--- a/falcon/models/k8sioms_kubernetes_i_o_m_field_value.go
+++ b/falcon/models/k8sioms_kubernetes_i_o_m_field_value.go
@@ -20,31 +20,31 @@ import (
// swagger:model k8sioms.kubernetesIOMFieldValue
type K8siomsKubernetesIOMFieldValue struct {
- // resources
- // Required: true
- Resources []*ModelsAPIFilterResponse `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*ModelsAPIFilterResponse `json:"resources"`
}
// Validate validates this k8sioms kubernetes i o m field value
func (m *K8siomsKubernetesIOMFieldValue) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *K8siomsKubernetesIOMFieldValue) Validate(formats strfmt.Registry) error
return nil
}
-func (m *K8siomsKubernetesIOMFieldValue) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *K8siomsKubernetesIOMFieldValue) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *K8siomsKubernetesIOMFieldValue) validateMeta(formats strfmt.Registry) e
return nil
}
+func (m *K8siomsKubernetesIOMFieldValue) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this k8sioms kubernetes i o m field value based on the context it is used
func (m *K8siomsKubernetesIOMFieldValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *K8siomsKubernetesIOMFieldValue) ContextValidate(ctx context.Context, fo
return nil
}
-func (m *K8siomsKubernetesIOMFieldValue) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *K8siomsKubernetesIOMFieldValue) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *K8siomsKubernetesIOMFieldValue) contextValidateMeta(ctx context.Context
return nil
}
+func (m *K8siomsKubernetesIOMFieldValue) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *K8siomsKubernetesIOMFieldValue) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/messages_case.go b/falcon/models/messages_case.go
index 3214c695..1da1d918 100644
--- a/falcon/models/messages_case.go
+++ b/falcon/models/messages_case.go
@@ -72,6 +72,18 @@ type MessagesCase struct {
// Required: true
LastModifiedTime *string `json:"last_modified_time"`
+ // malware submission id
+ // Required: true
+ MalwareSubmissionID *string `json:"malware_submission_id"`
+
+ // malware submission url
+ // Required: true
+ MalwareSubmissionURL *string `json:"malware_submission_url"`
+
+ // recon rule type
+ // Required: true
+ ReconRuleType *string `json:"recon_rule_type"`
+
// status
// Required: true
Status *string `json:"status"`
@@ -141,6 +153,18 @@ func (m *MessagesCase) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateMalwareSubmissionID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMalwareSubmissionURL(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateReconRuleType(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateStatus(formats); err != nil {
res = append(res, err)
}
@@ -341,6 +365,33 @@ func (m *MessagesCase) validateLastModifiedTime(formats strfmt.Registry) error {
return nil
}
+func (m *MessagesCase) validateMalwareSubmissionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("malware_submission_id", "body", m.MalwareSubmissionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MessagesCase) validateMalwareSubmissionURL(formats strfmt.Registry) error {
+
+ if err := validate.Required("malware_submission_url", "body", m.MalwareSubmissionURL); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MessagesCase) validateReconRuleType(formats strfmt.Registry) error {
+
+ if err := validate.Required("recon_rule_type", "body", m.ReconRuleType); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MessagesCase) validateStatus(formats strfmt.Registry) error {
if err := validate.Required("status", "body", m.Status); err != nil {
diff --git a/falcon/models/models_api_customer_and_image.go b/falcon/models/models_api_customer_and_image.go
index e431159c..4faf8f74 100644
--- a/falcon/models/models_api_customer_and_image.go
+++ b/falcon/models/models_api_customer_and_image.go
@@ -19,6 +19,9 @@ import (
// swagger:model models.APICustomerAndImage
type ModelsAPICustomerAndImage struct {
+ // base image id
+ BaseImageID string `json:"base_image_id,omitempty"`
+
// base os
// Required: true
BaseOs *string `json:"base_os"`
@@ -66,6 +69,10 @@ type ModelsAPICustomerAndImage struct {
// Required: true
ImageSize *int64 `json:"image_size"`
+ // is base image
+ // Required: true
+ IsBaseImage *bool `json:"is_base_image"`
+
// registry
// Required: true
Registry *string `json:"registry"`
@@ -74,6 +81,14 @@ type ModelsAPICustomerAndImage struct {
// Required: true
Repository *string `json:"repository"`
+ // source
+ // Required: true
+ Source *string `json:"source"`
+
+ // source base image
+ // Required: true
+ SourceBaseImage *ModelsImageDetails `json:"source_base_image"`
+
// tag
// Required: true
Tag *string `json:"tag"`
@@ -143,6 +158,10 @@ func (m *ModelsAPICustomerAndImage) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateIsBaseImage(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateRegistry(formats); err != nil {
res = append(res, err)
}
@@ -151,6 +170,14 @@ func (m *ModelsAPICustomerAndImage) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateSource(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSourceBaseImage(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateTag(formats); err != nil {
res = append(res, err)
}
@@ -291,6 +318,15 @@ func (m *ModelsAPICustomerAndImage) validateImageSize(formats strfmt.Registry) e
return nil
}
+func (m *ModelsAPICustomerAndImage) validateIsBaseImage(formats strfmt.Registry) error {
+
+ if err := validate.Required("is_base_image", "body", m.IsBaseImage); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsAPICustomerAndImage) validateRegistry(formats strfmt.Registry) error {
if err := validate.Required("registry", "body", m.Registry); err != nil {
@@ -309,6 +345,35 @@ func (m *ModelsAPICustomerAndImage) validateRepository(formats strfmt.Registry)
return nil
}
+func (m *ModelsAPICustomerAndImage) validateSource(formats strfmt.Registry) error {
+
+ if err := validate.Required("source", "body", m.Source); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsAPICustomerAndImage) validateSourceBaseImage(formats strfmt.Registry) error {
+
+ if err := validate.Required("source_base_image", "body", m.SourceBaseImage); err != nil {
+ return err
+ }
+
+ if m.SourceBaseImage != nil {
+ if err := m.SourceBaseImage.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("source_base_image")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("source_base_image")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *ModelsAPICustomerAndImage) validateTag(formats strfmt.Registry) error {
if err := validate.Required("tag", "body", m.Tag); err != nil {
@@ -353,6 +418,10 @@ func (m *ModelsAPICustomerAndImage) ContextValidate(ctx context.Context, formats
res = append(res, err)
}
+ if err := m.contextValidateSourceBaseImage(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -380,6 +449,23 @@ func (m *ModelsAPICustomerAndImage) contextValidateConfig(ctx context.Context, f
return nil
}
+func (m *ModelsAPICustomerAndImage) contextValidateSourceBaseImage(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.SourceBaseImage != nil {
+
+ if err := m.SourceBaseImage.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("source_base_image")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("source_base_image")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *ModelsAPICustomerAndImage) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/models_api_image_combined_export.go b/falcon/models/models_api_image_combined_export.go
index 8f4780e4..d1d41efd 100644
--- a/falcon/models/models_api_image_combined_export.go
+++ b/falcon/models/models_api_image_combined_export.go
@@ -19,6 +19,10 @@ import (
// swagger:model models.APIImageCombinedExport
type ModelsAPIImageCombinedExport struct {
+ // architecture
+ // Required: true
+ Architecture *string `json:"architecture"`
+
// base os
// Required: true
BaseOs *string `json:"base_os"`
@@ -59,6 +63,10 @@ type ModelsAPIImageCombinedExport struct {
// Required: true
ImageID *string `json:"image_id"`
+ // is base image
+ // Required: true
+ IsBaseImage *bool `json:"is_base_image"`
+
// last seen
// Required: true
LastSeen *string `json:"last_seen"`
@@ -75,6 +83,10 @@ type ModelsAPIImageCombinedExport struct {
// Required: true
Repository *string `json:"repository"`
+ // source
+ // Required: true
+ Source *string `json:"source"`
+
// started containers
// Required: true
StartedContainers *int64 `json:"started_containers"`
@@ -104,6 +116,10 @@ type ModelsAPIImageCombinedExport struct {
func (m *ModelsAPIImageCombinedExport) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateArchitecture(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateBaseOs(formats); err != nil {
res = append(res, err)
}
@@ -144,6 +160,10 @@ func (m *ModelsAPIImageCombinedExport) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateIsBaseImage(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateLastSeen(formats); err != nil {
res = append(res, err)
}
@@ -160,6 +180,10 @@ func (m *ModelsAPIImageCombinedExport) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateSource(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateStartedContainers(formats); err != nil {
res = append(res, err)
}
@@ -190,6 +214,15 @@ func (m *ModelsAPIImageCombinedExport) Validate(formats strfmt.Registry) error {
return nil
}
+func (m *ModelsAPIImageCombinedExport) validateArchitecture(formats strfmt.Registry) error {
+
+ if err := validate.Required("architecture", "body", m.Architecture); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsAPIImageCombinedExport) validateBaseOs(formats strfmt.Registry) error {
if err := validate.Required("base_os", "body", m.BaseOs); err != nil {
@@ -280,6 +313,15 @@ func (m *ModelsAPIImageCombinedExport) validateImageID(formats strfmt.Registry)
return nil
}
+func (m *ModelsAPIImageCombinedExport) validateIsBaseImage(formats strfmt.Registry) error {
+
+ if err := validate.Required("is_base_image", "body", m.IsBaseImage); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsAPIImageCombinedExport) validateLastSeen(formats strfmt.Registry) error {
if err := validate.Required("last_seen", "body", m.LastSeen); err != nil {
@@ -316,6 +358,15 @@ func (m *ModelsAPIImageCombinedExport) validateRepository(formats strfmt.Registr
return nil
}
+func (m *ModelsAPIImageCombinedExport) validateSource(formats strfmt.Registry) error {
+
+ if err := validate.Required("source", "body", m.Source); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsAPIImageCombinedExport) validateStartedContainers(formats strfmt.Registry) error {
if err := validate.Required("started_containers", "body", m.StartedContainers); err != nil {
diff --git a/falcon/models/models_base_image_request.go b/falcon/models/models_base_image_request.go
new file mode 100644
index 00000000..fab2c4da
--- /dev/null
+++ b/falcon/models/models_base_image_request.go
@@ -0,0 +1,62 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// ModelsBaseImageRequest models base image request
+//
+// swagger:model models.BaseImageRequest
+type ModelsBaseImageRequest struct {
+
+ // image digest
+ ImageDigest string `json:"image_digest,omitempty"`
+
+ // image id
+ ImageID string `json:"image_id,omitempty"`
+
+ // registry
+ Registry string `json:"registry,omitempty"`
+
+ // repository
+ Repository string `json:"repository,omitempty"`
+
+ // tag
+ Tag string `json:"tag,omitempty"`
+}
+
+// Validate validates this models base image request
+func (m *ModelsBaseImageRequest) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this models base image request based on context it is used
+func (m *ModelsBaseImageRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ModelsBaseImageRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ModelsBaseImageRequest) UnmarshalBinary(b []byte) error {
+ var res ModelsBaseImageRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/models_cluster.go b/falcon/models/models_cluster.go
index d2c7ab18..c41f5796 100644
--- a/falcon/models/models_cluster.go
+++ b/falcon/models/models_cluster.go
@@ -48,6 +48,10 @@ type ModelsCluster struct {
// Required: true
CloudRegion *string `json:"cloud_region"`
+ // cloud service
+ // Required: true
+ CloudService *string `json:"cloud_service"`
+
// cluster id
// Required: true
ClusterID *string `json:"cluster_id"`
@@ -76,6 +80,10 @@ type ModelsCluster struct {
// Required: true
IarCoverage *bool `json:"iar_coverage"`
+ // kac agent id
+ // Required: true
+ KacAgentID *string `json:"kac_agent_id"`
+
// kubernetes version
// Required: true
KubernetesVersion *string `json:"kubernetes_version"`
@@ -145,6 +153,10 @@ func (m *ModelsCluster) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateCloudService(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateClusterID(formats); err != nil {
res = append(res, err)
}
@@ -173,6 +185,10 @@ func (m *ModelsCluster) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateKacAgentID(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateKubernetesVersion(formats); err != nil {
res = append(res, err)
}
@@ -293,6 +309,15 @@ func (m *ModelsCluster) validateCloudRegion(formats strfmt.Registry) error {
return nil
}
+func (m *ModelsCluster) validateCloudService(formats strfmt.Registry) error {
+
+ if err := validate.Required("cloud_service", "body", m.CloudService); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsCluster) validateClusterID(formats strfmt.Registry) error {
if err := validate.Required("cluster_id", "body", m.ClusterID); err != nil {
@@ -356,6 +381,15 @@ func (m *ModelsCluster) validateIarCoverage(formats strfmt.Registry) error {
return nil
}
+func (m *ModelsCluster) validateKacAgentID(formats strfmt.Registry) error {
+
+ if err := validate.Required("kac_agent_id", "body", m.KacAgentID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsCluster) validateKubernetesVersion(formats strfmt.Registry) error {
if err := validate.Required("kubernetes_version", "body", m.KubernetesVersion); err != nil {
diff --git a/falcon/models/models_cluster_info.go b/falcon/models/models_cluster_info.go
index 5f1e6e51..738ab524 100644
--- a/falcon/models/models_cluster_info.go
+++ b/falcon/models/models_cluster_info.go
@@ -26,6 +26,9 @@ type ModelsClusterInfo struct {
// cloud region
CloudRegion string `json:"cloud_region,omitempty"`
+ // cloud service
+ CloudService string `json:"cloud_service,omitempty"`
+
// cluster id
ClusterID string `json:"cluster_id,omitempty"`
diff --git a/falcon/models/models_container.go b/falcon/models/models_container.go
index e08f81b5..29eafc62 100644
--- a/falcon/models/models_container.go
+++ b/falcon/models/models_container.go
@@ -21,198 +21,196 @@ import (
type ModelsContainer struct {
// agents
+ // Required: true
Agents []ModelsContainerAgents `json:"agents"`
// allow privilege escalation
- AllowPrivilegeEscalation bool `json:"allow_privilege_escalation,omitempty"`
+ // Required: true
+ AllowPrivilegeEscalation *bool `json:"allow_privilege_escalation"`
// cid
// Required: true
Cid *string `json:"cid"`
- // cloud
- Cloud string `json:"cloud,omitempty"`
-
// cloud account id
- CloudAccountID string `json:"cloud_account_id,omitempty"`
+ // Required: true
+ CloudAccountID *string `json:"cloud_account_id"`
+
+ // cloud name
+ // Required: true
+ CloudName *string `json:"cloud_name"`
// cloud region
- CloudRegion string `json:"cloud_region,omitempty"`
+ // Required: true
+ CloudRegion *string `json:"cloud_region"`
+
+ // cloud service
+ // Required: true
+ CloudService *string `json:"cloud_service"`
// cluster id
- ClusterID string `json:"cluster_id,omitempty"`
+ // Required: true
+ ClusterID *string `json:"cluster_id"`
// cluster name
- ClusterName string `json:"cluster_name,omitempty"`
+ // Required: true
+ ClusterName *string `json:"cluster_name"`
// config labels
- ConfigLabels string `json:"config_labels,omitempty"`
+ // Required: true
+ ConfigLabels *string `json:"config_labels"`
- // config user
- ConfigUser string `json:"config_user,omitempty"`
+ // container id
+ // Required: true
+ ContainerID *string `json:"container_id"`
- // container image id
- ContainerImageID string `json:"container_image_id,omitempty"`
+ // container name
+ // Required: true
+ ContainerName *string `json:"container_name"`
// created at
- CreatedAt int64 `json:"created_at,omitempty"`
-
- // cve ids
- CveIds []string `json:"cve_ids"`
+ // Required: true
+ CreatedAt *string `json:"created_at"`
// first seen
- FirstSeen string `json:"first_seen,omitempty"`
-
- // host config devices
- HostConfigDevices string `json:"host_config_devices,omitempty"`
-
- // id
// Required: true
- ID *string `json:"id"`
+ FirstSeen *string `json:"first_seen"`
// image application package count
- ImageApplicationPackageCount int32 `json:"image_application_package_count,omitempty"`
+ // Required: true
+ ImageApplicationPackageCount *int32 `json:"image_application_package_count"`
// image assessed at
- ImageAssessedAt int64 `json:"image_assessed_at,omitempty"`
+ // Required: true
+ ImageAssessedAt *int64 `json:"image_assessed_at"`
// image detection count
- ImageDetectionCount int32 `json:"image_detection_count,omitempty"`
-
- // image detection id list
- ImageDetectionIDList []string `json:"image_detection_id_list"`
-
- // image detection name list
- ImageDetectionNameList []string `json:"image_detection_name_list"`
-
- // image detection severity by type
- ImageDetectionSeverityByType map[string]int64 `json:"image_detection_severity_by_type,omitempty"`
+ // Required: true
+ ImageDetectionCount *int32 `json:"image_detection_count"`
// image digest
- ImageDigest string `json:"image_digest,omitempty"`
+ // Required: true
+ ImageDigest *string `json:"image_digest"`
// image has been assessed
- ImageHasBeenAssessed bool `json:"image_has_been_assessed,omitempty"`
+ // Required: true
+ ImageHasBeenAssessed *bool `json:"image_has_been_assessed"`
// image highest severity vulnerability
- ImageHighestSeverityVulnerability string `json:"image_highest_severity_vulnerability,omitempty"`
+ // Required: true
+ ImageHighestSeverityVulnerability *string `json:"image_highest_severity_vulnerability"`
// image id
- ImageID string `json:"image_id,omitempty"`
+ // Required: true
+ ImageID *string `json:"image_id"`
// image package count
- ImagePackageCount int32 `json:"image_package_count,omitempty"`
+ // Required: true
+ ImagePackageCount *int32 `json:"image_package_count"`
// image registry
- ImageRegistry string `json:"image_registry,omitempty"`
+ // Required: true
+ ImageRegistry *string `json:"image_registry"`
- // image repo
- ImageRepo string `json:"image_repo,omitempty"`
+ // image repository
+ // Required: true
+ ImageRepository *string `json:"image_repository"`
// image tag
- ImageTag string `json:"image_tag,omitempty"`
+ // Required: true
+ ImageTag *string `json:"image_tag"`
// image vulnerability count
- ImageVulnerabilityCount int32 `json:"image_vulnerability_count,omitempty"`
-
- // image vulnerability severity by type
- ImageVulnerabilitySeverityByType map[string]int64 `json:"image_vulnerability_severity_by_type,omitempty"`
+ // Required: true
+ ImageVulnerabilityCount *int32 `json:"image_vulnerability_count"`
// insecure mount source
- InsecureMountSource string `json:"insecure_mount_source,omitempty"`
+ // Required: true
+ InsecureMountSource *string `json:"insecure_mount_source"`
// insecure mount type
- InsecureMountType string `json:"insecure_mount_type,omitempty"`
+ // Required: true
+ InsecureMountType *string `json:"insecure_mount_type"`
// insecure propagation mode
- InsecurePropagationMode bool `json:"insecure_propagation_mode,omitempty"`
+ // Required: true
+ InsecurePropagationMode *bool `json:"insecure_propagation_mode"`
// interactive mode
- InteractiveMode bool `json:"interactive_mode,omitempty"`
+ // Required: true
+ InteractiveMode *bool `json:"interactive_mode"`
// ipv4
- IPV4 string `json:"ipv4,omitempty"`
+ // Required: true
+ IPV4 *string `json:"ipv4"`
// ipv6
- IPV6 string `json:"ipv6,omitempty"`
+ // Required: true
+ IPV6 *string `json:"ipv6"`
- // kpa coverage
- KpaCoverage bool `json:"kpa_coverage,omitempty"`
+ // kac agent id
+ // Required: true
+ KacAgentID *string `json:"kac_agent_id"`
// labels
- Labels map[string]string `json:"labels,omitempty"`
+ // Required: true
+ Labels map[string]string `json:"labels"`
// labels list
+ // Required: true
LabelsList []string `json:"labels_list"`
// last seen
- LastSeen string `json:"last_seen,omitempty"`
-
- // linux sensor aid
- LinuxSensorAid string `json:"linux_sensor_aid,omitempty"`
-
- // linux sensor config build
- LinuxSensorConfigBuild string `json:"linux_sensor_config_build,omitempty"`
-
- // linux sensor coverage
- LinuxSensorCoverage bool `json:"linux_sensor_coverage,omitempty"`
-
- // lumos sensor aid
- LumosSensorAid string `json:"lumos_sensor_aid,omitempty"`
-
- // lumos sensor config build
- LumosSensorConfigBuild string `json:"lumos_sensor_config_build,omitempty"`
-
- // lumos sensor coverage
- LumosSensorCoverage bool `json:"lumos_sensor_coverage,omitempty"`
-
- // name
- Name string `json:"name,omitempty"`
+ // Required: true
+ LastSeen *string `json:"last_seen"`
// namespace
- Namespace string `json:"namespace,omitempty"`
-
- // node id
- NodeID string `json:"node_id,omitempty"`
+ // Required: true
+ Namespace *string `json:"namespace"`
// node name
- NodeName string `json:"node_name,omitempty"`
+ // Required: true
+ NodeName *string `json:"node_name"`
+
+ // node uid
+ // Required: true
+ NodeUID *string `json:"node_uid"`
// pod id
- PodID string `json:"pod_id,omitempty"`
+ // Required: true
+ PodID *string `json:"pod_id"`
// pod name
- PodName string `json:"pod_name,omitempty"`
+ // Required: true
+ PodName *string `json:"pod_name"`
- // port list
- PortList []ModelsContainerPortList `json:"port_list"`
+ // ports
+ // Required: true
+ Ports []ModelsContainerPorts `json:"ports"`
// privileged
- Privileged bool `json:"privileged,omitempty"`
+ // Required: true
+ Privileged *bool `json:"privileged"`
// root write access
- RootWriteAccess bool `json:"root_write_access,omitempty"`
-
- // rpd
- Rpd []int64 `json:"rpd"`
+ // Required: true
+ RootWriteAccess *bool `json:"root_write_access"`
// run as root group
- RunAsRootGroup bool `json:"run_as_root_group,omitempty"`
+ // Required: true
+ RunAsRootGroup *bool `json:"run_as_root_group"`
// run as root user
- RunAsRootUser bool `json:"run_as_root_user,omitempty"`
+ // Required: true
+ RunAsRootUser *bool `json:"run_as_root_user"`
// running status
- RunningStatus bool `json:"running_status,omitempty"`
-
- // snapshot coverage
- SnapshotCoverage bool `json:"snapshot_coverage,omitempty"`
-
- // unidentified
- Unidentified bool `json:"unidentified,omitempty"`
+ // Required: true
+ RunningStatus *bool `json:"running_status"`
// volume mounts
- VolumeMounts string `json:"volume_mounts,omitempty"`
+ // Required: true
+ VolumeMounts *string `json:"volume_mounts"`
}
// Validate validates this models container
@@ -223,15 +221,191 @@ func (m *ModelsContainer) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateAllowPrivilegeEscalation(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateCid(formats); err != nil {
res = append(res, err)
}
- if err := m.validateID(formats); err != nil {
+ if err := m.validateCloudAccountID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCloudName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCloudRegion(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCloudService(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateClusterID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateClusterName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateConfigLabels(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateContainerID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateContainerName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCreatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateFirstSeen(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImageApplicationPackageCount(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImageAssessedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImageDetectionCount(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImageDigest(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImageHasBeenAssessed(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImageHighestSeverityVulnerability(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImageID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImagePackageCount(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImageRegistry(formats); err != nil {
res = append(res, err)
}
- if err := m.validatePortList(formats); err != nil {
+ if err := m.validateImageRepository(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImageTag(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateImageVulnerabilityCount(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateInsecureMountSource(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateInsecureMountType(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateInsecurePropagationMode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateInteractiveMode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateIPV4(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateIPV6(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateKacAgentID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateLabels(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateLabelsList(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateLastSeen(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateNamespace(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateNodeName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateNodeUID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePodID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePodName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePorts(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePrivileged(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateRootWriteAccess(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateRunAsRootGroup(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateRunAsRootUser(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateRunningStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateVolumeMounts(formats); err != nil {
res = append(res, err)
}
@@ -242,8 +416,9 @@ func (m *ModelsContainer) Validate(formats strfmt.Registry) error {
}
func (m *ModelsContainer) validateAgents(formats strfmt.Registry) error {
- if swag.IsZero(m.Agents) { // not required
- return nil
+
+ if err := validate.Required("agents", "body", m.Agents); err != nil {
+ return err
}
for i := 0; i < len(m.Agents); i++ {
@@ -264,6 +439,15 @@ func (m *ModelsContainer) validateAgents(formats strfmt.Registry) error {
return nil
}
+func (m *ModelsContainer) validateAllowPrivilegeEscalation(formats strfmt.Registry) error {
+
+ if err := validate.Required("allow_privilege_escalation", "body", m.AllowPrivilegeEscalation); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsContainer) validateCid(formats strfmt.Registry) error {
if err := validate.Required("cid", "body", m.Cid); err != nil {
@@ -273,28 +457,362 @@ func (m *ModelsContainer) validateCid(formats strfmt.Registry) error {
return nil
}
-func (m *ModelsContainer) validateID(formats strfmt.Registry) error {
+func (m *ModelsContainer) validateCloudAccountID(formats strfmt.Registry) error {
+
+ if err := validate.Required("cloud_account_id", "body", m.CloudAccountID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateCloudName(formats strfmt.Registry) error {
+
+ if err := validate.Required("cloud_name", "body", m.CloudName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateCloudRegion(formats strfmt.Registry) error {
+
+ if err := validate.Required("cloud_region", "body", m.CloudRegion); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateCloudService(formats strfmt.Registry) error {
+
+ if err := validate.Required("cloud_service", "body", m.CloudService); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateClusterID(formats strfmt.Registry) error {
+
+ if err := validate.Required("cluster_id", "body", m.ClusterID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateClusterName(formats strfmt.Registry) error {
+
+ if err := validate.Required("cluster_name", "body", m.ClusterName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateConfigLabels(formats strfmt.Registry) error {
+
+ if err := validate.Required("config_labels", "body", m.ConfigLabels); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateContainerID(formats strfmt.Registry) error {
+
+ if err := validate.Required("container_id", "body", m.ContainerID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateContainerName(formats strfmt.Registry) error {
+
+ if err := validate.Required("container_name", "body", m.ContainerName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateCreatedAt(formats strfmt.Registry) error {
+
+ if err := validate.Required("created_at", "body", m.CreatedAt); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateFirstSeen(formats strfmt.Registry) error {
+
+ if err := validate.Required("first_seen", "body", m.FirstSeen); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageApplicationPackageCount(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_application_package_count", "body", m.ImageApplicationPackageCount); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageAssessedAt(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_assessed_at", "body", m.ImageAssessedAt); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageDetectionCount(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_detection_count", "body", m.ImageDetectionCount); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageDigest(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_digest", "body", m.ImageDigest); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageHasBeenAssessed(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_has_been_assessed", "body", m.ImageHasBeenAssessed); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageHighestSeverityVulnerability(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_highest_severity_vulnerability", "body", m.ImageHighestSeverityVulnerability); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageID(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_id", "body", m.ImageID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImagePackageCount(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_package_count", "body", m.ImagePackageCount); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageRegistry(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_registry", "body", m.ImageRegistry); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageRepository(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_repository", "body", m.ImageRepository); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageTag(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_tag", "body", m.ImageTag); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateImageVulnerabilityCount(formats strfmt.Registry) error {
+
+ if err := validate.Required("image_vulnerability_count", "body", m.ImageVulnerabilityCount); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateInsecureMountSource(formats strfmt.Registry) error {
+
+ if err := validate.Required("insecure_mount_source", "body", m.InsecureMountSource); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateInsecureMountType(formats strfmt.Registry) error {
+
+ if err := validate.Required("insecure_mount_type", "body", m.InsecureMountType); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateInsecurePropagationMode(formats strfmt.Registry) error {
- if err := validate.Required("id", "body", m.ID); err != nil {
+ if err := validate.Required("insecure_propagation_mode", "body", m.InsecurePropagationMode); err != nil {
return err
}
return nil
}
-func (m *ModelsContainer) validatePortList(formats strfmt.Registry) error {
- if swag.IsZero(m.PortList) { // not required
- return nil
+func (m *ModelsContainer) validateInteractiveMode(formats strfmt.Registry) error {
+
+ if err := validate.Required("interactive_mode", "body", m.InteractiveMode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateIPV4(formats strfmt.Registry) error {
+
+ if err := validate.Required("ipv4", "body", m.IPV4); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateIPV6(formats strfmt.Registry) error {
+
+ if err := validate.Required("ipv6", "body", m.IPV6); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateKacAgentID(formats strfmt.Registry) error {
+
+ if err := validate.Required("kac_agent_id", "body", m.KacAgentID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateLabels(formats strfmt.Registry) error {
+
+ if err := validate.Required("labels", "body", m.Labels); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateLabelsList(formats strfmt.Registry) error {
+
+ if err := validate.Required("labels_list", "body", m.LabelsList); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateLastSeen(formats strfmt.Registry) error {
+
+ if err := validate.Required("last_seen", "body", m.LastSeen); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateNamespace(formats strfmt.Registry) error {
+
+ if err := validate.Required("namespace", "body", m.Namespace); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateNodeName(formats strfmt.Registry) error {
+
+ if err := validate.Required("node_name", "body", m.NodeName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateNodeUID(formats strfmt.Registry) error {
+
+ if err := validate.Required("node_uid", "body", m.NodeUID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validatePodID(formats strfmt.Registry) error {
+
+ if err := validate.Required("pod_id", "body", m.PodID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validatePodName(formats strfmt.Registry) error {
+
+ if err := validate.Required("pod_name", "body", m.PodName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validatePorts(formats strfmt.Registry) error {
+
+ if err := validate.Required("ports", "body", m.Ports); err != nil {
+ return err
}
- for i := 0; i < len(m.PortList); i++ {
+ for i := 0; i < len(m.Ports); i++ {
- if m.PortList[i] != nil {
- if err := m.PortList[i].Validate(formats); err != nil {
+ if m.Ports[i] != nil {
+ if err := m.Ports[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("port_list" + "." + strconv.Itoa(i))
+ return ve.ValidateName("ports" + "." + strconv.Itoa(i))
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("port_list" + "." + strconv.Itoa(i))
+ return ce.ValidateName("ports" + "." + strconv.Itoa(i))
}
return err
}
@@ -305,6 +823,60 @@ func (m *ModelsContainer) validatePortList(formats strfmt.Registry) error {
return nil
}
+func (m *ModelsContainer) validatePrivileged(formats strfmt.Registry) error {
+
+ if err := validate.Required("privileged", "body", m.Privileged); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateRootWriteAccess(formats strfmt.Registry) error {
+
+ if err := validate.Required("root_write_access", "body", m.RootWriteAccess); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateRunAsRootGroup(formats strfmt.Registry) error {
+
+ if err := validate.Required("run_as_root_group", "body", m.RunAsRootGroup); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateRunAsRootUser(formats strfmt.Registry) error {
+
+ if err := validate.Required("run_as_root_user", "body", m.RunAsRootUser); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateRunningStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("running_status", "body", m.RunningStatus); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsContainer) validateVolumeMounts(formats strfmt.Registry) error {
+
+ if err := validate.Required("volume_mounts", "body", m.VolumeMounts); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// ContextValidate validate this models container based on the context it is used
func (m *ModelsContainer) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
@@ -313,7 +885,7 @@ func (m *ModelsContainer) ContextValidate(ctx context.Context, formats strfmt.Re
res = append(res, err)
}
- if err := m.contextValidatePortList(ctx, formats); err != nil {
+ if err := m.contextValidatePorts(ctx, formats); err != nil {
res = append(res, err)
}
@@ -345,19 +917,19 @@ func (m *ModelsContainer) contextValidateAgents(ctx context.Context, formats str
return nil
}
-func (m *ModelsContainer) contextValidatePortList(ctx context.Context, formats strfmt.Registry) error {
+func (m *ModelsContainer) contextValidatePorts(ctx context.Context, formats strfmt.Registry) error {
- for i := 0; i < len(m.PortList); i++ {
+ for i := 0; i < len(m.Ports); i++ {
- if swag.IsZero(m.PortList[i]) { // not required
+ if swag.IsZero(m.Ports[i]) { // not required
return nil
}
- if err := m.PortList[i].ContextValidate(ctx, formats); err != nil {
+ if err := m.Ports[i].ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("port_list" + "." + strconv.Itoa(i))
+ return ve.ValidateName("ports" + "." + strconv.Itoa(i))
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("port_list" + "." + strconv.Itoa(i))
+ return ce.ValidateName("ports" + "." + strconv.Itoa(i))
}
return err
}
diff --git a/falcon/models/models_container_port_list.go b/falcon/models/models_container_port_list.go
deleted file mode 100644
index 369ecf25..00000000
--- a/falcon/models/models_container_port_list.go
+++ /dev/null
@@ -1,27 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/strfmt"
-)
-
-// ModelsContainerPortList models container port list
-//
-// swagger:model models.Container.port_list
-type ModelsContainerPortList map[string]string
-
-// Validate validates this models container port list
-func (m ModelsContainerPortList) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// ContextValidate validates this models container port list based on context it is used
-func (m ModelsContainerPortList) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- return nil
-}
diff --git a/falcon/models/models_container_ports.go b/falcon/models/models_container_ports.go
new file mode 100644
index 00000000..36a3385c
--- /dev/null
+++ b/falcon/models/models_container_ports.go
@@ -0,0 +1,27 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+)
+
+// ModelsContainerPorts models container ports
+//
+// swagger:model models.Container.ports
+type ModelsContainerPorts map[string]string
+
+// Validate validates this models container ports
+func (m ModelsContainerPorts) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this models container ports based on context it is used
+func (m ModelsContainerPorts) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
diff --git a/falcon/models/models_create_base_images_request.go b/falcon/models/models_create_base_images_request.go
new file mode 100644
index 00000000..d66e32e8
--- /dev/null
+++ b/falcon/models/models_create_base_images_request.go
@@ -0,0 +1,124 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ModelsCreateBaseImagesRequest models create base images request
+//
+// swagger:model models.CreateBaseImagesRequest
+type ModelsCreateBaseImagesRequest struct {
+
+ // base images
+ // Required: true
+ BaseImages []*ModelsBaseImageRequest `json:"base_images"`
+}
+
+// Validate validates this models create base images request
+func (m *ModelsCreateBaseImagesRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateBaseImages(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsCreateBaseImagesRequest) validateBaseImages(formats strfmt.Registry) error {
+
+ if err := validate.Required("base_images", "body", m.BaseImages); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.BaseImages); i++ {
+ if swag.IsZero(m.BaseImages[i]) { // not required
+ continue
+ }
+
+ if m.BaseImages[i] != nil {
+ if err := m.BaseImages[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("base_images" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("base_images" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this models create base images request based on the context it is used
+func (m *ModelsCreateBaseImagesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateBaseImages(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsCreateBaseImagesRequest) contextValidateBaseImages(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.BaseImages); i++ {
+
+ if m.BaseImages[i] != nil {
+
+ if swag.IsZero(m.BaseImages[i]) { // not required
+ return nil
+ }
+
+ if err := m.BaseImages[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("base_images" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("base_images" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ModelsCreateBaseImagesRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ModelsCreateBaseImagesRequest) UnmarshalBinary(b []byte) error {
+ var res ModelsCreateBaseImagesRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/models_delivery_settings.go b/falcon/models/models_delivery_settings.go
new file mode 100644
index 00000000..21040d66
--- /dev/null
+++ b/falcon/models/models_delivery_settings.go
@@ -0,0 +1,233 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ModelsDeliverySettings models delivery settings
+//
+// swagger:model models.DeliverySettings
+type ModelsDeliverySettings struct {
+
+ // api created by
+ APICreatedBy string `json:"api_created_by,omitempty"`
+
+ // api updated at
+ // Format: date-time
+ APIUpdatedAt strfmt.DateTime `json:"api_updated_at,omitempty"`
+
+ // api updated by
+ APIUpdatedBy string `json:"api_updated_by,omitempty"`
+
+ // cid
+ // Required: true
+ Cid *string `json:"cid"`
+
+ // created at
+ // Required: true
+ // Format: date-time
+ CreatedAt *strfmt.DateTime `json:"created_at"`
+
+ // created by
+ // Required: true
+ CreatedBy *string `json:"created_by"`
+
+ // deleted at
+ // Format: date-time
+ DeletedAt strfmt.DateTime `json:"deleted_at,omitempty"`
+
+ // deleted by
+ DeletedBy string `json:"deleted_by,omitempty"`
+
+ // delivery cadence
+ // Required: true
+ DeliveryCadence *string `json:"delivery_cadence"`
+
+ // delivery type
+ // Required: true
+ DeliveryType *string `json:"delivery_type"`
+
+ // updated at
+ // Format: date-time
+ UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
+
+ // updated by
+ UpdatedBy string `json:"updated_by,omitempty"`
+
+ // uuid
+ // Required: true
+ UUID *string `json:"uuid"`
+}
+
+// Validate validates this models delivery settings
+func (m *ModelsDeliverySettings) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAPIUpdatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCid(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCreatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCreatedBy(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDeletedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDeliveryCadence(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDeliveryType(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUUID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsDeliverySettings) validateAPIUpdatedAt(formats strfmt.Registry) error {
+ if swag.IsZero(m.APIUpdatedAt) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("api_updated_at", "body", "date-time", m.APIUpdatedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettings) validateCid(formats strfmt.Registry) error {
+
+ if err := validate.Required("cid", "body", m.Cid); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettings) validateCreatedAt(formats strfmt.Registry) error {
+
+ if err := validate.Required("created_at", "body", m.CreatedAt); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("created_at", "body", "date-time", m.CreatedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettings) validateCreatedBy(formats strfmt.Registry) error {
+
+ if err := validate.Required("created_by", "body", m.CreatedBy); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettings) validateDeletedAt(formats strfmt.Registry) error {
+ if swag.IsZero(m.DeletedAt) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("deleted_at", "body", "date-time", m.DeletedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettings) validateDeliveryCadence(formats strfmt.Registry) error {
+
+ if err := validate.Required("delivery_cadence", "body", m.DeliveryCadence); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettings) validateDeliveryType(formats strfmt.Registry) error {
+
+ if err := validate.Required("delivery_type", "body", m.DeliveryType); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettings) validateUpdatedAt(formats strfmt.Registry) error {
+ if swag.IsZero(m.UpdatedAt) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("updated_at", "body", "date-time", m.UpdatedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettings) validateUUID(formats strfmt.Registry) error {
+
+ if err := validate.Required("uuid", "body", m.UUID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this models delivery settings based on context it is used
+func (m *ModelsDeliverySettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ModelsDeliverySettings) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ModelsDeliverySettings) UnmarshalBinary(b []byte) error {
+ var res ModelsDeliverySettings
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/models_delivery_settings_entity_response.go b/falcon/models/models_delivery_settings_entity_response.go
new file mode 100644
index 00000000..4f1b2e42
--- /dev/null
+++ b/falcon/models/models_delivery_settings_entity_response.go
@@ -0,0 +1,235 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ModelsDeliverySettingsEntityResponse models delivery settings entity response
+//
+// swagger:model models.DeliverySettingsEntityResponse
+type ModelsDeliverySettingsEntityResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*ModelsDeliverySettings `json:"resources"`
+}
+
+// Validate validates this models delivery settings entity response
+func (m *ModelsDeliverySettingsEntityResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsDeliverySettingsEntityResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettingsEntityResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettingsEntityResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this models delivery settings entity response based on the context it is used
+func (m *ModelsDeliverySettingsEntityResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsDeliverySettingsEntityResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettingsEntityResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettingsEntityResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ModelsDeliverySettingsEntityResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ModelsDeliverySettingsEntityResponse) UnmarshalBinary(b []byte) error {
+ var res ModelsDeliverySettingsEntityResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/models_delivery_settings_input.go b/falcon/models/models_delivery_settings_input.go
new file mode 100644
index 00000000..b78e6596
--- /dev/null
+++ b/falcon/models/models_delivery_settings_input.go
@@ -0,0 +1,88 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ModelsDeliverySettingsInput models delivery settings input
+//
+// swagger:model models.DeliverySettingsInput
+type ModelsDeliverySettingsInput struct {
+
+ // delivery cadence
+ // Required: true
+ DeliveryCadence *string `json:"delivery_cadence"`
+
+ // delivery type
+ // Required: true
+ DeliveryType *string `json:"delivery_type"`
+}
+
+// Validate validates this models delivery settings input
+func (m *ModelsDeliverySettingsInput) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateDeliveryCadence(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDeliveryType(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsDeliverySettingsInput) validateDeliveryCadence(formats strfmt.Registry) error {
+
+ if err := validate.Required("delivery_cadence", "body", m.DeliveryCadence); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeliverySettingsInput) validateDeliveryType(formats strfmt.Registry) error {
+
+ if err := validate.Required("delivery_type", "body", m.DeliveryType); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this models delivery settings input based on context it is used
+func (m *ModelsDeliverySettingsInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ModelsDeliverySettingsInput) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ModelsDeliverySettingsInput) UnmarshalBinary(b []byte) error {
+ var res ModelsDeliverySettingsInput
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/models_delivery_settings_request.go b/falcon/models/models_delivery_settings_request.go
new file mode 100644
index 00000000..d5f30179
--- /dev/null
+++ b/falcon/models/models_delivery_settings_request.go
@@ -0,0 +1,124 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ModelsDeliverySettingsRequest models delivery settings request
+//
+// swagger:model models.DeliverySettingsRequest
+type ModelsDeliverySettingsRequest struct {
+
+ // delivery settings
+ // Required: true
+ DeliverySettings []*ModelsDeliverySettingsInput `json:"delivery_settings"`
+}
+
+// Validate validates this models delivery settings request
+func (m *ModelsDeliverySettingsRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateDeliverySettings(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsDeliverySettingsRequest) validateDeliverySettings(formats strfmt.Registry) error {
+
+ if err := validate.Required("delivery_settings", "body", m.DeliverySettings); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.DeliverySettings); i++ {
+ if swag.IsZero(m.DeliverySettings[i]) { // not required
+ continue
+ }
+
+ if m.DeliverySettings[i] != nil {
+ if err := m.DeliverySettings[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("delivery_settings" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("delivery_settings" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this models delivery settings request based on the context it is used
+func (m *ModelsDeliverySettingsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateDeliverySettings(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsDeliverySettingsRequest) contextValidateDeliverySettings(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.DeliverySettings); i++ {
+
+ if m.DeliverySettings[i] != nil {
+
+ if swag.IsZero(m.DeliverySettings[i]) { // not required
+ return nil
+ }
+
+ if err := m.DeliverySettings[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("delivery_settings" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("delivery_settings" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ModelsDeliverySettingsRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ModelsDeliverySettingsRequest) UnmarshalBinary(b []byte) error {
+ var res ModelsDeliverySettingsRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/models_deployment.go b/falcon/models/models_deployment.go
index e733964f..f1ab8b27 100644
--- a/falcon/models/models_deployment.go
+++ b/falcon/models/models_deployment.go
@@ -7,6 +7,7 @@ package models
import (
"context"
+ "strconv"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
@@ -19,80 +20,230 @@ import (
// swagger:model models.Deployment
type ModelsDeployment struct {
- // account id
+ // agents
// Required: true
- AccountID *string `json:"account_id"`
+ Agents []ModelsDeploymentAgents `json:"agents"`
- // asset identifier
+ // annotations
// Required: true
- AssetIdentifier *string `json:"asset_identifier"`
+ Annotations map[string]string `json:"annotations"`
- // cloud provider
+ // annotations list
// Required: true
- CloudProvider *string `json:"cloud_provider"`
+ AnnotationsList []string `json:"annotations_list"`
- // id
+ // cid
// Required: true
- ID *string `json:"id"`
+ Cid *string `json:"cid"`
- // instance type
+ // cloud account id
// Required: true
- InstanceType *string `json:"instance_type"`
+ CloudAccountID *string `json:"cloud_account_id"`
- // last updated timestamp
+ // cloud name
// Required: true
- LastUpdatedTimestamp *string `json:"last_updated_timestamp"`
+ CloudName *string `json:"cloud_name"`
- // region
+ // cloud region
// Required: true
- Region *string `json:"region"`
+ CloudRegion *string `json:"cloud_region"`
- // status
+ // cloud service
// Required: true
- Status *string `json:"status"`
+ CloudService *string `json:"cloud_service"`
+
+ // cluster id
+ // Required: true
+ ClusterID *string `json:"cluster_id"`
+
+ // cluster name
+ // Required: true
+ ClusterName *string `json:"cluster_name"`
+
+ // container count
+ // Required: true
+ ContainerCount *int32 `json:"container_count"`
+
+ // created at
+ // Required: true
+ CreatedAt *string `json:"created_at"`
+
+ // deleted at
+ DeletedAt string `json:"deleted_at,omitempty"`
+
+ // deployment id
+ // Required: true
+ DeploymentID *string `json:"deployment_id"`
+
+ // deployment name
+ // Required: true
+ DeploymentName *string `json:"deployment_name"`
+
+ // first seen
+ // Required: true
+ FirstSeen *string `json:"first_seen"`
+
+ // kac agent id
+ // Required: true
+ KacAgentID *string `json:"kac_agent_id"`
+
+ // labels
+ // Required: true
+ Labels map[string]string `json:"labels"`
+
+ // labels list
+ // Required: true
+ LabelsList []string `json:"labels_list"`
+
+ // last seen
+ // Required: true
+ LastSeen *string `json:"last_seen"`
+
+ // management status
+ // Required: true
+ ManagementStatus *string `json:"management_status"`
+
+ // namespace
+ // Required: true
+ Namespace *string `json:"namespace"`
+
+ // pod count
+ // Required: true
+ PodCount *int32 `json:"pod_count"`
- // status detail
+ // resource status
// Required: true
- StatusDetail *string `json:"status_detail"`
+ ResourceStatus *string `json:"resource_status"`
+
+ // resource version
+ // Required: true
+ ResourceVersion *int64 `json:"resource_version"`
+
+ // revision
+ Revision int64 `json:"revision,omitempty"`
+
+ // selector
+ // Required: true
+ Selector *string `json:"selector"`
+
+ // service account name
+ // Required: true
+ ServiceAccountName *string `json:"service_account_name"`
+
+ // status
+ // Required: true
+ Status *string `json:"status"`
}
// Validate validates this models deployment
func (m *ModelsDeployment) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateAccountID(formats); err != nil {
+ if err := m.validateAgents(formats); err != nil {
res = append(res, err)
}
- if err := m.validateAssetIdentifier(formats); err != nil {
+ if err := m.validateAnnotations(formats); err != nil {
res = append(res, err)
}
- if err := m.validateCloudProvider(formats); err != nil {
+ if err := m.validateAnnotationsList(formats); err != nil {
res = append(res, err)
}
- if err := m.validateID(formats); err != nil {
+ if err := m.validateCid(formats); err != nil {
res = append(res, err)
}
- if err := m.validateInstanceType(formats); err != nil {
+ if err := m.validateCloudAccountID(formats); err != nil {
res = append(res, err)
}
- if err := m.validateLastUpdatedTimestamp(formats); err != nil {
+ if err := m.validateCloudName(formats); err != nil {
res = append(res, err)
}
- if err := m.validateRegion(formats); err != nil {
+ if err := m.validateCloudRegion(formats); err != nil {
res = append(res, err)
}
- if err := m.validateStatus(formats); err != nil {
+ if err := m.validateCloudService(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateClusterID(formats); err != nil {
res = append(res, err)
}
- if err := m.validateStatusDetail(formats); err != nil {
+ if err := m.validateClusterName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateContainerCount(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCreatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDeploymentID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDeploymentName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateFirstSeen(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateKacAgentID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateLabels(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateLabelsList(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateLastSeen(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateManagementStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateNamespace(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePodCount(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResourceStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResourceVersion(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSelector(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateServiceAccountName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
res = append(res, err)
}
@@ -102,89 +253,297 @@ func (m *ModelsDeployment) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ModelsDeployment) validateAccountID(formats strfmt.Registry) error {
+func (m *ModelsDeployment) validateAgents(formats strfmt.Registry) error {
- if err := validate.Required("account_id", "body", m.AccountID); err != nil {
+ if err := validate.Required("agents", "body", m.Agents); err != nil {
return err
}
+ for i := 0; i < len(m.Agents); i++ {
+
+ if m.Agents[i] != nil {
+ if err := m.Agents[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("agents" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("agents" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
return nil
}
-func (m *ModelsDeployment) validateAssetIdentifier(formats strfmt.Registry) error {
+func (m *ModelsDeployment) validateAnnotations(formats strfmt.Registry) error {
- if err := validate.Required("asset_identifier", "body", m.AssetIdentifier); err != nil {
+ if err := validate.Required("annotations", "body", m.Annotations); err != nil {
return err
}
return nil
}
-func (m *ModelsDeployment) validateCloudProvider(formats strfmt.Registry) error {
+func (m *ModelsDeployment) validateAnnotationsList(formats strfmt.Registry) error {
- if err := validate.Required("cloud_provider", "body", m.CloudProvider); err != nil {
+ if err := validate.Required("annotations_list", "body", m.AnnotationsList); err != nil {
return err
}
return nil
}
-func (m *ModelsDeployment) validateID(formats strfmt.Registry) error {
+func (m *ModelsDeployment) validateCid(formats strfmt.Registry) error {
- if err := validate.Required("id", "body", m.ID); err != nil {
+ if err := validate.Required("cid", "body", m.Cid); err != nil {
return err
}
return nil
}
-func (m *ModelsDeployment) validateInstanceType(formats strfmt.Registry) error {
+func (m *ModelsDeployment) validateCloudAccountID(formats strfmt.Registry) error {
- if err := validate.Required("instance_type", "body", m.InstanceType); err != nil {
+ if err := validate.Required("cloud_account_id", "body", m.CloudAccountID); err != nil {
return err
}
return nil
}
-func (m *ModelsDeployment) validateLastUpdatedTimestamp(formats strfmt.Registry) error {
+func (m *ModelsDeployment) validateCloudName(formats strfmt.Registry) error {
- if err := validate.Required("last_updated_timestamp", "body", m.LastUpdatedTimestamp); err != nil {
+ if err := validate.Required("cloud_name", "body", m.CloudName); err != nil {
return err
}
return nil
}
-func (m *ModelsDeployment) validateRegion(formats strfmt.Registry) error {
+func (m *ModelsDeployment) validateCloudRegion(formats strfmt.Registry) error {
- if err := validate.Required("region", "body", m.Region); err != nil {
+ if err := validate.Required("cloud_region", "body", m.CloudRegion); err != nil {
return err
}
return nil
}
-func (m *ModelsDeployment) validateStatus(formats strfmt.Registry) error {
+func (m *ModelsDeployment) validateCloudService(formats strfmt.Registry) error {
- if err := validate.Required("status", "body", m.Status); err != nil {
+ if err := validate.Required("cloud_service", "body", m.CloudService); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateClusterID(formats strfmt.Registry) error {
+
+ if err := validate.Required("cluster_id", "body", m.ClusterID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateClusterName(formats strfmt.Registry) error {
+
+ if err := validate.Required("cluster_name", "body", m.ClusterName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateContainerCount(formats strfmt.Registry) error {
+
+ if err := validate.Required("container_count", "body", m.ContainerCount); err != nil {
return err
}
return nil
}
-func (m *ModelsDeployment) validateStatusDetail(formats strfmt.Registry) error {
+func (m *ModelsDeployment) validateCreatedAt(formats strfmt.Registry) error {
- if err := validate.Required("status_detail", "body", m.StatusDetail); err != nil {
+ if err := validate.Required("created_at", "body", m.CreatedAt); err != nil {
return err
}
return nil
}
-// ContextValidate validates this models deployment based on context it is used
+func (m *ModelsDeployment) validateDeploymentID(formats strfmt.Registry) error {
+
+ if err := validate.Required("deployment_id", "body", m.DeploymentID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateDeploymentName(formats strfmt.Registry) error {
+
+ if err := validate.Required("deployment_name", "body", m.DeploymentName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateFirstSeen(formats strfmt.Registry) error {
+
+ if err := validate.Required("first_seen", "body", m.FirstSeen); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateKacAgentID(formats strfmt.Registry) error {
+
+ if err := validate.Required("kac_agent_id", "body", m.KacAgentID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateLabels(formats strfmt.Registry) error {
+
+ if err := validate.Required("labels", "body", m.Labels); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateLabelsList(formats strfmt.Registry) error {
+
+ if err := validate.Required("labels_list", "body", m.LabelsList); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateLastSeen(formats strfmt.Registry) error {
+
+ if err := validate.Required("last_seen", "body", m.LastSeen); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateManagementStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("management_status", "body", m.ManagementStatus); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateNamespace(formats strfmt.Registry) error {
+
+ if err := validate.Required("namespace", "body", m.Namespace); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validatePodCount(formats strfmt.Registry) error {
+
+ if err := validate.Required("pod_count", "body", m.PodCount); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateResourceStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("resource_status", "body", m.ResourceStatus); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateResourceVersion(formats strfmt.Registry) error {
+
+ if err := validate.Required("resource_version", "body", m.ResourceVersion); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateSelector(formats strfmt.Registry) error {
+
+ if err := validate.Required("selector", "body", m.Selector); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateServiceAccountName(formats strfmt.Registry) error {
+
+ if err := validate.Required("service_account_name", "body", m.ServiceAccountName); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsDeployment) validateStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("status", "body", m.Status); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this models deployment based on the context it is used
func (m *ModelsDeployment) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateAgents(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsDeployment) contextValidateAgents(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Agents); i++ {
+
+ if swag.IsZero(m.Agents[i]) { // not required
+ return nil
+ }
+
+ if err := m.Agents[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("agents" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("agents" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+
+ }
+
return nil
}
diff --git a/falcon/models/models_deployment_agents.go b/falcon/models/models_deployment_agents.go
new file mode 100644
index 00000000..2d2a62dc
--- /dev/null
+++ b/falcon/models/models_deployment_agents.go
@@ -0,0 +1,27 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+)
+
+// ModelsDeploymentAgents models deployment agents
+//
+// swagger:model models.Deployment.agents
+type ModelsDeploymentAgents map[string]string
+
+// Validate validates this models deployment agents
+func (m ModelsDeploymentAgents) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this models deployment agents based on context it is used
+func (m ModelsDeploymentAgents) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
diff --git a/falcon/models/models_ext_api_image_combined.go b/falcon/models/models_ext_api_image_combined.go
index eecbbad5..14a20f78 100644
--- a/falcon/models/models_ext_api_image_combined.go
+++ b/falcon/models/models_ext_api_image_combined.go
@@ -19,6 +19,10 @@ import (
// swagger:model models.ExtAPIImageCombined
type ModelsExtAPIImageCombined struct {
+ // architecture
+ // Required: true
+ Architecture *string `json:"architecture"`
+
// base os
// Required: true
BaseOs *string `json:"base_os"`
@@ -100,6 +104,10 @@ type ModelsExtAPIImageCombined struct {
func (m *ModelsExtAPIImageCombined) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateArchitecture(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateBaseOs(formats); err != nil {
res = append(res, err)
}
@@ -182,6 +190,15 @@ func (m *ModelsExtAPIImageCombined) Validate(formats strfmt.Registry) error {
return nil
}
+func (m *ModelsExtAPIImageCombined) validateArchitecture(formats strfmt.Registry) error {
+
+ if err := validate.Required("architecture", "body", m.Architecture); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsExtAPIImageCombined) validateBaseOs(formats strfmt.Registry) error {
if err := validate.Required("base_os", "body", m.BaseOs); err != nil {
diff --git a/falcon/models/models_image_details.go b/falcon/models/models_image_details.go
new file mode 100644
index 00000000..099160e8
--- /dev/null
+++ b/falcon/models/models_image_details.go
@@ -0,0 +1,122 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ModelsImageDetails models image details
+//
+// swagger:model models.ImageDetails
+type ModelsImageDetails struct {
+
+ // digest
+ // Required: true
+ Digest *string `json:"digest"`
+
+ // registry
+ // Required: true
+ Registry *string `json:"registry"`
+
+ // repository
+ // Required: true
+ Repository *string `json:"repository"`
+
+ // tag
+ // Required: true
+ Tag *string `json:"tag"`
+}
+
+// Validate validates this models image details
+func (m *ModelsImageDetails) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateDigest(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateRegistry(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateRepository(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTag(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsImageDetails) validateDigest(formats strfmt.Registry) error {
+
+ if err := validate.Required("digest", "body", m.Digest); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsImageDetails) validateRegistry(formats strfmt.Registry) error {
+
+ if err := validate.Required("registry", "body", m.Registry); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsImageDetails) validateRepository(formats strfmt.Registry) error {
+
+ if err := validate.Required("repository", "body", m.Repository); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsImageDetails) validateTag(formats strfmt.Registry) error {
+
+ if err := validate.Required("tag", "body", m.Tag); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this models image details based on context it is used
+func (m *ModelsImageDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ModelsImageDetails) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ModelsImageDetails) UnmarshalBinary(b []byte) error {
+ var res ModelsImageDetails
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/models_node.go b/falcon/models/models_node.go
index 5b7af97d..5b8733e0 100644
--- a/falcon/models/models_node.go
+++ b/falcon/models/models_node.go
@@ -60,6 +60,10 @@ type ModelsNode struct {
// Required: true
CloudRegion *string `json:"cloud_region"`
+ // cloud service
+ // Required: true
+ CloudService *string `json:"cloud_service"`
+
// cluster id
// Required: true
ClusterID *string `json:"cluster_id"`
@@ -103,6 +107,10 @@ type ModelsNode struct {
// Required: true
IPV6 *string `json:"ipv6"`
+ // kac agent id
+ // Required: true
+ KacAgentID *string `json:"kac_agent_id"`
+
// kernel version
// Required: true
KernelVersion *string `json:"kernel_version"`
@@ -212,6 +220,10 @@ func (m *ModelsNode) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateCloudService(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateClusterID(formats); err != nil {
res = append(res, err)
}
@@ -252,6 +264,10 @@ func (m *ModelsNode) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateKacAgentID(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateKernelVersion(formats); err != nil {
res = append(res, err)
}
@@ -427,6 +443,15 @@ func (m *ModelsNode) validateCloudRegion(formats strfmt.Registry) error {
return nil
}
+func (m *ModelsNode) validateCloudService(formats strfmt.Registry) error {
+
+ if err := validate.Required("cloud_service", "body", m.CloudService); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsNode) validateClusterID(formats strfmt.Registry) error {
if err := validate.Required("cluster_id", "body", m.ClusterID); err != nil {
@@ -517,6 +542,15 @@ func (m *ModelsNode) validateIPV6(formats strfmt.Registry) error {
return nil
}
+func (m *ModelsNode) validateKacAgentID(formats strfmt.Registry) error {
+
+ if err := validate.Required("kac_agent_id", "body", m.KacAgentID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsNode) validateKernelVersion(formats strfmt.Registry) error {
if err := validate.Required("kernel_version", "body", m.KernelVersion); err != nil {
diff --git a/falcon/models/models_pod.go b/falcon/models/models_pod.go
index 786cfa50..12e27fa7 100644
--- a/falcon/models/models_pod.go
+++ b/falcon/models/models_pod.go
@@ -52,6 +52,10 @@ type ModelsPod struct {
// Required: true
CloudRegion *string `json:"cloud_region"`
+ // cloud service
+ // Required: true
+ CloudService *string `json:"cloud_service"`
+
// cluster id
// Required: true
ClusterID *string `json:"cluster_id"`
@@ -103,6 +107,10 @@ type ModelsPod struct {
// Required: true
IPV6 *string `json:"ipv6"`
+ // kac agent id
+ // Required: true
+ KacAgentID *string `json:"kac_agent_id"`
+
// labels
// Required: true
Labels map[string]string `json:"labels"`
@@ -232,6 +240,10 @@ func (m *ModelsPod) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateCloudService(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateClusterID(formats); err != nil {
res = append(res, err)
}
@@ -280,6 +292,10 @@ func (m *ModelsPod) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateKacAgentID(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateLabels(formats); err != nil {
res = append(res, err)
}
@@ -465,6 +481,15 @@ func (m *ModelsPod) validateCloudRegion(formats strfmt.Registry) error {
return nil
}
+func (m *ModelsPod) validateCloudService(formats strfmt.Registry) error {
+
+ if err := validate.Required("cloud_service", "body", m.CloudService); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsPod) validateClusterID(formats strfmt.Registry) error {
if err := validate.Required("cluster_id", "body", m.ClusterID); err != nil {
@@ -588,6 +613,15 @@ func (m *ModelsPod) validateIPV6(formats strfmt.Registry) error {
return nil
}
+func (m *ModelsPod) validateKacAgentID(formats strfmt.Registry) error {
+
+ if err := validate.Required("kac_agent_id", "body", m.KacAgentID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ModelsPod) validateLabels(formats strfmt.Registry) error {
if err := validate.Required("labels", "body", m.Labels); err != nil {
diff --git a/falcon/models/models_policy_entity_response.go b/falcon/models/models_policy_entity_response.go
index c9b8c3b6..493d2108 100644
--- a/falcon/models/models_policy_entity_response.go
+++ b/falcon/models/models_policy_entity_response.go
@@ -20,31 +20,31 @@ import (
// swagger:model models.PolicyEntityResponse
type ModelsPolicyEntityResponse struct {
- // resources
- // Required: true
- Resources []*ModelsAPIPolicyEntity `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*ModelsAPIPolicyEntity `json:"resources"`
}
// Validate validates this models policy entity response
func (m *ModelsPolicyEntityResponse) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *ModelsPolicyEntityResponse) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ModelsPolicyEntityResponse) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *ModelsPolicyEntityResponse) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *ModelsPolicyEntityResponse) validateMeta(formats strfmt.Registry) error
return nil
}
+func (m *ModelsPolicyEntityResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this models policy entity response based on the context it is used
func (m *ModelsPolicyEntityResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *ModelsPolicyEntityResponse) ContextValidate(ctx context.Context, format
return nil
}
-func (m *ModelsPolicyEntityResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *ModelsPolicyEntityResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *ModelsPolicyEntityResponse) contextValidateMeta(ctx context.Context, fo
return nil
}
+func (m *ModelsPolicyEntityResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *ModelsPolicyEntityResponse) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/models_policy_exclusion_entity_response.go b/falcon/models/models_policy_exclusion_entity_response.go
index 6fce8664..1edd9c61 100644
--- a/falcon/models/models_policy_exclusion_entity_response.go
+++ b/falcon/models/models_policy_exclusion_entity_response.go
@@ -20,31 +20,31 @@ import (
// swagger:model models.PolicyExclusionEntityResponse
type ModelsPolicyExclusionEntityResponse struct {
- // resources
- // Required: true
- Resources []*ModelsAPIPolicyExclusion `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*ModelsAPIPolicyExclusion `json:"resources"`
}
// Validate validates this models policy exclusion entity response
func (m *ModelsPolicyExclusionEntityResponse) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *ModelsPolicyExclusionEntityResponse) Validate(formats strfmt.Registry)
return nil
}
-func (m *ModelsPolicyExclusionEntityResponse) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *ModelsPolicyExclusionEntityResponse) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *ModelsPolicyExclusionEntityResponse) validateMeta(formats strfmt.Regist
return nil
}
+func (m *ModelsPolicyExclusionEntityResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this models policy exclusion entity response based on the context it is used
func (m *ModelsPolicyExclusionEntityResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *ModelsPolicyExclusionEntityResponse) ContextValidate(ctx context.Contex
return nil
}
-func (m *ModelsPolicyExclusionEntityResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *ModelsPolicyExclusionEntityResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *ModelsPolicyExclusionEntityResponse) contextValidateMeta(ctx context.Co
return nil
}
+func (m *ModelsPolicyExclusionEntityResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *ModelsPolicyExclusionEntityResponse) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/models_policy_group_entity_response.go b/falcon/models/models_policy_group_entity_response.go
index f7894fc4..46980700 100644
--- a/falcon/models/models_policy_group_entity_response.go
+++ b/falcon/models/models_policy_group_entity_response.go
@@ -20,31 +20,31 @@ import (
// swagger:model models.PolicyGroupEntityResponse
type ModelsPolicyGroupEntityResponse struct {
- // resources
- // Required: true
- Resources []*ModelsAPIPolicyGroup `json:"Resources"`
-
// errors
Errors []*MsaAPIError `json:"errors"`
// meta
// Required: true
Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*ModelsAPIPolicyGroup `json:"resources"`
}
// Validate validates this models policy group entity response
func (m *ModelsPolicyGroupEntityResponse) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateResources(formats); err != nil {
+ if err := m.validateErrors(formats); err != nil {
res = append(res, err)
}
- if err := m.validateErrors(formats); err != nil {
+ if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
- if err := m.validateMeta(formats); err != nil {
+ if err := m.validateResources(formats); err != nil {
res = append(res, err)
}
@@ -54,33 +54,6 @@ func (m *ModelsPolicyGroupEntityResponse) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *ModelsPolicyGroupEntityResponse) validateResources(formats strfmt.Registry) error {
-
- if err := validate.Required("Resources", "body", m.Resources); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Resources); i++ {
- if swag.IsZero(m.Resources[i]) { // not required
- continue
- }
-
- if m.Resources[i] != nil {
- if err := m.Resources[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *ModelsPolicyGroupEntityResponse) validateErrors(formats strfmt.Registry) error {
if swag.IsZero(m.Errors) { // not required
return nil
@@ -127,19 +100,46 @@ func (m *ModelsPolicyGroupEntityResponse) validateMeta(formats strfmt.Registry)
return nil
}
+func (m *ModelsPolicyGroupEntityResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// ContextValidate validate this models policy group entity response based on the context it is used
func (m *ModelsPolicyGroupEntityResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateResources(ctx, formats); err != nil {
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateErrors(ctx, formats); err != nil {
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateMeta(ctx, formats); err != nil {
+ if err := m.contextValidateResources(ctx, formats); err != nil {
res = append(res, err)
}
@@ -149,31 +149,6 @@ func (m *ModelsPolicyGroupEntityResponse) ContextValidate(ctx context.Context, f
return nil
}
-func (m *ModelsPolicyGroupEntityResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Resources); i++ {
-
- if m.Resources[i] != nil {
-
- if swag.IsZero(m.Resources[i]) { // not required
- return nil
- }
-
- if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Resources" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("Resources" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *ModelsPolicyGroupEntityResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Errors); i++ {
@@ -216,6 +191,31 @@ func (m *ModelsPolicyGroupEntityResponse) contextValidateMeta(ctx context.Contex
return nil
}
+func (m *ModelsPolicyGroupEntityResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *ModelsPolicyGroupEntityResponse) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/falcon/models/models_vulnerability_product.go b/falcon/models/models_vulnerability_product.go
new file mode 100644
index 00000000..300ea35e
--- /dev/null
+++ b/falcon/models/models_vulnerability_product.go
@@ -0,0 +1,143 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ModelsVulnerabilityProduct models vulnerability product
+//
+// swagger:model models.VulnerabilityProduct
+type ModelsVulnerabilityProduct struct {
+
+ // major version
+ // Required: true
+ MajorVersion *string `json:"MajorVersion"`
+
+ // package hash
+ PackageHash string `json:"PackageHash,omitempty"`
+
+ // package provider
+ PackageProvider string `json:"PackageProvider,omitempty"`
+
+ // package source
+ // Required: true
+ PackageSource *string `json:"PackageSource"`
+
+ // package type
+ PackageType string `json:"PackageType,omitempty"`
+
+ // path
+ Path string `json:"Path,omitempty"`
+
+ // platform type
+ PlatformType string `json:"PlatformType,omitempty"`
+
+ // product
+ // Required: true
+ Product *string `json:"Product"`
+
+ // product normalized
+ ProductNormalized string `json:"ProductNormalized,omitempty"`
+
+ // software architecture
+ // Required: true
+ SoftwareArchitecture *string `json:"SoftwareArchitecture"`
+
+ // vendor
+ Vendor string `json:"Vendor,omitempty"`
+}
+
+// Validate validates this models vulnerability product
+func (m *ModelsVulnerabilityProduct) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateMajorVersion(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePackageSource(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateProduct(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSoftwareArchitecture(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ModelsVulnerabilityProduct) validateMajorVersion(formats strfmt.Registry) error {
+
+ if err := validate.Required("MajorVersion", "body", m.MajorVersion); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsVulnerabilityProduct) validatePackageSource(formats strfmt.Registry) error {
+
+ if err := validate.Required("PackageSource", "body", m.PackageSource); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsVulnerabilityProduct) validateProduct(formats strfmt.Registry) error {
+
+ if err := validate.Required("Product", "body", m.Product); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ModelsVulnerabilityProduct) validateSoftwareArchitecture(formats strfmt.Registry) error {
+
+ if err := validate.Required("SoftwareArchitecture", "body", m.SoftwareArchitecture); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this models vulnerability product based on context it is used
+func (m *ModelsVulnerabilityProduct) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ModelsVulnerabilityProduct) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ModelsVulnerabilityProduct) UnmarshalBinary(b []byte) error {
+ var res ModelsVulnerabilityProduct
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/models_vulnerability_type.go b/falcon/models/models_vulnerability_type.go
index 7aeafdb9..494787f8 100644
--- a/falcon/models/models_vulnerability_type.go
+++ b/falcon/models/models_vulnerability_type.go
@@ -39,7 +39,7 @@ type ModelsVulnerabilityType struct {
// product
// Required: true
- Product *DomainProduct `json:"Product"`
+ Product *ModelsVulnerabilityProduct `json:"Product"`
// remediation
// Required: true
diff --git a/falcon/models/msa_aggregation_result.go b/falcon/models/msa_aggregation_result.go
index 2c5be9d9..cf480347 100644
--- a/falcon/models/msa_aggregation_result.go
+++ b/falcon/models/msa_aggregation_result.go
@@ -21,6 +21,7 @@ import (
type MsaAggregationResult struct {
// buckets
+ // Required: true
Buckets []*MsaAggregationResultItem `json:"buckets"`
// doc count error upper bound
@@ -53,8 +54,9 @@ func (m *MsaAggregationResult) Validate(formats strfmt.Registry) error {
}
func (m *MsaAggregationResult) validateBuckets(formats strfmt.Registry) error {
- if swag.IsZero(m.Buckets) { // not required
- return nil
+
+ if err := validate.Required("buckets", "body", m.Buckets); err != nil {
+ return err
}
for i := 0; i < len(m.Buckets); i++ {
diff --git a/falcon/models/parameter_activity_config_parameter_value.go b/falcon/models/parameter_activity_config_parameter_value.go
index ce5c1bd5..8e147318 100644
--- a/falcon/models/parameter_activity_config_parameter_value.go
+++ b/falcon/models/parameter_activity_config_parameter_value.go
@@ -25,6 +25,9 @@ type ParameterActivityConfigParameterValue struct {
// Specifies whether the given activity configuration property can be overridden at provisioning time.
DenyOverride bool `json:"deny_override,omitempty"`
+ // Optional text/description which can be used to provide differentiation for parameterized fields during app installation.
+ HelperText string `json:"helperText,omitempty"`
+
// Indication of whether the property must be specified as a parameter during template provisioning.
// Required: true
Required *bool `json:"required"`
diff --git a/falcon/models/parameter_condition_field_parameter.go b/falcon/models/parameter_condition_field_parameter.go
index 62b1eb72..02f9206f 100644
--- a/falcon/models/parameter_condition_field_parameter.go
+++ b/falcon/models/parameter_condition_field_parameter.go
@@ -25,6 +25,9 @@ type ParameterConditionFieldParameter struct {
// Optional default value used for the condition, type is dynamic depending on the underlying field.
DefaultValue ParameterConditionFieldParameterDefaultValue `json:"default_value,omitempty"`
+ // Optional text/description which can be used to provide differentiation for parameterized fields during app installation.
+ HelperText string `json:"helperText,omitempty"`
+
// Whether the field can be specified multiple times as provisioning parameter. When true, all values or combined via an OR operator.
// Required: true
Multiple *bool `json:"multiple"`
diff --git a/falcon/models/parameter_condition_field_provision_parameter.go b/falcon/models/parameter_condition_field_provision_parameter.go
index 85ee33e9..ee3a370f 100644
--- a/falcon/models/parameter_condition_field_provision_parameter.go
+++ b/falcon/models/parameter_condition_field_provision_parameter.go
@@ -19,6 +19,10 @@ import (
// swagger:model parameter.ConditionFieldProvisionParameter
type ParameterConditionFieldProvisionParameter struct {
+ // specifies the conditin group id inside the flow node. This is needed since with or support now we can have multiple instances of the same variable
+ // Required: true
+ ConditionGroupID *string `json:"condition_group_id"`
+
// Fully qualified name of the field
// Required: true
Name *string `json:"name"`
@@ -36,6 +40,10 @@ type ParameterConditionFieldProvisionParameter struct {
func (m *ParameterConditionFieldProvisionParameter) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateConditionGroupID(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateName(formats); err != nil {
res = append(res, err)
}
@@ -54,6 +62,15 @@ func (m *ParameterConditionFieldProvisionParameter) Validate(formats strfmt.Regi
return nil
}
+func (m *ParameterConditionFieldProvisionParameter) validateConditionGroupID(formats strfmt.Registry) error {
+
+ if err := validate.Required("condition_group_id", "body", m.ConditionGroupID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ParameterConditionFieldProvisionParameter) validateName(formats strfmt.Registry) error {
if err := validate.Required("name", "body", m.Name); err != nil {
diff --git a/falcon/models/patterndisposition_pattern_disposition.go b/falcon/models/patterndisposition_pattern_disposition.go
index 05df6048..3fb2e664 100644
--- a/falcon/models/patterndisposition_pattern_disposition.go
+++ b/falcon/models/patterndisposition_pattern_disposition.go
@@ -27,6 +27,10 @@ type PatterndispositionPatternDisposition struct {
// Required: true
BootupSafeguardEnabled *bool `json:"bootup_safeguard_enabled"`
+ // containment file system
+ // Required: true
+ ContainmentFileSystem *bool `json:"containment_file_system"`
+
// critical process disabled
// Required: true
CriticalProcessDisabled *bool `json:"critical_process_disabled"`
@@ -67,6 +71,10 @@ type PatterndispositionPatternDisposition struct {
// Required: true
KillSubprocess *bool `json:"kill_subprocess"`
+ // mfa required
+ // Required: true
+ MfaRequired *bool `json:"mfa_required"`
+
// operation blocked
// Required: true
OperationBlocked *bool `json:"operation_blocked"`
@@ -75,6 +83,10 @@ type PatterndispositionPatternDisposition struct {
// Required: true
PolicyDisabled *bool `json:"policy_disabled"`
+ // prevention provisioning enabled
+ // Required: true
+ PreventionProvisioningEnabled *bool `json:"prevention_provisioning_enabled"`
+
// process blocked
// Required: true
ProcessBlocked *bool `json:"process_blocked"`
@@ -91,6 +103,18 @@ type PatterndispositionPatternDisposition struct {
// Required: true
RegistryOperationBlocked *bool `json:"registry_operation_blocked"`
+ // response action already applied
+ // Required: true
+ ResponseActionAlreadyApplied *bool `json:"response_action_already_applied"`
+
+ // response action failed
+ // Required: true
+ ResponseActionFailed *bool `json:"response_action_failed"`
+
+ // response action triggered
+ // Required: true
+ ResponseActionTriggered *bool `json:"response_action_triggered"`
+
// rooting
// Required: true
Rooting *bool `json:"rooting"`
@@ -120,6 +144,10 @@ func (m *PatterndispositionPatternDisposition) Validate(formats strfmt.Registry)
res = append(res, err)
}
+ if err := m.validateContainmentFileSystem(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateCriticalProcessDisabled(formats); err != nil {
res = append(res, err)
}
@@ -160,6 +188,10 @@ func (m *PatterndispositionPatternDisposition) Validate(formats strfmt.Registry)
res = append(res, err)
}
+ if err := m.validateMfaRequired(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateOperationBlocked(formats); err != nil {
res = append(res, err)
}
@@ -168,6 +200,10 @@ func (m *PatterndispositionPatternDisposition) Validate(formats strfmt.Registry)
res = append(res, err)
}
+ if err := m.validatePreventionProvisioningEnabled(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateProcessBlocked(formats); err != nil {
res = append(res, err)
}
@@ -184,6 +220,18 @@ func (m *PatterndispositionPatternDisposition) Validate(formats strfmt.Registry)
res = append(res, err)
}
+ if err := m.validateResponseActionAlreadyApplied(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResponseActionFailed(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResponseActionTriggered(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateRooting(formats); err != nil {
res = append(res, err)
}
@@ -224,6 +272,15 @@ func (m *PatterndispositionPatternDisposition) validateBootupSafeguardEnabled(fo
return nil
}
+func (m *PatterndispositionPatternDisposition) validateContainmentFileSystem(formats strfmt.Registry) error {
+
+ if err := validate.Required("containment_file_system", "body", m.ContainmentFileSystem); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *PatterndispositionPatternDisposition) validateCriticalProcessDisabled(formats strfmt.Registry) error {
if err := validate.Required("critical_process_disabled", "body", m.CriticalProcessDisabled); err != nil {
@@ -314,6 +371,15 @@ func (m *PatterndispositionPatternDisposition) validateKillSubprocess(formats st
return nil
}
+func (m *PatterndispositionPatternDisposition) validateMfaRequired(formats strfmt.Registry) error {
+
+ if err := validate.Required("mfa_required", "body", m.MfaRequired); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *PatterndispositionPatternDisposition) validateOperationBlocked(formats strfmt.Registry) error {
if err := validate.Required("operation_blocked", "body", m.OperationBlocked); err != nil {
@@ -332,6 +398,15 @@ func (m *PatterndispositionPatternDisposition) validatePolicyDisabled(formats st
return nil
}
+func (m *PatterndispositionPatternDisposition) validatePreventionProvisioningEnabled(formats strfmt.Registry) error {
+
+ if err := validate.Required("prevention_provisioning_enabled", "body", m.PreventionProvisioningEnabled); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *PatterndispositionPatternDisposition) validateProcessBlocked(formats strfmt.Registry) error {
if err := validate.Required("process_blocked", "body", m.ProcessBlocked); err != nil {
@@ -368,6 +443,33 @@ func (m *PatterndispositionPatternDisposition) validateRegistryOperationBlocked(
return nil
}
+func (m *PatterndispositionPatternDisposition) validateResponseActionAlreadyApplied(formats strfmt.Registry) error {
+
+ if err := validate.Required("response_action_already_applied", "body", m.ResponseActionAlreadyApplied); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PatterndispositionPatternDisposition) validateResponseActionFailed(formats strfmt.Registry) error {
+
+ if err := validate.Required("response_action_failed", "body", m.ResponseActionFailed); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PatterndispositionPatternDisposition) validateResponseActionTriggered(formats strfmt.Registry) error {
+
+ if err := validate.Required("response_action_triggered", "body", m.ResponseActionTriggered); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *PatterndispositionPatternDisposition) validateRooting(formats strfmt.Registry) error {
if err := validate.Required("rooting", "body", m.Rooting); err != nil {
diff --git a/falcon/models/quickscanpro_delete_file_response.go b/falcon/models/quickscanpro_delete_file_response.go
new file mode 100644
index 00000000..081d4407
--- /dev/null
+++ b/falcon/models/quickscanpro_delete_file_response.go
@@ -0,0 +1,188 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproDeleteFileResponse quickscanpro delete file response
+//
+// swagger:model quickscanpro.DeleteFileResponse
+type QuickscanproDeleteFileResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []string `json:"resources"`
+}
+
+// Validate validates this quickscanpro delete file response
+func (m *QuickscanproDeleteFileResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproDeleteFileResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproDeleteFileResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproDeleteFileResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this quickscanpro delete file response based on the context it is used
+func (m *QuickscanproDeleteFileResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproDeleteFileResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproDeleteFileResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproDeleteFileResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproDeleteFileResponse) UnmarshalBinary(b []byte) error {
+ var res QuickscanproDeleteFileResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_file_result.go b/falcon/models/quickscanpro_file_result.go
new file mode 100644
index 00000000..7e91e62e
--- /dev/null
+++ b/falcon/models/quickscanpro_file_result.go
@@ -0,0 +1,136 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproFileResult quickscanpro file result
+//
+// swagger:model quickscanpro.FileResult
+type QuickscanproFileResult struct {
+
+ // filename
+ Filename string `json:"filename,omitempty"`
+
+ // sha256
+ // Required: true
+ Sha256 *string `json:"sha256"`
+
+ // verdict
+ // Required: true
+ // Enum: [clean suspicious malicious unknown]
+ Verdict *string `json:"verdict"`
+
+ // verdict reason
+ VerdictReason string `json:"verdict_reason,omitempty"`
+}
+
+// Validate validates this quickscanpro file result
+func (m *QuickscanproFileResult) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateSha256(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateVerdict(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproFileResult) validateSha256(formats strfmt.Registry) error {
+
+ if err := validate.Required("sha256", "body", m.Sha256); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+var quickscanproFileResultTypeVerdictPropEnum []interface{}
+
+func init() {
+ var res []string
+ if err := json.Unmarshal([]byte(`["clean","suspicious","malicious","unknown"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ quickscanproFileResultTypeVerdictPropEnum = append(quickscanproFileResultTypeVerdictPropEnum, v)
+ }
+}
+
+const (
+
+ // QuickscanproFileResultVerdictClean captures enum value "clean"
+ QuickscanproFileResultVerdictClean string = "clean"
+
+ // QuickscanproFileResultVerdictSuspicious captures enum value "suspicious"
+ QuickscanproFileResultVerdictSuspicious string = "suspicious"
+
+ // QuickscanproFileResultVerdictMalicious captures enum value "malicious"
+ QuickscanproFileResultVerdictMalicious string = "malicious"
+
+ // QuickscanproFileResultVerdictUnknown captures enum value "unknown"
+ QuickscanproFileResultVerdictUnknown string = "unknown"
+)
+
+// prop value enum
+func (m *QuickscanproFileResult) validateVerdictEnum(path, location string, value string) error {
+ if err := validate.EnumCase(path, location, value, quickscanproFileResultTypeVerdictPropEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (m *QuickscanproFileResult) validateVerdict(formats strfmt.Registry) error {
+
+ if err := validate.Required("verdict", "body", m.Verdict); err != nil {
+ return err
+ }
+
+ // value enum
+ if err := m.validateVerdictEnum("verdict", "body", *m.Verdict); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this quickscanpro file result based on context it is used
+func (m *QuickscanproFileResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproFileResult) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproFileResult) UnmarshalBinary(b []byte) error {
+ var res QuickscanproFileResult
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_file_upload_resource.go b/falcon/models/quickscanpro_file_upload_resource.go
new file mode 100644
index 00000000..0bddf563
--- /dev/null
+++ b/falcon/models/quickscanpro_file_upload_resource.go
@@ -0,0 +1,74 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproFileUploadResource quickscanpro file upload resource
+//
+// swagger:model quickscanpro.FileUploadResource
+type QuickscanproFileUploadResource struct {
+
+ // scan id
+ ScanID string `json:"scan_id,omitempty"`
+
+ // sha256
+ // Required: true
+ Sha256 *string `json:"sha256"`
+}
+
+// Validate validates this quickscanpro file upload resource
+func (m *QuickscanproFileUploadResource) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateSha256(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproFileUploadResource) validateSha256(formats strfmt.Registry) error {
+
+ if err := validate.Required("sha256", "body", m.Sha256); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this quickscanpro file upload resource based on context it is used
+func (m *QuickscanproFileUploadResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproFileUploadResource) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproFileUploadResource) UnmarshalBinary(b []byte) error {
+ var res QuickscanproFileUploadResource
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_file_upload_response.go b/falcon/models/quickscanpro_file_upload_response.go
new file mode 100644
index 00000000..cf693100
--- /dev/null
+++ b/falcon/models/quickscanpro_file_upload_response.go
@@ -0,0 +1,286 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproFileUploadResponse quickscanpro file upload response
+//
+// swagger:model quickscanpro.FileUploadResponse
+type QuickscanproFileUploadResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // quota
+ Quota *QuickscanproQuotaResource `json:"quota,omitempty"`
+
+ // resources
+ // Required: true
+ Resources []*QuickscanproFileUploadResource `json:"resources"`
+}
+
+// Validate validates this quickscanpro file upload response
+func (m *QuickscanproFileUploadResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateQuota(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproFileUploadResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproFileUploadResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproFileUploadResponse) validateQuota(formats strfmt.Registry) error {
+ if swag.IsZero(m.Quota) { // not required
+ return nil
+ }
+
+ if m.Quota != nil {
+ if err := m.Quota.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("quota")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("quota")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproFileUploadResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this quickscanpro file upload response based on the context it is used
+func (m *QuickscanproFileUploadResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateQuota(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproFileUploadResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproFileUploadResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproFileUploadResponse) contextValidateQuota(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Quota != nil {
+
+ if swag.IsZero(m.Quota) { // not required
+ return nil
+ }
+
+ if err := m.Quota.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("quota")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("quota")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproFileUploadResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproFileUploadResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproFileUploadResponse) UnmarshalBinary(b []byte) error {
+ var res QuickscanproFileUploadResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_get_scan_result_resource.go b/falcon/models/quickscanpro_get_scan_result_resource.go
new file mode 100644
index 00000000..5c09ab4c
--- /dev/null
+++ b/falcon/models/quickscanpro_get_scan_result_resource.go
@@ -0,0 +1,174 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproGetScanResultResource quickscanpro get scan result resource
+//
+// swagger:model quickscanpro.GetScanResultResource
+type QuickscanproGetScanResultResource struct {
+
+ // id
+ // Required: true
+ ID *string `json:"id"`
+
+ // result
+ // Required: true
+ Result *QuickscanproScanResult `json:"result"`
+
+ // scan
+ // Required: true
+ Scan *QuickscanproScanMetadata `json:"scan"`
+}
+
+// Validate validates this quickscanpro get scan result resource
+func (m *QuickscanproGetScanResultResource) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResult(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateScan(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResource) validateID(formats strfmt.Registry) error {
+
+ if err := validate.Required("id", "body", m.ID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResource) validateResult(formats strfmt.Registry) error {
+
+ if err := validate.Required("result", "body", m.Result); err != nil {
+ return err
+ }
+
+ if m.Result != nil {
+ if err := m.Result.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("result")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("result")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResource) validateScan(formats strfmt.Registry) error {
+
+ if err := validate.Required("scan", "body", m.Scan); err != nil {
+ return err
+ }
+
+ if m.Scan != nil {
+ if err := m.Scan.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("scan")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("scan")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this quickscanpro get scan result resource based on the context it is used
+func (m *QuickscanproGetScanResultResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateResult(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateScan(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResource) contextValidateResult(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Result != nil {
+
+ if err := m.Result.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("result")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("result")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResource) contextValidateScan(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Scan != nil {
+
+ if err := m.Scan.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("scan")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("scan")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproGetScanResultResource) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproGetScanResultResource) UnmarshalBinary(b []byte) error {
+ var res QuickscanproGetScanResultResource
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_get_scan_result_response.go b/falcon/models/quickscanpro_get_scan_result_response.go
new file mode 100644
index 00000000..307b1203
--- /dev/null
+++ b/falcon/models/quickscanpro_get_scan_result_response.go
@@ -0,0 +1,235 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproGetScanResultResponse quickscanpro get scan result response
+//
+// swagger:model quickscanpro.GetScanResultResponse
+type QuickscanproGetScanResultResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*QuickscanproGetScanResultResource `json:"resources"`
+}
+
+// Validate validates this quickscanpro get scan result response
+func (m *QuickscanproGetScanResultResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this quickscanpro get scan result response based on the context it is used
+func (m *QuickscanproGetScanResultResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproGetScanResultResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproGetScanResultResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproGetScanResultResponse) UnmarshalBinary(b []byte) error {
+ var res QuickscanproGetScanResultResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_launch_scan_request.go b/falcon/models/quickscanpro_launch_scan_request.go
new file mode 100644
index 00000000..b47a26d4
--- /dev/null
+++ b/falcon/models/quickscanpro_launch_scan_request.go
@@ -0,0 +1,124 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproLaunchScanRequest quickscanpro launch scan request
+//
+// swagger:model quickscanpro.LaunchScanRequest
+type QuickscanproLaunchScanRequest struct {
+
+ // resources
+ // Required: true
+ Resources []*QuickscanproLaunchScanRequestResource `json:"resources"`
+}
+
+// Validate validates this quickscanpro launch scan request
+func (m *QuickscanproLaunchScanRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproLaunchScanRequest) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this quickscanpro launch scan request based on the context it is used
+func (m *QuickscanproLaunchScanRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproLaunchScanRequest) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproLaunchScanRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproLaunchScanRequest) UnmarshalBinary(b []byte) error {
+ var res QuickscanproLaunchScanRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_launch_scan_request_resource.go b/falcon/models/quickscanpro_launch_scan_request_resource.go
new file mode 100644
index 00000000..20b58f79
--- /dev/null
+++ b/falcon/models/quickscanpro_launch_scan_request_resource.go
@@ -0,0 +1,71 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproLaunchScanRequestResource quickscanpro launch scan request resource
+//
+// swagger:model quickscanpro.LaunchScanRequestResource
+type QuickscanproLaunchScanRequestResource struct {
+
+ // sha256
+ // Required: true
+ Sha256 *string `json:"sha256"`
+}
+
+// Validate validates this quickscanpro launch scan request resource
+func (m *QuickscanproLaunchScanRequestResource) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateSha256(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproLaunchScanRequestResource) validateSha256(formats strfmt.Registry) error {
+
+ if err := validate.Required("sha256", "body", m.Sha256); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this quickscanpro launch scan request resource based on context it is used
+func (m *QuickscanproLaunchScanRequestResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproLaunchScanRequestResource) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproLaunchScanRequestResource) UnmarshalBinary(b []byte) error {
+ var res QuickscanproLaunchScanRequestResource
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_launch_scan_resource.go b/falcon/models/quickscanpro_launch_scan_resource.go
new file mode 100644
index 00000000..c41a4f57
--- /dev/null
+++ b/falcon/models/quickscanpro_launch_scan_resource.go
@@ -0,0 +1,110 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproLaunchScanResource quickscanpro launch scan resource
+//
+// swagger:model quickscanpro.LaunchScanResource
+type QuickscanproLaunchScanResource struct {
+
+ // created timestamp
+ // Required: true
+ // Format: date-time
+ CreatedTimestamp *strfmt.DateTime `json:"created_timestamp"`
+
+ // id
+ // Required: true
+ ID *string `json:"id"`
+
+ // sha256
+ // Required: true
+ Sha256 *string `json:"sha256"`
+}
+
+// Validate validates this quickscanpro launch scan resource
+func (m *QuickscanproLaunchScanResource) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateCreatedTimestamp(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSha256(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResource) validateCreatedTimestamp(formats strfmt.Registry) error {
+
+ if err := validate.Required("created_timestamp", "body", m.CreatedTimestamp); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("created_timestamp", "body", "date-time", m.CreatedTimestamp.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResource) validateID(formats strfmt.Registry) error {
+
+ if err := validate.Required("id", "body", m.ID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResource) validateSha256(formats strfmt.Registry) error {
+
+ if err := validate.Required("sha256", "body", m.Sha256); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this quickscanpro launch scan resource based on context it is used
+func (m *QuickscanproLaunchScanResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproLaunchScanResource) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproLaunchScanResource) UnmarshalBinary(b []byte) error {
+ var res QuickscanproLaunchScanResource
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_launch_scan_response.go b/falcon/models/quickscanpro_launch_scan_response.go
new file mode 100644
index 00000000..e8498806
--- /dev/null
+++ b/falcon/models/quickscanpro_launch_scan_response.go
@@ -0,0 +1,286 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproLaunchScanResponse quickscanpro launch scan response
+//
+// swagger:model quickscanpro.LaunchScanResponse
+type QuickscanproLaunchScanResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // quota
+ Quota *QuickscanproQuotaResource `json:"quota,omitempty"`
+
+ // resources
+ // Required: true
+ Resources []*QuickscanproLaunchScanResource `json:"resources"`
+}
+
+// Validate validates this quickscanpro launch scan response
+func (m *QuickscanproLaunchScanResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateQuota(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResponse) validateQuota(formats strfmt.Registry) error {
+ if swag.IsZero(m.Quota) { // not required
+ return nil
+ }
+
+ if m.Quota != nil {
+ if err := m.Quota.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("quota")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("quota")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this quickscanpro launch scan response based on the context it is used
+func (m *QuickscanproLaunchScanResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateQuota(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResponse) contextValidateQuota(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Quota != nil {
+
+ if swag.IsZero(m.Quota) { // not required
+ return nil
+ }
+
+ if err := m.Quota.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("quota")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("quota")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproLaunchScanResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproLaunchScanResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproLaunchScanResponse) UnmarshalBinary(b []byte) error {
+ var res QuickscanproLaunchScanResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_m_i_t_r_e_attack.go b/falcon/models/quickscanpro_m_i_t_r_e_attack.go
new file mode 100644
index 00000000..e2333ab1
--- /dev/null
+++ b/falcon/models/quickscanpro_m_i_t_r_e_attack.go
@@ -0,0 +1,127 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// QuickscanproMITREAttack quickscanpro m i t r e attack
+//
+// swagger:model quickscanpro.MITREAttack
+type QuickscanproMITREAttack struct {
+
+ // attack id
+ AttackID string `json:"attack_id,omitempty"`
+
+ // attack id wiki
+ AttackIDWiki string `json:"attack_id_wiki,omitempty"`
+
+ // capec id
+ CapecID string `json:"capec_id,omitempty"`
+
+ // description
+ Description string `json:"description,omitempty"`
+
+ // parent
+ Parent *QuickscanproMITREAttackParent `json:"parent,omitempty"`
+
+ // tactic
+ Tactic string `json:"tactic,omitempty"`
+
+ // technique
+ Technique string `json:"technique,omitempty"`
+}
+
+// Validate validates this quickscanpro m i t r e attack
+func (m *QuickscanproMITREAttack) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateParent(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproMITREAttack) validateParent(formats strfmt.Registry) error {
+ if swag.IsZero(m.Parent) { // not required
+ return nil
+ }
+
+ if m.Parent != nil {
+ if err := m.Parent.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("parent")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("parent")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this quickscanpro m i t r e attack based on the context it is used
+func (m *QuickscanproMITREAttack) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateParent(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproMITREAttack) contextValidateParent(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Parent != nil {
+
+ if swag.IsZero(m.Parent) { // not required
+ return nil
+ }
+
+ if err := m.Parent.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("parent")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("parent")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproMITREAttack) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproMITREAttack) UnmarshalBinary(b []byte) error {
+ var res QuickscanproMITREAttack
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_m_i_t_r_e_attack_parent.go b/falcon/models/quickscanpro_m_i_t_r_e_attack_parent.go
new file mode 100644
index 00000000..d2fe5398
--- /dev/null
+++ b/falcon/models/quickscanpro_m_i_t_r_e_attack_parent.go
@@ -0,0 +1,56 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// QuickscanproMITREAttackParent quickscanpro m i t r e attack parent
+//
+// swagger:model quickscanpro.MITREAttackParent
+type QuickscanproMITREAttackParent struct {
+
+ // attack id
+ AttackID string `json:"attack_id,omitempty"`
+
+ // attack id wiki
+ AttackIDWiki string `json:"attack_id_wiki,omitempty"`
+
+ // technique
+ Technique string `json:"technique,omitempty"`
+}
+
+// Validate validates this quickscanpro m i t r e attack parent
+func (m *QuickscanproMITREAttackParent) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this quickscanpro m i t r e attack parent based on context it is used
+func (m *QuickscanproMITREAttackParent) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproMITREAttackParent) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproMITREAttackParent) UnmarshalBinary(b []byte) error {
+ var res QuickscanproMITREAttackParent
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_query_scan_results_response.go b/falcon/models/quickscanpro_query_scan_results_response.go
new file mode 100644
index 00000000..c4e4ac7b
--- /dev/null
+++ b/falcon/models/quickscanpro_query_scan_results_response.go
@@ -0,0 +1,188 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproQueryScanResultsResponse quickscanpro query scan results response
+//
+// swagger:model quickscanpro.QueryScanResultsResponse
+type QuickscanproQueryScanResultsResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // scan IDs
+ // Required: true
+ Resources []string `json:"resources"`
+}
+
+// Validate validates this quickscanpro query scan results response
+func (m *QuickscanproQueryScanResultsResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproQueryScanResultsResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproQueryScanResultsResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *QuickscanproQueryScanResultsResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this quickscanpro query scan results response based on the context it is used
+func (m *QuickscanproQueryScanResultsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproQueryScanResultsResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproQueryScanResultsResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproQueryScanResultsResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproQueryScanResultsResponse) UnmarshalBinary(b []byte) error {
+ var res QuickscanproQueryScanResultsResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_quota_resource.go b/falcon/models/quickscanpro_quota_resource.go
new file mode 100644
index 00000000..59b2dd9f
--- /dev/null
+++ b/falcon/models/quickscanpro_quota_resource.go
@@ -0,0 +1,91 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproQuotaResource quickscanpro quota resource
+//
+// swagger:model quickscanpro.QuotaResource
+type QuickscanproQuotaResource struct {
+
+ // in progress
+ InProgress int32 `json:"in_progress,omitempty"`
+
+ // total
+ // Required: true
+ Total *int32 `json:"total"`
+
+ // used
+ // Required: true
+ Used *int32 `json:"used"`
+}
+
+// Validate validates this quickscanpro quota resource
+func (m *QuickscanproQuotaResource) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateTotal(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUsed(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproQuotaResource) validateTotal(formats strfmt.Registry) error {
+
+ if err := validate.Required("total", "body", m.Total); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *QuickscanproQuotaResource) validateUsed(formats strfmt.Registry) error {
+
+ if err := validate.Required("used", "body", m.Used); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this quickscanpro quota resource based on context it is used
+func (m *QuickscanproQuotaResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproQuotaResource) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproQuotaResource) UnmarshalBinary(b []byte) error {
+ var res QuickscanproQuotaResource
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_scan_metadata.go b/falcon/models/quickscanpro_scan_metadata.go
new file mode 100644
index 00000000..79431d39
--- /dev/null
+++ b/falcon/models/quickscanpro_scan_metadata.go
@@ -0,0 +1,132 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproScanMetadata quickscanpro scan metadata
+//
+// swagger:model quickscanpro.ScanMetadata
+type QuickscanproScanMetadata struct {
+
+ // created timestamp
+ // Required: true
+ // Format: date-time
+ CreatedTimestamp *strfmt.DateTime `json:"created_timestamp"`
+
+ // sha256
+ // Required: true
+ Sha256 *string `json:"sha256"`
+
+ // status
+ // Required: true
+ Status *string `json:"status"`
+
+ // updated timestamp
+ // Required: true
+ // Format: date-time
+ UpdatedTimestamp *strfmt.DateTime `json:"updated_timestamp"`
+}
+
+// Validate validates this quickscanpro scan metadata
+func (m *QuickscanproScanMetadata) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateCreatedTimestamp(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSha256(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdatedTimestamp(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproScanMetadata) validateCreatedTimestamp(formats strfmt.Registry) error {
+
+ if err := validate.Required("created_timestamp", "body", m.CreatedTimestamp); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("created_timestamp", "body", "date-time", m.CreatedTimestamp.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *QuickscanproScanMetadata) validateSha256(formats strfmt.Registry) error {
+
+ if err := validate.Required("sha256", "body", m.Sha256); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *QuickscanproScanMetadata) validateStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("status", "body", m.Status); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *QuickscanproScanMetadata) validateUpdatedTimestamp(formats strfmt.Registry) error {
+
+ if err := validate.Required("updated_timestamp", "body", m.UpdatedTimestamp); err != nil {
+ return err
+ }
+
+ if err := validate.FormatOf("updated_timestamp", "body", "date-time", m.UpdatedTimestamp.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this quickscanpro scan metadata based on context it is used
+func (m *QuickscanproScanMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproScanMetadata) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproScanMetadata) UnmarshalBinary(b []byte) error {
+ var res QuickscanproScanMetadata
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_scan_result.go b/falcon/models/quickscanpro_scan_result.go
new file mode 100644
index 00000000..55398d2a
--- /dev/null
+++ b/falcon/models/quickscanpro_scan_result.go
@@ -0,0 +1,330 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproScanResult quickscanpro scan result
+//
+// swagger:model quickscanpro.ScanResult
+type QuickscanproScanResult struct {
+
+ // beta intelligence context
+ BetaIntelligenceContext interface{} `json:"beta_intelligence_context,omitempty"`
+
+ // file artifacts
+ // Required: true
+ FileArtifacts []*QuickscanproFileResult `json:"file_artifacts"`
+
+ // mitre attacks
+ MitreAttacks []*QuickscanproMITREAttack `json:"mitre_attacks"`
+
+ // url artifacts
+ URLArtifacts []*QuickscanproURLResult `json:"url_artifacts"`
+
+ // verdict
+ // Required: true
+ // Enum: [clean suspicious malicious unknown]
+ Verdict *string `json:"verdict"`
+
+ // verdict reason
+ // Required: true
+ VerdictReason *string `json:"verdict_reason"`
+
+ // verdict source
+ VerdictSource []string `json:"verdict_source"`
+}
+
+// Validate validates this quickscanpro scan result
+func (m *QuickscanproScanResult) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFileArtifacts(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMitreAttacks(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateURLArtifacts(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateVerdict(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateVerdictReason(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproScanResult) validateFileArtifacts(formats strfmt.Registry) error {
+
+ if err := validate.Required("file_artifacts", "body", m.FileArtifacts); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.FileArtifacts); i++ {
+ if swag.IsZero(m.FileArtifacts[i]) { // not required
+ continue
+ }
+
+ if m.FileArtifacts[i] != nil {
+ if err := m.FileArtifacts[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("file_artifacts" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("file_artifacts" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproScanResult) validateMitreAttacks(formats strfmt.Registry) error {
+ if swag.IsZero(m.MitreAttacks) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.MitreAttacks); i++ {
+ if swag.IsZero(m.MitreAttacks[i]) { // not required
+ continue
+ }
+
+ if m.MitreAttacks[i] != nil {
+ if err := m.MitreAttacks[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("mitre_attacks" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("mitre_attacks" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproScanResult) validateURLArtifacts(formats strfmt.Registry) error {
+ if swag.IsZero(m.URLArtifacts) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.URLArtifacts); i++ {
+ if swag.IsZero(m.URLArtifacts[i]) { // not required
+ continue
+ }
+
+ if m.URLArtifacts[i] != nil {
+ if err := m.URLArtifacts[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("url_artifacts" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("url_artifacts" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+var quickscanproScanResultTypeVerdictPropEnum []interface{}
+
+func init() {
+ var res []string
+ if err := json.Unmarshal([]byte(`["clean","suspicious","malicious","unknown"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ quickscanproScanResultTypeVerdictPropEnum = append(quickscanproScanResultTypeVerdictPropEnum, v)
+ }
+}
+
+const (
+
+ // QuickscanproScanResultVerdictClean captures enum value "clean"
+ QuickscanproScanResultVerdictClean string = "clean"
+
+ // QuickscanproScanResultVerdictSuspicious captures enum value "suspicious"
+ QuickscanproScanResultVerdictSuspicious string = "suspicious"
+
+ // QuickscanproScanResultVerdictMalicious captures enum value "malicious"
+ QuickscanproScanResultVerdictMalicious string = "malicious"
+
+ // QuickscanproScanResultVerdictUnknown captures enum value "unknown"
+ QuickscanproScanResultVerdictUnknown string = "unknown"
+)
+
+// prop value enum
+func (m *QuickscanproScanResult) validateVerdictEnum(path, location string, value string) error {
+ if err := validate.EnumCase(path, location, value, quickscanproScanResultTypeVerdictPropEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (m *QuickscanproScanResult) validateVerdict(formats strfmt.Registry) error {
+
+ if err := validate.Required("verdict", "body", m.Verdict); err != nil {
+ return err
+ }
+
+ // value enum
+ if err := m.validateVerdictEnum("verdict", "body", *m.Verdict); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *QuickscanproScanResult) validateVerdictReason(formats strfmt.Registry) error {
+
+ if err := validate.Required("verdict_reason", "body", m.VerdictReason); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this quickscanpro scan result based on the context it is used
+func (m *QuickscanproScanResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateFileArtifacts(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMitreAttacks(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateURLArtifacts(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproScanResult) contextValidateFileArtifacts(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.FileArtifacts); i++ {
+
+ if m.FileArtifacts[i] != nil {
+
+ if swag.IsZero(m.FileArtifacts[i]) { // not required
+ return nil
+ }
+
+ if err := m.FileArtifacts[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("file_artifacts" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("file_artifacts" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproScanResult) contextValidateMitreAttacks(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.MitreAttacks); i++ {
+
+ if m.MitreAttacks[i] != nil {
+
+ if swag.IsZero(m.MitreAttacks[i]) { // not required
+ return nil
+ }
+
+ if err := m.MitreAttacks[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("mitre_attacks" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("mitre_attacks" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *QuickscanproScanResult) contextValidateURLArtifacts(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.URLArtifacts); i++ {
+
+ if m.URLArtifacts[i] != nil {
+
+ if swag.IsZero(m.URLArtifacts[i]) { // not required
+ return nil
+ }
+
+ if err := m.URLArtifacts[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("url_artifacts" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("url_artifacts" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproScanResult) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproScanResult) UnmarshalBinary(b []byte) error {
+ var res QuickscanproScanResult
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/quickscanpro_url_result.go b/falcon/models/quickscanpro_url_result.go
new file mode 100644
index 00000000..11b71d5e
--- /dev/null
+++ b/falcon/models/quickscanpro_url_result.go
@@ -0,0 +1,133 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// QuickscanproURLResult quickscanpro URL result
+//
+// swagger:model quickscanpro.URLResult
+type QuickscanproURLResult struct {
+
+ // url
+ // Required: true
+ URL *string `json:"url"`
+
+ // verdict
+ // Required: true
+ // Enum: [clean suspicious malicious unknown]
+ Verdict *string `json:"verdict"`
+
+ // verdict reason
+ VerdictReason string `json:"verdict_reason,omitempty"`
+}
+
+// Validate validates this quickscanpro URL result
+func (m *QuickscanproURLResult) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateURL(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateVerdict(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *QuickscanproURLResult) validateURL(formats strfmt.Registry) error {
+
+ if err := validate.Required("url", "body", m.URL); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+var quickscanproUrlResultTypeVerdictPropEnum []interface{}
+
+func init() {
+ var res []string
+ if err := json.Unmarshal([]byte(`["clean","suspicious","malicious","unknown"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ quickscanproUrlResultTypeVerdictPropEnum = append(quickscanproUrlResultTypeVerdictPropEnum, v)
+ }
+}
+
+const (
+
+ // QuickscanproURLResultVerdictClean captures enum value "clean"
+ QuickscanproURLResultVerdictClean string = "clean"
+
+ // QuickscanproURLResultVerdictSuspicious captures enum value "suspicious"
+ QuickscanproURLResultVerdictSuspicious string = "suspicious"
+
+ // QuickscanproURLResultVerdictMalicious captures enum value "malicious"
+ QuickscanproURLResultVerdictMalicious string = "malicious"
+
+ // QuickscanproURLResultVerdictUnknown captures enum value "unknown"
+ QuickscanproURLResultVerdictUnknown string = "unknown"
+)
+
+// prop value enum
+func (m *QuickscanproURLResult) validateVerdictEnum(path, location string, value string) error {
+ if err := validate.EnumCase(path, location, value, quickscanproUrlResultTypeVerdictPropEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (m *QuickscanproURLResult) validateVerdict(formats strfmt.Registry) error {
+
+ if err := validate.Required("verdict", "body", m.Verdict); err != nil {
+ return err
+ }
+
+ // value enum
+ if err := m.validateVerdictEnum("verdict", "body", *m.Verdict); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this quickscanpro URL result based on context it is used
+func (m *QuickscanproURLResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *QuickscanproURLResult) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *QuickscanproURLResult) UnmarshalBinary(b []byte) error {
+ var res QuickscanproURLResult
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/registration_static_scripts_response.go b/falcon/models/registration_static_scripts_response.go
index 308fba85..d380ce42 100644
--- a/falcon/models/registration_static_scripts_response.go
+++ b/falcon/models/registration_static_scripts_response.go
@@ -21,7 +21,6 @@ import (
type RegistrationStaticScriptsResponse struct {
// errors
- // Required: true
Errors []*MsaAPIError `json:"errors"`
// meta
@@ -56,9 +55,8 @@ func (m *RegistrationStaticScriptsResponse) Validate(formats strfmt.Registry) er
}
func (m *RegistrationStaticScriptsResponse) validateErrors(formats strfmt.Registry) error {
-
- if err := validate.Required("errors", "body", m.Errors); err != nil {
- return err
+ if swag.IsZero(m.Errors) { // not required
+ return nil
}
for i := 0; i < len(m.Errors); i++ {
diff --git a/falcon/models/rest_a_w_s_account_create_request_extv1.go b/falcon/models/rest_a_w_s_account_create_request_extv1.go
new file mode 100644
index 00000000..2a33271d
--- /dev/null
+++ b/falcon/models/rest_a_w_s_account_create_request_extv1.go
@@ -0,0 +1,124 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// RestAWSAccountCreateRequestExtv1 rest a w s account create request extv1
+//
+// swagger:model rest.AWSAccountCreateRequestExtv1
+type RestAWSAccountCreateRequestExtv1 struct {
+
+ // resources
+ // Required: true
+ Resources []*RestCloudAWSAccountCreateExtV1 `json:"resources"`
+}
+
+// Validate validates this rest a w s account create request extv1
+func (m *RestAWSAccountCreateRequestExtv1) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestAWSAccountCreateRequestExtv1) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this rest a w s account create request extv1 based on the context it is used
+func (m *RestAWSAccountCreateRequestExtv1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestAWSAccountCreateRequestExtv1) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *RestAWSAccountCreateRequestExtv1) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *RestAWSAccountCreateRequestExtv1) UnmarshalBinary(b []byte) error {
+ var res RestAWSAccountCreateRequestExtv1
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/rest_a_w_s_account_create_response_ext_v1.go b/falcon/models/rest_a_w_s_account_create_response_ext_v1.go
new file mode 100644
index 00000000..03346231
--- /dev/null
+++ b/falcon/models/rest_a_w_s_account_create_response_ext_v1.go
@@ -0,0 +1,235 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// RestAWSAccountCreateResponseExtV1 rest a w s account create response ext v1
+//
+// swagger:model rest.AWSAccountCreateResponseExtV1
+type RestAWSAccountCreateResponseExtV1 struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*DomainCloudAWSAccountV1 `json:"resources"`
+}
+
+// Validate validates this rest a w s account create response ext v1
+func (m *RestAWSAccountCreateResponseExtV1) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestAWSAccountCreateResponseExtV1) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountCreateResponseExtV1) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountCreateResponseExtV1) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this rest a w s account create response ext v1 based on the context it is used
+func (m *RestAWSAccountCreateResponseExtV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestAWSAccountCreateResponseExtV1) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountCreateResponseExtV1) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountCreateResponseExtV1) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *RestAWSAccountCreateResponseExtV1) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *RestAWSAccountCreateResponseExtV1) UnmarshalBinary(b []byte) error {
+ var res RestAWSAccountCreateResponseExtV1
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/rest_a_w_s_account_validated.go b/falcon/models/rest_a_w_s_account_validated.go
new file mode 100644
index 00000000..9c6013c1
--- /dev/null
+++ b/falcon/models/rest_a_w_s_account_validated.go
@@ -0,0 +1,267 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// RestAWSAccountValidated rest a w s account validated
+//
+// swagger:model rest.AWSAccountValidated
+type RestAWSAccountValidated struct {
+
+ // account id
+ // Required: true
+ AccountID *string `json:"account_id"`
+
+ // conditions
+ Conditions []*DomainCloudCondition `json:"conditions"`
+
+ // Permissions status for each product returned via API.
+ // Required: true
+ IamServicePermissionsStatus []*DomainProductPermission `json:"iam_service_permissions_status"`
+
+ // Permissions status for each product returned via API.
+ // Required: true
+ Status []*DomainProductFeaturesStatus `json:"status"`
+}
+
+// Validate validates this rest a w s account validated
+func (m *RestAWSAccountValidated) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAccountID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateConditions(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateIamServicePermissionsStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestAWSAccountValidated) validateAccountID(formats strfmt.Registry) error {
+
+ if err := validate.Required("account_id", "body", m.AccountID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountValidated) validateConditions(formats strfmt.Registry) error {
+ if swag.IsZero(m.Conditions) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Conditions); i++ {
+ if swag.IsZero(m.Conditions[i]) { // not required
+ continue
+ }
+
+ if m.Conditions[i] != nil {
+ if err := m.Conditions[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("conditions" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("conditions" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountValidated) validateIamServicePermissionsStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("iam_service_permissions_status", "body", m.IamServicePermissionsStatus); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.IamServicePermissionsStatus); i++ {
+ if swag.IsZero(m.IamServicePermissionsStatus[i]) { // not required
+ continue
+ }
+
+ if m.IamServicePermissionsStatus[i] != nil {
+ if err := m.IamServicePermissionsStatus[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("iam_service_permissions_status" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("iam_service_permissions_status" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountValidated) validateStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("status", "body", m.Status); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Status); i++ {
+ if swag.IsZero(m.Status[i]) { // not required
+ continue
+ }
+
+ if m.Status[i] != nil {
+ if err := m.Status[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this rest a w s account validated based on the context it is used
+func (m *RestAWSAccountValidated) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateConditions(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateIamServicePermissionsStatus(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateStatus(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestAWSAccountValidated) contextValidateConditions(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Conditions); i++ {
+
+ if m.Conditions[i] != nil {
+
+ if swag.IsZero(m.Conditions[i]) { // not required
+ return nil
+ }
+
+ if err := m.Conditions[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("conditions" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("conditions" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountValidated) contextValidateIamServicePermissionsStatus(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.IamServicePermissionsStatus); i++ {
+
+ if m.IamServicePermissionsStatus[i] != nil {
+
+ if swag.IsZero(m.IamServicePermissionsStatus[i]) { // not required
+ return nil
+ }
+
+ if err := m.IamServicePermissionsStatus[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("iam_service_permissions_status" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("iam_service_permissions_status" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountValidated) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Status); i++ {
+
+ if m.Status[i] != nil {
+
+ if swag.IsZero(m.Status[i]) { // not required
+ return nil
+ }
+
+ if err := m.Status[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *RestAWSAccountValidated) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *RestAWSAccountValidated) UnmarshalBinary(b []byte) error {
+ var res RestAWSAccountValidated
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/rest_a_w_s_account_validation_response.go b/falcon/models/rest_a_w_s_account_validation_response.go
new file mode 100644
index 00000000..cb21503d
--- /dev/null
+++ b/falcon/models/rest_a_w_s_account_validation_response.go
@@ -0,0 +1,235 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// RestAWSAccountValidationResponse rest a w s account validation response
+//
+// swagger:model rest.AWSAccountValidationResponse
+type RestAWSAccountValidationResponse struct {
+
+ // errors
+ Errors []*MsaAPIError `json:"errors"`
+
+ // meta
+ // Required: true
+ Meta *MsaMetaInfo `json:"meta"`
+
+ // resources
+ // Required: true
+ Resources []*RestAWSAccountValidated `json:"resources"`
+}
+
+// Validate validates this rest a w s account validation response
+func (m *RestAWSAccountValidationResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateErrors(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateResources(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestAWSAccountValidationResponse) validateErrors(formats strfmt.Registry) error {
+ if swag.IsZero(m.Errors) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Errors); i++ {
+ if swag.IsZero(m.Errors[i]) { // not required
+ continue
+ }
+
+ if m.Errors[i] != nil {
+ if err := m.Errors[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountValidationResponse) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountValidationResponse) validateResources(formats strfmt.Registry) error {
+
+ if err := validate.Required("resources", "body", m.Resources); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Resources); i++ {
+ if swag.IsZero(m.Resources[i]) { // not required
+ continue
+ }
+
+ if m.Resources[i] != nil {
+ if err := m.Resources[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this rest a w s account validation response based on the context it is used
+func (m *RestAWSAccountValidationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateErrors(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateResources(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestAWSAccountValidationResponse) contextValidateErrors(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Errors); i++ {
+
+ if m.Errors[i] != nil {
+
+ if swag.IsZero(m.Errors[i]) { // not required
+ return nil
+ }
+
+ if err := m.Errors[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("errors" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("errors" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountValidationResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *RestAWSAccountValidationResponse) contextValidateResources(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Resources); i++ {
+
+ if m.Resources[i] != nil {
+
+ if swag.IsZero(m.Resources[i]) { // not required
+ return nil
+ }
+
+ if err := m.Resources[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("resources" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("resources" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *RestAWSAccountValidationResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *RestAWSAccountValidationResponse) UnmarshalBinary(b []byte) error {
+ var res RestAWSAccountValidationResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/rest_account_product_upsert_request_ext_v1.go b/falcon/models/rest_account_product_upsert_request_ext_v1.go
new file mode 100644
index 00000000..5caff814
--- /dev/null
+++ b/falcon/models/rest_account_product_upsert_request_ext_v1.go
@@ -0,0 +1,88 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// RestAccountProductUpsertRequestExtV1 rest account product upsert request ext v1
+//
+// swagger:model rest.AccountProductUpsertRequestExtV1
+type RestAccountProductUpsertRequestExtV1 struct {
+
+ // features
+ // Required: true
+ Features []string `json:"features"`
+
+ // product
+ // Required: true
+ Product *string `json:"product"`
+}
+
+// Validate validates this rest account product upsert request ext v1
+func (m *RestAccountProductUpsertRequestExtV1) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFeatures(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateProduct(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestAccountProductUpsertRequestExtV1) validateFeatures(formats strfmt.Registry) error {
+
+ if err := validate.Required("features", "body", m.Features); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *RestAccountProductUpsertRequestExtV1) validateProduct(formats strfmt.Registry) error {
+
+ if err := validate.Required("product", "body", m.Product); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this rest account product upsert request ext v1 based on context it is used
+func (m *RestAccountProductUpsertRequestExtV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *RestAccountProductUpsertRequestExtV1) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *RestAccountProductUpsertRequestExtV1) UnmarshalBinary(b []byte) error {
+ var res RestAccountProductUpsertRequestExtV1
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/rest_cloud_a_w_s_account_create_ext_v1.go b/falcon/models/rest_cloud_a_w_s_account_create_ext_v1.go
new file mode 100644
index 00000000..e11e3c15
--- /dev/null
+++ b/falcon/models/rest_cloud_a_w_s_account_create_ext_v1.go
@@ -0,0 +1,151 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// RestCloudAWSAccountCreateExtV1 rest cloud a w s account create ext v1
+//
+// swagger:model rest.CloudAWSAccountCreateExtV1
+type RestCloudAWSAccountCreateExtV1 struct {
+
+ // account id
+ AccountID string `json:"account_id,omitempty"`
+
+ // account type
+ AccountType string `json:"account_type,omitempty"`
+
+ // csp events
+ CspEvents bool `json:"csp_events,omitempty"`
+
+ // is master
+ IsMaster bool `json:"is_master,omitempty"`
+
+ // organization id
+ // Required: true
+ OrganizationID *string `json:"organization_id"`
+
+ // products
+ Products []*RestAccountProductUpsertRequestExtV1 `json:"products"`
+}
+
+// Validate validates this rest cloud a w s account create ext v1
+func (m *RestCloudAWSAccountCreateExtV1) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateOrganizationID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateProducts(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestCloudAWSAccountCreateExtV1) validateOrganizationID(formats strfmt.Registry) error {
+
+ if err := validate.Required("organization_id", "body", m.OrganizationID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *RestCloudAWSAccountCreateExtV1) validateProducts(formats strfmt.Registry) error {
+ if swag.IsZero(m.Products) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Products); i++ {
+ if swag.IsZero(m.Products[i]) { // not required
+ continue
+ }
+
+ if m.Products[i] != nil {
+ if err := m.Products[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("products" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("products" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this rest cloud a w s account create ext v1 based on the context it is used
+func (m *RestCloudAWSAccountCreateExtV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateProducts(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *RestCloudAWSAccountCreateExtV1) contextValidateProducts(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Products); i++ {
+
+ if m.Products[i] != nil {
+
+ if swag.IsZero(m.Products[i]) { // not required
+ return nil
+ }
+
+ if err := m.Products[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("products" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("products" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *RestCloudAWSAccountCreateExtV1) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *RestCloudAWSAccountCreateExtV1) UnmarshalBinary(b []byte) error {
+ var res RestCloudAWSAccountCreateExtV1
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/sadomain_typosquatting_component.go b/falcon/models/sadomain_typosquatting_component.go
index 1c08151d..08f9b05d 100644
--- a/falcon/models/sadomain_typosquatting_component.go
+++ b/falcon/models/sadomain_typosquatting_component.go
@@ -35,6 +35,9 @@ type SadomainTyposquattingComponent struct {
// Required: true
PunycodeFormat *string `json:"punycode_format"`
+ // Snapshot for the Subdomain of the infrastructure component. Only available for subdomain result types.
+ Subdomain *SadomainTyposquattingSubdomain `json:"subdomain,omitempty"`
+
// submit for blocking info
SubmitForBlockingInfo *SadomainSubmissionInformation `json:"submit_for_blocking_info,omitempty"`
@@ -66,6 +69,10 @@ func (m *SadomainTyposquattingComponent) Validate(formats strfmt.Registry) error
res = append(res, err)
}
+ if err := m.validateSubdomain(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateSubmitForBlockingInfo(formats); err != nil {
res = append(res, err)
}
@@ -142,6 +149,25 @@ func (m *SadomainTyposquattingComponent) validatePunycodeFormat(formats strfmt.R
return nil
}
+func (m *SadomainTyposquattingComponent) validateSubdomain(formats strfmt.Registry) error {
+ if swag.IsZero(m.Subdomain) { // not required
+ return nil
+ }
+
+ if m.Subdomain != nil {
+ if err := m.Subdomain.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("subdomain")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("subdomain")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *SadomainTyposquattingComponent) validateSubmitForBlockingInfo(formats strfmt.Registry) error {
if swag.IsZero(m.SubmitForBlockingInfo) { // not required
return nil
@@ -201,6 +227,10 @@ func (m *SadomainTyposquattingComponent) ContextValidate(ctx context.Context, fo
res = append(res, err)
}
+ if err := m.contextValidateSubdomain(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.contextValidateSubmitForBlockingInfo(ctx, formats); err != nil {
res = append(res, err)
}
@@ -249,6 +279,27 @@ func (m *SadomainTyposquattingComponent) contextValidateParentDomain(ctx context
return nil
}
+func (m *SadomainTyposquattingComponent) contextValidateSubdomain(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Subdomain != nil {
+
+ if swag.IsZero(m.Subdomain) { // not required
+ return nil
+ }
+
+ if err := m.Subdomain.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("subdomain")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("subdomain")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *SadomainTyposquattingComponent) contextValidateSubmitForBlockingInfo(ctx context.Context, formats strfmt.Registry) error {
if m.SubmitForBlockingInfo != nil {
diff --git a/falcon/models/sadomain_typosquatting_subdomain.go b/falcon/models/sadomain_typosquatting_subdomain.go
new file mode 100644
index 00000000..671ad6a3
--- /dev/null
+++ b/falcon/models/sadomain_typosquatting_subdomain.go
@@ -0,0 +1,162 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// SadomainTyposquattingSubdomain sadomain typosquatting subdomain
+//
+// swagger:model sadomain.TyposquattingSubdomain
+type SadomainTyposquattingSubdomain struct {
+
+ // first seen
+ // Format: date-time
+ FirstSeen strfmt.DateTime `json:"first_seen,omitempty"`
+
+ // id
+ // Required: true
+ ID *string `json:"id"`
+
+ // is registered
+ // Required: true
+ IsRegistered *bool `json:"is_registered"`
+
+ // last seen
+ // Format: date-time
+ LastSeen strfmt.DateTime `json:"last_seen,omitempty"`
+
+ // punycode format
+ // Required: true
+ PunycodeFormat *string `json:"punycode_format"`
+
+ // unicode format
+ // Required: true
+ UnicodeFormat *string `json:"unicode_format"`
+}
+
+// Validate validates this sadomain typosquatting subdomain
+func (m *SadomainTyposquattingSubdomain) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFirstSeen(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateIsRegistered(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateLastSeen(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePunycodeFormat(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUnicodeFormat(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *SadomainTyposquattingSubdomain) validateFirstSeen(formats strfmt.Registry) error {
+ if swag.IsZero(m.FirstSeen) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("first_seen", "body", "date-time", m.FirstSeen.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *SadomainTyposquattingSubdomain) validateID(formats strfmt.Registry) error {
+
+ if err := validate.Required("id", "body", m.ID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *SadomainTyposquattingSubdomain) validateIsRegistered(formats strfmt.Registry) error {
+
+ if err := validate.Required("is_registered", "body", m.IsRegistered); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *SadomainTyposquattingSubdomain) validateLastSeen(formats strfmt.Registry) error {
+ if swag.IsZero(m.LastSeen) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("last_seen", "body", "date-time", m.LastSeen.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *SadomainTyposquattingSubdomain) validatePunycodeFormat(formats strfmt.Registry) error {
+
+ if err := validate.Required("punycode_format", "body", m.PunycodeFormat); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *SadomainTyposquattingSubdomain) validateUnicodeFormat(formats strfmt.Registry) error {
+
+ if err := validate.Required("unicode_format", "body", m.UnicodeFormat); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this sadomain typosquatting subdomain based on context it is used
+func (m *SadomainTyposquattingSubdomain) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *SadomainTyposquattingSubdomain) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *SadomainTyposquattingSubdomain) UnmarshalBinary(b []byte) error {
+ var res SadomainTyposquattingSubdomain
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/source_endpoint.go b/falcon/models/source_endpoint.go
new file mode 100644
index 00000000..7e238180
--- /dev/null
+++ b/falcon/models/source_endpoint.go
@@ -0,0 +1,160 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// SourceEndpoint source endpoint
+//
+// swagger:model .sourceEndpoint
+type SourceEndpoint struct {
+
+ // entity Id
+ EntityID *TypesPolicyRulesCondition `json:"entityId,omitempty"`
+
+ // group membership
+ GroupMembership *TypesPolicyRulesCondition `json:"groupMembership,omitempty"`
+}
+
+// Validate validates this source endpoint
+func (m *SourceEndpoint) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateEntityID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateGroupMembership(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *SourceEndpoint) validateEntityID(formats strfmt.Registry) error {
+ if swag.IsZero(m.EntityID) { // not required
+ return nil
+ }
+
+ if m.EntityID != nil {
+ if err := m.EntityID.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("entityId")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("entityId")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *SourceEndpoint) validateGroupMembership(formats strfmt.Registry) error {
+ if swag.IsZero(m.GroupMembership) { // not required
+ return nil
+ }
+
+ if m.GroupMembership != nil {
+ if err := m.GroupMembership.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("groupMembership")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("groupMembership")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this source endpoint based on the context it is used
+func (m *SourceEndpoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateEntityID(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateGroupMembership(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *SourceEndpoint) contextValidateEntityID(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.EntityID != nil {
+
+ if swag.IsZero(m.EntityID) { // not required
+ return nil
+ }
+
+ if err := m.EntityID.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("entityId")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("entityId")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *SourceEndpoint) contextValidateGroupMembership(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.GroupMembership != nil {
+
+ if swag.IsZero(m.GroupMembership) { // not required
+ return nil
+ }
+
+ if err := m.GroupMembership.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("groupMembership")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("groupMembership")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *SourceEndpoint) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *SourceEndpoint) UnmarshalBinary(b []byte) error {
+ var res SourceEndpoint
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/source_user.go b/falcon/models/source_user.go
new file mode 100644
index 00000000..b7353e38
--- /dev/null
+++ b/falcon/models/source_user.go
@@ -0,0 +1,160 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// SourceUser source user
+//
+// swagger:model .sourceUser
+type SourceUser struct {
+
+ // entity Id
+ EntityID *TypesPolicyRulesCondition `json:"entityId,omitempty"`
+
+ // group membership
+ GroupMembership *TypesPolicyRulesCondition `json:"groupMembership,omitempty"`
+}
+
+// Validate validates this source user
+func (m *SourceUser) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateEntityID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateGroupMembership(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *SourceUser) validateEntityID(formats strfmt.Registry) error {
+ if swag.IsZero(m.EntityID) { // not required
+ return nil
+ }
+
+ if m.EntityID != nil {
+ if err := m.EntityID.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("entityId")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("entityId")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *SourceUser) validateGroupMembership(formats strfmt.Registry) error {
+ if swag.IsZero(m.GroupMembership) { // not required
+ return nil
+ }
+
+ if m.GroupMembership != nil {
+ if err := m.GroupMembership.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("groupMembership")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("groupMembership")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this source user based on the context it is used
+func (m *SourceUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateEntityID(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateGroupMembership(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *SourceUser) contextValidateEntityID(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.EntityID != nil {
+
+ if swag.IsZero(m.EntityID) { // not required
+ return nil
+ }
+
+ if err := m.EntityID.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("entityId")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("entityId")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *SourceUser) contextValidateGroupMembership(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.GroupMembership != nil {
+
+ if swag.IsZero(m.GroupMembership) { // not required
+ return nil
+ }
+
+ if err := m.GroupMembership.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("groupMembership")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("groupMembership")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *SourceUser) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *SourceUser) UnmarshalBinary(b []byte) error {
+ var res SourceUser
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/types_action_run.go b/falcon/models/types_action_run.go
index 21497c2b..9e85c7ce 100644
--- a/falcon/models/types_action_run.go
+++ b/falcon/models/types_action_run.go
@@ -34,15 +34,9 @@ type TypesActionRun struct {
// metadata
Metadata *TypesActionRunMetadata `json:"metadata,omitempty"`
- // organization id
- OrganizationID int64 `json:"organization_id,omitempty"`
-
// progress
Progress int32 `json:"progress,omitempty"`
- // project id
- ProjectID int64 `json:"project_id,omitempty"`
-
// scheduled
Scheduled bool `json:"scheduled,omitempty"`
diff --git a/falcon/models/types_executor_node.go b/falcon/models/types_executor_node.go
index 3c525468..082d2e91 100644
--- a/falcon/models/types_executor_node.go
+++ b/falcon/models/types_executor_node.go
@@ -36,8 +36,8 @@ type TypesExecutorNode struct {
// name
Name string `json:"name,omitempty"`
- // organization id
- OrganizationID int64 `json:"organization_id,omitempty"`
+ // node type
+ NodeType string `json:"node_type,omitempty"`
// password
Password string `json:"password,omitempty"`
@@ -45,9 +45,6 @@ type TypesExecutorNode struct {
// pod settings
PodSettings *TypesK8SPodSettings `json:"pod_settings,omitempty"`
- // project id
- ProjectID int64 `json:"project_id,omitempty"`
-
// proxy address
ProxyAddress string `json:"proxy_address,omitempty"`
diff --git a/falcon/models/types_generic_user_facing_request.go b/falcon/models/types_generic_user_facing_request.go
index 8a2a79d7..3364d3c2 100644
--- a/falcon/models/types_generic_user_facing_request.go
+++ b/falcon/models/types_generic_user_facing_request.go
@@ -24,12 +24,6 @@ type TypesGenericUserFacingRequest struct {
// optional time
OptionalTime int64 `json:"optionalTime,omitempty"`
- // organization id
- OrganizationID int64 `json:"organization_id,omitempty"`
-
- // project id
- ProjectID int64 `json:"project_id,omitempty"`
-
// revision Id
RevisionID int64 `json:"revisionId,omitempty"`
}
diff --git a/falcon/models/types_get_services_related_entity.go b/falcon/models/types_get_services_related_entity.go
index 007d737a..0abf7240 100644
--- a/falcon/models/types_get_services_related_entity.go
+++ b/falcon/models/types_get_services_related_entity.go
@@ -21,14 +21,14 @@ type TypesGetServicesRelatedEntity struct {
// aggregation type
AggregationType int32 `json:"aggregation_type,omitempty"`
+ // entity type
+ EntityType int32 `json:"entity_type,omitempty"`
+
// filters
Filters *TypesGetServicesRelatedEntityFilters `json:"filters,omitempty"`
// group by fields
GroupByFields *TypesGetServicesRelatedEntityGroupByFields `json:"groupByFields,omitempty"`
-
- // type
- Type int32 `json:"type,omitempty"`
}
// Validate validates this types get services related entity
diff --git a/falcon/models/types_integration.go b/falcon/models/types_integration.go
index 327255ec..4798e6bf 100644
--- a/falcon/models/types_integration.go
+++ b/falcon/models/types_integration.go
@@ -27,18 +27,15 @@ type TypesIntegration struct {
// id
ID int64 `json:"id,omitempty"`
+ // integration type
+ IntegrationType *TypesIntegrationType `json:"integration_type,omitempty"`
+
// name
Name string `json:"name,omitempty"`
// node
Node *TypesExecutorNode `json:"node,omitempty"`
- // organization id
- OrganizationID int64 `json:"organization_id,omitempty"`
-
- // project id
- ProjectID int64 `json:"project_id,omitempty"`
-
// type
Type *TypesIntegrationType `json:"type,omitempty"`
@@ -50,6 +47,10 @@ type TypesIntegration struct {
func (m *TypesIntegration) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateIntegrationType(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateNode(formats); err != nil {
res = append(res, err)
}
@@ -64,6 +65,25 @@ func (m *TypesIntegration) Validate(formats strfmt.Registry) error {
return nil
}
+func (m *TypesIntegration) validateIntegrationType(formats strfmt.Registry) error {
+ if swag.IsZero(m.IntegrationType) { // not required
+ return nil
+ }
+
+ if m.IntegrationType != nil {
+ if err := m.IntegrationType.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("integration_type")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("integration_type")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *TypesIntegration) validateNode(formats strfmt.Registry) error {
if swag.IsZero(m.Node) { // not required
return nil
@@ -106,6 +126,10 @@ func (m *TypesIntegration) validateType(formats strfmt.Registry) error {
func (m *TypesIntegration) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
+ if err := m.contextValidateIntegrationType(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.contextValidateNode(ctx, formats); err != nil {
res = append(res, err)
}
@@ -120,6 +144,27 @@ func (m *TypesIntegration) ContextValidate(ctx context.Context, formats strfmt.R
return nil
}
+func (m *TypesIntegration) contextValidateIntegrationType(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.IntegrationType != nil {
+
+ if swag.IsZero(m.IntegrationType) { // not required
+ return nil
+ }
+
+ if err := m.IntegrationType.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("integration_type")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("integration_type")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *TypesIntegration) contextValidateNode(ctx context.Context, formats strfmt.Registry) error {
if m.Node != nil {
diff --git a/falcon/models/types_integration_task.go b/falcon/models/types_integration_task.go
index b27a2f62..cad9fc72 100644
--- a/falcon/models/types_integration_task.go
+++ b/falcon/models/types_integration_task.go
@@ -39,6 +39,9 @@ type TypesIntegrationTask struct {
// integration
Integration *TypesIntegration `json:"integration,omitempty"`
+ // integration task type
+ IntegrationTaskType *TypesIntegrationTaskType `json:"integration_task_type,omitempty"`
+
// latest task run
LatestTaskRun *TypesActionRun `json:"latest_task_run,omitempty"`
@@ -48,15 +51,9 @@ type TypesIntegrationTask struct {
// next run
NextRun *TypesTimestamp `json:"next_run,omitempty"`
- // organization id
- OrganizationID int64 `json:"organization_id,omitempty"`
-
// progress
Progress int32 `json:"progress,omitempty"`
- // project id
- ProjectID int64 `json:"project_id,omitempty"`
-
// schedule
Schedule *TypesComposedSchedule `json:"schedule,omitempty"`
@@ -78,6 +75,10 @@ func (m *TypesIntegrationTask) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
+ if err := m.validateIntegrationTaskType(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateLatestTaskRun(formats); err != nil {
res = append(res, err)
}
@@ -119,6 +120,25 @@ func (m *TypesIntegrationTask) validateIntegration(formats strfmt.Registry) erro
return nil
}
+func (m *TypesIntegrationTask) validateIntegrationTaskType(formats strfmt.Registry) error {
+ if swag.IsZero(m.IntegrationTaskType) { // not required
+ return nil
+ }
+
+ if m.IntegrationTaskType != nil {
+ if err := m.IntegrationTaskType.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("integration_task_type")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("integration_task_type")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *TypesIntegrationTask) validateLatestTaskRun(formats strfmt.Registry) error {
if swag.IsZero(m.LatestTaskRun) { // not required
return nil
@@ -203,6 +223,10 @@ func (m *TypesIntegrationTask) ContextValidate(ctx context.Context, formats strf
res = append(res, err)
}
+ if err := m.contextValidateIntegrationTaskType(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.contextValidateLatestTaskRun(ctx, formats); err != nil {
res = append(res, err)
}
@@ -246,6 +270,27 @@ func (m *TypesIntegrationTask) contextValidateIntegration(ctx context.Context, f
return nil
}
+func (m *TypesIntegrationTask) contextValidateIntegrationTaskType(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.IntegrationTaskType != nil {
+
+ if swag.IsZero(m.IntegrationTaskType) { // not required
+ return nil
+ }
+
+ if err := m.IntegrationTaskType.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("integration_task_type")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("integration_task_type")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
func (m *TypesIntegrationTask) contextValidateLatestTaskRun(ctx context.Context, formats strfmt.Registry) error {
if m.LatestTaskRun != nil {
diff --git a/falcon/models/types_policy_rules_condition.go b/falcon/models/types_policy_rules_condition.go
new file mode 100644
index 00000000..6ee6edf2
--- /dev/null
+++ b/falcon/models/types_policy_rules_condition.go
@@ -0,0 +1,53 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// TypesPolicyRulesCondition types policy rules condition
+//
+// swagger:model types.policyRulesCondition
+type TypesPolicyRulesCondition struct {
+
+ // exclude
+ Exclude []string `json:"exclude"`
+
+ // include
+ Include []string `json:"include"`
+}
+
+// Validate validates this types policy rules condition
+func (m *TypesPolicyRulesCondition) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this types policy rules condition based on context it is used
+func (m *TypesPolicyRulesCondition) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *TypesPolicyRulesCondition) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *TypesPolicyRulesCondition) UnmarshalBinary(b []byte) error {
+ var res TypesPolicyRulesCondition
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/types_policy_rules_create_body.go b/falcon/models/types_policy_rules_create_body.go
new file mode 100644
index 00000000..9518fc92
--- /dev/null
+++ b/falcon/models/types_policy_rules_create_body.go
@@ -0,0 +1,348 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// TypesPolicyRulesCreateBody types policy rules create body
+//
+// swagger:model types.PolicyRulesCreateBody
+type TypesPolicyRulesCreateBody struct {
+
+ // action
+ // Required: true
+ Action *string `json:"action"`
+
+ // activity
+ Activity *Activity `json:"activity,omitempty"`
+
+ // destination
+ Destination *Destination `json:"destination,omitempty"`
+
+ // enabled
+ // Required: true
+ Enabled *bool `json:"enabled"`
+
+ // name
+ // Required: true
+ Name *string `json:"name"`
+
+ // simulation mode
+ // Required: true
+ SimulationMode *bool `json:"simulationMode"`
+
+ // source endpoint
+ SourceEndpoint *SourceEndpoint `json:"sourceEndpoint,omitempty"`
+
+ // source user
+ SourceUser *SourceUser `json:"sourceUser,omitempty"`
+
+ // trigger
+ // Required: true
+ Trigger *string `json:"trigger"`
+}
+
+// Validate validates this types policy rules create body
+func (m *TypesPolicyRulesCreateBody) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAction(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateActivity(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDestination(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateEnabled(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSimulationMode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSourceEndpoint(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSourceUser(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTrigger(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) validateAction(formats strfmt.Registry) error {
+
+ if err := validate.Required("action", "body", m.Action); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) validateActivity(formats strfmt.Registry) error {
+ if swag.IsZero(m.Activity) { // not required
+ return nil
+ }
+
+ if m.Activity != nil {
+ if err := m.Activity.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("activity")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("activity")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) validateDestination(formats strfmt.Registry) error {
+ if swag.IsZero(m.Destination) { // not required
+ return nil
+ }
+
+ if m.Destination != nil {
+ if err := m.Destination.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("destination")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("destination")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) validateEnabled(formats strfmt.Registry) error {
+
+ if err := validate.Required("enabled", "body", m.Enabled); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) validateName(formats strfmt.Registry) error {
+
+ if err := validate.Required("name", "body", m.Name); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) validateSimulationMode(formats strfmt.Registry) error {
+
+ if err := validate.Required("simulationMode", "body", m.SimulationMode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) validateSourceEndpoint(formats strfmt.Registry) error {
+ if swag.IsZero(m.SourceEndpoint) { // not required
+ return nil
+ }
+
+ if m.SourceEndpoint != nil {
+ if err := m.SourceEndpoint.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("sourceEndpoint")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("sourceEndpoint")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) validateSourceUser(formats strfmt.Registry) error {
+ if swag.IsZero(m.SourceUser) { // not required
+ return nil
+ }
+
+ if m.SourceUser != nil {
+ if err := m.SourceUser.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("sourceUser")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("sourceUser")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) validateTrigger(formats strfmt.Registry) error {
+
+ if err := validate.Required("trigger", "body", m.Trigger); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this types policy rules create body based on the context it is used
+func (m *TypesPolicyRulesCreateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateActivity(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateDestination(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateSourceEndpoint(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateSourceUser(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) contextValidateActivity(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Activity != nil {
+
+ if swag.IsZero(m.Activity) { // not required
+ return nil
+ }
+
+ if err := m.Activity.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("activity")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("activity")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) contextValidateDestination(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Destination != nil {
+
+ if swag.IsZero(m.Destination) { // not required
+ return nil
+ }
+
+ if err := m.Destination.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("destination")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("destination")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) contextValidateSourceEndpoint(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.SourceEndpoint != nil {
+
+ if swag.IsZero(m.SourceEndpoint) { // not required
+ return nil
+ }
+
+ if err := m.SourceEndpoint.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("sourceEndpoint")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("sourceEndpoint")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *TypesPolicyRulesCreateBody) contextValidateSourceUser(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.SourceUser != nil {
+
+ if swag.IsZero(m.SourceUser) { // not required
+ return nil
+ }
+
+ if err := m.SourceUser.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("sourceUser")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("sourceUser")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *TypesPolicyRulesCreateBody) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *TypesPolicyRulesCreateBody) UnmarshalBinary(b []byte) error {
+ var res TypesPolicyRulesCreateBody
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/types_run_integration_task_request.go b/falcon/models/types_run_integration_task_request.go
index 099c2588..d12990ca 100644
--- a/falcon/models/types_run_integration_task_request.go
+++ b/falcon/models/types_run_integration_task_request.go
@@ -26,15 +26,9 @@ type TypesRunIntegrationTaskRequest struct {
// data
Data string `json:"data,omitempty"`
- // organization id
- OrganizationID int64 `json:"organization_id,omitempty"`
-
// override
Override bool `json:"override,omitempty"`
- // project id
- ProjectID int64 `json:"project_id,omitempty"`
-
// scheduled
Scheduled bool `json:"scheduled,omitempty"`
diff --git a/falcon/models/types_unique_tag_entry.go b/falcon/models/types_unique_tag_entry.go
index 2b5e728a..afc33d88 100644
--- a/falcon/models/types_unique_tag_entry.go
+++ b/falcon/models/types_unique_tag_entry.go
@@ -23,8 +23,8 @@ type TypesUniqueTagEntry struct {
// name
Name string `json:"name,omitempty"`
- // type
- Type string `json:"type,omitempty"`
+ // tag type
+ TagType string `json:"tag_type,omitempty"`
// value
Value string `json:"value,omitempty"`
diff --git a/falcon/models/types_update_integration_task_request.go b/falcon/models/types_update_integration_task_request.go
new file mode 100644
index 00000000..36334cb8
--- /dev/null
+++ b/falcon/models/types_update_integration_task_request.go
@@ -0,0 +1,109 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// TypesUpdateIntegrationTaskRequest types update integration task request
+//
+// swagger:model types.UpdateIntegrationTaskRequest
+type TypesUpdateIntegrationTaskRequest struct {
+
+ // integration task
+ IntegrationTask *TypesIntegrationTask `json:"integration_task,omitempty"`
+}
+
+// Validate validates this types update integration task request
+func (m *TypesUpdateIntegrationTaskRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateIntegrationTask(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *TypesUpdateIntegrationTaskRequest) validateIntegrationTask(formats strfmt.Registry) error {
+ if swag.IsZero(m.IntegrationTask) { // not required
+ return nil
+ }
+
+ if m.IntegrationTask != nil {
+ if err := m.IntegrationTask.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("integration_task")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("integration_task")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this types update integration task request based on the context it is used
+func (m *TypesUpdateIntegrationTaskRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateIntegrationTask(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *TypesUpdateIntegrationTaskRequest) contextValidateIntegrationTask(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.IntegrationTask != nil {
+
+ if swag.IsZero(m.IntegrationTask) { // not required
+ return nil
+ }
+
+ if err := m.IntegrationTask.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("integration_task")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("integration_task")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *TypesUpdateIntegrationTaskRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *TypesUpdateIntegrationTaskRequest) UnmarshalBinary(b []byte) error {
+ var res TypesUpdateIntegrationTaskRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/falcon/models/v2_condition.go b/falcon/models/v2_condition.go
index 14aded0c..d675c619 100644
--- a/falcon/models/v2_condition.go
+++ b/falcon/models/v2_condition.go
@@ -19,6 +19,9 @@ import (
// swagger:model v2.Condition
type V2Condition struct {
+ // cel expression
+ CelExpression string `json:"cel_expression,omitempty"`
+
// display
Display []string `json:"display"`
@@ -29,8 +32,7 @@ type V2Condition struct {
ElseIf string `json:"else_if,omitempty"`
// expression
- // Required: true
- Expression *string `json:"expression"`
+ Expression string `json:"expression,omitempty"`
// next
// Required: true
@@ -41,10 +43,6 @@ type V2Condition struct {
func (m *V2Condition) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateExpression(formats); err != nil {
- res = append(res, err)
- }
-
if err := m.validateNext(formats); err != nil {
res = append(res, err)
}
@@ -55,15 +53,6 @@ func (m *V2Condition) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *V2Condition) validateExpression(formats strfmt.Registry) error {
-
- if err := validate.Required("expression", "body", m.Expression); err != nil {
- return err
- }
-
- return nil
-}
-
func (m *V2Condition) validateNext(formats strfmt.Registry) error {
if err := validate.Required("next", "body", m.Next); err != nil {
diff --git a/falcon/models/v2_condition_parameters.go b/falcon/models/v2_condition_groups.go
similarity index 62%
rename from falcon/models/v2_condition_parameters.go
rename to falcon/models/v2_condition_groups.go
index e5a99549..e20dc73c 100644
--- a/falcon/models/v2_condition_parameters.go
+++ b/falcon/models/v2_condition_groups.go
@@ -14,31 +14,39 @@ import (
"github.com/go-openapi/validate"
)
-// V2ConditionParameters v2 condition parameters
+// V2ConditionGroups v2 condition groups
//
-// swagger:model v2.ConditionParameters
-type V2ConditionParameters struct {
+// swagger:model v2.ConditionGroups
+type V2ConditionGroups struct {
// fields
// Required: true
Fields map[string]ParameterConditionFieldParameter `json:"fields"`
+
+ // parameter order
+ // Required: true
+ ParameterOrder []string `json:"parameter_order"`
}
-// Validate validates this v2 condition parameters
-func (m *V2ConditionParameters) Validate(formats strfmt.Registry) error {
+// Validate validates this v2 condition groups
+func (m *V2ConditionGroups) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFields(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateParameterOrder(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *V2ConditionParameters) validateFields(formats strfmt.Registry) error {
+func (m *V2ConditionGroups) validateFields(formats strfmt.Registry) error {
if err := validate.Required("fields", "body", m.Fields); err != nil {
return err
@@ -65,8 +73,17 @@ func (m *V2ConditionParameters) validateFields(formats strfmt.Registry) error {
return nil
}
-// ContextValidate validate this v2 condition parameters based on the context it is used
-func (m *V2ConditionParameters) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+func (m *V2ConditionGroups) validateParameterOrder(formats strfmt.Registry) error {
+
+ if err := validate.Required("parameter_order", "body", m.ParameterOrder); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this v2 condition groups based on the context it is used
+func (m *V2ConditionGroups) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
if err := m.contextValidateFields(ctx, formats); err != nil {
@@ -79,7 +96,7 @@ func (m *V2ConditionParameters) ContextValidate(ctx context.Context, formats str
return nil
}
-func (m *V2ConditionParameters) contextValidateFields(ctx context.Context, formats strfmt.Registry) error {
+func (m *V2ConditionGroups) contextValidateFields(ctx context.Context, formats strfmt.Registry) error {
if err := validate.Required("fields", "body", m.Fields); err != nil {
return err
@@ -99,7 +116,7 @@ func (m *V2ConditionParameters) contextValidateFields(ctx context.Context, forma
}
// MarshalBinary interface implementation
-func (m *V2ConditionParameters) MarshalBinary() ([]byte, error) {
+func (m *V2ConditionGroups) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -107,8 +124,8 @@ func (m *V2ConditionParameters) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *V2ConditionParameters) UnmarshalBinary(b []byte) error {
- var res V2ConditionParameters
+func (m *V2ConditionGroups) UnmarshalBinary(b []byte) error {
+ var res V2ConditionGroups
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/falcon/models/v2_definition.go b/falcon/models/v2_definition.go
index 9d099ffa..9094b3d7 100644
--- a/falcon/models/v2_definition.go
+++ b/falcon/models/v2_definition.go
@@ -58,6 +58,9 @@ type V2Definition struct {
// provision on install
ProvisionOnInstall bool `json:"provision_on_install,omitempty"`
+ // summary
+ Summary string `json:"summary,omitempty"`
+
// trigger
// Required: true
Trigger *V2Trigger `json:"trigger"`
@@ -68,6 +71,12 @@ type V2Definition struct {
// uniq node seen
// Required: true
UniqNodeSeen map[string]bool `json:"uniqNodeSeen"`
+
+ // use cases
+ UseCases []string `json:"use_cases"`
+
+ // vendors
+ Vendors []string `json:"vendors"`
}
// Validate validates this v2 definition
diff --git a/falcon/models/v2_loop.go b/falcon/models/v2_loop.go
index 67f11794..13a4f08e 100644
--- a/falcon/models/v2_loop.go
+++ b/falcon/models/v2_loop.go
@@ -25,6 +25,9 @@ type V2Loop struct {
// conditions
Conditions map[string]V2Condition `json:"conditions,omitempty"`
+ // display
+ Display string `json:"display,omitempty"`
+
// for
// Required: true
For *V2ForLoop `json:"for"`
diff --git a/falcon/models/v2_model.go b/falcon/models/v2_model.go
index 91d610cb..b9b4f78e 100644
--- a/falcon/models/v2_model.go
+++ b/falcon/models/v2_model.go
@@ -39,6 +39,9 @@ type V2Model struct {
// Required: true
Parent *V2Model `json:"parent"`
+ // summary
+ Summary string `json:"summary,omitempty"`
+
// trigger
// Required: true
Trigger *V2Trigger `json:"trigger"`
diff --git a/falcon/models/v2_parameters.go b/falcon/models/v2_parameters.go
index b8bdd69e..d3d6282f 100644
--- a/falcon/models/v2_parameters.go
+++ b/falcon/models/v2_parameters.go
@@ -7,6 +7,7 @@ package models
import (
"context"
+ "strconv"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
@@ -23,7 +24,7 @@ type V2Parameters struct {
Actions *V2ActivityParameters `json:"actions,omitempty"`
// conditions
- Conditions map[string]V2ConditionParameters `json:"conditions,omitempty"`
+ Conditions map[string][]V2ConditionGroups `json:"conditions,omitempty"`
// Installation instructions for the template.
InstallInstructions string `json:"install_instructions,omitempty"`
@@ -83,15 +84,18 @@ func (m *V2Parameters) validateConditions(formats strfmt.Registry) error {
if err := validate.Required("conditions"+"."+k, "body", m.Conditions[k]); err != nil {
return err
}
- if val, ok := m.Conditions[k]; ok {
- if err := val.Validate(formats); err != nil {
+
+ for i := 0; i < len(m.Conditions[k]); i++ {
+
+ if err := m.Conditions[k][i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("conditions" + "." + k)
+ return ve.ValidateName("conditions" + "." + k + "." + strconv.Itoa(i))
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("conditions" + "." + k)
+ return ce.ValidateName("conditions" + "." + k + "." + strconv.Itoa(i))
}
return err
}
+
}
}
@@ -165,10 +169,21 @@ func (m *V2Parameters) contextValidateConditions(ctx context.Context, formats st
for k := range m.Conditions {
- if val, ok := m.Conditions[k]; ok {
- if err := val.ContextValidate(ctx, formats); err != nil {
+ for i := 0; i < len(m.Conditions[k]); i++ {
+
+ if swag.IsZero(m.Conditions[k][i]) { // not required
+ return nil
+ }
+
+ if err := m.Conditions[k][i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("conditions" + "." + k + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("conditions" + "." + k + "." + strconv.Itoa(i))
+ }
return err
}
+
}
}
diff --git a/specs/transformation.jq b/specs/transformation.jq
index b7720e26..124a5826 100644
--- a/specs/transformation.jq
+++ b/specs/transformation.jq
@@ -76,11 +76,13 @@
# Make message-center use consistent return type
| if .paths."/message-center/aggregates/cases/GET/v1".post.responses."403".schema."$ref" = "#/definitions/msa.ReplyMetaOnly" then
.paths."/message-center/aggregates/cases/GET/v1".post.responses."403".schema = {"$ref": "#/definitions/msaspec.ResponseFields"}
- else . end
+ else . end
# Custom Storage "custom-type" rename
| .definitions."CustomStorageObjectKeys" = .definitions."CustomType_1255839303"
| del(.definitions."CustomType_1255839303")
+ | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".get.responses."200".schema."$ref" = "#/definitions/CustomType_1255839303" then
+ .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageObjectKeys"} else . end
| if .paths."/customobjects/v1/collections/{collection_name}/objects".get.responses."200".schema."$ref" = "#/definitions/CustomType_1255839303" then
.paths."/customobjects/v1/collections/{collection_name}/objects".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageObjectKeys"} else . end
@@ -94,8 +96,14 @@
.paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}".delete.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end
| if .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}/metadata".get.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then
.paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}/metadata".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end
-
-
+ | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".post.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then
+ .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".post.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end
+ | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".put.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then
+ .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".put.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end
+ | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".delete.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then
+ .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".delete.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end
+ | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata".get.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then
+ .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end
# Better operationId for workflows collection
| .paths."/workflows/entities/execute/v1".post.operationId = "Execute"
@@ -196,6 +204,359 @@
| .paths."/real-time-response/entities/queued-sessions/command/v1".delete.responses."200" = .paths."/real-time-response/entities/put-files/v1".delete.responses."200"
# last_seen and first_seen should be a string
- | .definitions."models.Container".properties.first_seen.type = "string"
- | .definitions."models.Container".properties.last_seen.type = "string"
+| .definitions."models.Container".properties.first_seen.type = "string"
+| .definitions."models.Container".properties.last_seen.type = "string"
+
+# add intel.CVSSv2 model definition
+| .definitions."intel.CVSSv2" = {
+ "properties": {
+ "access_complexity": {"type": "string"},
+ "access_vector": {"type": "string"},
+ "authentication": {"type": "string"},
+ "availability_impact": {"type": "string"},
+ "score": {"type": "number", "format": "double"},
+ "confidentiality_impact": {"type": "string"},
+ "integrity_impact": {"type": "string"},
+ "severity": {"type": "string"}
+ }
+}
+
+# add intel.CVSSv3 model definition
+| .definitions."intel.CVSSv3" = {
+ "properties": {
+ "attack_complexity": {"type": "string"},
+ "attack_vector": {"type": "string"},
+ "availability_impact": {"type": "string"},
+ "score": {"type": "number", "format": "double"},
+ "confidentiality_impact": {"type": "string"},
+ "integrity_impact": {"type": "string"},
+ "privileges_required": {"type": "string"},
+ "scope": {"type": "string"},
+ "severity": {"type": "string"},
+ "user_interaction": {"type": "string"}
+ }
+}
+
+# update Intel.GetVulnerabilities to use intel.CVSS models
+| .definitions."domain.Vulnerability".properties."cvss_v2_base" = {
+ "description": "Vulnerability severity score, according to Common Vulnerability Scoring System V2",
+ "$ref": "#/definitions/intel.CVSSv2"
+}
+| .definitions."domain.Vulnerability".properties."cvss_v3_base" = {
+ "description": "Vulnerability severity score, according to Common Vulnerability Scoring System V3",
+ "$ref": "#/definitions/intel.CVSSv3"
+}
+
+# fix Alerts service collection
+| .definitions."detectsapi.PostEntitiesAlertsV1Response" = .definitions."detectsapi.PostEntitiesAlertsV1ResponseSwagger"
+| del(.definitions."detectsapi.PostEntitiesAlertsV1ResponseSwagger")
+| .definitions."detectsapi.PostEntitiesAlertsV1Response".properties.resources.items = {"$ref": "#/definitions/detects.Alert"}
+| .paths."/alerts/entities/alerts/v1".post.responses."200".schema = {"$ref": "#/definitions/detectsapi.PostEntitiesAlertsV1Response"}
+| .paths."/alerts/entities/alerts/v1".post.responses."400".schema = {"$ref": "#/definitions/detectsapi.PostEntitiesAlertsV1Response"}
+| .paths."/alerts/entities/alerts/v1".post.responses."500".schema = {"$ref": "#/definitions/detectsapi.PostEntitiesAlertsV1Response"}
+| .definitions."detectsapi.PostEntitiesAlertsV2Response" = .definitions."detectsapi.PostEntitiesAlertsV2ResponseSwagger"
+| del(.definitions."detectsapi.PostEntitiesAlertsV2ResponseSwagger")
+| .definitions."detectsapi.PostEntitiesAlertsV2Response".properties.resources.items = {"$ref": "#/definitions/detects.Alert"}
+| .paths."/alerts/entities/alerts/v2".post.responses."200".schema = {"$ref": "#/definitions/detectsapi.PostEntitiesAlertsV2Response"}
+| .paths."/alerts/entities/alerts/v2".post.responses."400".schema = {"$ref": "#/definitions/detectsapi.PostEntitiesAlertsV2Response"}
+| .paths."/alerts/entities/alerts/v2".post.responses."500".schema = {"$ref": "#/definitions/detectsapi.PostEntitiesAlertsV2Response"}
+| .definitions."detects.Alert" = .definitions."detects.ExternalAlert"
+| del(.definitions."detects.ExternalAlert")
+| .definitions."detects.Alert".additionalProperties = true
+| .definitions."detects.Alert".properties += {
+ "alleged_filetype": {"type": "string"},
+ "cmdline": {"type": "string"},
+ "control_graph_id": {"type": "string"},
+ "filename": {"type": "string"},
+ "filepath": {"type": "string"},
+ "ioc_description": {"type": "string"},
+ "ioc_source": {"type": "string"},
+ "ioc_type": {"type": "string"},
+ "ioc_value": {"type": "string"},
+ "md5": {"type": "string"},
+ "cloud_indicator": {"type": "string"},
+ "context_timestamp": {"type": "string", "format": "date-time"},
+ "control_graph_id": {"type": "string"},
+ "crawl_edge_ids": {"type": "object", "properties": {"Sensor": {"type": "array", "items": {"type": "string"}}}},
+ "crawl_vertex_ids": {"type": "object", "properties": {"Sensor": {"type": "array", "items": {"type": "string"}}}},
+ "falcon_host_link": {"type": "string"},
+ "filename": {"type": "string"},
+ "filepath": {"type": "string"},
+ "grandparent_details": {
+ "type": "object",
+ "properties": {
+ "filename": { "type": "string" },
+ "cmdline": { "type": "string" },
+ "filepath": { "type": "string" },
+ "local_process_id": { "type": "string" },
+ "md5": { "type": "string" },
+ "process_graph_id": { "type": "string" },
+ "process_id": { "type": "string" },
+ "sha256": { "type": "string" },
+ "timestamp": { "type": "string", "format": "date-time" },
+ "user_graph_id": { "type": "string" },
+ "user_id": { "type": "string" },
+ "user_name": { "type": "string" }
+ }
+ },
+ "has_script_or_module_ioce": {"type": "boolean"},
+ "indicator_id": {"type": "string"},
+ "ioc_context": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "ioc_description": { "type": "string" },
+ "ioc_source": { "type": "string" },
+ "ioc_type": { "type": "string" },
+ "ioc_value": { "type": "string" },
+ "md5": { "type": "string" },
+ "sha256": { "type": "string" },
+ "type": { "type": "string" }
+ }
+ }
+ },
+ "ioc_values": {
+ "type": "array",
+ "items": { "type": "string" }
+ },
+ "is_synthetic_quarantine_disposition": {"type": "boolean"},
+ "local_process_id": {"type": "string"},
+ "logon_domain": {"type": "string"},
+ "parent_details": {
+ "type": "object",
+ "properties": {
+ "cmdline": { "type": "string" },
+ "filename": { "type": "string" },
+ "filepath": { "type": "string" },
+ "local_process_id": { "type": "string" },
+ "md5": { "type": "string" },
+ "process_graph_id": { "type": "string" },
+ "process_id": { "type": "string" },
+ "sha256": { "type": "string" },
+ "timestamp": { "type": "string" },
+ "user_graph_id": { "type": "string" },
+ "user_id": { "type": "string" },
+ "user_name": { "type": "string" }
+ }
+ },
+ "pattern_disposition": { "type": "integer", "x-nullable": true},
+ "pattern_disposition_description": { "type": "string" },
+ "pattern_disposition_details": {
+ "type": "object",
+ "properties": {
+ "blocking_unsupported_or_disabled": { "type": "boolean", "x-nullable": true },
+ "bootup_safeguard_enabled": { "type": "boolean", "x-nullable": true },
+ "containment_file_system": { "type": "boolean", "x-nullable": true },
+ "critical_process_disabled": { "type": "boolean", "x-nullable": true },
+ "detect": { "type": "boolean", "x-nullable": true },
+ "fs_operation_blocked": { "type": "boolean", "x-nullable": true },
+ "handle_operation_downgraded": { "type": "boolean", "x-nullable": true },
+ "inddet_mask": { "type": "boolean", "x-nullable": true },
+ "indicator": { "type": "boolean", "x-nullable": true },
+ "kill_action_failed": { "type": "boolean", "x-nullable": true },
+ "kill_parent": { "type": "boolean", "x-nullable": true },
+ "kill_process": { "type": "boolean", "x-nullable": true },
+ "kill_subprocess": { "type": "boolean", "x-nullable": true },
+ "mfa_required": { "type": "boolean", "x-nullable": true },
+ "operation_blocked": { "type": "boolean", "x-nullable": true },
+ "policy_disabled": { "type": "boolean", "x-nullable": true },
+ "prevention_provisioning_enabled": { "type": "boolean", "x-nullable": true },
+ "process_blocked": { "type": "boolean", "x-nullable": true },
+ "quarantine_file": { "type": "boolean", "x-nullable": true },
+ "quarantine_machine": { "type": "boolean", "x-nullable": true },
+ "registry_operation_blocked": { "type": "boolean", "x-nullable": true },
+ "response_action_already_applied": { "type": "boolean", "x-nullable": true },
+ "response_action_failed": { "type": "boolean", "x-nullable": true },
+ "response_action_triggered": { "type": "boolean", "x-nullable": true },
+ "rooting": { "type": "boolean", "x-nullable": true },
+ "sensor_only": { "type": "boolean", "x-nullable": true },
+ "suspend_parent": { "type": "boolean", "x-nullable": true },
+ "suspend_process": { "type": "boolean", "x-nullable": true }
+ },
+ "x-nullable": true
+ },
+ "parent_process_id": { "type": "string" },
+ "poly_id": { "type": "string" },
+ "process_end_time": { "type": "string"},
+ "process_id": { "type": "string" },
+ "process_start_time": { "type": "string"},
+ "quarantined_files": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "filename": { "type": "string" },
+ "id": { "type": "string" },
+ "sha256": { "type": "string" },
+ "state": { "type": "string" }
+ }
+ }
+ },
+ "sha1": { "type": "string" },
+ "sha256": { "type": "string" },
+ "tree_id": { "type": "string" },
+ "tree_root": { "type": "string" },
+ "triggering_process_graph_id": { "type": "string" },
+ "user_id": { "type": "string" },
+ "user_name": { "type": "string" },
+ "device": {
+ "type": "object",
+ "properties": {
+ "agent_load_flags": {
+ "type": "string"
+ },
+ "agent_local_time": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "agent_version": {
+ "type": "string"
+ },
+ "bios_manufacturer": {
+ "description": "The manufacturer of the device's BIOS",
+ "type": "string"
+ },
+ "bios_version": {
+ "description": "Version of the device's BIOS",
+ "type": "string"
+ },
+ "cid": {
+ "type": "string"
+ },
+ "config_id_base": {
+ "type": "string"
+ },
+ "config_id_build": {
+ "type": "string"
+ },
+ "config_id_platform": {
+ "type": "string"
+ },
+ "device_id": {
+ "type": "string"
+ },
+ "external_ip": {
+ "type": "string"
+ },
+ "first_seen": {
+ "description": "Timestamp indicating when the device was first seen",
+ "type": "string",
+ "format": "date-time"
+ },
+ "groups": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "hostinfo": {
+ "type": "object",
+ "properties": {
+ "active_directory_dn_display": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "domain": {
+ "type": "string"
+ }
+ }
+ },
+ "hostname": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "last_seen": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "local_ip": {
+ "description": "Local IP address of the device",
+ "type": "string"
+ },
+ "mac_address": {
+ "description": "MAC address of the device",
+ "type": "string"
+ },
+ "machine_domain": {
+ "description": "Domain name of the device's machine",
+ "type": "string"
+ },
+ "major_version": {
+ "type": "string"
+ },
+ "minor_version": {
+ "type": "string"
+ },
+ "modified_timestamp": {
+ "description": "Timestamp indicating when the device information was last modified",
+ "type": "string",
+ "format": "date-time"
+ },
+ "os_version": {
+ "description": "Operating system version running on the device",
+ "type": "string"
+ },
+ "ou": {
+ "description": "Organizational units the device belongs to",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "platform_id": {
+ "description": "ID of the platform the device is running on",
+ "type": "string"
+ },
+ "platform_name": {
+ "description": "Name of the platform the device is running on",
+ "type": "string"
+ },
+ "pod_labels": {"type": "array", "items": {"type": "string"}},
+ "tags": {"type": "array", "items": {"type": "string"}},
+ "product_type": {
+ "description": "Product type identifier for the device",
+ "type": "string"
+ },
+ "product_type_desc": {
+ "description": "Description of the product type for the device",
+ "type": "string"
+ },
+ "site_name": {
+ "description": "Site name where the device is located",
+ "type": "string"
+ },
+ "status": {
+ "description": "Current status of the device (e.g., normal, inactive)",
+ "type": "string"
+ },
+ "system_manufacturer": {
+ "description": "manufacturer of the system hardware",
+ "type": "string"
+ },
+ "system_product_name": {
+ "description": "product name of the system hardware",
+ "type": "string"
+ }
+ }
+ }
+}
+
+# Prevent unnecessary renaming
+| .paths."/snapshots/entities/image-registry-credentials/v1".get.operationId = "GetCredentialsMixin0Mixin60"
+| .paths."/falconx/queries/submissions/v1".get.operationId = "QuerySubmissions"
+| .paths."/scanner/queries/scans/v1".get.operationId = "QuerySubmissionsMixin0"
+| .paths."/quickscanpro/entities/files/v1".post.operationId = "UploadFileMixin0Mixin93"
+| .paths."/oauth2/token".post.responses."400".schema = {"$ref": "#/definitions/msa.ReplyMetaOnly"}
+| .paths."/oauth2/token".post.responses."403".schema = {"$ref": "#/definitions/msa.ReplyMetaOnly"}
+| .paths."/oauth2/token".post.responses."500".schema = {"$ref": "#/definitions/msa.ReplyMetaOnly"}
+| .paths."/oauth2/revoke".post.responses."200".schema = {"$ref": "#/definitions/msa.ReplyMetaOnly"}
+| .paths."/oauth2/revoke".post.responses."400".schema = {"$ref": "#/definitions/msa.ReplyMetaOnly"}
+| .paths."/oauth2/revoke".post.responses."403".schema = {"$ref": "#/definitions/msa.ReplyMetaOnly"}
+| .paths."/oauth2/revoke".post.responses."500".schema = {"$ref": "#/definitions/msa.ReplyMetaOnly"}
+| del(.definitions."apidomain.SavedSearchExecuteRequestV1".properties."parameters")