crimson-falcon 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1655 -208
- data/lib/crimson-falcon/api/alerts_api.rb +307 -19
- data/lib/crimson-falcon/api/{inventories_api.rb → cloud_snapshots_api.rb} +16 -16
- data/lib/crimson-falcon/api/configuration_assessment_api.rb +62 -0
- data/lib/crimson-falcon/api/container_alerts_api.rb +222 -0
- data/lib/crimson-falcon/api/container_detections_api.rb +408 -0
- data/lib/crimson-falcon/api/container_images_api.rb +711 -0
- data/lib/crimson-falcon/api/container_packages_api.rb +365 -0
- data/lib/crimson-falcon/api/container_vulnerabilities_api.rb +693 -0
- data/lib/crimson-falcon/api/cspm_registration_api.rb +719 -49
- data/lib/crimson-falcon/api/custom_ioa_api.rb +2 -2
- data/lib/crimson-falcon/api/custom_storage_api.rb +590 -0
- data/lib/crimson-falcon/api/d4c_registration_api.rb +263 -6
- data/lib/crimson-falcon/api/drift_indicators_api.rb +350 -0
- data/lib/crimson-falcon/api/falcon_complete_dashboard_api.rb +352 -21
- data/lib/crimson-falcon/api/falcon_container_image_api.rb +0 -67
- data/lib/crimson-falcon/api/falconx_sandbox_api.rb +2 -2
- data/lib/crimson-falcon/api/filevantage_api.rb +1730 -45
- data/lib/crimson-falcon/api/foundry_logscale_api.rb +959 -0
- data/lib/crimson-falcon/api/hosts_api.rb +68 -64
- data/lib/crimson-falcon/api/image_assessment_policies_api.rb +738 -0
- data/lib/crimson-falcon/api/installation_tokens_api.rb +12 -12
- data/lib/crimson-falcon/api/installation_tokens_settings_api.rb +3 -3
- data/lib/crimson-falcon/api/intel_api.rb +4 -4
- data/lib/crimson-falcon/api/ioc_api.rb +226 -0
- data/lib/crimson-falcon/api/kubernetes_protection_api.rb +2498 -13
- data/lib/crimson-falcon/api/message_center_api.rb +11 -11
- data/lib/crimson-falcon/api/ods_api.rb +68 -6
- data/lib/crimson-falcon/api/real_time_response_admin_api.rb +149 -0
- data/lib/crimson-falcon/api/real_time_response_audit_api.rb +113 -0
- data/lib/crimson-falcon/api/recon_api.rb +6 -6
- data/lib/crimson-falcon/api/runtime_detections_api.rb +106 -0
- data/lib/crimson-falcon/api/{vulnerabilities_evaluation_logic_api.rb → spotlight_evaluation_logic_api.rb} +13 -13
- data/lib/crimson-falcon/api/{vulnerabilities_api.rb → spotlight_vulnerabilities_api.rb} +25 -25
- data/lib/crimson-falcon/api/unidentified_containers_api.rb +222 -0
- data/lib/crimson-falcon/api/workflows_api.rb +1037 -0
- data/lib/crimson-falcon/configuration.rb +1 -1
- data/lib/crimson-falcon/models/alerts_container_alerts_count_value.rb +266 -0
- data/lib/crimson-falcon/models/alerts_container_alerts_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/api_detects_query_meta.rb +271 -0
- data/lib/crimson-falcon/models/api_detects_query_paging.rb +257 -0
- data/lib/crimson-falcon/models/api_device_count_resp_v1.rb +266 -0
- data/lib/crimson-falcon/models/api_device_count_v1.rb +261 -0
- data/lib/crimson-falcon/models/api_devices_ran_on_resp_v1.rb +266 -0
- data/lib/crimson-falcon/models/{common_entities_response.rb → api_entities_response.rb} +3 -8
- data/lib/crimson-falcon/models/api_execution_results_response.rb +266 -0
- data/lib/crimson-falcon/models/api_exposed_data_record_bot_location_v1.rb +243 -0
- data/lib/crimson-falcon/models/api_exposed_data_record_bot_operating_system_v1.rb +339 -0
- data/lib/crimson-falcon/models/api_exposed_data_record_bot_v1.rb +299 -0
- data/lib/crimson-falcon/models/api_exposed_data_record_financial_v1.rb +3 -0
- data/lib/crimson-falcon/models/api_exposed_data_record_location_v1.rb +6 -0
- data/lib/crimson-falcon/models/api_exposed_data_record_social_v1.rb +9 -0
- data/lib/crimson-falcon/models/api_meta_info.rb +274 -0
- data/lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb +30 -1
- data/lib/crimson-falcon/models/api_object_metadata.rb +290 -0
- data/lib/crimson-falcon/models/api_processes_ran_on_resp_v1.rb +266 -0
- data/lib/crimson-falcon/models/{api_aggregates_response.rb → api_resource_ids_response.rb} +4 -4
- data/lib/crimson-falcon/models/api_response_pagination.rb +249 -0
- data/lib/crimson-falcon/models/apidomain_dynamic_execute_search_request_v1.rb +285 -0
- data/lib/crimson-falcon/models/apidomain_query_response_v1.rb +293 -0
- data/lib/crimson-falcon/models/apidomain_query_response_wrapper_v1.rb +271 -0
- data/lib/crimson-falcon/models/apidomain_repo_view_list_item_v1.rb +343 -0
- data/lib/crimson-falcon/models/apidomain_repo_view_list_item_wrapper_v1.rb +271 -0
- data/lib/crimson-falcon/models/apidomain_repository_v1.rb +295 -0
- data/lib/crimson-falcon/models/apidomain_saved_search_execute_request_v1.rb +326 -0
- data/lib/crimson-falcon/models/apidomain_view_connection_v1.rb +253 -0
- data/lib/crimson-falcon/models/{public_acl.rb → changes_acl.rb} +4 -4
- data/lib/crimson-falcon/models/{public_acl_change.rb → changes_acl_change.rb} +3 -3
- data/lib/crimson-falcon/models/{public_before.rb → changes_after.rb} +3 -3
- data/lib/crimson-falcon/models/{public_attribute.rb → changes_attribute.rb} +3 -3
- data/lib/crimson-falcon/models/{public_basic.rb → changes_basic.rb} +3 -3
- data/lib/crimson-falcon/models/{public_after.rb → changes_before.rb} +3 -3
- data/lib/crimson-falcon/models/{public_change.rb → changes_change.rb} +11 -11
- data/lib/crimson-falcon/models/{public_dacl.rb → changes_dacl.rb} +4 -4
- data/lib/crimson-falcon/models/{public_dacl_entity.rb → changes_dacl_entity.rb} +19 -5
- data/lib/crimson-falcon/models/{public_diff.rb → changes_diff.rb} +4 -4
- data/lib/crimson-falcon/models/{public_diff_hash.rb → changes_diff_hash.rb} +3 -3
- data/lib/crimson-falcon/models/{public_diff_type.rb → changes_diff_type.rb} +4 -4
- data/lib/crimson-falcon/models/changes_get_changes_response.rb +266 -0
- data/lib/crimson-falcon/models/{public_owner.rb → changes_group.rb} +5 -5
- data/lib/crimson-falcon/models/changes_high_volume_query_meta.rb +271 -0
- data/lib/crimson-falcon/models/changes_high_volume_query_paging.rb +267 -0
- data/lib/crimson-falcon/models/changes_high_volume_query_response.rb +266 -0
- data/lib/crimson-falcon/models/{public_host.rb → changes_host.rb} +4 -4
- data/lib/crimson-falcon/models/{public_host_group.rb → changes_host_group.rb} +3 -3
- data/lib/crimson-falcon/models/{public_group.rb → changes_owner.rb} +5 -5
- data/lib/crimson-falcon/models/{public_permissions.rb → changes_permissions.rb} +6 -6
- data/lib/crimson-falcon/models/{public_permissions_lin.rb → changes_permissions_lin.rb} +8 -8
- data/lib/crimson-falcon/models/{public_policy.rb → changes_policy.rb} +4 -4
- data/lib/crimson-falcon/models/{public_policy_rule.rb → changes_policy_rule.rb} +3 -3
- data/lib/crimson-falcon/models/{public_policy_rule_group.rb → changes_policy_rule_group.rb} +4 -4
- data/lib/crimson-falcon/models/{public_prevalence.rb → changes_prevalence.rb} +3 -3
- data/lib/crimson-falcon/models/{public_tag.rb → changes_tag.rb} +3 -3
- data/lib/crimson-falcon/models/client_action_request.rb +242 -0
- data/lib/crimson-falcon/models/client_cost.rb +267 -0
- data/lib/crimson-falcon/models/client_costs.rb +281 -0
- data/lib/crimson-falcon/models/client_data_ingest_response_v1.rb +253 -0
- data/lib/crimson-falcon/models/client_data_ingest_response_wrapper_v1.rb +271 -0
- data/lib/crimson-falcon/models/client_digest_flow.rb +267 -0
- data/lib/crimson-falcon/models/client_extra_in.rb +255 -0
- data/lib/crimson-falcon/models/client_extra_limit.rb +253 -0
- data/lib/crimson-falcon/models/{domain_msa_meta_info.rb → client_extra_rename.rb} +24 -19
- data/lib/crimson-falcon/models/client_extra_sort.rb +276 -0
- data/lib/crimson-falcon/models/client_field.rb +269 -0
- data/lib/crimson-falcon/models/{models_job_meta_data.rb → client_job_status.rb} +70 -69
- data/lib/crimson-falcon/models/client_query_response_schemas_v1.rb +243 -0
- data/lib/crimson-falcon/models/client_query_result_metadata.rb +495 -0
- data/lib/crimson-falcon/models/client_repository.rb +281 -0
- data/lib/crimson-falcon/models/client_spent.rb +281 -0
- data/lib/crimson-falcon/models/client_system_definition_create_response.rb +271 -0
- data/lib/crimson-falcon/models/client_system_definition_de_provision_request.rb +285 -0
- data/lib/crimson-falcon/models/client_system_definition_promote_request.rb +314 -0
- data/lib/crimson-falcon/models/client_system_definition_provision_request.rb +299 -0
- data/lib/crimson-falcon/models/client_top_value.rb +253 -0
- data/lib/crimson-falcon/models/common_count_as_resource.rb +253 -0
- data/lib/crimson-falcon/models/common_count_response.rb +266 -0
- data/lib/crimson-falcon/models/common_generic_entity_response_string.rb +266 -0
- data/lib/crimson-falcon/models/custom_type1255839303.rb +271 -0
- data/lib/crimson-falcon/models/custom_type3191042536.rb +271 -0
- data/lib/crimson-falcon/models/definitions_definition_entities_response.rb +271 -0
- data/lib/crimson-falcon/models/definitions_definition_ext.rb +299 -0
- data/lib/crimson-falcon/models/definitions_definition_external_response.rb +266 -0
- data/lib/crimson-falcon/models/definitions_definition_import_response.rb +266 -0
- data/lib/crimson-falcon/models/definitions_definition_import_response_entity.rb +288 -0
- data/lib/crimson-falcon/models/definitions_flight_control_request.rb +279 -0
- data/lib/crimson-falcon/models/definitions_parameter_property.rb +239 -0
- data/lib/crimson-falcon/models/definitions_playbook_parameter.rb +257 -0
- data/lib/crimson-falcon/models/detections_api_assessment_detections.rb +266 -0
- data/lib/crimson-falcon/models/detections_api_combined_detections.rb +266 -0
- data/lib/crimson-falcon/models/detections_api_detections_by_severity.rb +266 -0
- data/lib/crimson-falcon/models/detections_api_detections_by_type.rb +266 -0
- data/lib/crimson-falcon/models/detections_api_detections_count.rb +266 -0
- data/lib/crimson-falcon/models/detects_alert.rb +110 -6
- data/lib/crimson-falcon/models/detectsapi_aggregate_alert_query_request.rb +491 -0
- data/lib/crimson-falcon/models/detectsapi_aggregates_response.rb +267 -0
- data/lib/crimson-falcon/models/detectsapi_aggregation_result.rb +267 -0
- data/lib/crimson-falcon/models/detectsapi_aggregation_result_item.rb +331 -0
- data/lib/crimson-falcon/models/detectsapi_alert_query_response.rb +267 -0
- data/lib/crimson-falcon/models/detectsapi_patch_entities_alerts_v3_request.rb +252 -0
- data/lib/crimson-falcon/models/detectsapi_post_entities_alerts_v1_request.rb +1 -0
- data/lib/crimson-falcon/models/detectsapi_post_entities_alerts_v1_response.rb +1 -0
- data/lib/crimson-falcon/models/detectsapi_post_entities_alerts_v2_request.rb +242 -0
- data/lib/crimson-falcon/models/detectsapi_post_entities_alerts_v2_response.rb +267 -0
- data/lib/crimson-falcon/models/detectsapi_response_fields.rb +250 -0
- data/lib/crimson-falcon/models/device_device.rb +19 -1
- data/lib/crimson-falcon/models/device_mapped_device_policies.rb +10 -1
- data/lib/crimson-falcon/models/deviceapi_device_swagger.rb +37 -1
- data/lib/crimson-falcon/models/domain_actor_document.rb +270 -4
- data/lib/crimson-falcon/models/domain_actor_entity.rb +257 -0
- data/lib/crimson-falcon/models/domain_actor_news_document.rb +285 -0
- data/lib/crimson-falcon/models/domain_api_finding_rule_v1.rb +19 -1
- data/lib/crimson-falcon/models/domain_api_finding_with_rule_v1.rb +12 -1
- data/lib/crimson-falcon/models/domain_api_host_info_facet_v1.rb +10 -1
- data/lib/crimson-falcon/models/domain_api_rule_details_response_v1.rb +266 -0
- data/lib/crimson-falcon/models/domain_api_rule_details_v1.rb +434 -0
- data/lib/crimson-falcon/models/domain_api_vulnerability_app_v2.rb +17 -1
- data/lib/crimson-falcon/models/domain_api_vulnerability_cve_details_facet_v2.rb +13 -1
- data/lib/crimson-falcon/models/domain_api_vulnerability_extended_app_v2.rb +17 -1
- data/lib/crimson-falcon/models/domain_api_vulnerability_host_facet_v2.rb +1 -11
- data/lib/crimson-falcon/models/domain_api_vulnerability_v2.rb +4 -26
- data/lib/crimson-falcon/models/domain_asset_criticality_info_v1.rb +254 -0
- data/lib/crimson-falcon/models/domain_attachment.rb +298 -0
- data/lib/crimson-falcon/models/domain_aws_account_input.rb +311 -0
- data/lib/crimson-falcon/models/domain_aws_account_v2.rb +11 -1
- data/lib/crimson-falcon/models/domain_aws_batch_cluster_region.rb +267 -0
- data/lib/crimson-falcon/models/domain_azure_management_group_role_assignment.rb +266 -0
- data/lib/crimson-falcon/models/domain_base_api_vulnerability_v2.rb +4 -26
- data/lib/crimson-falcon/models/domain_breached_item_v1.rb +40 -1
- data/lib/crimson-falcon/models/domain_card.rb +288 -0
- data/lib/crimson-falcon/models/domain_cid_group.rb +19 -1
- data/lib/crimson-falcon/models/domain_cid_policy_assignments.rb +23 -1
- data/lib/crimson-falcon/models/domain_cloud_scope.rb +13 -4
- data/lib/crimson-falcon/models/domain_credentials.rb +31 -12
- data/lib/crimson-falcon/models/domain_detailed_notification_v1.rb +1 -1
- data/lib/crimson-falcon/models/domain_device.rb +10 -1
- data/lib/crimson-falcon/models/domain_device_policy.rb +239 -0
- data/lib/crimson-falcon/models/domain_discover_api_host.rb +70 -6
- data/lib/crimson-falcon/models/domain_discover_apiio_t_host.rb +75 -1
- data/lib/crimson-falcon/models/{registration_msa_spec_meta_info_extension.rb → domain_exposed_data_record_bot_location_v1.rb} +24 -19
- data/lib/crimson-falcon/models/domain_exposed_data_record_bot_operating_system_v1.rb +399 -0
- data/lib/crimson-falcon/models/domain_exposed_data_record_bot_v1.rb +334 -0
- data/lib/crimson-falcon/models/domain_exposed_data_record_social_v1.rb +18 -4
- data/lib/crimson-falcon/models/domain_file_count_v2.rb +295 -0
- data/lib/crimson-falcon/models/domain_fragment_info.rb +299 -0
- data/lib/crimson-falcon/models/domain_gcp_account_v1.rb +15 -1
- data/lib/crimson-falcon/models/domain_host.rb +342 -0
- data/lib/crimson-falcon/models/domain_incident.rb +4 -13
- data/lib/crimson-falcon/models/domain_ioc.rb +621 -0
- data/lib/crimson-falcon/models/domain_item_details_v1.rb +527 -0
- data/lib/crimson-falcon/models/domain_launch_export_job_request_v1.rb +1 -1
- data/lib/crimson-falcon/models/domain_mapped_device_policies.rb +234 -0
- data/lib/crimson-falcon/models/domain_marketplace_product.rb +288 -0
- data/lib/crimson-falcon/models/domain_matched_breach_summary_v1.rb +28 -1
- data/lib/crimson-falcon/models/domain_meta_info.rb +54 -13
- data/lib/crimson-falcon/models/domain_news_document.rb +13 -1
- data/lib/crimson-falcon/models/domain_notification_v1.rb +15 -1
- data/lib/crimson-falcon/models/domain_policy_info.rb +23 -1
- data/lib/crimson-falcon/models/domain_query_response.rb +7 -2
- data/lib/crimson-falcon/models/domain_report_malware.rb +264 -0
- data/lib/crimson-falcon/models/domain_rule.rb +63 -69
- data/lib/crimson-falcon/models/domain_scan.rb +67 -4
- data/lib/crimson-falcon/models/domain_scan_profile.rb +13 -4
- data/lib/crimson-falcon/models/domain_scan_v2.rb +621 -0
- data/lib/crimson-falcon/models/domain_schedule.rb +19 -34
- data/lib/crimson-falcon/models/domain_session.rb +0 -25
- data/lib/crimson-falcon/models/domain_telegram_channel_info.rb +243 -0
- data/lib/crimson-falcon/models/{models_snapshot_inventory_payload.rb → domain_telegram_info.rb} +25 -26
- data/lib/crimson-falcon/models/domain_telegram_recipient_info.rb +279 -0
- data/lib/crimson-falcon/models/domain_telegram_sender_info.rb +279 -0
- data/lib/crimson-falcon/models/domain_threat_entity.rb +235 -0
- data/lib/crimson-falcon/models/domain_user.rb +9 -27
- data/lib/crimson-falcon/models/domain_user_grants.rb +0 -20
- data/lib/crimson-falcon/models/driftindicators_drift_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/driftindicators_drift_indicators_count_value.rb +266 -0
- data/lib/crimson-falcon/models/driftindicators_drift_indicators_field_value.rb +266 -0
- data/lib/crimson-falcon/models/empowerapi_falcon_script.rb +521 -0
- data/lib/crimson-falcon/models/empowerapi_msa_falcon_script_response.rb +266 -0
- data/lib/crimson-falcon/models/empowerapi_msa_id_list_response.rb +266 -0
- data/lib/crimson-falcon/models/entities_ods_scan_response_v2.rb +266 -0
- data/lib/crimson-falcon/models/executions_activity_execution_result.rb +377 -0
- data/lib/crimson-falcon/models/executions_ancestor_execution.rb +270 -0
- data/lib/crimson-falcon/models/executions_child_execution_result.rb +295 -0
- data/lib/crimson-falcon/models/executions_execution_result.rb +390 -0
- data/lib/crimson-falcon/models/executions_iterations.rb +315 -0
- data/lib/crimson-falcon/models/executions_loop_result.rb +356 -0
- data/lib/crimson-falcon/models/executions_reference_link.rb +255 -0
- data/lib/crimson-falcon/models/executions_trigger_result.rb +270 -0
- data/lib/crimson-falcon/models/falconx_sandbox_parameters_v1.rb +10 -15
- data/lib/crimson-falcon/models/falconx_submission_v1.rb +37 -1
- data/lib/crimson-falcon/models/flows.rb +269 -0
- data/lib/crimson-falcon/models/fwmgr_msa_aggregation_result.rb +10 -1
- data/lib/crimson-falcon/models/graph_condition.rb +257 -0
- data/lib/crimson-falcon/models/graph_configured_activity.rb +308 -0
- data/lib/crimson-falcon/models/graph_configured_trigger.rb +307 -0
- data/lib/crimson-falcon/models/graph_definition_model.rb +315 -0
- data/lib/crimson-falcon/models/{models_scan_results.rb → graph_end.rb} +24 -23
- data/lib/crimson-falcon/models/graph_flow.rb +274 -0
- data/lib/crimson-falcon/models/graph_gateway.rb +268 -0
- data/lib/crimson-falcon/models/graph_multi.rb +285 -0
- data/lib/crimson-falcon/models/graph_sub_model.rb +301 -0
- data/lib/crimson-falcon/models/graph_timer_event_definition.rb +290 -0
- data/lib/crimson-falcon/models/graph_validation_error.rb +300 -0
- data/lib/crimson-falcon/models/images_api_combined_image_export.rb +266 -0
- data/lib/crimson-falcon/models/images_api_customer_and_image.rb +266 -0
- data/lib/crimson-falcon/models/images_api_image_assessment_history.rb +266 -0
- data/lib/crimson-falcon/models/images_api_image_by_vulnerability_count.rb +266 -0
- data/lib/crimson-falcon/models/images_api_image_count.rb +266 -0
- data/lib/crimson-falcon/models/images_api_image_count_by_base_os.rb +266 -0
- data/lib/crimson-falcon/models/images_api_image_count_by_state.rb +266 -0
- data/lib/crimson-falcon/models/images_api_image_issues_summary.rb +266 -0
- data/lib/crimson-falcon/models/images_api_image_vulnerabilities_summary.rb +266 -0
- data/lib/crimson-falcon/models/internal_sensor_status.rb +75 -1
- data/lib/crimson-falcon/models/jsonschema_authorization.rb +278 -0
- data/lib/crimson-falcon/models/jsonschema_collection_index_field.rb +267 -0
- data/lib/crimson-falcon/models/jsonschema_complex_permissions.rb +236 -0
- data/lib/crimson-falcon/models/jsonschema_complex_permissions_or.rb +236 -0
- data/lib/crimson-falcon/models/jsonschema_condition_group_fields.rb +270 -0
- data/lib/crimson-falcon/models/jsonschema_permission.rb +253 -0
- data/lib/crimson-falcon/models/jsonschema_pivot.rb +306 -0
- data/lib/crimson-falcon/models/jsonschema_reset_fields.rb +241 -0
- data/lib/crimson-falcon/models/jsonschema_schema.rb +250 -0
- data/lib/crimson-falcon/models/jsonschema_signals_extensions.rb +254 -0
- data/lib/crimson-falcon/models/jsonschema_sub_schema.rb +782 -0
- data/lib/crimson-falcon/models/jsonschema_workflow_extensions.rb +281 -0
- data/lib/crimson-falcon/models/k8sassets_cluster_enrichment_data.rb +267 -0
- data/lib/crimson-falcon/models/k8sassets_cluster_enrichment_entry.rb +253 -0
- data/lib/crimson-falcon/models/k8sassets_cluster_enrichment_response.rb +266 -0
- data/lib/crimson-falcon/models/k8sassets_container_enrichment_data.rb +241 -0
- data/lib/crimson-falcon/models/k8sassets_container_enrichment_entry.rb +253 -0
- data/lib/crimson-falcon/models/k8sassets_container_enrichment_response.rb +266 -0
- data/lib/crimson-falcon/models/k8sassets_container_info.rb +253 -0
- data/lib/crimson-falcon/models/k8sassets_deployment_enrichment_data.rb +239 -0
- data/lib/crimson-falcon/models/k8sassets_deployment_enrichment_entry.rb +253 -0
- data/lib/crimson-falcon/models/k8sassets_deployment_enrichment_response.rb +266 -0
- data/lib/crimson-falcon/models/k8sassets_node_enrichment_data.rb +253 -0
- data/lib/crimson-falcon/models/k8sassets_node_enrichment_entry.rb +253 -0
- data/lib/crimson-falcon/models/k8sassets_node_enrichment_response.rb +266 -0
- data/lib/crimson-falcon/models/k8sassets_pod_enrichment_data.rb +269 -0
- data/lib/crimson-falcon/models/k8sassets_pod_enrichment_entry.rb +253 -0
- data/lib/crimson-falcon/models/k8sassets_pod_enrichment_response.rb +266 -0
- data/lib/crimson-falcon/models/k8sioms_kubernetes_iom_count_value.rb +266 -0
- data/lib/crimson-falcon/models/k8sioms_kubernetes_iom_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/k8sioms_kubernetes_iom_field_value.rb +266 -0
- data/lib/crimson-falcon/models/model_user_input_read_response.rb +267 -0
- data/lib/crimson-falcon/models/model_user_input_update_request.rb +255 -0
- data/lib/crimson-falcon/models/model_user_input_view_model.rb +379 -0
- data/lib/crimson-falcon/models/models_account_entities_input.rb +241 -0
- data/lib/crimson-falcon/models/models_account_status_response.rb +266 -0
- data/lib/crimson-falcon/models/models_aggregate_values_by_field_response.rb +266 -0
- data/lib/crimson-falcon/models/models_api_assessment_detections.rb +477 -0
- data/lib/crimson-falcon/models/models_api_combined_detections.rb +395 -0
- data/lib/crimson-falcon/models/models_api_container_alert.rb +339 -0
- data/lib/crimson-falcon/models/models_api_customer_and_image.rb +458 -0
- data/lib/crimson-falcon/models/models_api_detection_count.rb +239 -0
- data/lib/crimson-falcon/models/models_api_detection_count_by_type.rb +253 -0
- data/lib/crimson-falcon/models/models_api_drift_indicators.rb +577 -0
- data/lib/crimson-falcon/models/models_api_filter_label.rb +253 -0
- data/lib/crimson-falcon/models/models_api_filter_response.rb +255 -0
- data/lib/crimson-falcon/models/models_api_image_assessment.rb +309 -0
- data/lib/crimson-falcon/models/models_api_image_assessment_history.rb +255 -0
- data/lib/crimson-falcon/models/models_api_image_by_vulnerability_count.rb +295 -0
- data/lib/crimson-falcon/models/models_api_image_combined_export.rb +505 -0
- data/lib/crimson-falcon/models/models_api_image_count.rb +239 -0
- data/lib/crimson-falcon/models/models_api_image_issues_summary.rb +359 -0
- data/lib/crimson-falcon/models/models_api_image_vulnerabilities_summary.rb +357 -0
- data/lib/crimson-falcon/models/models_api_kubernetes_iom.rb +796 -0
- data/lib/crimson-falcon/models/{domain_notification_details_v1.rb → models_api_package_combined.rb} +77 -85
- data/lib/crimson-falcon/models/models_api_package_vulnerability.rb +283 -0
- data/lib/crimson-falcon/models/models_api_packages_by_vuln_count.rb +309 -0
- data/lib/crimson-falcon/models/models_api_policy_count_by_action.rb +253 -0
- data/lib/crimson-falcon/models/models_api_policy_data.rb +257 -0
- data/lib/crimson-falcon/models/models_api_policy_entity.rb +332 -0
- data/lib/crimson-falcon/models/models_api_policy_exclusion.rb +301 -0
- data/lib/crimson-falcon/models/models_api_policy_group.rb +313 -0
- data/lib/crimson-falcon/models/models_api_policy_group_data.rb +241 -0
- data/lib/crimson-falcon/models/models_api_policy_rule.rb +248 -0
- data/lib/crimson-falcon/models/models_api_policy_rules_data.rb +241 -0
- data/lib/crimson-falcon/models/models_api_precedence_request.rb +241 -0
- data/lib/crimson-falcon/models/models_api_runtime_detection.rb +987 -0
- data/lib/crimson-falcon/models/models_api_unidentified_container.rb +525 -0
- data/lib/crimson-falcon/models/models_api_vuln_by_image_count.rb +283 -0
- data/lib/crimson-falcon/models/models_api_vuln_by_publication_date.rb +309 -0
- data/lib/crimson-falcon/models/models_api_vuln_count.rb +239 -0
- data/lib/crimson-falcon/models/models_api_vuln_count_by_severity.rb +253 -0
- data/lib/crimson-falcon/models/models_api_vulnerability_combined.rb +407 -0
- data/lib/crimson-falcon/models/models_api_vulnerability_details.rb +365 -0
- data/lib/crimson-falcon/models/models_api_vulnerability_info.rb +383 -0
- data/lib/crimson-falcon/models/models_cluster.rb +539 -0
- data/lib/crimson-falcon/models/models_cluster_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/models_container.rb +831 -0
- data/lib/crimson-falcon/models/models_container_coverage.rb +253 -0
- data/lib/crimson-falcon/models/models_container_coverage_response_entity.rb +266 -0
- data/lib/crimson-falcon/models/models_container_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/models_container_image.rb +453 -0
- data/lib/crimson-falcon/models/models_container_information.rb +253 -0
- data/lib/crimson-falcon/models/models_container_runtime_pivot.rb +353 -0
- data/lib/crimson-falcon/models/models_container_runtime_pivot_response.rb +266 -0
- data/lib/crimson-falcon/models/models_create_image_group_request.rb +271 -0
- data/lib/crimson-falcon/models/models_create_policy_request.rb +253 -0
- data/lib/crimson-falcon/models/models_definition_create_request_v2.rb +263 -0
- data/lib/crimson-falcon/models/models_definition_update_request_v2.rb +288 -0
- data/lib/crimson-falcon/models/{models_snapshot_inventory_application.rb → models_deployment.rb} +85 -85
- data/lib/crimson-falcon/models/models_deployment_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/models_exclusion_condition.rb +310 -0
- data/lib/crimson-falcon/models/models_exclusion_condition_request.rb +273 -0
- data/lib/crimson-falcon/models/models_image_information.rb +267 -0
- data/lib/crimson-falcon/models/models_image_summary_packages_info.rb +253 -0
- data/lib/crimson-falcon/models/models_issues_summary_container_info.rb +267 -0
- data/lib/crimson-falcon/models/models_light_weight_config.rb +347 -0
- data/lib/crimson-falcon/models/models_node.rb +723 -0
- data/lib/crimson-falcon/models/{public_get_changes_response.rb → models_node_entity_response.rb} +4 -4
- data/lib/crimson-falcon/models/models_package_name_version_type.rb +295 -0
- data/lib/crimson-falcon/models/models_patch_image_group_request.rb +262 -0
- data/lib/crimson-falcon/models/models_patch_policy_request.rb +276 -0
- data/lib/crimson-falcon/models/models_pod.rb +827 -0
- data/lib/crimson-falcon/models/models_pod_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/models_policy_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/models_policy_exclusion_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/models_policy_group_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/models_request_api_policy_data.rb +241 -0
- data/lib/crimson-falcon/models/models_snapshot_account_status.rb +341 -0
- data/lib/crimson-falcon/models/models_update_exclusions_request.rb +241 -0
- data/lib/crimson-falcon/models/msa_aggregation_result.rb +10 -1
- data/lib/crimson-falcon/models/packages_api_combined_package.rb +266 -0
- data/lib/crimson-falcon/models/packages_api_combined_package_export.rb +266 -0
- data/lib/crimson-falcon/models/packages_api_packages_by_vuln_count.rb +266 -0
- data/lib/crimson-falcon/models/parameter_activity_config_parameter_value.rb +259 -0
- data/lib/crimson-falcon/models/parameter_activity_config_provision_parameter.rb +255 -0
- data/lib/crimson-falcon/models/parameter_activity_provision_parameters.rb +249 -0
- data/lib/crimson-falcon/models/parameter_activity_selection_parameter.rb +270 -0
- data/lib/crimson-falcon/models/parameter_condition_field_parameter.rb +284 -0
- data/lib/crimson-falcon/models/parameter_condition_field_provision_parameter.rb +269 -0
- data/lib/crimson-falcon/models/parameter_condition_provision_parameter.rb +257 -0
- data/lib/crimson-falcon/models/parameter_template_provision_parameters.rb +255 -0
- data/lib/crimson-falcon/models/parameter_trigger_field_parameter.rb +259 -0
- data/lib/crimson-falcon/models/parameter_trigger_parameter.rb +257 -0
- data/lib/crimson-falcon/models/parameter_trigger_provision_parameter.rb +257 -0
- data/lib/crimson-falcon/models/policies_assigned_host_group.rb +253 -0
- data/lib/crimson-falcon/models/policies_assigned_rule_group.rb +253 -0
- data/lib/crimson-falcon/models/policies_create_request.rb +257 -0
- data/lib/crimson-falcon/models/policies_delete_response.rb +266 -0
- data/lib/crimson-falcon/models/policies_policy.rb +362 -0
- data/lib/crimson-falcon/models/policies_precedence_response.rb +266 -0
- data/lib/crimson-falcon/models/policies_response.rb +266 -0
- data/lib/crimson-falcon/models/policies_update_request.rb +266 -0
- data/lib/crimson-falcon/models/quarantine_quarantined_file.rb +12 -1
- data/lib/crimson-falcon/models/registration_aws_account_patch.rb +10 -1
- data/lib/crimson-falcon/models/registration_azure_account_patch.rb +248 -0
- data/lib/crimson-falcon/models/registration_azure_account_patch_request.rb +241 -0
- data/lib/crimson-falcon/models/registration_azure_account_v1_ext.rb +29 -1
- data/lib/crimson-falcon/models/registration_azure_management_group_create_request_external_v1.rb +241 -0
- data/lib/crimson-falcon/models/registration_azure_management_group_external_v1.rb +249 -0
- data/lib/crimson-falcon/models/registration_azure_management_group_response_v1.rb +266 -0
- data/lib/crimson-falcon/models/registration_azure_management_group_v1_ext.rb +452 -0
- data/lib/crimson-falcon/models/registration_gcp_account_ext_request_v2.rb +241 -0
- data/lib/crimson-falcon/models/registration_gcp_account_patch.rb +248 -0
- data/lib/crimson-falcon/models/registration_gcp_account_patch_request.rb +241 -0
- data/lib/crimson-falcon/models/registration_gcp_account_req_obj_v2.rb +302 -0
- data/lib/crimson-falcon/models/registration_gcp_account_response_ext_v2.rb +271 -0
- data/lib/crimson-falcon/models/registration_gcp_account_rsp_obj_v2.rb +284 -0
- data/lib/crimson-falcon/models/registration_gcp_service_account_ext_v1.rb +261 -0
- data/lib/crimson-falcon/models/registration_gcp_service_account_response_ext_v1.rb +271 -0
- data/lib/crimson-falcon/models/registration_iom_event_id_response_meta.rb +281 -0
- data/lib/crimson-falcon/models/registration_iom_event_ids_response_v2.rb +1 -1
- data/lib/crimson-falcon/models/registration_iom_event_v2.rb +17 -1
- data/lib/crimson-falcon/models/registration_next_token_pagination.rb +266 -0
- data/lib/crimson-falcon/models/rulegroups_assigned_rule.rb +253 -0
- data/lib/crimson-falcon/models/rulegroups_create_request.rb +262 -0
- data/lib/crimson-falcon/models/rulegroups_delete_response.rb +266 -0
- data/lib/crimson-falcon/models/rulegroups_policy_assignment.rb +253 -0
- data/lib/crimson-falcon/models/rulegroups_response.rb +266 -0
- data/lib/crimson-falcon/models/rulegroups_rule.rb +579 -0
- data/lib/crimson-falcon/models/rulegroups_rule_group.rb +324 -0
- data/lib/crimson-falcon/models/rulegroups_rules_response.rb +266 -0
- data/lib/crimson-falcon/models/rulegroups_update_request.rb +262 -0
- data/lib/crimson-falcon/models/runtimedetections_detections_entity_response.rb +266 -0
- data/lib/crimson-falcon/models/{sadomain_submit_for_blocking_info.rb → sadomain_submission_information.rb} +3 -3
- data/lib/crimson-falcon/models/sadomain_typosquatting_component.rb +11 -2
- data/lib/crimson-falcon/models/scheduledexclusions_create_request.rb +316 -0
- data/lib/crimson-falcon/models/scheduledexclusions_repeated.rb +292 -0
- data/lib/crimson-falcon/models/scheduledexclusions_response.rb +266 -0
- data/lib/crimson-falcon/models/scheduledexclusions_scheduled_exclusion.rb +348 -0
- data/lib/crimson-falcon/models/scheduledexclusions_update_request.rb +330 -0
- data/lib/crimson-falcon/models/sv_exclusions_create_req_v1.rb +10 -1
- data/lib/crimson-falcon/models/sv_exclusions_sv_exclusion_v1.rb +10 -1
- data/lib/crimson-falcon/models/sv_exclusions_update_req_v1.rb +10 -1
- data/lib/crimson-falcon/models/unidentifiedcontainers_unidentified_container_api_response.rb +266 -0
- data/lib/crimson-falcon/models/unidentifiedcontainers_unidentified_containers_count_value.rb +266 -0
- data/lib/crimson-falcon/models/v2_activity.rb +264 -0
- data/lib/crimson-falcon/models/v2_activity_parameters.rb +241 -0
- data/lib/crimson-falcon/models/v2_activity_properties.rb +241 -0
- data/lib/crimson-falcon/models/v2_condition.rb +286 -0
- data/lib/crimson-falcon/models/v2_condition_parameters.rb +241 -0
- data/lib/crimson-falcon/models/v2_definition.rb +374 -0
- data/lib/crimson-falcon/models/v2_for_loop.rb +253 -0
- data/lib/crimson-falcon/models/v2_loop.rb +281 -0
- data/lib/crimson-falcon/models/v2_parameters.rb +264 -0
- data/lib/crimson-falcon/models/v2_trigger.rb +277 -0
- data/lib/crimson-falcon/models/vulnerabilities_api_combined_vulnerability.rb +266 -0
- data/lib/crimson-falcon/models/vulnerabilities_api_combined_vulnerability_details.rb +266 -0
- data/lib/crimson-falcon/models/vulnerabilities_api_combined_vulnerability_info.rb +266 -0
- data/lib/crimson-falcon/models/vulnerabilities_api_vuln_by_image_count.rb +266 -0
- data/lib/crimson-falcon/models/vulnerabilities_api_vuln_by_publication.rb +266 -0
- data/lib/crimson-falcon/models/vulnerabilities_api_vuln_count.rb +266 -0
- data/lib/crimson-falcon/models/vulnerabilities_api_vuln_count_by_actively_exploited.rb +266 -0
- data/lib/crimson-falcon/models/vulnerabilities_api_vuln_count_by_csp_rating.rb +266 -0
- data/lib/crimson-falcon/models/vulnerabilities_api_vuln_count_by_cvss_score.rb +266 -0
- data/lib/crimson-falcon/models/vulnerabilities_api_vuln_count_by_severity.rb +266 -0
- data/lib/crimson-falcon/version.rb +2 -2
- data/lib/crimson-falcon.rb +366 -37
- data/spec/api/alerts_api_spec.rb +60 -8
- data/spec/api/{inventories_api_spec.rb → cloud_snapshots_api_spec.rb} +10 -10
- data/spec/api/configuration_assessment_api_spec.rb +11 -0
- data/spec/api/container_alerts_api_spec.rb +88 -0
- data/spec/api/container_detections_api_spec.rb +125 -0
- data/spec/api/container_images_api_spec.rb +182 -0
- data/spec/api/container_packages_api_spec.rb +119 -0
- data/spec/api/container_vulnerabilities_api_spec.rb +184 -0
- data/spec/api/cspm_registration_api_spec.rb +123 -1
- data/spec/api/custom_ioa_api_spec.rb +1 -1
- data/spec/api/custom_storage_api_spec.rb +133 -0
- data/spec/api/d4c_registration_api_spec.rb +47 -0
- data/spec/api/drift_indicators_api_spec.rb +114 -0
- data/spec/api/falcon_complete_dashboard_api_spec.rb +65 -7
- data/spec/api/falcon_container_image_api_spec.rb +0 -14
- data/spec/api/falconx_sandbox_api_spec.rb +1 -1
- data/spec/api/filevantage_api_spec.rb +315 -8
- data/spec/api/foundry_logscale_api_spec.rb +226 -0
- data/spec/api/hosts_api_spec.rb +12 -12
- data/spec/api/image_assessment_policies_api_spec.rb +172 -0
- data/spec/api/installation_tokens_api_spec.rb +4 -4
- data/spec/api/installation_tokens_settings_api_spec.rb +1 -1
- data/spec/api/intel_api_spec.rb +2 -2
- data/spec/api/ioc_api_spec.rb +41 -0
- data/spec/api/kubernetes_protection_api_spec.rb +480 -0
- data/spec/api/message_center_api_spec.rb +3 -3
- data/spec/api/ods_api_spec.rb +13 -2
- data/spec/api/real_time_response_admin_api_spec.rb +25 -0
- data/spec/api/real_time_response_audit_api_spec.rb +67 -0
- data/spec/api/recon_api_spec.rb +3 -3
- data/spec/api/runtime_detections_api_spec.rb +66 -0
- data/spec/api/{vulnerabilities_evaluation_logic_api_spec.rb → spotlight_evaluation_logic_api_spec.rb} +6 -6
- data/spec/api/{vulnerabilities_api_spec.rb → spotlight_vulnerabilities_api_spec.rb} +8 -8
- data/spec/api/unidentified_containers_api_spec.rb +88 -0
- data/spec/api/workflows_api_spec.rb +224 -0
- data/spec/models/alerts_container_alerts_count_value_spec.rb +63 -0
- data/spec/models/alerts_container_alerts_entity_response_spec.rb +63 -0
- data/spec/models/api_detects_query_meta_spec.rb +69 -0
- data/spec/models/api_detects_query_paging_spec.rb +63 -0
- data/spec/models/{api_aggregates_response_spec.rb → api_device_count_resp_v1_spec.rb} +6 -6
- data/spec/models/api_device_count_v1_spec.rb +69 -0
- data/spec/models/api_devices_ran_on_resp_v1_spec.rb +63 -0
- data/spec/models/api_entities_response_spec.rb +63 -0
- data/spec/models/api_execution_results_response_spec.rb +63 -0
- data/spec/models/api_exposed_data_record_bot_location_v1_spec.rb +57 -0
- data/spec/models/api_exposed_data_record_bot_operating_system_v1_spec.rb +117 -0
- data/spec/models/api_exposed_data_record_bot_v1_spec.rb +93 -0
- data/spec/models/api_meta_info_spec.rb +69 -0
- data/spec/models/api_notification_exposed_data_record_v1_spec.rb +18 -0
- data/spec/models/api_object_metadata_spec.rb +75 -0
- data/spec/models/api_processes_ran_on_resp_v1_spec.rb +63 -0
- data/spec/models/{common_entities_response_spec.rb → api_resource_ids_response_spec.rb} +6 -6
- data/spec/models/api_response_pagination_spec.rb +57 -0
- data/spec/models/apidomain_dynamic_execute_search_request_v1_spec.rb +75 -0
- data/spec/models/apidomain_query_response_v1_spec.rb +81 -0
- data/spec/models/apidomain_query_response_wrapper_v1_spec.rb +63 -0
- data/spec/models/{models_snapshot_inventory_application_spec.rb → apidomain_repo_view_list_item_v1_spec.rb} +15 -15
- data/spec/models/apidomain_repo_view_list_item_wrapper_v1_spec.rb +63 -0
- data/spec/models/apidomain_repository_v1_spec.rb +75 -0
- data/spec/models/apidomain_saved_search_execute_request_v1_spec.rb +111 -0
- data/spec/models/apidomain_view_connection_v1_spec.rb +57 -0
- data/spec/models/{public_acl_change_spec.rb → changes_acl_change_spec.rb} +6 -6
- data/spec/models/{public_acl_spec.rb → changes_acl_spec.rb} +6 -6
- data/spec/models/{public_before_spec.rb → changes_after_spec.rb} +6 -6
- data/spec/models/{public_attribute_spec.rb → changes_attribute_spec.rb} +6 -6
- data/spec/models/{public_basic_spec.rb → changes_basic_spec.rb} +6 -6
- data/spec/models/{public_after_spec.rb → changes_before_spec.rb} +6 -6
- data/spec/models/{public_change_spec.rb → changes_change_spec.rb} +6 -6
- data/spec/models/{public_dacl_entity_spec.rb → changes_dacl_entity_spec.rb} +12 -6
- data/spec/models/{public_dacl_spec.rb → changes_dacl_spec.rb} +6 -6
- data/spec/models/{public_diff_hash_spec.rb → changes_diff_hash_spec.rb} +6 -6
- data/spec/models/{public_diff_spec.rb → changes_diff_spec.rb} +6 -6
- data/spec/models/{public_diff_type_spec.rb → changes_diff_type_spec.rb} +6 -6
- data/spec/models/changes_get_changes_response_spec.rb +63 -0
- data/spec/models/{public_owner_spec.rb → changes_group_spec.rb} +6 -6
- data/spec/models/changes_high_volume_query_meta_spec.rb +69 -0
- data/spec/models/changes_high_volume_query_paging_spec.rb +63 -0
- data/spec/models/changes_high_volume_query_response_spec.rb +63 -0
- data/spec/models/{public_host_group_spec.rb → changes_host_group_spec.rb} +6 -6
- data/spec/models/{public_host_spec.rb → changes_host_spec.rb} +6 -6
- data/spec/models/{public_group_spec.rb → changes_owner_spec.rb} +6 -6
- data/spec/models/{public_permissions_lin_spec.rb → changes_permissions_lin_spec.rb} +6 -6
- data/spec/models/{public_permissions_spec.rb → changes_permissions_spec.rb} +6 -6
- data/spec/models/{public_policy_rule_group_spec.rb → changes_policy_rule_group_spec.rb} +6 -6
- data/spec/models/{public_policy_rule_spec.rb → changes_policy_rule_spec.rb} +6 -6
- data/spec/models/{public_policy_spec.rb → changes_policy_spec.rb} +6 -6
- data/spec/models/{public_prevalence_spec.rb → changes_prevalence_spec.rb} +6 -6
- data/spec/models/{public_tag_spec.rb → changes_tag_spec.rb} +6 -6
- data/spec/models/client_action_request_spec.rb +51 -0
- data/spec/models/client_cost_spec.rb +63 -0
- data/spec/models/client_costs_spec.rb +69 -0
- data/spec/models/client_data_ingest_response_v1_spec.rb +57 -0
- data/spec/models/client_data_ingest_response_wrapper_v1_spec.rb +63 -0
- data/spec/models/client_digest_flow_spec.rb +63 -0
- data/spec/models/client_extra_in_spec.rb +57 -0
- data/spec/models/client_extra_limit_spec.rb +57 -0
- data/spec/models/client_extra_rename_spec.rb +57 -0
- data/spec/models/client_extra_sort_spec.rb +75 -0
- data/spec/models/client_field_spec.rb +63 -0
- data/spec/models/client_job_status_spec.rb +117 -0
- data/spec/models/client_query_response_schemas_v1_spec.rb +57 -0
- data/spec/models/client_query_result_metadata_spec.rb +159 -0
- data/spec/models/client_repository_spec.rb +69 -0
- data/spec/models/client_spent_spec.rb +69 -0
- data/spec/models/client_system_definition_create_response_spec.rb +63 -0
- data/spec/models/client_system_definition_de_provision_request_spec.rb +69 -0
- data/spec/models/client_system_definition_promote_request_spec.rb +81 -0
- data/spec/models/client_system_definition_provision_request_spec.rb +75 -0
- data/spec/models/client_top_value_spec.rb +57 -0
- data/spec/models/common_count_as_resource_spec.rb +57 -0
- data/spec/models/common_count_response_spec.rb +63 -0
- data/spec/models/common_generic_entity_response_string_spec.rb +63 -0
- data/spec/models/custom_type1255839303_spec.rb +63 -0
- data/spec/models/custom_type3191042536_spec.rb +63 -0
- data/spec/models/definitions_definition_entities_response_spec.rb +63 -0
- data/spec/models/definitions_definition_ext_spec.rb +75 -0
- data/spec/models/definitions_definition_external_response_spec.rb +63 -0
- data/spec/models/definitions_definition_import_response_entity_spec.rb +81 -0
- data/spec/models/definitions_definition_import_response_spec.rb +63 -0
- data/spec/models/definitions_flight_control_request_spec.rb +69 -0
- data/spec/models/definitions_parameter_property_spec.rb +51 -0
- data/spec/models/definitions_playbook_parameter_spec.rb +57 -0
- data/spec/models/detections_api_assessment_detections_spec.rb +63 -0
- data/spec/models/detections_api_combined_detections_spec.rb +63 -0
- data/spec/models/detections_api_detections_by_severity_spec.rb +63 -0
- data/spec/models/detections_api_detections_by_type_spec.rb +63 -0
- data/spec/models/detections_api_detections_count_spec.rb +63 -0
- data/spec/models/detects_alert_spec.rb +42 -0
- data/spec/models/detectsapi_aggregate_alert_query_request_spec.rb +153 -0
- data/spec/models/detectsapi_aggregates_response_spec.rb +63 -0
- data/spec/models/detectsapi_aggregation_result_item_spec.rb +105 -0
- data/spec/models/detectsapi_aggregation_result_spec.rb +63 -0
- data/spec/models/detectsapi_alert_query_response_spec.rb +63 -0
- data/spec/models/detectsapi_patch_entities_alerts_v3_request_spec.rb +57 -0
- data/spec/models/detectsapi_post_entities_alerts_v2_request_spec.rb +51 -0
- data/spec/models/detectsapi_post_entities_alerts_v2_response_spec.rb +63 -0
- data/spec/models/detectsapi_response_fields_spec.rb +57 -0
- data/spec/models/device_device_spec.rb +12 -0
- data/spec/models/device_mapped_device_policies_spec.rb +6 -0
- data/spec/models/deviceapi_device_swagger_spec.rb +24 -0
- data/spec/models/domain_actor_document_spec.rb +162 -0
- data/spec/models/domain_actor_entity_spec.rb +63 -0
- data/spec/models/domain_actor_news_document_spec.rb +69 -0
- data/spec/models/domain_api_finding_rule_v1_spec.rb +12 -0
- data/spec/models/domain_api_finding_with_rule_v1_spec.rb +6 -0
- data/spec/models/domain_api_host_info_facet_v1_spec.rb +6 -0
- data/spec/models/domain_api_rule_details_response_v1_spec.rb +63 -0
- data/spec/models/domain_api_rule_details_v1_spec.rb +135 -0
- data/spec/models/domain_api_vulnerability_app_v2_spec.rb +6 -0
- data/spec/models/domain_api_vulnerability_cve_details_facet_v2_spec.rb +6 -0
- data/spec/models/domain_api_vulnerability_extended_app_v2_spec.rb +6 -0
- data/spec/models/domain_api_vulnerability_host_facet_v2_spec.rb +0 -6
- data/spec/models/domain_api_vulnerability_v2_spec.rb +0 -12
- data/spec/models/domain_asset_criticality_info_v1_spec.rb +63 -0
- data/spec/models/domain_attachment_spec.rb +87 -0
- data/spec/models/domain_aws_account_input_spec.rb +81 -0
- data/spec/models/domain_aws_account_v2_spec.rb +6 -0
- data/spec/models/domain_aws_batch_cluster_region_spec.rb +63 -0
- data/spec/models/domain_azure_management_group_role_assignment_spec.rb +69 -0
- data/spec/models/domain_base_api_vulnerability_v2_spec.rb +0 -12
- data/spec/models/domain_breached_item_v1_spec.rb +18 -0
- data/spec/models/domain_card_spec.rb +87 -0
- data/spec/models/domain_cid_group_spec.rb +12 -0
- data/spec/models/domain_cid_policy_assignments_spec.rb +12 -0
- data/spec/models/domain_cloud_scope_spec.rb +6 -0
- data/spec/models/domain_credentials_spec.rb +13 -1
- data/spec/models/domain_device_policy_spec.rb +51 -0
- data/spec/models/domain_device_spec.rb +6 -0
- data/spec/models/domain_discover_api_host_spec.rb +36 -0
- data/spec/models/domain_discover_apiio_t_host_spec.rb +36 -0
- data/spec/models/{registration_msa_spec_meta_info_extension_spec.rb → domain_exposed_data_record_bot_location_v1_spec.rb} +8 -8
- data/spec/models/domain_exposed_data_record_bot_operating_system_v1_spec.rb +117 -0
- data/spec/models/domain_exposed_data_record_bot_v1_spec.rb +93 -0
- data/spec/models/domain_exposed_data_record_social_v1_spec.rb +6 -0
- data/spec/models/domain_file_count_v2_spec.rb +75 -0
- data/spec/models/domain_fragment_info_spec.rb +87 -0
- data/spec/models/domain_gcp_account_v1_spec.rb +6 -0
- data/spec/models/domain_host_spec.rb +123 -0
- data/spec/models/domain_incident_spec.rb +0 -6
- data/spec/models/domain_ioc_spec.rb +261 -0
- data/spec/models/domain_item_details_v1_spec.rb +207 -0
- data/spec/models/domain_mapped_device_policies_spec.rb +51 -0
- data/spec/models/domain_marketplace_product_spec.rb +87 -0
- data/spec/models/domain_matched_breach_summary_v1_spec.rb +12 -0
- data/spec/models/domain_meta_info_spec.rb +25 -1
- data/spec/models/domain_news_document_spec.rb +6 -0
- data/spec/models/domain_notification_v1_spec.rb +6 -0
- data/spec/models/domain_policy_info_spec.rb +12 -0
- data/spec/models/domain_report_malware_spec.rb +63 -0
- data/spec/models/domain_rule_spec.rb +7 -13
- data/spec/models/domain_scan_profile_spec.rb +6 -0
- data/spec/models/domain_scan_spec.rb +42 -0
- data/spec/models/domain_scan_v2_spec.rb +273 -0
- data/spec/models/domain_schedule_spec.rb +3 -3
- data/spec/models/domain_telegram_channel_info_spec.rb +57 -0
- data/spec/models/domain_telegram_info_spec.rb +63 -0
- data/spec/models/domain_telegram_recipient_info_spec.rb +81 -0
- data/spec/models/domain_telegram_sender_info_spec.rb +81 -0
- data/spec/models/domain_threat_entity_spec.rb +51 -0
- data/spec/models/domain_user_spec.rb +1 -13
- data/spec/models/driftindicators_drift_entity_response_spec.rb +63 -0
- data/spec/models/driftindicators_drift_indicators_count_value_spec.rb +63 -0
- data/spec/models/driftindicators_drift_indicators_field_value_spec.rb +63 -0
- data/spec/models/empowerapi_falcon_script_spec.rb +177 -0
- data/spec/models/empowerapi_msa_falcon_script_response_spec.rb +63 -0
- data/spec/models/empowerapi_msa_id_list_response_spec.rb +63 -0
- data/spec/models/entities_ods_scan_response_v2_spec.rb +63 -0
- data/spec/models/executions_activity_execution_result_spec.rb +117 -0
- data/spec/models/executions_ancestor_execution_spec.rb +63 -0
- data/spec/models/executions_child_execution_result_spec.rb +75 -0
- data/spec/models/executions_execution_result_spec.rb +111 -0
- data/spec/models/executions_iterations_spec.rb +81 -0
- data/spec/models/executions_loop_result_spec.rb +105 -0
- data/spec/models/executions_reference_link_spec.rb +57 -0
- data/spec/models/executions_trigger_result_spec.rb +69 -0
- data/spec/models/falconx_sandbox_parameters_v1_spec.rb +6 -6
- data/spec/models/falconx_submission_v1_spec.rb +24 -0
- data/spec/models/flows_spec.rb +63 -0
- data/spec/models/fwmgr_msa_aggregation_result_spec.rb +6 -0
- data/spec/models/graph_condition_spec.rb +63 -0
- data/spec/models/graph_configured_activity_spec.rb +81 -0
- data/spec/models/graph_configured_trigger_spec.rb +87 -0
- data/spec/models/graph_definition_model_spec.rb +87 -0
- data/spec/models/graph_end_spec.rb +57 -0
- data/spec/models/graph_flow_spec.rb +69 -0
- data/spec/models/graph_gateway_spec.rb +63 -0
- data/spec/models/graph_multi_spec.rb +69 -0
- data/spec/models/graph_sub_model_spec.rb +81 -0
- data/spec/models/graph_timer_event_definition_spec.rb +75 -0
- data/spec/models/graph_validation_error_spec.rb +87 -0
- data/spec/models/images_api_combined_image_export_spec.rb +63 -0
- data/spec/models/images_api_customer_and_image_spec.rb +63 -0
- data/spec/models/images_api_image_assessment_history_spec.rb +63 -0
- data/spec/models/images_api_image_by_vulnerability_count_spec.rb +63 -0
- data/spec/models/images_api_image_count_by_base_os_spec.rb +63 -0
- data/spec/models/images_api_image_count_by_state_spec.rb +63 -0
- data/spec/models/images_api_image_count_spec.rb +63 -0
- data/spec/models/images_api_image_issues_summary_spec.rb +63 -0
- data/spec/models/images_api_image_vulnerabilities_summary_spec.rb +63 -0
- data/spec/models/internal_sensor_status_spec.rb +48 -0
- data/spec/models/jsonschema_authorization_spec.rb +69 -0
- data/spec/models/jsonschema_collection_index_field_spec.rb +63 -0
- data/spec/models/jsonschema_complex_permissions_or_spec.rb +51 -0
- data/spec/models/jsonschema_complex_permissions_spec.rb +51 -0
- data/spec/models/jsonschema_condition_group_fields_spec.rb +75 -0
- data/spec/models/jsonschema_permission_spec.rb +57 -0
- data/spec/models/jsonschema_pivot_spec.rb +99 -0
- data/spec/models/jsonschema_reset_fields_spec.rb +51 -0
- data/spec/models/jsonschema_schema_spec.rb +57 -0
- data/spec/models/jsonschema_signals_extensions_spec.rb +63 -0
- data/spec/models/jsonschema_sub_schema_spec.rb +399 -0
- data/spec/models/jsonschema_workflow_extensions_spec.rb +81 -0
- data/spec/models/k8sassets_cluster_enrichment_data_spec.rb +63 -0
- data/spec/models/k8sassets_cluster_enrichment_entry_spec.rb +57 -0
- data/spec/models/k8sassets_cluster_enrichment_response_spec.rb +63 -0
- data/spec/models/k8sassets_container_enrichment_data_spec.rb +51 -0
- data/spec/models/k8sassets_container_enrichment_entry_spec.rb +57 -0
- data/spec/models/k8sassets_container_enrichment_response_spec.rb +63 -0
- data/spec/models/k8sassets_container_info_spec.rb +57 -0
- data/spec/models/k8sassets_deployment_enrichment_data_spec.rb +51 -0
- data/spec/models/k8sassets_deployment_enrichment_entry_spec.rb +57 -0
- data/spec/models/k8sassets_deployment_enrichment_response_spec.rb +63 -0
- data/spec/models/k8sassets_node_enrichment_data_spec.rb +57 -0
- data/spec/models/k8sassets_node_enrichment_entry_spec.rb +57 -0
- data/spec/models/k8sassets_node_enrichment_response_spec.rb +63 -0
- data/spec/models/k8sassets_pod_enrichment_data_spec.rb +63 -0
- data/spec/models/k8sassets_pod_enrichment_entry_spec.rb +57 -0
- data/spec/models/k8sassets_pod_enrichment_response_spec.rb +63 -0
- data/spec/models/k8sioms_kubernetes_iom_count_value_spec.rb +63 -0
- data/spec/models/k8sioms_kubernetes_iom_entity_response_spec.rb +63 -0
- data/spec/models/k8sioms_kubernetes_iom_field_value_spec.rb +63 -0
- data/spec/models/model_user_input_read_response_spec.rb +63 -0
- data/spec/models/model_user_input_update_request_spec.rb +57 -0
- data/spec/models/model_user_input_view_model_spec.rb +105 -0
- data/spec/models/models_account_entities_input_spec.rb +51 -0
- data/spec/models/models_account_status_response_spec.rb +63 -0
- data/spec/models/models_aggregate_values_by_field_response_spec.rb +63 -0
- data/spec/models/models_api_assessment_detections_spec.rb +153 -0
- data/spec/models/models_api_combined_detections_spec.rb +117 -0
- data/spec/models/models_api_container_alert_spec.rb +93 -0
- data/spec/models/models_api_customer_and_image_spec.rb +147 -0
- data/spec/models/models_api_detection_count_by_type_spec.rb +57 -0
- data/spec/models/models_api_detection_count_spec.rb +51 -0
- data/spec/models/models_api_drift_indicators_spec.rb +195 -0
- data/spec/models/{models_scan_results_spec.rb → models_api_filter_label_spec.rb} +8 -8
- data/spec/models/models_api_filter_response_spec.rb +57 -0
- data/spec/models/models_api_image_assessment_history_spec.rb +57 -0
- data/spec/models/models_api_image_assessment_spec.rb +81 -0
- data/spec/models/models_api_image_by_vulnerability_count_spec.rb +75 -0
- data/spec/models/models_api_image_combined_export_spec.rb +165 -0
- data/spec/models/models_api_image_count_spec.rb +51 -0
- data/spec/models/models_api_image_issues_summary_spec.rb +99 -0
- data/spec/models/models_api_image_vulnerabilities_summary_spec.rb +99 -0
- data/spec/models/models_api_kubernetes_iom_spec.rb +339 -0
- data/spec/models/models_api_package_combined_spec.rb +93 -0
- data/spec/models/models_api_package_vulnerability_spec.rb +69 -0
- data/spec/models/models_api_packages_by_vuln_count_spec.rb +81 -0
- data/spec/models/models_api_policy_count_by_action_spec.rb +57 -0
- data/spec/models/{domain_msa_meta_info_spec.rb → models_api_policy_data_spec.rb} +8 -8
- data/spec/models/{models_job_meta_data_spec.rb → models_api_policy_entity_spec.rb} +14 -14
- data/spec/models/models_api_policy_exclusion_spec.rb +81 -0
- data/spec/models/models_api_policy_group_data_spec.rb +51 -0
- data/spec/models/models_api_policy_group_spec.rb +87 -0
- data/spec/models/models_api_policy_rule_spec.rb +57 -0
- data/spec/models/models_api_policy_rules_data_spec.rb +51 -0
- data/spec/models/models_api_precedence_request_spec.rb +51 -0
- data/spec/models/models_api_runtime_detection_spec.rb +369 -0
- data/spec/models/models_api_unidentified_container_spec.rb +171 -0
- data/spec/models/models_api_vuln_by_image_count_spec.rb +69 -0
- data/spec/models/models_api_vuln_by_publication_date_spec.rb +81 -0
- data/spec/models/models_api_vuln_count_by_severity_spec.rb +57 -0
- data/spec/models/models_api_vuln_count_spec.rb +51 -0
- data/spec/models/models_api_vulnerability_combined_spec.rb +123 -0
- data/spec/models/models_api_vulnerability_details_spec.rb +105 -0
- data/spec/models/models_api_vulnerability_info_spec.rb +111 -0
- data/spec/models/models_cluster_entity_response_spec.rb +63 -0
- data/spec/models/models_cluster_spec.rb +177 -0
- data/spec/models/models_container_coverage_response_entity_spec.rb +63 -0
- data/spec/models/models_container_coverage_spec.rb +57 -0
- data/spec/models/models_container_entity_response_spec.rb +63 -0
- data/spec/models/models_container_image_spec.rb +141 -0
- data/spec/models/models_container_information_spec.rb +57 -0
- data/spec/models/models_container_runtime_pivot_response_spec.rb +63 -0
- data/spec/models/models_container_runtime_pivot_spec.rb +99 -0
- data/spec/models/models_container_spec.rb +429 -0
- data/spec/models/models_create_image_group_request_spec.rb +69 -0
- data/spec/models/models_create_policy_request_spec.rb +57 -0
- data/spec/models/models_definition_create_request_v2_spec.rb +63 -0
- data/spec/models/models_definition_update_request_v2_spec.rb +75 -0
- data/spec/models/models_deployment_entity_response_spec.rb +63 -0
- data/spec/models/models_deployment_spec.rb +99 -0
- data/spec/models/models_exclusion_condition_request_spec.rb +69 -0
- data/spec/models/models_exclusion_condition_spec.rb +87 -0
- data/spec/models/models_image_information_spec.rb +63 -0
- data/spec/models/models_image_summary_packages_info_spec.rb +57 -0
- data/spec/models/models_issues_summary_container_info_spec.rb +63 -0
- data/spec/models/models_light_weight_config_spec.rb +93 -0
- data/spec/models/{public_get_changes_response_spec.rb → models_node_entity_response_spec.rb} +6 -6
- data/spec/models/models_node_spec.rb +255 -0
- data/spec/models/models_package_name_version_type_spec.rb +75 -0
- data/spec/models/models_patch_image_group_request_spec.rb +63 -0
- data/spec/models/models_patch_policy_request_spec.rb +69 -0
- data/spec/models/models_pod_entity_response_spec.rb +63 -0
- data/spec/models/models_pod_spec.rb +297 -0
- data/spec/models/models_policy_entity_response_spec.rb +63 -0
- data/spec/models/models_policy_exclusion_entity_response_spec.rb +63 -0
- data/spec/models/models_policy_group_entity_response_spec.rb +63 -0
- data/spec/models/models_request_api_policy_data_spec.rb +51 -0
- data/spec/models/models_snapshot_account_status_spec.rb +93 -0
- data/spec/models/models_update_exclusions_request_spec.rb +51 -0
- data/spec/models/msa_aggregation_result_spec.rb +6 -0
- data/spec/models/packages_api_combined_package_export_spec.rb +63 -0
- data/spec/models/packages_api_combined_package_spec.rb +63 -0
- data/spec/models/packages_api_packages_by_vuln_count_spec.rb +63 -0
- data/spec/models/parameter_activity_config_parameter_value_spec.rb +63 -0
- data/spec/models/parameter_activity_config_provision_parameter_spec.rb +57 -0
- data/spec/models/parameter_activity_provision_parameters_spec.rb +57 -0
- data/spec/models/parameter_activity_selection_parameter_spec.rb +63 -0
- data/spec/models/parameter_condition_field_parameter_spec.rb +75 -0
- data/spec/models/parameter_condition_field_provision_parameter_spec.rb +63 -0
- data/spec/models/parameter_condition_provision_parameter_spec.rb +57 -0
- data/spec/models/parameter_template_provision_parameters_spec.rb +63 -0
- data/spec/models/parameter_trigger_field_parameter_spec.rb +63 -0
- data/spec/models/parameter_trigger_parameter_spec.rb +57 -0
- data/spec/models/parameter_trigger_provision_parameter_spec.rb +57 -0
- data/spec/models/policies_assigned_host_group_spec.rb +57 -0
- data/spec/models/policies_assigned_rule_group_spec.rb +57 -0
- data/spec/models/policies_create_request_spec.rb +63 -0
- data/spec/models/policies_delete_response_spec.rb +63 -0
- data/spec/models/policies_policy_spec.rb +117 -0
- data/spec/models/policies_precedence_response_spec.rb +63 -0
- data/spec/models/policies_response_spec.rb +63 -0
- data/spec/models/policies_update_request_spec.rb +69 -0
- data/spec/models/quarantine_quarantined_file_spec.rb +6 -0
- data/spec/models/registration_aws_account_patch_spec.rb +6 -0
- data/spec/models/registration_azure_account_patch_request_spec.rb +51 -0
- data/spec/models/{models_snapshot_inventory_payload_spec.rb → registration_azure_account_patch_spec.rb} +8 -8
- data/spec/models/registration_azure_account_v1_ext_spec.rb +18 -0
- data/spec/models/registration_azure_management_group_create_request_external_v1_spec.rb +51 -0
- data/spec/models/registration_azure_management_group_external_v1_spec.rb +57 -0
- data/spec/models/registration_azure_management_group_response_v1_spec.rb +63 -0
- data/spec/models/registration_azure_management_group_v1_ext_spec.rb +165 -0
- data/spec/models/registration_gcp_account_ext_request_v2_spec.rb +51 -0
- data/spec/models/registration_gcp_account_patch_request_spec.rb +51 -0
- data/spec/models/registration_gcp_account_patch_spec.rb +57 -0
- data/spec/models/registration_gcp_account_req_obj_v2_spec.rb +93 -0
- data/spec/models/registration_gcp_account_response_ext_v2_spec.rb +63 -0
- data/spec/models/registration_gcp_account_rsp_obj_v2_spec.rb +81 -0
- data/spec/models/registration_gcp_service_account_ext_v1_spec.rb +69 -0
- data/spec/models/registration_gcp_service_account_response_ext_v1_spec.rb +63 -0
- data/spec/models/registration_iom_event_id_response_meta_spec.rb +69 -0
- data/spec/models/registration_iom_event_v2_spec.rb +6 -0
- data/spec/models/registration_next_token_pagination_spec.rb +69 -0
- data/spec/models/rulegroups_assigned_rule_spec.rb +57 -0
- data/spec/models/rulegroups_create_request_spec.rb +63 -0
- data/spec/models/rulegroups_delete_response_spec.rb +63 -0
- data/spec/models/rulegroups_policy_assignment_spec.rb +57 -0
- data/spec/models/rulegroups_response_spec.rb +63 -0
- data/spec/models/{domain_notification_details_v1_spec.rb → rulegroups_rule_group_spec.rb} +16 -16
- data/spec/models/rulegroups_rule_spec.rb +255 -0
- data/spec/models/rulegroups_rules_response_spec.rb +63 -0
- data/spec/models/rulegroups_update_request_spec.rb +63 -0
- data/spec/models/runtimedetections_detections_entity_response_spec.rb +63 -0
- data/spec/models/{sadomain_submit_for_blocking_info_spec.rb → sadomain_submission_information_spec.rb} +6 -6
- data/spec/models/sadomain_typosquatting_component_spec.rb +6 -0
- data/spec/models/scheduledexclusions_create_request_spec.rb +99 -0
- data/spec/models/scheduledexclusions_repeated_spec.rb +87 -0
- data/spec/models/scheduledexclusions_response_spec.rb +63 -0
- data/spec/models/scheduledexclusions_scheduled_exclusion_spec.rb +117 -0
- data/spec/models/scheduledexclusions_update_request_spec.rb +105 -0
- data/spec/models/sv_exclusions_create_req_v1_spec.rb +6 -0
- data/spec/models/sv_exclusions_sv_exclusion_v1_spec.rb +6 -0
- data/spec/models/sv_exclusions_update_req_v1_spec.rb +6 -0
- data/spec/models/unidentifiedcontainers_unidentified_container_api_response_spec.rb +63 -0
- data/spec/models/unidentifiedcontainers_unidentified_containers_count_value_spec.rb +63 -0
- data/spec/models/v2_activity_parameters_spec.rb +51 -0
- data/spec/models/v2_activity_properties_spec.rb +51 -0
- data/spec/models/v2_activity_spec.rb +63 -0
- data/spec/models/v2_condition_parameters_spec.rb +51 -0
- data/spec/models/v2_condition_spec.rb +75 -0
- data/spec/models/v2_definition_spec.rb +123 -0
- data/spec/models/v2_for_loop_spec.rb +57 -0
- data/spec/models/v2_loop_spec.rb +75 -0
- data/spec/models/v2_parameters_spec.rb +69 -0
- data/spec/models/v2_trigger_spec.rb +75 -0
- data/spec/models/vulnerabilities_api_combined_vulnerability_details_spec.rb +63 -0
- data/spec/models/vulnerabilities_api_combined_vulnerability_info_spec.rb +63 -0
- data/spec/models/vulnerabilities_api_combined_vulnerability_spec.rb +63 -0
- data/spec/models/vulnerabilities_api_vuln_by_image_count_spec.rb +63 -0
- data/spec/models/vulnerabilities_api_vuln_by_publication_spec.rb +63 -0
- data/spec/models/vulnerabilities_api_vuln_count_by_actively_exploited_spec.rb +63 -0
- data/spec/models/vulnerabilities_api_vuln_count_by_csp_rating_spec.rb +63 -0
- data/spec/models/vulnerabilities_api_vuln_count_by_cvss_score_spec.rb +63 -0
- data/spec/models/vulnerabilities_api_vuln_count_by_severity_spec.rb +63 -0
- data/spec/models/vulnerabilities_api_vuln_count_spec.rb +63 -0
- metadata +1935 -948
@@ -36,31 +36,303 @@ module Falcon
|
|
36
36
|
def initialize(api_client = ApiClient.default)
|
37
37
|
@api_client = api_client
|
38
38
|
end
|
39
|
-
#
|
40
|
-
#
|
41
|
-
# @param
|
39
|
+
# Creates a new policy of the specified type. New policies are always added at the end of the precedence list for the provided policy type.
|
40
|
+
# After they are created, host and rule groups can be assigned, scheduled exclusions can be defined, and policy precedence can be set.
|
41
|
+
# @param body [PoliciesCreateRequest] Create a new policy. * `name` must be between 1 and 100 characters. * `description` can be between 0 and 500 characters. * `platform` must be one of `Windows`, `Linux`, or `Mac` Rule and host group assignment and policy precedence setting is performed via their respective patch end-points.
|
42
42
|
# @param [Hash] opts the optional parameters
|
43
|
-
# @return [
|
44
|
-
def
|
45
|
-
data, _status_code, _headers =
|
43
|
+
# @return [PoliciesResponse]
|
44
|
+
def create_policies(body, opts = {})
|
45
|
+
data, _status_code, _headers = create_policies_with_http_info(body, opts)
|
46
46
|
data
|
47
47
|
end
|
48
48
|
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# @param
|
49
|
+
# Creates a new policy of the specified type. New policies are always added at the end of the precedence list for the provided policy type.
|
50
|
+
# After they are created, host and rule groups can be assigned, scheduled exclusions can be defined, and policy precedence can be set.
|
51
|
+
# @param body [PoliciesCreateRequest] Create a new policy. * `name` must be between 1 and 100 characters. * `description` can be between 0 and 500 characters. * `platform` must be one of `Windows`, `Linux`, or `Mac` Rule and host group assignment and policy precedence setting is performed via their respective patch end-points.
|
52
52
|
# @param [Hash] opts the optional parameters
|
53
|
-
# @return [Array<(
|
54
|
-
def
|
53
|
+
# @return [Array<(PoliciesResponse, Integer, Hash)>] PoliciesResponse data, response status code and response headers
|
54
|
+
def create_policies_with_http_info(body, opts = {})
|
55
55
|
if @api_client.config.debugging
|
56
|
-
@api_client.config.logger.debug 'Calling API: FilevantageApi.
|
56
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.create_policies ...'
|
57
|
+
end
|
58
|
+
# verify the required parameter 'body' is set
|
59
|
+
if @api_client.config.client_side_validation && body.nil?
|
60
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FilevantageApi.create_policies"
|
61
|
+
end
|
62
|
+
# resource path
|
63
|
+
local_var_path = '/filevantage/entities/policies/v1'
|
64
|
+
|
65
|
+
# query parameters
|
66
|
+
query_params = opts[:query_params] || {}
|
67
|
+
|
68
|
+
# header parameters
|
69
|
+
header_params = opts[:header_params] || {}
|
70
|
+
# HTTP header 'Accept' (if needed)
|
71
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
72
|
+
# HTTP header 'Content-Type'
|
73
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
74
|
+
if !content_type.nil?
|
75
|
+
header_params['Content-Type'] = content_type
|
76
|
+
end
|
77
|
+
|
78
|
+
# form parameters
|
79
|
+
form_params = opts[:form_params] || {}
|
80
|
+
|
81
|
+
# http body (model)
|
82
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
83
|
+
|
84
|
+
# return_type
|
85
|
+
return_type = opts[:debug_return_type] || 'PoliciesResponse'
|
86
|
+
|
87
|
+
# auth_names
|
88
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
89
|
+
|
90
|
+
new_options = opts.merge(
|
91
|
+
:operation => :"FilevantageApi.create_policies",
|
92
|
+
:header_params => header_params,
|
93
|
+
:query_params => query_params,
|
94
|
+
:form_params => form_params,
|
95
|
+
:body => post_body,
|
96
|
+
:auth_names => auth_names,
|
97
|
+
:return_type => return_type
|
98
|
+
)
|
99
|
+
|
100
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
101
|
+
if @api_client.config.debugging
|
102
|
+
@api_client.config.logger.debug "API called: FilevantageApi#create_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
103
|
+
end
|
104
|
+
return data, status_code, headers
|
105
|
+
end
|
106
|
+
|
107
|
+
# Creates a new rule group of the specified type.
|
108
|
+
# Individual rules can be assigned to a rule group after it has been created.
|
109
|
+
# @param body [RulegroupsCreateRequest] Create a new rule group of a specific type. * `name` must be between 1 and 100 characters. * `type` must be one of `WindowsFiles`, `WindowsRegistry`, `LinuxFiles` or `MacFiles`. * `description` can be between 0 and 500 characters. Note: rules are added/removed from rule groups using their dedicated end-points.
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @return [RulegroupsResponse]
|
112
|
+
def create_rule_groups(body, opts = {})
|
113
|
+
data, _status_code, _headers = create_rule_groups_with_http_info(body, opts)
|
114
|
+
data
|
115
|
+
end
|
116
|
+
|
117
|
+
# Creates a new rule group of the specified type.
|
118
|
+
# Individual rules can be assigned to a rule group after it has been created.
|
119
|
+
# @param body [RulegroupsCreateRequest] Create a new rule group of a specific type. * `name` must be between 1 and 100 characters. * `type` must be one of `WindowsFiles`, `WindowsRegistry`, `LinuxFiles` or `MacFiles`. * `description` can be between 0 and 500 characters. Note: rules are added/removed from rule groups using their dedicated end-points.
|
120
|
+
# @param [Hash] opts the optional parameters
|
121
|
+
# @return [Array<(RulegroupsResponse, Integer, Hash)>] RulegroupsResponse data, response status code and response headers
|
122
|
+
def create_rule_groups_with_http_info(body, opts = {})
|
123
|
+
if @api_client.config.debugging
|
124
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.create_rule_groups ...'
|
125
|
+
end
|
126
|
+
# verify the required parameter 'body' is set
|
127
|
+
if @api_client.config.client_side_validation && body.nil?
|
128
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FilevantageApi.create_rule_groups"
|
129
|
+
end
|
130
|
+
# resource path
|
131
|
+
local_var_path = '/filevantage/entities/rule-groups/v1'
|
132
|
+
|
133
|
+
# query parameters
|
134
|
+
query_params = opts[:query_params] || {}
|
135
|
+
|
136
|
+
# header parameters
|
137
|
+
header_params = opts[:header_params] || {}
|
138
|
+
# HTTP header 'Accept' (if needed)
|
139
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
140
|
+
# HTTP header 'Content-Type'
|
141
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
142
|
+
if !content_type.nil?
|
143
|
+
header_params['Content-Type'] = content_type
|
144
|
+
end
|
145
|
+
|
146
|
+
# form parameters
|
147
|
+
form_params = opts[:form_params] || {}
|
148
|
+
|
149
|
+
# http body (model)
|
150
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
151
|
+
|
152
|
+
# return_type
|
153
|
+
return_type = opts[:debug_return_type] || 'RulegroupsResponse'
|
154
|
+
|
155
|
+
# auth_names
|
156
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
157
|
+
|
158
|
+
new_options = opts.merge(
|
159
|
+
:operation => :"FilevantageApi.create_rule_groups",
|
160
|
+
:header_params => header_params,
|
161
|
+
:query_params => query_params,
|
162
|
+
:form_params => form_params,
|
163
|
+
:body => post_body,
|
164
|
+
:auth_names => auth_names,
|
165
|
+
:return_type => return_type
|
166
|
+
)
|
167
|
+
|
168
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug "API called: FilevantageApi#create_rule_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
171
|
+
end
|
172
|
+
return data, status_code, headers
|
173
|
+
end
|
174
|
+
|
175
|
+
# Creates a new rule configuration within the specified rule group.
|
176
|
+
# Creates a new rule configuration within the specified rule group.
|
177
|
+
# @param body [RulegroupsRule] Create a new rule configuration for the specified rule group. * `id` is not supported for creation of a rule, the new id of the created rule will be included in the response. * `rule_group_id` to add the new rule configuration. * `description` can be between 0 and 500 characters. * `path` representing the file system or registry path to monitor. * must be between 1 and 250 characters. * All paths must end with the path separator, e.g. c:\\windows\\ /usr/bin/ * `severity` to categorize change events produced by this rule; must be one of: `Low`, `Medium`, `High` or `Critical` * `depth` below the base path to monitor; must be one of: `1`, `2`, `3`, `4`, `5` or `ANY` * `precedence` - is not supported for creation of a rule, new rules will be added last in precedence order. Falcon GLOB syntax is supported for the following 6 properties. Allowed rule group configuration is based on the type of rule group the rule group is added to. * `include` represents the files, directories, registry keys, or registry values that will be monitored. * `exclude` represents the files, directories, registry keys, or registry values that will `NOT` be monitored. * `include_users` represents the changes performed by specific users that will be monitored. * `exclude_users` represents the changes performed by specific users that will `NOT` be monitored. * `include_processes` represents the changes performed by specific processes that will be monitored. * `exclude_processes` represents the changes performed by specific processes that will be `NOT` monitored. * `content_files` represents the files whose content will be monitored. Listed files must match the file include pattern and not match the file exclude pattern * `content_registry_values` represents the registry values whose content will be monitored. Listed registry values must match the registry include pattern and not match the registry exclude pattern * `enable_content_capture` File system directory monitoring: * `watch_delete_directory_changes` * `watch_create_directory_changes` * `watch_rename_directory_changes` * `watch_attributes_directory_changes` (`macOS` is not supported at this time) * `watch_permissions_directory_changes` (`macOS` is not supported at this time) File system file monitoring: * `watch_rename_file_changes` * `watch_write_file_changes` * `watch_create_file_changes` * `watch_delete_file_changes` * `watch_attributes_file_changes` (`macOS` is not supported at this time) * `watch_permissions_file_changes` (`macOS` is not supported at this time) Windows registry key and value monitoring: * `watch_create_key_changes` * `watch_delete_key_changes` * `watch_rename_key_changes` * `watch_set_value_changes` * `watch_delete_value_changes` * `watch_create_file_changes`
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [RulegroupsRulesResponse]
|
180
|
+
def create_rules(body, opts = {})
|
181
|
+
data, _status_code, _headers = create_rules_with_http_info(body, opts)
|
182
|
+
data
|
183
|
+
end
|
184
|
+
|
185
|
+
# Creates a new rule configuration within the specified rule group.
|
186
|
+
# Creates a new rule configuration within the specified rule group.
|
187
|
+
# @param body [RulegroupsRule] Create a new rule configuration for the specified rule group. * `id` is not supported for creation of a rule, the new id of the created rule will be included in the response. * `rule_group_id` to add the new rule configuration. * `description` can be between 0 and 500 characters. * `path` representing the file system or registry path to monitor. * must be between 1 and 250 characters. * All paths must end with the path separator, e.g. c:\\windows\\ /usr/bin/ * `severity` to categorize change events produced by this rule; must be one of: `Low`, `Medium`, `High` or `Critical` * `depth` below the base path to monitor; must be one of: `1`, `2`, `3`, `4`, `5` or `ANY` * `precedence` - is not supported for creation of a rule, new rules will be added last in precedence order. Falcon GLOB syntax is supported for the following 6 properties. Allowed rule group configuration is based on the type of rule group the rule group is added to. * `include` represents the files, directories, registry keys, or registry values that will be monitored. * `exclude` represents the files, directories, registry keys, or registry values that will `NOT` be monitored. * `include_users` represents the changes performed by specific users that will be monitored. * `exclude_users` represents the changes performed by specific users that will `NOT` be monitored. * `include_processes` represents the changes performed by specific processes that will be monitored. * `exclude_processes` represents the changes performed by specific processes that will be `NOT` monitored. * `content_files` represents the files whose content will be monitored. Listed files must match the file include pattern and not match the file exclude pattern * `content_registry_values` represents the registry values whose content will be monitored. Listed registry values must match the registry include pattern and not match the registry exclude pattern * `enable_content_capture` File system directory monitoring: * `watch_delete_directory_changes` * `watch_create_directory_changes` * `watch_rename_directory_changes` * `watch_attributes_directory_changes` (`macOS` is not supported at this time) * `watch_permissions_directory_changes` (`macOS` is not supported at this time) File system file monitoring: * `watch_rename_file_changes` * `watch_write_file_changes` * `watch_create_file_changes` * `watch_delete_file_changes` * `watch_attributes_file_changes` (`macOS` is not supported at this time) * `watch_permissions_file_changes` (`macOS` is not supported at this time) Windows registry key and value monitoring: * `watch_create_key_changes` * `watch_delete_key_changes` * `watch_rename_key_changes` * `watch_set_value_changes` * `watch_delete_value_changes` * `watch_create_file_changes`
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [Array<(RulegroupsRulesResponse, Integer, Hash)>] RulegroupsRulesResponse data, response status code and response headers
|
190
|
+
def create_rules_with_http_info(body, opts = {})
|
191
|
+
if @api_client.config.debugging
|
192
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.create_rules ...'
|
193
|
+
end
|
194
|
+
# verify the required parameter 'body' is set
|
195
|
+
if @api_client.config.client_side_validation && body.nil?
|
196
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FilevantageApi.create_rules"
|
197
|
+
end
|
198
|
+
# resource path
|
199
|
+
local_var_path = '/filevantage/entities/rule-groups-rules/v1'
|
200
|
+
|
201
|
+
# query parameters
|
202
|
+
query_params = opts[:query_params] || {}
|
203
|
+
|
204
|
+
# header parameters
|
205
|
+
header_params = opts[:header_params] || {}
|
206
|
+
# HTTP header 'Accept' (if needed)
|
207
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
208
|
+
# HTTP header 'Content-Type'
|
209
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
210
|
+
if !content_type.nil?
|
211
|
+
header_params['Content-Type'] = content_type
|
212
|
+
end
|
213
|
+
|
214
|
+
# form parameters
|
215
|
+
form_params = opts[:form_params] || {}
|
216
|
+
|
217
|
+
# http body (model)
|
218
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
219
|
+
|
220
|
+
# return_type
|
221
|
+
return_type = opts[:debug_return_type] || 'RulegroupsRulesResponse'
|
222
|
+
|
223
|
+
# auth_names
|
224
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
225
|
+
|
226
|
+
new_options = opts.merge(
|
227
|
+
:operation => :"FilevantageApi.create_rules",
|
228
|
+
:header_params => header_params,
|
229
|
+
:query_params => query_params,
|
230
|
+
:form_params => form_params,
|
231
|
+
:body => post_body,
|
232
|
+
:auth_names => auth_names,
|
233
|
+
:return_type => return_type
|
234
|
+
)
|
235
|
+
|
236
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
237
|
+
if @api_client.config.debugging
|
238
|
+
@api_client.config.logger.debug "API called: FilevantageApi#create_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
239
|
+
end
|
240
|
+
return data, status_code, headers
|
241
|
+
end
|
242
|
+
|
243
|
+
# Creates a new scheduled exclusion configuration for the provided policy id.
|
244
|
+
# Creates a new scheduled exclusion configuration for the provided policy id.
|
245
|
+
# @param body [ScheduledexclusionsCreateRequest] Create a new scheduled exclusion configuration for the specified policy. * `policy_id` to add the scheduled exclusion to. * `name` must be between 1 and 100 characters. * `description` can be between 0 and 500 characters. * `users` can be between 0 and 500 characters representing a comma separated list of user to exclude their changes. * admin* excludes changes made by all usernames that begin with admin. Falon GLOB syntax is supported. * `processes` can be between 0 and 500 characters representing a comma separated list of processes to exclude their changes. * **\\RunMe.exe or **/RunMe.sh excludes changes made by RunMe.exe or RunMe.sh in any location. * `schedule_start` must be provided to indicate the start of the schedule. This date/time must be an rfc3339 formatted string https://datatracker.ietf.org/doc/html/rfc3339. * `schedule_end` optionally provided to indicate the end of the schedule. This date/time must be an rfc3339 formatted string https://datatracker.ietf.org/doc/html/rfc3339. * `timezone` must be provided to indicate the TimeZone Name set for the provided `scheduled_start` and `scheduled_end` values. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. * `repeated` optionally provided to indicate that the exclusion is applied repeatedly within the `scheduled_start` and `scheduled_end` time. * `start_time` must be the hour(00-23) and minute(00-59) of the day formatted as `HH:MM`. Required if `all_day` is not set to `true` * `end_time` must be the hour(00-23) and minute(00-59) of the day formatted as `HH:MM`. Required if `all_day` is not set to `true` * `all_day` must be `true` or `false` to indicate the exclusion is applied all day. * `frequency` must be one of `daily`, `weekly` or `monthly`. * `occurrence` must be one of the following when `frequency` is set to `monthly`: * `1st`, `2nd`, `3rd`, `4th` or `Last` represents the week. * `Days` represents specific calendar days. * `weekly_days` must be one or more of `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` or `Sunday` when `frequency` is set to `weekly` or `frequency` is set to `monthly` and `occurrence` is NOT set to `Days`. * `monthly_days` must be set to one or more calendar days, between 1 and 31 when `frequency` is set to `monthly` and `occurrence` is set to `Days`.
|
246
|
+
# @param [Hash] opts the optional parameters
|
247
|
+
# @return [ScheduledexclusionsResponse]
|
248
|
+
def create_scheduled_exclusions(body, opts = {})
|
249
|
+
data, _status_code, _headers = create_scheduled_exclusions_with_http_info(body, opts)
|
250
|
+
data
|
251
|
+
end
|
252
|
+
|
253
|
+
# Creates a new scheduled exclusion configuration for the provided policy id.
|
254
|
+
# Creates a new scheduled exclusion configuration for the provided policy id.
|
255
|
+
# @param body [ScheduledexclusionsCreateRequest] Create a new scheduled exclusion configuration for the specified policy. * `policy_id` to add the scheduled exclusion to. * `name` must be between 1 and 100 characters. * `description` can be between 0 and 500 characters. * `users` can be between 0 and 500 characters representing a comma separated list of user to exclude their changes. * admin* excludes changes made by all usernames that begin with admin. Falon GLOB syntax is supported. * `processes` can be between 0 and 500 characters representing a comma separated list of processes to exclude their changes. * **\\RunMe.exe or **/RunMe.sh excludes changes made by RunMe.exe or RunMe.sh in any location. * `schedule_start` must be provided to indicate the start of the schedule. This date/time must be an rfc3339 formatted string https://datatracker.ietf.org/doc/html/rfc3339. * `schedule_end` optionally provided to indicate the end of the schedule. This date/time must be an rfc3339 formatted string https://datatracker.ietf.org/doc/html/rfc3339. * `timezone` must be provided to indicate the TimeZone Name set for the provided `scheduled_start` and `scheduled_end` values. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. * `repeated` optionally provided to indicate that the exclusion is applied repeatedly within the `scheduled_start` and `scheduled_end` time. * `start_time` must be the hour(00-23) and minute(00-59) of the day formatted as `HH:MM`. Required if `all_day` is not set to `true` * `end_time` must be the hour(00-23) and minute(00-59) of the day formatted as `HH:MM`. Required if `all_day` is not set to `true` * `all_day` must be `true` or `false` to indicate the exclusion is applied all day. * `frequency` must be one of `daily`, `weekly` or `monthly`. * `occurrence` must be one of the following when `frequency` is set to `monthly`: * `1st`, `2nd`, `3rd`, `4th` or `Last` represents the week. * `Days` represents specific calendar days. * `weekly_days` must be one or more of `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` or `Sunday` when `frequency` is set to `weekly` or `frequency` is set to `monthly` and `occurrence` is NOT set to `Days`. * `monthly_days` must be set to one or more calendar days, between 1 and 31 when `frequency` is set to `monthly` and `occurrence` is set to `Days`.
|
256
|
+
# @param [Hash] opts the optional parameters
|
257
|
+
# @return [Array<(ScheduledexclusionsResponse, Integer, Hash)>] ScheduledexclusionsResponse data, response status code and response headers
|
258
|
+
def create_scheduled_exclusions_with_http_info(body, opts = {})
|
259
|
+
if @api_client.config.debugging
|
260
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.create_scheduled_exclusions ...'
|
261
|
+
end
|
262
|
+
# verify the required parameter 'body' is set
|
263
|
+
if @api_client.config.client_side_validation && body.nil?
|
264
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FilevantageApi.create_scheduled_exclusions"
|
265
|
+
end
|
266
|
+
# resource path
|
267
|
+
local_var_path = '/filevantage/entities/policy-scheduled-exclusions/v1'
|
268
|
+
|
269
|
+
# query parameters
|
270
|
+
query_params = opts[:query_params] || {}
|
271
|
+
|
272
|
+
# header parameters
|
273
|
+
header_params = opts[:header_params] || {}
|
274
|
+
# HTTP header 'Accept' (if needed)
|
275
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
276
|
+
# HTTP header 'Content-Type'
|
277
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
278
|
+
if !content_type.nil?
|
279
|
+
header_params['Content-Type'] = content_type
|
280
|
+
end
|
281
|
+
|
282
|
+
# form parameters
|
283
|
+
form_params = opts[:form_params] || {}
|
284
|
+
|
285
|
+
# http body (model)
|
286
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
287
|
+
|
288
|
+
# return_type
|
289
|
+
return_type = opts[:debug_return_type] || 'ScheduledexclusionsResponse'
|
290
|
+
|
291
|
+
# auth_names
|
292
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
293
|
+
|
294
|
+
new_options = opts.merge(
|
295
|
+
:operation => :"FilevantageApi.create_scheduled_exclusions",
|
296
|
+
:header_params => header_params,
|
297
|
+
:query_params => query_params,
|
298
|
+
:form_params => form_params,
|
299
|
+
:body => post_body,
|
300
|
+
:auth_names => auth_names,
|
301
|
+
:return_type => return_type
|
302
|
+
)
|
303
|
+
|
304
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
305
|
+
if @api_client.config.debugging
|
306
|
+
@api_client.config.logger.debug "API called: FilevantageApi#create_scheduled_exclusions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
307
|
+
end
|
308
|
+
return data, status_code, headers
|
309
|
+
end
|
310
|
+
|
311
|
+
# Deletes 1 or more policies.
|
312
|
+
# Only disabled policies are allowed to be deleted.
|
313
|
+
# @param ids [Array<String>] One or more (up to 500) policy ids in the form of `ids=ID1&ids=ID2`
|
314
|
+
# @param [Hash] opts the optional parameters
|
315
|
+
# @return [PoliciesDeleteResponse]
|
316
|
+
def delete_policies(ids, opts = {})
|
317
|
+
data, _status_code, _headers = delete_policies_with_http_info(ids, opts)
|
318
|
+
data
|
319
|
+
end
|
320
|
+
|
321
|
+
# Deletes 1 or more policies.
|
322
|
+
# Only disabled policies are allowed to be deleted.
|
323
|
+
# @param ids [Array<String>] One or more (up to 500) policy ids in the form of `ids=ID1&ids=ID2`
|
324
|
+
# @param [Hash] opts the optional parameters
|
325
|
+
# @return [Array<(PoliciesDeleteResponse, Integer, Hash)>] PoliciesDeleteResponse data, response status code and response headers
|
326
|
+
def delete_policies_with_http_info(ids, opts = {})
|
327
|
+
if @api_client.config.debugging
|
328
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.delete_policies ...'
|
57
329
|
end
|
58
330
|
# verify the required parameter 'ids' is set
|
59
331
|
if @api_client.config.client_side_validation && ids.nil?
|
60
|
-
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.
|
332
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.delete_policies"
|
61
333
|
end
|
62
334
|
# resource path
|
63
|
-
local_var_path = '/filevantage/entities/
|
335
|
+
local_var_path = '/filevantage/entities/policies/v1'
|
64
336
|
|
65
337
|
# query parameters
|
66
338
|
query_params = opts[:query_params] || {}
|
@@ -78,13 +350,13 @@ module Falcon
|
|
78
350
|
post_body = opts[:debug_body]
|
79
351
|
|
80
352
|
# return_type
|
81
|
-
return_type = opts[:debug_return_type] || '
|
353
|
+
return_type = opts[:debug_return_type] || 'PoliciesDeleteResponse'
|
82
354
|
|
83
355
|
# auth_names
|
84
356
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
85
357
|
|
86
358
|
new_options = opts.merge(
|
87
|
-
:operation => :"FilevantageApi.
|
359
|
+
:operation => :"FilevantageApi.delete_policies",
|
88
360
|
:header_params => header_params,
|
89
361
|
:query_params => query_params,
|
90
362
|
:form_params => form_params,
|
@@ -93,51 +365,113 @@ module Falcon
|
|
93
365
|
:return_type => return_type
|
94
366
|
)
|
95
367
|
|
96
|
-
data, status_code, headers = @api_client.call_api(:
|
368
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
97
369
|
if @api_client.config.debugging
|
98
|
-
@api_client.config.logger.debug "API called: FilevantageApi#
|
370
|
+
@api_client.config.logger.debug "API called: FilevantageApi#delete_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
371
|
+
end
|
372
|
+
return data, status_code, headers
|
373
|
+
end
|
374
|
+
|
375
|
+
# Deletes 1 or more rule groups
|
376
|
+
# The rule groups represented by the provided ids and all rules that they contain will be deleted. Rule groups can only be deleted if they are not assigned to a policy.
|
377
|
+
# @param ids [Array<String>] One or more (up to 500) rule group ids in the form of `ids=ID1&ids=ID2`
|
378
|
+
# @param [Hash] opts the optional parameters
|
379
|
+
# @return [RulegroupsDeleteResponse]
|
380
|
+
def delete_rule_groups(ids, opts = {})
|
381
|
+
data, _status_code, _headers = delete_rule_groups_with_http_info(ids, opts)
|
382
|
+
data
|
383
|
+
end
|
384
|
+
|
385
|
+
# Deletes 1 or more rule groups
|
386
|
+
# The rule groups represented by the provided ids and all rules that they contain will be deleted. Rule groups can only be deleted if they are not assigned to a policy.
|
387
|
+
# @param ids [Array<String>] One or more (up to 500) rule group ids in the form of `ids=ID1&ids=ID2`
|
388
|
+
# @param [Hash] opts the optional parameters
|
389
|
+
# @return [Array<(RulegroupsDeleteResponse, Integer, Hash)>] RulegroupsDeleteResponse data, response status code and response headers
|
390
|
+
def delete_rule_groups_with_http_info(ids, opts = {})
|
391
|
+
if @api_client.config.debugging
|
392
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.delete_rule_groups ...'
|
393
|
+
end
|
394
|
+
# verify the required parameter 'ids' is set
|
395
|
+
if @api_client.config.client_side_validation && ids.nil?
|
396
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.delete_rule_groups"
|
397
|
+
end
|
398
|
+
# resource path
|
399
|
+
local_var_path = '/filevantage/entities/rule-groups/v1'
|
400
|
+
|
401
|
+
# query parameters
|
402
|
+
query_params = opts[:query_params] || {}
|
403
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
404
|
+
|
405
|
+
# header parameters
|
406
|
+
header_params = opts[:header_params] || {}
|
407
|
+
# HTTP header 'Accept' (if needed)
|
408
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
409
|
+
|
410
|
+
# form parameters
|
411
|
+
form_params = opts[:form_params] || {}
|
412
|
+
|
413
|
+
# http body (model)
|
414
|
+
post_body = opts[:debug_body]
|
415
|
+
|
416
|
+
# return_type
|
417
|
+
return_type = opts[:debug_return_type] || 'RulegroupsDeleteResponse'
|
418
|
+
|
419
|
+
# auth_names
|
420
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
421
|
+
|
422
|
+
new_options = opts.merge(
|
423
|
+
:operation => :"FilevantageApi.delete_rule_groups",
|
424
|
+
:header_params => header_params,
|
425
|
+
:query_params => query_params,
|
426
|
+
:form_params => form_params,
|
427
|
+
:body => post_body,
|
428
|
+
:auth_names => auth_names,
|
429
|
+
:return_type => return_type
|
430
|
+
)
|
431
|
+
|
432
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
433
|
+
if @api_client.config.debugging
|
434
|
+
@api_client.config.logger.debug "API called: FilevantageApi#delete_rule_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
99
435
|
end
|
100
436
|
return data, status_code, headers
|
101
437
|
end
|
102
438
|
|
103
|
-
#
|
104
|
-
#
|
439
|
+
# Deletes 1 or more rules from the specified rule group.
|
440
|
+
# Rules that match a provided id will be deleted from the provided rule group id.
|
441
|
+
# @param rule_group_id [String] The id of the rule group from which the rules will be deleted.
|
442
|
+
# @param ids [Array<String>] One or more (up to 500) rule ids in the form of `ids=ID1&ids=ID2`
|
105
443
|
# @param [Hash] opts the optional parameters
|
106
|
-
# @option opts [Integer] :offset The first change index to return in the response. If not provided it will default to '0'. Use with the `limit` parameter to manage pagination of results.
|
107
|
-
# @option opts [Integer] :limit The maximum number of changes to return in the response (default: 100; max: 500). Use with the `offset` parameter to manage pagination of results
|
108
|
-
# @option opts [String] :sort Sort changes using options like: - `action_timestamp` (timestamp of the change occurrence) Sort either `asc` (ascending) or `desc` (descending). For example: `action_timestamp|asc`. The full list of allowed sorting options can be reviewed in our API documentation.
|
109
|
-
# @option opts [String] :filter Filter changes using a query in Falcon Query Language (FQL). Common filter options include: - `host.host_name` - `action_timestamp` The full list of allowed filter parameters can be reviewed in our API documentation.
|
110
444
|
# @return [MsaspecQueryResponse]
|
111
|
-
def
|
112
|
-
data, _status_code, _headers =
|
445
|
+
def delete_rules(rule_group_id, ids, opts = {})
|
446
|
+
data, _status_code, _headers = delete_rules_with_http_info(rule_group_id, ids, opts)
|
113
447
|
data
|
114
448
|
end
|
115
449
|
|
116
|
-
#
|
117
|
-
#
|
450
|
+
# Deletes 1 or more rules from the specified rule group.
|
451
|
+
# Rules that match a provided id will be deleted from the provided rule group id.
|
452
|
+
# @param rule_group_id [String] The id of the rule group from which the rules will be deleted.
|
453
|
+
# @param ids [Array<String>] One or more (up to 500) rule ids in the form of `ids=ID1&ids=ID2`
|
118
454
|
# @param [Hash] opts the optional parameters
|
119
|
-
# @option opts [Integer] :offset The first change index to return in the response. If not provided it will default to '0'. Use with the `limit` parameter to manage pagination of results.
|
120
|
-
# @option opts [Integer] :limit The maximum number of changes to return in the response (default: 100; max: 500). Use with the `offset` parameter to manage pagination of results
|
121
|
-
# @option opts [String] :sort Sort changes using options like: - `action_timestamp` (timestamp of the change occurrence) Sort either `asc` (ascending) or `desc` (descending). For example: `action_timestamp|asc`. The full list of allowed sorting options can be reviewed in our API documentation.
|
122
|
-
# @option opts [String] :filter Filter changes using a query in Falcon Query Language (FQL). Common filter options include: - `host.host_name` - `action_timestamp` The full list of allowed filter parameters can be reviewed in our API documentation.
|
123
455
|
# @return [Array<(MsaspecQueryResponse, Integer, Hash)>] MsaspecQueryResponse data, response status code and response headers
|
124
|
-
def
|
456
|
+
def delete_rules_with_http_info(rule_group_id, ids, opts = {})
|
125
457
|
if @api_client.config.debugging
|
126
|
-
@api_client.config.logger.debug 'Calling API: FilevantageApi.
|
458
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.delete_rules ...'
|
127
459
|
end
|
128
|
-
|
129
|
-
|
460
|
+
# verify the required parameter 'rule_group_id' is set
|
461
|
+
if @api_client.config.client_side_validation && rule_group_id.nil?
|
462
|
+
fail ArgumentError, "Missing the required parameter 'rule_group_id' when calling FilevantageApi.delete_rules"
|
463
|
+
end
|
464
|
+
# verify the required parameter 'ids' is set
|
465
|
+
if @api_client.config.client_side_validation && ids.nil?
|
466
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.delete_rules"
|
130
467
|
end
|
131
|
-
|
132
468
|
# resource path
|
133
|
-
local_var_path = '/filevantage/
|
469
|
+
local_var_path = '/filevantage/entities/rule-groups-rules/v1'
|
134
470
|
|
135
471
|
# query parameters
|
136
472
|
query_params = opts[:query_params] || {}
|
137
|
-
query_params[:'
|
138
|
-
query_params[:'
|
139
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
140
|
-
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
473
|
+
query_params[:'rule_group_id'] = rule_group_id
|
474
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
141
475
|
|
142
476
|
# header parameters
|
143
477
|
header_params = opts[:header_params] || {}
|
@@ -157,7 +491,7 @@ module Falcon
|
|
157
491
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
158
492
|
|
159
493
|
new_options = opts.merge(
|
160
|
-
:operation => :"FilevantageApi.
|
494
|
+
:operation => :"FilevantageApi.delete_rules",
|
161
495
|
:header_params => header_params,
|
162
496
|
:query_params => query_params,
|
163
497
|
:form_params => form_params,
|
@@ -166,9 +500,1360 @@ module Falcon
|
|
166
500
|
:return_type => return_type
|
167
501
|
)
|
168
502
|
|
169
|
-
data, status_code, headers = @api_client.call_api(:
|
503
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
170
504
|
if @api_client.config.debugging
|
171
|
-
@api_client.config.logger.debug "API called: FilevantageApi#
|
505
|
+
@api_client.config.logger.debug "API called: FilevantageApi#delete_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
506
|
+
end
|
507
|
+
return data, status_code, headers
|
508
|
+
end
|
509
|
+
|
510
|
+
# Deletes 1 or more scheduled exclusions from the provided policy id.
|
511
|
+
# Scheduled exclusions that match a provided id will be deleted from the provided policy id.
|
512
|
+
# @param policy_id [String] ID of the policy to delete the scheduled exclusions from.
|
513
|
+
# @param ids [Array<String>] One or more (up to 500) scheduled exclusion ids in the form of `ids=ID1&ids=ID2`.
|
514
|
+
# @param [Hash] opts the optional parameters
|
515
|
+
# @return [MsaspecQueryResponse]
|
516
|
+
def delete_scheduled_exclusions(policy_id, ids, opts = {})
|
517
|
+
data, _status_code, _headers = delete_scheduled_exclusions_with_http_info(policy_id, ids, opts)
|
518
|
+
data
|
519
|
+
end
|
520
|
+
|
521
|
+
# Deletes 1 or more scheduled exclusions from the provided policy id.
|
522
|
+
# Scheduled exclusions that match a provided id will be deleted from the provided policy id.
|
523
|
+
# @param policy_id [String] ID of the policy to delete the scheduled exclusions from.
|
524
|
+
# @param ids [Array<String>] One or more (up to 500) scheduled exclusion ids in the form of `ids=ID1&ids=ID2`.
|
525
|
+
# @param [Hash] opts the optional parameters
|
526
|
+
# @return [Array<(MsaspecQueryResponse, Integer, Hash)>] MsaspecQueryResponse data, response status code and response headers
|
527
|
+
def delete_scheduled_exclusions_with_http_info(policy_id, ids, opts = {})
|
528
|
+
if @api_client.config.debugging
|
529
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.delete_scheduled_exclusions ...'
|
530
|
+
end
|
531
|
+
# verify the required parameter 'policy_id' is set
|
532
|
+
if @api_client.config.client_side_validation && policy_id.nil?
|
533
|
+
fail ArgumentError, "Missing the required parameter 'policy_id' when calling FilevantageApi.delete_scheduled_exclusions"
|
534
|
+
end
|
535
|
+
# verify the required parameter 'ids' is set
|
536
|
+
if @api_client.config.client_side_validation && ids.nil?
|
537
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.delete_scheduled_exclusions"
|
538
|
+
end
|
539
|
+
# resource path
|
540
|
+
local_var_path = '/filevantage/entities/policy-scheduled-exclusions/v1'
|
541
|
+
|
542
|
+
# query parameters
|
543
|
+
query_params = opts[:query_params] || {}
|
544
|
+
query_params[:'policy_id'] = policy_id
|
545
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
546
|
+
|
547
|
+
# header parameters
|
548
|
+
header_params = opts[:header_params] || {}
|
549
|
+
# HTTP header 'Accept' (if needed)
|
550
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
551
|
+
|
552
|
+
# form parameters
|
553
|
+
form_params = opts[:form_params] || {}
|
554
|
+
|
555
|
+
# http body (model)
|
556
|
+
post_body = opts[:debug_body]
|
557
|
+
|
558
|
+
# return_type
|
559
|
+
return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'
|
560
|
+
|
561
|
+
# auth_names
|
562
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
563
|
+
|
564
|
+
new_options = opts.merge(
|
565
|
+
:operation => :"FilevantageApi.delete_scheduled_exclusions",
|
566
|
+
:header_params => header_params,
|
567
|
+
:query_params => query_params,
|
568
|
+
:form_params => form_params,
|
569
|
+
:body => post_body,
|
570
|
+
:auth_names => auth_names,
|
571
|
+
:return_type => return_type
|
572
|
+
)
|
573
|
+
|
574
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
575
|
+
if @api_client.config.debugging
|
576
|
+
@api_client.config.logger.debug "API called: FilevantageApi#delete_scheduled_exclusions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
577
|
+
end
|
578
|
+
return data, status_code, headers
|
579
|
+
end
|
580
|
+
|
581
|
+
# Retrieve information on changes
|
582
|
+
# Retrieve key attributes of Falcon FileVantage changes for the specified ids.
|
583
|
+
# @param ids [Array<String>] One or more change ids in the form of `ids=ID1&ids=ID2`. The maximum number of ids that can be requested at once is `500`.
|
584
|
+
# @param [Hash] opts the optional parameters
|
585
|
+
# @return [ChangesGetChangesResponse]
|
586
|
+
def get_changes(ids, opts = {})
|
587
|
+
data, _status_code, _headers = get_changes_with_http_info(ids, opts)
|
588
|
+
data
|
589
|
+
end
|
590
|
+
|
591
|
+
# Retrieve information on changes
|
592
|
+
# Retrieve key attributes of Falcon FileVantage changes for the specified ids.
|
593
|
+
# @param ids [Array<String>] One or more change ids in the form of `ids=ID1&ids=ID2`. The maximum number of ids that can be requested at once is `500`.
|
594
|
+
# @param [Hash] opts the optional parameters
|
595
|
+
# @return [Array<(ChangesGetChangesResponse, Integer, Hash)>] ChangesGetChangesResponse data, response status code and response headers
|
596
|
+
def get_changes_with_http_info(ids, opts = {})
|
597
|
+
if @api_client.config.debugging
|
598
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.get_changes ...'
|
599
|
+
end
|
600
|
+
# verify the required parameter 'ids' is set
|
601
|
+
if @api_client.config.client_side_validation && ids.nil?
|
602
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.get_changes"
|
603
|
+
end
|
604
|
+
if @api_client.config.client_side_validation && ids.length > 500
|
605
|
+
fail ArgumentError, 'invalid value for "ids" when calling FilevantageApi.get_changes, number of items must be less than or equal to 500.'
|
606
|
+
end
|
607
|
+
|
608
|
+
if @api_client.config.client_side_validation && ids.length < 1
|
609
|
+
fail ArgumentError, 'invalid value for "ids" when calling FilevantageApi.get_changes, number of items must be greater than or equal to 1.'
|
610
|
+
end
|
611
|
+
|
612
|
+
# resource path
|
613
|
+
local_var_path = '/filevantage/entities/changes/v2'
|
614
|
+
|
615
|
+
# query parameters
|
616
|
+
query_params = opts[:query_params] || {}
|
617
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
618
|
+
|
619
|
+
# header parameters
|
620
|
+
header_params = opts[:header_params] || {}
|
621
|
+
# HTTP header 'Accept' (if needed)
|
622
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
623
|
+
|
624
|
+
# form parameters
|
625
|
+
form_params = opts[:form_params] || {}
|
626
|
+
|
627
|
+
# http body (model)
|
628
|
+
post_body = opts[:debug_body]
|
629
|
+
|
630
|
+
# return_type
|
631
|
+
return_type = opts[:debug_return_type] || 'ChangesGetChangesResponse'
|
632
|
+
|
633
|
+
# auth_names
|
634
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
635
|
+
|
636
|
+
new_options = opts.merge(
|
637
|
+
:operation => :"FilevantageApi.get_changes",
|
638
|
+
:header_params => header_params,
|
639
|
+
:query_params => query_params,
|
640
|
+
:form_params => form_params,
|
641
|
+
:body => post_body,
|
642
|
+
:auth_names => auth_names,
|
643
|
+
:return_type => return_type
|
644
|
+
)
|
645
|
+
|
646
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
647
|
+
if @api_client.config.debugging
|
648
|
+
@api_client.config.logger.debug "API called: FilevantageApi#get_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
649
|
+
end
|
650
|
+
return data, status_code, headers
|
651
|
+
end
|
652
|
+
|
653
|
+
# Retrieves the configuration for 1 or more policies.
|
654
|
+
# The configuration of each policy that match the provided id will be returned.
|
655
|
+
# @param ids [Array<String>] One or more (up to 500) policy ids in the form of `ids=ID1&ids=ID2`
|
656
|
+
# @param [Hash] opts the optional parameters
|
657
|
+
# @return [PoliciesResponse]
|
658
|
+
def get_policies(ids, opts = {})
|
659
|
+
data, _status_code, _headers = get_policies_with_http_info(ids, opts)
|
660
|
+
data
|
661
|
+
end
|
662
|
+
|
663
|
+
# Retrieves the configuration for 1 or more policies.
|
664
|
+
# The configuration of each policy that match the provided id will be returned.
|
665
|
+
# @param ids [Array<String>] One or more (up to 500) policy ids in the form of `ids=ID1&ids=ID2`
|
666
|
+
# @param [Hash] opts the optional parameters
|
667
|
+
# @return [Array<(PoliciesResponse, Integer, Hash)>] PoliciesResponse data, response status code and response headers
|
668
|
+
def get_policies_with_http_info(ids, opts = {})
|
669
|
+
if @api_client.config.debugging
|
670
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.get_policies ...'
|
671
|
+
end
|
672
|
+
# verify the required parameter 'ids' is set
|
673
|
+
if @api_client.config.client_side_validation && ids.nil?
|
674
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.get_policies"
|
675
|
+
end
|
676
|
+
# resource path
|
677
|
+
local_var_path = '/filevantage/entities/policies/v1'
|
678
|
+
|
679
|
+
# query parameters
|
680
|
+
query_params = opts[:query_params] || {}
|
681
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
682
|
+
|
683
|
+
# header parameters
|
684
|
+
header_params = opts[:header_params] || {}
|
685
|
+
# HTTP header 'Accept' (if needed)
|
686
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
687
|
+
|
688
|
+
# form parameters
|
689
|
+
form_params = opts[:form_params] || {}
|
690
|
+
|
691
|
+
# http body (model)
|
692
|
+
post_body = opts[:debug_body]
|
693
|
+
|
694
|
+
# return_type
|
695
|
+
return_type = opts[:debug_return_type] || 'PoliciesResponse'
|
696
|
+
|
697
|
+
# auth_names
|
698
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
699
|
+
|
700
|
+
new_options = opts.merge(
|
701
|
+
:operation => :"FilevantageApi.get_policies",
|
702
|
+
:header_params => header_params,
|
703
|
+
:query_params => query_params,
|
704
|
+
:form_params => form_params,
|
705
|
+
:body => post_body,
|
706
|
+
:auth_names => auth_names,
|
707
|
+
:return_type => return_type
|
708
|
+
)
|
709
|
+
|
710
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
711
|
+
if @api_client.config.debugging
|
712
|
+
@api_client.config.logger.debug "API called: FilevantageApi#get_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
713
|
+
end
|
714
|
+
return data, status_code, headers
|
715
|
+
end
|
716
|
+
|
717
|
+
# Retrieves the rule group details for 1 or more rule groups.
|
718
|
+
# Full details of each rule group that matches a provided id will be returned in the response
|
719
|
+
# @param ids [Array<String>] One or more (up to 500) rule group ids in the form of `ids=ID1&ids=ID2`
|
720
|
+
# @param [Hash] opts the optional parameters
|
721
|
+
# @return [RulegroupsResponse]
|
722
|
+
def get_rule_groups(ids, opts = {})
|
723
|
+
data, _status_code, _headers = get_rule_groups_with_http_info(ids, opts)
|
724
|
+
data
|
725
|
+
end
|
726
|
+
|
727
|
+
# Retrieves the rule group details for 1 or more rule groups.
|
728
|
+
# Full details of each rule group that matches a provided id will be returned in the response
|
729
|
+
# @param ids [Array<String>] One or more (up to 500) rule group ids in the form of `ids=ID1&ids=ID2`
|
730
|
+
# @param [Hash] opts the optional parameters
|
731
|
+
# @return [Array<(RulegroupsResponse, Integer, Hash)>] RulegroupsResponse data, response status code and response headers
|
732
|
+
def get_rule_groups_with_http_info(ids, opts = {})
|
733
|
+
if @api_client.config.debugging
|
734
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.get_rule_groups ...'
|
735
|
+
end
|
736
|
+
# verify the required parameter 'ids' is set
|
737
|
+
if @api_client.config.client_side_validation && ids.nil?
|
738
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.get_rule_groups"
|
739
|
+
end
|
740
|
+
# resource path
|
741
|
+
local_var_path = '/filevantage/entities/rule-groups/v1'
|
742
|
+
|
743
|
+
# query parameters
|
744
|
+
query_params = opts[:query_params] || {}
|
745
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
746
|
+
|
747
|
+
# header parameters
|
748
|
+
header_params = opts[:header_params] || {}
|
749
|
+
# HTTP header 'Accept' (if needed)
|
750
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
751
|
+
|
752
|
+
# form parameters
|
753
|
+
form_params = opts[:form_params] || {}
|
754
|
+
|
755
|
+
# http body (model)
|
756
|
+
post_body = opts[:debug_body]
|
757
|
+
|
758
|
+
# return_type
|
759
|
+
return_type = opts[:debug_return_type] || 'RulegroupsResponse'
|
760
|
+
|
761
|
+
# auth_names
|
762
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
763
|
+
|
764
|
+
new_options = opts.merge(
|
765
|
+
:operation => :"FilevantageApi.get_rule_groups",
|
766
|
+
:header_params => header_params,
|
767
|
+
:query_params => query_params,
|
768
|
+
:form_params => form_params,
|
769
|
+
:body => post_body,
|
770
|
+
:auth_names => auth_names,
|
771
|
+
:return_type => return_type
|
772
|
+
)
|
773
|
+
|
774
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
775
|
+
if @api_client.config.debugging
|
776
|
+
@api_client.config.logger.debug "API called: FilevantageApi#get_rule_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
777
|
+
end
|
778
|
+
return data, status_code, headers
|
779
|
+
end
|
780
|
+
|
781
|
+
# Retrieves the configuration for 1 or more rules.
|
782
|
+
# Rules within the provided rule group id that match a provided id will be returned within the response.
|
783
|
+
# @param rule_group_id [String] Rule group from which to retrieve the rule configuration.
|
784
|
+
# @param ids [Array<String>] One or more (up to 500) rule ids in the form of `ids=ID1&ids=ID2`.
|
785
|
+
# @param [Hash] opts the optional parameters
|
786
|
+
# @return [RulegroupsRulesResponse]
|
787
|
+
def get_rules(rule_group_id, ids, opts = {})
|
788
|
+
data, _status_code, _headers = get_rules_with_http_info(rule_group_id, ids, opts)
|
789
|
+
data
|
790
|
+
end
|
791
|
+
|
792
|
+
# Retrieves the configuration for 1 or more rules.
|
793
|
+
# Rules within the provided rule group id that match a provided id will be returned within the response.
|
794
|
+
# @param rule_group_id [String] Rule group from which to retrieve the rule configuration.
|
795
|
+
# @param ids [Array<String>] One or more (up to 500) rule ids in the form of `ids=ID1&ids=ID2`.
|
796
|
+
# @param [Hash] opts the optional parameters
|
797
|
+
# @return [Array<(RulegroupsRulesResponse, Integer, Hash)>] RulegroupsRulesResponse data, response status code and response headers
|
798
|
+
def get_rules_with_http_info(rule_group_id, ids, opts = {})
|
799
|
+
if @api_client.config.debugging
|
800
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.get_rules ...'
|
801
|
+
end
|
802
|
+
# verify the required parameter 'rule_group_id' is set
|
803
|
+
if @api_client.config.client_side_validation && rule_group_id.nil?
|
804
|
+
fail ArgumentError, "Missing the required parameter 'rule_group_id' when calling FilevantageApi.get_rules"
|
805
|
+
end
|
806
|
+
# verify the required parameter 'ids' is set
|
807
|
+
if @api_client.config.client_side_validation && ids.nil?
|
808
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.get_rules"
|
809
|
+
end
|
810
|
+
# resource path
|
811
|
+
local_var_path = '/filevantage/entities/rule-groups-rules/v1'
|
812
|
+
|
813
|
+
# query parameters
|
814
|
+
query_params = opts[:query_params] || {}
|
815
|
+
query_params[:'rule_group_id'] = rule_group_id
|
816
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
817
|
+
|
818
|
+
# header parameters
|
819
|
+
header_params = opts[:header_params] || {}
|
820
|
+
# HTTP header 'Accept' (if needed)
|
821
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
822
|
+
|
823
|
+
# form parameters
|
824
|
+
form_params = opts[:form_params] || {}
|
825
|
+
|
826
|
+
# http body (model)
|
827
|
+
post_body = opts[:debug_body]
|
828
|
+
|
829
|
+
# return_type
|
830
|
+
return_type = opts[:debug_return_type] || 'RulegroupsRulesResponse'
|
831
|
+
|
832
|
+
# auth_names
|
833
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
834
|
+
|
835
|
+
new_options = opts.merge(
|
836
|
+
:operation => :"FilevantageApi.get_rules",
|
837
|
+
:header_params => header_params,
|
838
|
+
:query_params => query_params,
|
839
|
+
:form_params => form_params,
|
840
|
+
:body => post_body,
|
841
|
+
:auth_names => auth_names,
|
842
|
+
:return_type => return_type
|
843
|
+
)
|
844
|
+
|
845
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
846
|
+
if @api_client.config.debugging
|
847
|
+
@api_client.config.logger.debug "API called: FilevantageApi#get_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
848
|
+
end
|
849
|
+
return data, status_code, headers
|
850
|
+
end
|
851
|
+
|
852
|
+
# Retrieves the configuration of 1 or more scheduled exclusions from the provided policy id.
|
853
|
+
# Full details of each each scheduled exclusion that match a provided id will be returned in the response.
|
854
|
+
# @param policy_id [String] The id of the policy to retrieve the scheduled exclusion configurations.
|
855
|
+
# @param ids [Array<String>] One or more (up to 500) scheduled exclusion ids in the form of `ids=ID1&ids=ID2`.
|
856
|
+
# @param [Hash] opts the optional parameters
|
857
|
+
# @return [ScheduledexclusionsResponse]
|
858
|
+
def get_scheduled_exclusions(policy_id, ids, opts = {})
|
859
|
+
data, _status_code, _headers = get_scheduled_exclusions_with_http_info(policy_id, ids, opts)
|
860
|
+
data
|
861
|
+
end
|
862
|
+
|
863
|
+
# Retrieves the configuration of 1 or more scheduled exclusions from the provided policy id.
|
864
|
+
# Full details of each each scheduled exclusion that match a provided id will be returned in the response.
|
865
|
+
# @param policy_id [String] The id of the policy to retrieve the scheduled exclusion configurations.
|
866
|
+
# @param ids [Array<String>] One or more (up to 500) scheduled exclusion ids in the form of `ids=ID1&ids=ID2`.
|
867
|
+
# @param [Hash] opts the optional parameters
|
868
|
+
# @return [Array<(ScheduledexclusionsResponse, Integer, Hash)>] ScheduledexclusionsResponse data, response status code and response headers
|
869
|
+
def get_scheduled_exclusions_with_http_info(policy_id, ids, opts = {})
|
870
|
+
if @api_client.config.debugging
|
871
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.get_scheduled_exclusions ...'
|
872
|
+
end
|
873
|
+
# verify the required parameter 'policy_id' is set
|
874
|
+
if @api_client.config.client_side_validation && policy_id.nil?
|
875
|
+
fail ArgumentError, "Missing the required parameter 'policy_id' when calling FilevantageApi.get_scheduled_exclusions"
|
876
|
+
end
|
877
|
+
# verify the required parameter 'ids' is set
|
878
|
+
if @api_client.config.client_side_validation && ids.nil?
|
879
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.get_scheduled_exclusions"
|
880
|
+
end
|
881
|
+
# resource path
|
882
|
+
local_var_path = '/filevantage/entities/policy-scheduled-exclusions/v1'
|
883
|
+
|
884
|
+
# query parameters
|
885
|
+
query_params = opts[:query_params] || {}
|
886
|
+
query_params[:'policy_id'] = policy_id
|
887
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
888
|
+
|
889
|
+
# header parameters
|
890
|
+
header_params = opts[:header_params] || {}
|
891
|
+
# HTTP header 'Accept' (if needed)
|
892
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
893
|
+
|
894
|
+
# form parameters
|
895
|
+
form_params = opts[:form_params] || {}
|
896
|
+
|
897
|
+
# http body (model)
|
898
|
+
post_body = opts[:debug_body]
|
899
|
+
|
900
|
+
# return_type
|
901
|
+
return_type = opts[:debug_return_type] || 'ScheduledexclusionsResponse'
|
902
|
+
|
903
|
+
# auth_names
|
904
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
905
|
+
|
906
|
+
new_options = opts.merge(
|
907
|
+
:operation => :"FilevantageApi.get_scheduled_exclusions",
|
908
|
+
:header_params => header_params,
|
909
|
+
:query_params => query_params,
|
910
|
+
:form_params => form_params,
|
911
|
+
:body => post_body,
|
912
|
+
:auth_names => auth_names,
|
913
|
+
:return_type => return_type
|
914
|
+
)
|
915
|
+
|
916
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
917
|
+
if @api_client.config.debugging
|
918
|
+
@api_client.config.logger.debug "API called: FilevantageApi#get_scheduled_exclusions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
919
|
+
end
|
920
|
+
return data, status_code, headers
|
921
|
+
end
|
922
|
+
|
923
|
+
# Returns 1 or more change ids
|
924
|
+
# Returns a list of Falcon FileVantage change IDs filtered, sorted and limited by the query parameters provided. It can retrieve an unlimited number of results using multiple requests.
|
925
|
+
# @param [Hash] opts the optional parameters
|
926
|
+
# @option opts [String] :after A pagination token used with the `limit` parameter to manage pagination of results. On your first request don't provide a value for the `after` token. On subsequent requests provide the `after` token value from the previous response to continue pagination from where you left. If the response returns an empty `after` token it means there are no more results to return.
|
927
|
+
# @option opts [Integer] :limit The maximum number of ids to return. Defaults to `100` if not specified. The maximum number of results that can be returned in a single call is `5000`. (default to 100)
|
928
|
+
# @option opts [String] :sort Sort results using options like: - `action_timestamp` (timestamp of the change occurrence) Sort either `asc` (ascending) or `desc` (descending). For example: `action_timestamp|asc`. Defaults to `action_timestamp|desc` no value is specified. The full list of allowed sorting options can be reviewed in our API documentation. (default to 'action_timestamp|desc')
|
929
|
+
# @option opts [String] :filter Filter changes using a query in Falcon Query Language (FQL). Common filter options include: - `host.name` - `action_timestamp` The full list of allowed filter parameters can be reviewed in our API documentation.
|
930
|
+
# @return [ChangesHighVolumeQueryResponse]
|
931
|
+
def high_volume_query_changes(opts = {})
|
932
|
+
data, _status_code, _headers = high_volume_query_changes_with_http_info(opts)
|
933
|
+
data
|
934
|
+
end
|
935
|
+
|
936
|
+
# Returns 1 or more change ids
|
937
|
+
# Returns a list of Falcon FileVantage change IDs filtered, sorted and limited by the query parameters provided. It can retrieve an unlimited number of results using multiple requests.
|
938
|
+
# @param [Hash] opts the optional parameters
|
939
|
+
# @option opts [String] :after A pagination token used with the `limit` parameter to manage pagination of results. On your first request don't provide a value for the `after` token. On subsequent requests provide the `after` token value from the previous response to continue pagination from where you left. If the response returns an empty `after` token it means there are no more results to return.
|
940
|
+
# @option opts [Integer] :limit The maximum number of ids to return. Defaults to `100` if not specified. The maximum number of results that can be returned in a single call is `5000`. (default to 100)
|
941
|
+
# @option opts [String] :sort Sort results using options like: - `action_timestamp` (timestamp of the change occurrence) Sort either `asc` (ascending) or `desc` (descending). For example: `action_timestamp|asc`. Defaults to `action_timestamp|desc` no value is specified. The full list of allowed sorting options can be reviewed in our API documentation. (default to 'action_timestamp|desc')
|
942
|
+
# @option opts [String] :filter Filter changes using a query in Falcon Query Language (FQL). Common filter options include: - `host.name` - `action_timestamp` The full list of allowed filter parameters can be reviewed in our API documentation.
|
943
|
+
# @return [Array<(ChangesHighVolumeQueryResponse, Integer, Hash)>] ChangesHighVolumeQueryResponse data, response status code and response headers
|
944
|
+
def high_volume_query_changes_with_http_info(opts = {})
|
945
|
+
if @api_client.config.debugging
|
946
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.high_volume_query_changes ...'
|
947
|
+
end
|
948
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000
|
949
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling FilevantageApi.high_volume_query_changes, must be smaller than or equal to 5000.'
|
950
|
+
end
|
951
|
+
|
952
|
+
# resource path
|
953
|
+
local_var_path = '/filevantage/queries/changes/v3'
|
954
|
+
|
955
|
+
# query parameters
|
956
|
+
query_params = opts[:query_params] || {}
|
957
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
958
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
959
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
960
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
961
|
+
|
962
|
+
# header parameters
|
963
|
+
header_params = opts[:header_params] || {}
|
964
|
+
# HTTP header 'Accept' (if needed)
|
965
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
966
|
+
|
967
|
+
# form parameters
|
968
|
+
form_params = opts[:form_params] || {}
|
969
|
+
|
970
|
+
# http body (model)
|
971
|
+
post_body = opts[:debug_body]
|
972
|
+
|
973
|
+
# return_type
|
974
|
+
return_type = opts[:debug_return_type] || 'ChangesHighVolumeQueryResponse'
|
975
|
+
|
976
|
+
# auth_names
|
977
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
978
|
+
|
979
|
+
new_options = opts.merge(
|
980
|
+
:operation => :"FilevantageApi.high_volume_query_changes",
|
981
|
+
:header_params => header_params,
|
982
|
+
:query_params => query_params,
|
983
|
+
:form_params => form_params,
|
984
|
+
:body => post_body,
|
985
|
+
:auth_names => auth_names,
|
986
|
+
:return_type => return_type
|
987
|
+
)
|
988
|
+
|
989
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
990
|
+
if @api_client.config.debugging
|
991
|
+
@api_client.config.logger.debug "API called: FilevantageApi#high_volume_query_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
992
|
+
end
|
993
|
+
return data, status_code, headers
|
994
|
+
end
|
995
|
+
|
996
|
+
# Returns 1 or more change ids
|
997
|
+
# Returns a list of Falcon FileVantage change IDs filtered, sorted and limited by the query parameters provided. Using this endpoint you can retrieve up to `10000` results by using pagination with multiple requests. If you need to retrieve more than `10000` results consider using the `/queries/changes/v3` endpoint
|
998
|
+
# @param [Hash] opts the optional parameters
|
999
|
+
# @option opts [Integer] :offset The offset to start retrieving records from. Defaults to `0` if not specified. (default to 0)
|
1000
|
+
# @option opts [Integer] :limit The maximum number of ids to return. Defaults to `100` if not specified. The maximum number of results that can be returned in a single call is `500`. (default to 100)
|
1001
|
+
# @option opts [String] :sort Sort results using options like: - `action_timestamp` (timestamp of the change occurrence) Sort either `asc` (ascending) or `desc` (descending). For example: `action_timestamp|asc`. The full list of allowed sorting options can be reviewed in our API documentation.
|
1002
|
+
# @option opts [String] :filter Filter changes using a query in Falcon Query Language (FQL). Common filter options include: - `host.name` - `action_timestamp` The full list of allowed filter parameters can be reviewed in our API documentation.
|
1003
|
+
# @return [MsaspecQueryResponse]
|
1004
|
+
def query_changes(opts = {})
|
1005
|
+
data, _status_code, _headers = query_changes_with_http_info(opts)
|
1006
|
+
data
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
# Returns 1 or more change ids
|
1010
|
+
# Returns a list of Falcon FileVantage change IDs filtered, sorted and limited by the query parameters provided. Using this endpoint you can retrieve up to `10000` results by using pagination with multiple requests. If you need to retrieve more than `10000` results consider using the `/queries/changes/v3` endpoint
|
1011
|
+
# @param [Hash] opts the optional parameters
|
1012
|
+
# @option opts [Integer] :offset The offset to start retrieving records from. Defaults to `0` if not specified. (default to 0)
|
1013
|
+
# @option opts [Integer] :limit The maximum number of ids to return. Defaults to `100` if not specified. The maximum number of results that can be returned in a single call is `500`. (default to 100)
|
1014
|
+
# @option opts [String] :sort Sort results using options like: - `action_timestamp` (timestamp of the change occurrence) Sort either `asc` (ascending) or `desc` (descending). For example: `action_timestamp|asc`. The full list of allowed sorting options can be reviewed in our API documentation.
|
1015
|
+
# @option opts [String] :filter Filter changes using a query in Falcon Query Language (FQL). Common filter options include: - `host.name` - `action_timestamp` The full list of allowed filter parameters can be reviewed in our API documentation.
|
1016
|
+
# @return [Array<(MsaspecQueryResponse, Integer, Hash)>] MsaspecQueryResponse data, response status code and response headers
|
1017
|
+
def query_changes_with_http_info(opts = {})
|
1018
|
+
if @api_client.config.debugging
|
1019
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.query_changes ...'
|
1020
|
+
end
|
1021
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1022
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling FilevantageApi.query_changes, must be greater than or equal to 0.'
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
1026
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling FilevantageApi.query_changes, must be smaller than or equal to 500.'
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
# resource path
|
1030
|
+
local_var_path = '/filevantage/queries/changes/v2'
|
1031
|
+
|
1032
|
+
# query parameters
|
1033
|
+
query_params = opts[:query_params] || {}
|
1034
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1035
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1036
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
1037
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
1038
|
+
|
1039
|
+
# header parameters
|
1040
|
+
header_params = opts[:header_params] || {}
|
1041
|
+
# HTTP header 'Accept' (if needed)
|
1042
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1043
|
+
|
1044
|
+
# form parameters
|
1045
|
+
form_params = opts[:form_params] || {}
|
1046
|
+
|
1047
|
+
# http body (model)
|
1048
|
+
post_body = opts[:debug_body]
|
1049
|
+
|
1050
|
+
# return_type
|
1051
|
+
return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'
|
1052
|
+
|
1053
|
+
# auth_names
|
1054
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1055
|
+
|
1056
|
+
new_options = opts.merge(
|
1057
|
+
:operation => :"FilevantageApi.query_changes",
|
1058
|
+
:header_params => header_params,
|
1059
|
+
:query_params => query_params,
|
1060
|
+
:form_params => form_params,
|
1061
|
+
:body => post_body,
|
1062
|
+
:auth_names => auth_names,
|
1063
|
+
:return_type => return_type
|
1064
|
+
)
|
1065
|
+
|
1066
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1067
|
+
if @api_client.config.debugging
|
1068
|
+
@api_client.config.logger.debug "API called: FilevantageApi#query_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1069
|
+
end
|
1070
|
+
return data, status_code, headers
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
# Retrieve the ids of all policies that are assigned the provided policy type.
|
1074
|
+
# Policy ids will be returned sorted by a `precedence` order of ascending when a `sort` parameter is not provided.
|
1075
|
+
# @param type [String] The types of policies to retrieve. Allowed values are: `Windows`, `Linux` or `Mac`.
|
1076
|
+
# @param [Hash] opts the optional parameters
|
1077
|
+
# @option opts [Integer] :offset The offset to start retrieving records from. Defaults to 0 if not specified.
|
1078
|
+
# @option opts [Integer] :limit The maximum number of ids to return. Defaults to 100 if not specified. The maximum number of results that can be returned in a single call is 500.
|
1079
|
+
# @option opts [String] :sort Sort the returned ids based on one of the following properties: `precedence`, `created_timestamp` or `modified_timestamp` Sort either `asc` (ascending) or `desc` (descending); for example: `precedence|asc`.
|
1080
|
+
# @return [MsaspecQueryResponse]
|
1081
|
+
def query_policies(type, opts = {})
|
1082
|
+
data, _status_code, _headers = query_policies_with_http_info(type, opts)
|
1083
|
+
data
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
# Retrieve the ids of all policies that are assigned the provided policy type.
|
1087
|
+
# Policy ids will be returned sorted by a `precedence` order of ascending when a `sort` parameter is not provided.
|
1088
|
+
# @param type [String] The types of policies to retrieve. Allowed values are: `Windows`, `Linux` or `Mac`.
|
1089
|
+
# @param [Hash] opts the optional parameters
|
1090
|
+
# @option opts [Integer] :offset The offset to start retrieving records from. Defaults to 0 if not specified.
|
1091
|
+
# @option opts [Integer] :limit The maximum number of ids to return. Defaults to 100 if not specified. The maximum number of results that can be returned in a single call is 500.
|
1092
|
+
# @option opts [String] :sort Sort the returned ids based on one of the following properties: `precedence`, `created_timestamp` or `modified_timestamp` Sort either `asc` (ascending) or `desc` (descending); for example: `precedence|asc`.
|
1093
|
+
# @return [Array<(MsaspecQueryResponse, Integer, Hash)>] MsaspecQueryResponse data, response status code and response headers
|
1094
|
+
def query_policies_with_http_info(type, opts = {})
|
1095
|
+
if @api_client.config.debugging
|
1096
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.query_policies ...'
|
1097
|
+
end
|
1098
|
+
# verify the required parameter 'type' is set
|
1099
|
+
if @api_client.config.client_side_validation && type.nil?
|
1100
|
+
fail ArgumentError, "Missing the required parameter 'type' when calling FilevantageApi.query_policies"
|
1101
|
+
end
|
1102
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1103
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling FilevantageApi.query_policies, must be greater than or equal to 0.'
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
# resource path
|
1107
|
+
local_var_path = '/filevantage/queries/policies/v1'
|
1108
|
+
|
1109
|
+
# query parameters
|
1110
|
+
query_params = opts[:query_params] || {}
|
1111
|
+
query_params[:'type'] = type
|
1112
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1113
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1114
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
1115
|
+
|
1116
|
+
# header parameters
|
1117
|
+
header_params = opts[:header_params] || {}
|
1118
|
+
# HTTP header 'Accept' (if needed)
|
1119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1120
|
+
|
1121
|
+
# form parameters
|
1122
|
+
form_params = opts[:form_params] || {}
|
1123
|
+
|
1124
|
+
# http body (model)
|
1125
|
+
post_body = opts[:debug_body]
|
1126
|
+
|
1127
|
+
# return_type
|
1128
|
+
return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'
|
1129
|
+
|
1130
|
+
# auth_names
|
1131
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1132
|
+
|
1133
|
+
new_options = opts.merge(
|
1134
|
+
:operation => :"FilevantageApi.query_policies",
|
1135
|
+
:header_params => header_params,
|
1136
|
+
:query_params => query_params,
|
1137
|
+
:form_params => form_params,
|
1138
|
+
:body => post_body,
|
1139
|
+
:auth_names => auth_names,
|
1140
|
+
:return_type => return_type
|
1141
|
+
)
|
1142
|
+
|
1143
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1144
|
+
if @api_client.config.debugging
|
1145
|
+
@api_client.config.logger.debug "API called: FilevantageApi#query_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1146
|
+
end
|
1147
|
+
return data, status_code, headers
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# Retrieve the ids of all rule groups that are of the provided rule group type.
|
1151
|
+
# Rule group ids will be returned sorted by `created_timestamp` order if a `sort` parameter is not provided
|
1152
|
+
# @param type [String] The rule group type to retrieve the ids of. Allowed values are: `WindowsFiles`, `WindowsRegistry`, `LinuxFiles` or `MacFiles`.
|
1153
|
+
# @param [Hash] opts the optional parameters
|
1154
|
+
# @option opts [Integer] :offset The offset to start retrieving records from. Defaults to 0 if not specified.
|
1155
|
+
# @option opts [Integer] :limit The maximum number of ids to return. Defaults to 100 if not specified. The maximum number of results that can be returned in a single call is 500.
|
1156
|
+
# @option opts [String] :sort Sort the returned ids based on one of the following properties: `created_timestamp` or `modified_timestamp` Sort either `asc` (ascending) or `desc` (descending); for example: `created_timestamp|asc`.
|
1157
|
+
# @return [MsaspecQueryResponse]
|
1158
|
+
def query_rule_groups(type, opts = {})
|
1159
|
+
data, _status_code, _headers = query_rule_groups_with_http_info(type, opts)
|
1160
|
+
data
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
# Retrieve the ids of all rule groups that are of the provided rule group type.
|
1164
|
+
# Rule group ids will be returned sorted by `created_timestamp` order if a `sort` parameter is not provided
|
1165
|
+
# @param type [String] The rule group type to retrieve the ids of. Allowed values are: `WindowsFiles`, `WindowsRegistry`, `LinuxFiles` or `MacFiles`.
|
1166
|
+
# @param [Hash] opts the optional parameters
|
1167
|
+
# @option opts [Integer] :offset The offset to start retrieving records from. Defaults to 0 if not specified.
|
1168
|
+
# @option opts [Integer] :limit The maximum number of ids to return. Defaults to 100 if not specified. The maximum number of results that can be returned in a single call is 500.
|
1169
|
+
# @option opts [String] :sort Sort the returned ids based on one of the following properties: `created_timestamp` or `modified_timestamp` Sort either `asc` (ascending) or `desc` (descending); for example: `created_timestamp|asc`.
|
1170
|
+
# @return [Array<(MsaspecQueryResponse, Integer, Hash)>] MsaspecQueryResponse data, response status code and response headers
|
1171
|
+
def query_rule_groups_with_http_info(type, opts = {})
|
1172
|
+
if @api_client.config.debugging
|
1173
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.query_rule_groups ...'
|
1174
|
+
end
|
1175
|
+
# verify the required parameter 'type' is set
|
1176
|
+
if @api_client.config.client_side_validation && type.nil?
|
1177
|
+
fail ArgumentError, "Missing the required parameter 'type' when calling FilevantageApi.query_rule_groups"
|
1178
|
+
end
|
1179
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1180
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling FilevantageApi.query_rule_groups, must be greater than or equal to 0.'
|
1181
|
+
end
|
1182
|
+
|
1183
|
+
# resource path
|
1184
|
+
local_var_path = '/filevantage/queries/rule-groups/v1'
|
1185
|
+
|
1186
|
+
# query parameters
|
1187
|
+
query_params = opts[:query_params] || {}
|
1188
|
+
query_params[:'type'] = type
|
1189
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1190
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1191
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
1192
|
+
|
1193
|
+
# header parameters
|
1194
|
+
header_params = opts[:header_params] || {}
|
1195
|
+
# HTTP header 'Accept' (if needed)
|
1196
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1197
|
+
|
1198
|
+
# form parameters
|
1199
|
+
form_params = opts[:form_params] || {}
|
1200
|
+
|
1201
|
+
# http body (model)
|
1202
|
+
post_body = opts[:debug_body]
|
1203
|
+
|
1204
|
+
# return_type
|
1205
|
+
return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'
|
1206
|
+
|
1207
|
+
# auth_names
|
1208
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1209
|
+
|
1210
|
+
new_options = opts.merge(
|
1211
|
+
:operation => :"FilevantageApi.query_rule_groups",
|
1212
|
+
:header_params => header_params,
|
1213
|
+
:query_params => query_params,
|
1214
|
+
:form_params => form_params,
|
1215
|
+
:body => post_body,
|
1216
|
+
:auth_names => auth_names,
|
1217
|
+
:return_type => return_type
|
1218
|
+
)
|
1219
|
+
|
1220
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1221
|
+
if @api_client.config.debugging
|
1222
|
+
@api_client.config.logger.debug "API called: FilevantageApi#query_rule_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1223
|
+
end
|
1224
|
+
return data, status_code, headers
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
# Retrieve the ids of all scheduled exclusions contained within the provided policy id.
|
1228
|
+
# Retrieve the ids of all scheduled exclusions contained within the provided policy id
|
1229
|
+
# @param policy_id [String] The id of the policy from which to retrieve the scheduled exclusion ids.
|
1230
|
+
# @param [Hash] opts the optional parameters
|
1231
|
+
# @return [MsaspecQueryResponse]
|
1232
|
+
def query_scheduled_exclusions(policy_id, opts = {})
|
1233
|
+
data, _status_code, _headers = query_scheduled_exclusions_with_http_info(policy_id, opts)
|
1234
|
+
data
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
# Retrieve the ids of all scheduled exclusions contained within the provided policy id.
|
1238
|
+
# Retrieve the ids of all scheduled exclusions contained within the provided policy id
|
1239
|
+
# @param policy_id [String] The id of the policy from which to retrieve the scheduled exclusion ids.
|
1240
|
+
# @param [Hash] opts the optional parameters
|
1241
|
+
# @return [Array<(MsaspecQueryResponse, Integer, Hash)>] MsaspecQueryResponse data, response status code and response headers
|
1242
|
+
def query_scheduled_exclusions_with_http_info(policy_id, opts = {})
|
1243
|
+
if @api_client.config.debugging
|
1244
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.query_scheduled_exclusions ...'
|
1245
|
+
end
|
1246
|
+
# verify the required parameter 'policy_id' is set
|
1247
|
+
if @api_client.config.client_side_validation && policy_id.nil?
|
1248
|
+
fail ArgumentError, "Missing the required parameter 'policy_id' when calling FilevantageApi.query_scheduled_exclusions"
|
1249
|
+
end
|
1250
|
+
# resource path
|
1251
|
+
local_var_path = '/filevantage/queries/policy-scheduled-exclusions/v1'
|
1252
|
+
|
1253
|
+
# query parameters
|
1254
|
+
query_params = opts[:query_params] || {}
|
1255
|
+
query_params[:'policy_id'] = policy_id
|
1256
|
+
|
1257
|
+
# header parameters
|
1258
|
+
header_params = opts[:header_params] || {}
|
1259
|
+
# HTTP header 'Accept' (if needed)
|
1260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1261
|
+
|
1262
|
+
# form parameters
|
1263
|
+
form_params = opts[:form_params] || {}
|
1264
|
+
|
1265
|
+
# http body (model)
|
1266
|
+
post_body = opts[:debug_body]
|
1267
|
+
|
1268
|
+
# return_type
|
1269
|
+
return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'
|
1270
|
+
|
1271
|
+
# auth_names
|
1272
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1273
|
+
|
1274
|
+
new_options = opts.merge(
|
1275
|
+
:operation => :"FilevantageApi.query_scheduled_exclusions",
|
1276
|
+
:header_params => header_params,
|
1277
|
+
:query_params => query_params,
|
1278
|
+
:form_params => form_params,
|
1279
|
+
:body => post_body,
|
1280
|
+
:auth_names => auth_names,
|
1281
|
+
:return_type => return_type
|
1282
|
+
)
|
1283
|
+
|
1284
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1285
|
+
if @api_client.config.debugging
|
1286
|
+
@api_client.config.logger.debug "API called: FilevantageApi#query_scheduled_exclusions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1287
|
+
end
|
1288
|
+
return data, status_code, headers
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
# Updates the general information of the provided policy.
|
1292
|
+
# Only name, description, and enabled status of the policy is allowed to be update. Rule and host group assignment is performed via their respective patch end points.
|
1293
|
+
# @param body [PoliciesUpdateRequest] Enables updates to the following fields for an existing policy. * `id` of the policy to update. * `name` must be between 1 and 100 characters. * `description` can be between 0 and 500 characters. * `platform` may not be modified after the policy is created. * `enabled` must be one of `true` or `false`. Rule and host group assignment and policy precedence setting is performed via their respective patch end-points.
|
1294
|
+
# @param [Hash] opts the optional parameters
|
1295
|
+
# @return [PoliciesResponse]
|
1296
|
+
def update_policies(body, opts = {})
|
1297
|
+
data, _status_code, _headers = update_policies_with_http_info(body, opts)
|
1298
|
+
data
|
1299
|
+
end
|
1300
|
+
|
1301
|
+
# Updates the general information of the provided policy.
|
1302
|
+
# Only name, description, and enabled status of the policy is allowed to be update. Rule and host group assignment is performed via their respective patch end points.
|
1303
|
+
# @param body [PoliciesUpdateRequest] Enables updates to the following fields for an existing policy. * `id` of the policy to update. * `name` must be between 1 and 100 characters. * `description` can be between 0 and 500 characters. * `platform` may not be modified after the policy is created. * `enabled` must be one of `true` or `false`. Rule and host group assignment and policy precedence setting is performed via their respective patch end-points.
|
1304
|
+
# @param [Hash] opts the optional parameters
|
1305
|
+
# @return [Array<(PoliciesResponse, Integer, Hash)>] PoliciesResponse data, response status code and response headers
|
1306
|
+
def update_policies_with_http_info(body, opts = {})
|
1307
|
+
if @api_client.config.debugging
|
1308
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.update_policies ...'
|
1309
|
+
end
|
1310
|
+
# verify the required parameter 'body' is set
|
1311
|
+
if @api_client.config.client_side_validation && body.nil?
|
1312
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FilevantageApi.update_policies"
|
1313
|
+
end
|
1314
|
+
# resource path
|
1315
|
+
local_var_path = '/filevantage/entities/policies/v1'
|
1316
|
+
|
1317
|
+
# query parameters
|
1318
|
+
query_params = opts[:query_params] || {}
|
1319
|
+
|
1320
|
+
# header parameters
|
1321
|
+
header_params = opts[:header_params] || {}
|
1322
|
+
# HTTP header 'Accept' (if needed)
|
1323
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1324
|
+
# HTTP header 'Content-Type'
|
1325
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1326
|
+
if !content_type.nil?
|
1327
|
+
header_params['Content-Type'] = content_type
|
1328
|
+
end
|
1329
|
+
|
1330
|
+
# form parameters
|
1331
|
+
form_params = opts[:form_params] || {}
|
1332
|
+
|
1333
|
+
# http body (model)
|
1334
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1335
|
+
|
1336
|
+
# return_type
|
1337
|
+
return_type = opts[:debug_return_type] || 'PoliciesResponse'
|
1338
|
+
|
1339
|
+
# auth_names
|
1340
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1341
|
+
|
1342
|
+
new_options = opts.merge(
|
1343
|
+
:operation => :"FilevantageApi.update_policies",
|
1344
|
+
:header_params => header_params,
|
1345
|
+
:query_params => query_params,
|
1346
|
+
:form_params => form_params,
|
1347
|
+
:body => post_body,
|
1348
|
+
:auth_names => auth_names,
|
1349
|
+
:return_type => return_type
|
1350
|
+
)
|
1351
|
+
|
1352
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1353
|
+
if @api_client.config.debugging
|
1354
|
+
@api_client.config.logger.debug "API called: FilevantageApi#update_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1355
|
+
end
|
1356
|
+
return data, status_code, headers
|
1357
|
+
end
|
1358
|
+
|
1359
|
+
# Manage host groups assigned to a policy.
|
1360
|
+
# Manage host groups assigned to a policy.
|
1361
|
+
# @param policy_id [String] The id of the policy for which to perform the action.
|
1362
|
+
# @param action [String] The action to perform with the provided ids, must be one of: `assign` or `unassign`.
|
1363
|
+
# @param ids [Array<String>] One or more host group ids in the form of `ids=ID1&ids=ID2`
|
1364
|
+
# @param [Hash] opts the optional parameters
|
1365
|
+
# @return [PoliciesResponse]
|
1366
|
+
def update_policy_host_groups(policy_id, action, ids, opts = {})
|
1367
|
+
data, _status_code, _headers = update_policy_host_groups_with_http_info(policy_id, action, ids, opts)
|
1368
|
+
data
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
# Manage host groups assigned to a policy.
|
1372
|
+
# Manage host groups assigned to a policy.
|
1373
|
+
# @param policy_id [String] The id of the policy for which to perform the action.
|
1374
|
+
# @param action [String] The action to perform with the provided ids, must be one of: `assign` or `unassign`.
|
1375
|
+
# @param ids [Array<String>] One or more host group ids in the form of `ids=ID1&ids=ID2`
|
1376
|
+
# @param [Hash] opts the optional parameters
|
1377
|
+
# @return [Array<(PoliciesResponse, Integer, Hash)>] PoliciesResponse data, response status code and response headers
|
1378
|
+
def update_policy_host_groups_with_http_info(policy_id, action, ids, opts = {})
|
1379
|
+
if @api_client.config.debugging
|
1380
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.update_policy_host_groups ...'
|
1381
|
+
end
|
1382
|
+
# verify the required parameter 'policy_id' is set
|
1383
|
+
if @api_client.config.client_side_validation && policy_id.nil?
|
1384
|
+
fail ArgumentError, "Missing the required parameter 'policy_id' when calling FilevantageApi.update_policy_host_groups"
|
1385
|
+
end
|
1386
|
+
# verify the required parameter 'action' is set
|
1387
|
+
if @api_client.config.client_side_validation && action.nil?
|
1388
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling FilevantageApi.update_policy_host_groups"
|
1389
|
+
end
|
1390
|
+
# verify the required parameter 'ids' is set
|
1391
|
+
if @api_client.config.client_side_validation && ids.nil?
|
1392
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.update_policy_host_groups"
|
1393
|
+
end
|
1394
|
+
# resource path
|
1395
|
+
local_var_path = '/filevantage/entities/policies-host-groups/v1'
|
1396
|
+
|
1397
|
+
# query parameters
|
1398
|
+
query_params = opts[:query_params] || {}
|
1399
|
+
query_params[:'policy_id'] = policy_id
|
1400
|
+
query_params[:'action'] = action
|
1401
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
1402
|
+
|
1403
|
+
# header parameters
|
1404
|
+
header_params = opts[:header_params] || {}
|
1405
|
+
# HTTP header 'Accept' (if needed)
|
1406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1407
|
+
|
1408
|
+
# form parameters
|
1409
|
+
form_params = opts[:form_params] || {}
|
1410
|
+
|
1411
|
+
# http body (model)
|
1412
|
+
post_body = opts[:debug_body]
|
1413
|
+
|
1414
|
+
# return_type
|
1415
|
+
return_type = opts[:debug_return_type] || 'PoliciesResponse'
|
1416
|
+
|
1417
|
+
# auth_names
|
1418
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1419
|
+
|
1420
|
+
new_options = opts.merge(
|
1421
|
+
:operation => :"FilevantageApi.update_policy_host_groups",
|
1422
|
+
:header_params => header_params,
|
1423
|
+
:query_params => query_params,
|
1424
|
+
:form_params => form_params,
|
1425
|
+
:body => post_body,
|
1426
|
+
:auth_names => auth_names,
|
1427
|
+
:return_type => return_type
|
1428
|
+
)
|
1429
|
+
|
1430
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1431
|
+
if @api_client.config.debugging
|
1432
|
+
@api_client.config.logger.debug "API called: FilevantageApi#update_policy_host_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1433
|
+
end
|
1434
|
+
return data, status_code, headers
|
1435
|
+
end
|
1436
|
+
|
1437
|
+
# Updates the policy precedence for all policies of a specific type.
|
1438
|
+
# Requests that do not represent all ids of the provided policy type will not be processed.
|
1439
|
+
# @param ids [Array<String>] Precedence of the policies for the provided type in the form of `ids=ID1&ids=ID2`
|
1440
|
+
# @param type [String] The policy type for which to set the precedence order, must be one of `Windows`, `Linux` or `Mac`.
|
1441
|
+
# @param [Hash] opts the optional parameters
|
1442
|
+
# @return [PoliciesPrecedenceResponse]
|
1443
|
+
def update_policy_precedence(ids, type, opts = {})
|
1444
|
+
data, _status_code, _headers = update_policy_precedence_with_http_info(ids, type, opts)
|
1445
|
+
data
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
# Updates the policy precedence for all policies of a specific type.
|
1449
|
+
# Requests that do not represent all ids of the provided policy type will not be processed.
|
1450
|
+
# @param ids [Array<String>] Precedence of the policies for the provided type in the form of `ids=ID1&ids=ID2`
|
1451
|
+
# @param type [String] The policy type for which to set the precedence order, must be one of `Windows`, `Linux` or `Mac`.
|
1452
|
+
# @param [Hash] opts the optional parameters
|
1453
|
+
# @return [Array<(PoliciesPrecedenceResponse, Integer, Hash)>] PoliciesPrecedenceResponse data, response status code and response headers
|
1454
|
+
def update_policy_precedence_with_http_info(ids, type, opts = {})
|
1455
|
+
if @api_client.config.debugging
|
1456
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.update_policy_precedence ...'
|
1457
|
+
end
|
1458
|
+
# verify the required parameter 'ids' is set
|
1459
|
+
if @api_client.config.client_side_validation && ids.nil?
|
1460
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.update_policy_precedence"
|
1461
|
+
end
|
1462
|
+
# verify the required parameter 'type' is set
|
1463
|
+
if @api_client.config.client_side_validation && type.nil?
|
1464
|
+
fail ArgumentError, "Missing the required parameter 'type' when calling FilevantageApi.update_policy_precedence"
|
1465
|
+
end
|
1466
|
+
# resource path
|
1467
|
+
local_var_path = '/filevantage/entities/policies-precedence/v1'
|
1468
|
+
|
1469
|
+
# query parameters
|
1470
|
+
query_params = opts[:query_params] || {}
|
1471
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
1472
|
+
query_params[:'type'] = type
|
1473
|
+
|
1474
|
+
# header parameters
|
1475
|
+
header_params = opts[:header_params] || {}
|
1476
|
+
# HTTP header 'Accept' (if needed)
|
1477
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1478
|
+
|
1479
|
+
# form parameters
|
1480
|
+
form_params = opts[:form_params] || {}
|
1481
|
+
|
1482
|
+
# http body (model)
|
1483
|
+
post_body = opts[:debug_body]
|
1484
|
+
|
1485
|
+
# return_type
|
1486
|
+
return_type = opts[:debug_return_type] || 'PoliciesPrecedenceResponse'
|
1487
|
+
|
1488
|
+
# auth_names
|
1489
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1490
|
+
|
1491
|
+
new_options = opts.merge(
|
1492
|
+
:operation => :"FilevantageApi.update_policy_precedence",
|
1493
|
+
:header_params => header_params,
|
1494
|
+
:query_params => query_params,
|
1495
|
+
:form_params => form_params,
|
1496
|
+
:body => post_body,
|
1497
|
+
:auth_names => auth_names,
|
1498
|
+
:return_type => return_type
|
1499
|
+
)
|
1500
|
+
|
1501
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1502
|
+
if @api_client.config.debugging
|
1503
|
+
@api_client.config.logger.debug "API called: FilevantageApi#update_policy_precedence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1504
|
+
end
|
1505
|
+
return data, status_code, headers
|
1506
|
+
end
|
1507
|
+
|
1508
|
+
# Manage the rule groups assigned to the policy or set the rule group precedence for all rule groups within the policy.
|
1509
|
+
# Manage the rule groups assigned to the policy. Rule groups must be of the same type as the policy they are being added: * `WindowsRegistry` and `WindowsFiles` groups can only be added to a `Windows` policy. * `LinuxFiles` groups can only be added to a `Linux` policy. * `MacFiles` groups can only be added to a `Mac` policy. When setting rule group precedence, the precedence for `all` rule group ids within the policy must be provided.
|
1510
|
+
# @param policy_id [String] The id of the policy for which to perform the action.
|
1511
|
+
# @param action [String] The action to perform with the provided ids, must be one of: `assign`, `unassign`, or `precedence`.
|
1512
|
+
# @param ids [Array<String>] One or more rule group ids in the form of ids=ID1&ids=ID2. Note, for the precedence action, precedence is controlled by the order of the ids as they are specified in the request.
|
1513
|
+
# @param [Hash] opts the optional parameters
|
1514
|
+
# @return [PoliciesResponse]
|
1515
|
+
def update_policy_rule_groups(policy_id, action, ids, opts = {})
|
1516
|
+
data, _status_code, _headers = update_policy_rule_groups_with_http_info(policy_id, action, ids, opts)
|
1517
|
+
data
|
1518
|
+
end
|
1519
|
+
|
1520
|
+
# Manage the rule groups assigned to the policy or set the rule group precedence for all rule groups within the policy.
|
1521
|
+
# Manage the rule groups assigned to the policy. Rule groups must be of the same type as the policy they are being added: * `WindowsRegistry` and `WindowsFiles` groups can only be added to a `Windows` policy. * `LinuxFiles` groups can only be added to a `Linux` policy. * `MacFiles` groups can only be added to a `Mac` policy. When setting rule group precedence, the precedence for `all` rule group ids within the policy must be provided.
|
1522
|
+
# @param policy_id [String] The id of the policy for which to perform the action.
|
1523
|
+
# @param action [String] The action to perform with the provided ids, must be one of: `assign`, `unassign`, or `precedence`.
|
1524
|
+
# @param ids [Array<String>] One or more rule group ids in the form of ids=ID1&ids=ID2. Note, for the precedence action, precedence is controlled by the order of the ids as they are specified in the request.
|
1525
|
+
# @param [Hash] opts the optional parameters
|
1526
|
+
# @return [Array<(PoliciesResponse, Integer, Hash)>] PoliciesResponse data, response status code and response headers
|
1527
|
+
def update_policy_rule_groups_with_http_info(policy_id, action, ids, opts = {})
|
1528
|
+
if @api_client.config.debugging
|
1529
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.update_policy_rule_groups ...'
|
1530
|
+
end
|
1531
|
+
# verify the required parameter 'policy_id' is set
|
1532
|
+
if @api_client.config.client_side_validation && policy_id.nil?
|
1533
|
+
fail ArgumentError, "Missing the required parameter 'policy_id' when calling FilevantageApi.update_policy_rule_groups"
|
1534
|
+
end
|
1535
|
+
# verify the required parameter 'action' is set
|
1536
|
+
if @api_client.config.client_side_validation && action.nil?
|
1537
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling FilevantageApi.update_policy_rule_groups"
|
1538
|
+
end
|
1539
|
+
# verify the required parameter 'ids' is set
|
1540
|
+
if @api_client.config.client_side_validation && ids.nil?
|
1541
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.update_policy_rule_groups"
|
1542
|
+
end
|
1543
|
+
# resource path
|
1544
|
+
local_var_path = '/filevantage/entities/policies-rule-groups/v1'
|
1545
|
+
|
1546
|
+
# query parameters
|
1547
|
+
query_params = opts[:query_params] || {}
|
1548
|
+
query_params[:'policy_id'] = policy_id
|
1549
|
+
query_params[:'action'] = action
|
1550
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
1551
|
+
|
1552
|
+
# header parameters
|
1553
|
+
header_params = opts[:header_params] || {}
|
1554
|
+
# HTTP header 'Accept' (if needed)
|
1555
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1556
|
+
|
1557
|
+
# form parameters
|
1558
|
+
form_params = opts[:form_params] || {}
|
1559
|
+
|
1560
|
+
# http body (model)
|
1561
|
+
post_body = opts[:debug_body]
|
1562
|
+
|
1563
|
+
# return_type
|
1564
|
+
return_type = opts[:debug_return_type] || 'PoliciesResponse'
|
1565
|
+
|
1566
|
+
# auth_names
|
1567
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1568
|
+
|
1569
|
+
new_options = opts.merge(
|
1570
|
+
:operation => :"FilevantageApi.update_policy_rule_groups",
|
1571
|
+
:header_params => header_params,
|
1572
|
+
:query_params => query_params,
|
1573
|
+
:form_params => form_params,
|
1574
|
+
:body => post_body,
|
1575
|
+
:auth_names => auth_names,
|
1576
|
+
:return_type => return_type
|
1577
|
+
)
|
1578
|
+
|
1579
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1580
|
+
if @api_client.config.debugging
|
1581
|
+
@api_client.config.logger.debug "API called: FilevantageApi#update_policy_rule_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1582
|
+
end
|
1583
|
+
return data, status_code, headers
|
1584
|
+
end
|
1585
|
+
|
1586
|
+
# Updates the rule precedence for all rules in the identified rule group.
|
1587
|
+
# The ids for `all` rules contained within the rule group must be specified in the desired precedence order. Requests that do not represent all ids will not be processed.
|
1588
|
+
# @param rule_group_id [String] Rule group from which to set the precedence.
|
1589
|
+
# @param ids [Array<String>] One or more (up to 500) rule group ids in the form of `ids=ID1&ids=ID2`.
|
1590
|
+
# @param [Hash] opts the optional parameters
|
1591
|
+
# @return [RulegroupsResponse]
|
1592
|
+
def update_rule_group_precedence(rule_group_id, ids, opts = {})
|
1593
|
+
data, _status_code, _headers = update_rule_group_precedence_with_http_info(rule_group_id, ids, opts)
|
1594
|
+
data
|
1595
|
+
end
|
1596
|
+
|
1597
|
+
# Updates the rule precedence for all rules in the identified rule group.
|
1598
|
+
# The ids for `all` rules contained within the rule group must be specified in the desired precedence order. Requests that do not represent all ids will not be processed.
|
1599
|
+
# @param rule_group_id [String] Rule group from which to set the precedence.
|
1600
|
+
# @param ids [Array<String>] One or more (up to 500) rule group ids in the form of `ids=ID1&ids=ID2`.
|
1601
|
+
# @param [Hash] opts the optional parameters
|
1602
|
+
# @return [Array<(RulegroupsResponse, Integer, Hash)>] RulegroupsResponse data, response status code and response headers
|
1603
|
+
def update_rule_group_precedence_with_http_info(rule_group_id, ids, opts = {})
|
1604
|
+
if @api_client.config.debugging
|
1605
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.update_rule_group_precedence ...'
|
1606
|
+
end
|
1607
|
+
# verify the required parameter 'rule_group_id' is set
|
1608
|
+
if @api_client.config.client_side_validation && rule_group_id.nil?
|
1609
|
+
fail ArgumentError, "Missing the required parameter 'rule_group_id' when calling FilevantageApi.update_rule_group_precedence"
|
1610
|
+
end
|
1611
|
+
# verify the required parameter 'ids' is set
|
1612
|
+
if @api_client.config.client_side_validation && ids.nil?
|
1613
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling FilevantageApi.update_rule_group_precedence"
|
1614
|
+
end
|
1615
|
+
# resource path
|
1616
|
+
local_var_path = '/filevantage/entities/rule-groups-rule-precedence/v1'
|
1617
|
+
|
1618
|
+
# query parameters
|
1619
|
+
query_params = opts[:query_params] || {}
|
1620
|
+
query_params[:'rule_group_id'] = rule_group_id
|
1621
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
1622
|
+
|
1623
|
+
# header parameters
|
1624
|
+
header_params = opts[:header_params] || {}
|
1625
|
+
# HTTP header 'Accept' (if needed)
|
1626
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1627
|
+
|
1628
|
+
# form parameters
|
1629
|
+
form_params = opts[:form_params] || {}
|
1630
|
+
|
1631
|
+
# http body (model)
|
1632
|
+
post_body = opts[:debug_body]
|
1633
|
+
|
1634
|
+
# return_type
|
1635
|
+
return_type = opts[:debug_return_type] || 'RulegroupsResponse'
|
1636
|
+
|
1637
|
+
# auth_names
|
1638
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1639
|
+
|
1640
|
+
new_options = opts.merge(
|
1641
|
+
:operation => :"FilevantageApi.update_rule_group_precedence",
|
1642
|
+
:header_params => header_params,
|
1643
|
+
:query_params => query_params,
|
1644
|
+
:form_params => form_params,
|
1645
|
+
:body => post_body,
|
1646
|
+
:auth_names => auth_names,
|
1647
|
+
:return_type => return_type
|
1648
|
+
)
|
1649
|
+
|
1650
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1651
|
+
if @api_client.config.debugging
|
1652
|
+
@api_client.config.logger.debug "API called: FilevantageApi#update_rule_group_precedence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1653
|
+
end
|
1654
|
+
return data, status_code, headers
|
1655
|
+
end
|
1656
|
+
|
1657
|
+
# Updates the provided rule group.
|
1658
|
+
# Provides the ability to update the name and description of the rule group.
|
1659
|
+
# @param body [RulegroupsUpdateRequest] Enables updates to the following fields for an existing rule group. * `id` of the rule group to update. * `name` must be between 1 and 100 characters. * `description` can be between 0 and 500 characters. * `type` may not be modified after the rule group is created. Note: rules are added/removed from rule groups using their dedicated end-points.
|
1660
|
+
# @param [Hash] opts the optional parameters
|
1661
|
+
# @return [RulegroupsResponse]
|
1662
|
+
def update_rule_groups(body, opts = {})
|
1663
|
+
data, _status_code, _headers = update_rule_groups_with_http_info(body, opts)
|
1664
|
+
data
|
1665
|
+
end
|
1666
|
+
|
1667
|
+
# Updates the provided rule group.
|
1668
|
+
# Provides the ability to update the name and description of the rule group.
|
1669
|
+
# @param body [RulegroupsUpdateRequest] Enables updates to the following fields for an existing rule group. * `id` of the rule group to update. * `name` must be between 1 and 100 characters. * `description` can be between 0 and 500 characters. * `type` may not be modified after the rule group is created. Note: rules are added/removed from rule groups using their dedicated end-points.
|
1670
|
+
# @param [Hash] opts the optional parameters
|
1671
|
+
# @return [Array<(RulegroupsResponse, Integer, Hash)>] RulegroupsResponse data, response status code and response headers
|
1672
|
+
def update_rule_groups_with_http_info(body, opts = {})
|
1673
|
+
if @api_client.config.debugging
|
1674
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.update_rule_groups ...'
|
1675
|
+
end
|
1676
|
+
# verify the required parameter 'body' is set
|
1677
|
+
if @api_client.config.client_side_validation && body.nil?
|
1678
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FilevantageApi.update_rule_groups"
|
1679
|
+
end
|
1680
|
+
# resource path
|
1681
|
+
local_var_path = '/filevantage/entities/rule-groups/v1'
|
1682
|
+
|
1683
|
+
# query parameters
|
1684
|
+
query_params = opts[:query_params] || {}
|
1685
|
+
|
1686
|
+
# header parameters
|
1687
|
+
header_params = opts[:header_params] || {}
|
1688
|
+
# HTTP header 'Accept' (if needed)
|
1689
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1690
|
+
# HTTP header 'Content-Type'
|
1691
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1692
|
+
if !content_type.nil?
|
1693
|
+
header_params['Content-Type'] = content_type
|
1694
|
+
end
|
1695
|
+
|
1696
|
+
# form parameters
|
1697
|
+
form_params = opts[:form_params] || {}
|
1698
|
+
|
1699
|
+
# http body (model)
|
1700
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1701
|
+
|
1702
|
+
# return_type
|
1703
|
+
return_type = opts[:debug_return_type] || 'RulegroupsResponse'
|
1704
|
+
|
1705
|
+
# auth_names
|
1706
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1707
|
+
|
1708
|
+
new_options = opts.merge(
|
1709
|
+
:operation => :"FilevantageApi.update_rule_groups",
|
1710
|
+
:header_params => header_params,
|
1711
|
+
:query_params => query_params,
|
1712
|
+
:form_params => form_params,
|
1713
|
+
:body => post_body,
|
1714
|
+
:auth_names => auth_names,
|
1715
|
+
:return_type => return_type
|
1716
|
+
)
|
1717
|
+
|
1718
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1719
|
+
if @api_client.config.debugging
|
1720
|
+
@api_client.config.logger.debug "API called: FilevantageApi#update_rule_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1721
|
+
end
|
1722
|
+
return data, status_code, headers
|
1723
|
+
end
|
1724
|
+
|
1725
|
+
# Updates the provided rule configuration within the specified rule group.
|
1726
|
+
# The rule must currently exist within the specified rule group.
|
1727
|
+
# @param body [RulegroupsRule] Update the rule configuration for the specified rule ID and group. * `id` of the rule to update. * `rule_group_id` that contains the rule configuration. * `description` can be between 0 and 500 characters. * `path` representing the file system or registry path to monitor. * must be between 1 and 250 characters. * All paths must end with the path separator, e.g. c:\\windows\\ /usr/bin/ * `severity` to categorize change events produced by this rule; must be one of: `Low`, `Medium`, `High` or `Critical` * `depth` below the base path to monitor; must be one of: `1`, `2`, `3`, `4`, `5` or `ANY` * `precedence` is the order in which rules will be evaluated starting with 1. Specifying a precedence value that is already set for another rule in the group will result this rule being placed before that existing rule. Falcon GLOB syntax is supported for the following 6 properties. Allowed rule group configuration is based on the type of rule group the rule group is added to. * `include` represents the files, directories, registry keys, or registry values that will be monitored. * `exclude` represents the files, directories, registry keys, or registry values that will `NOT` be monitored. * `include_users` represents the changes performed by specific users that will be monitored. * `exclude_users` represents the changes performed by specific users that will `NOT` be monitored. * `include_processes` represents the changes performed by specific processes that will be monitored. * `exclude_processes` represents the changes performed by specific processes that will be `NOT` monitored. * `content_files` represents the files that will be monitored. Listed files must match the file include pattern and not match the file exclude pattern * `content_registry_values` represents the registry values whose content will be monitored. Listed registry values must match the registry include pattern and not match the registry exclude pattern * `enable_content_capture` File system directory monitoring: * `watch_delete_directory_changes` * `watch_create_directory_changes` * `watch_rename_directory_changes` * `watch_attributes_directory_changes` (`macOS` is not supported at this time) * `watch_permissions_directory_changes` (`macOS` is not supported at this time) File system file monitoring: * `watch_rename_file_changes` * `watch_write_file_changes` * `watch_create_file_changes` * `watch_delete_file_changes` * `watch_attributes_file_changes` (`macOS` is not supported at this time) * `watch_permissions_file_changes` (`macOS` is not supported at this time) Windows registry key and value monitoring: * `watch_create_key_changes` * `watch_delete_key_changes` * `watch_rename_key_changes` * `watch_set_value_changes` * `watch_delete_value_changes` * `watch_create_file_changes`
|
1728
|
+
# @param [Hash] opts the optional parameters
|
1729
|
+
# @return [RulegroupsRulesResponse]
|
1730
|
+
def update_rules(body, opts = {})
|
1731
|
+
data, _status_code, _headers = update_rules_with_http_info(body, opts)
|
1732
|
+
data
|
1733
|
+
end
|
1734
|
+
|
1735
|
+
# Updates the provided rule configuration within the specified rule group.
|
1736
|
+
# The rule must currently exist within the specified rule group.
|
1737
|
+
# @param body [RulegroupsRule] Update the rule configuration for the specified rule ID and group. * `id` of the rule to update. * `rule_group_id` that contains the rule configuration. * `description` can be between 0 and 500 characters. * `path` representing the file system or registry path to monitor. * must be between 1 and 250 characters. * All paths must end with the path separator, e.g. c:\\windows\\ /usr/bin/ * `severity` to categorize change events produced by this rule; must be one of: `Low`, `Medium`, `High` or `Critical` * `depth` below the base path to monitor; must be one of: `1`, `2`, `3`, `4`, `5` or `ANY` * `precedence` is the order in which rules will be evaluated starting with 1. Specifying a precedence value that is already set for another rule in the group will result this rule being placed before that existing rule. Falcon GLOB syntax is supported for the following 6 properties. Allowed rule group configuration is based on the type of rule group the rule group is added to. * `include` represents the files, directories, registry keys, or registry values that will be monitored. * `exclude` represents the files, directories, registry keys, or registry values that will `NOT` be monitored. * `include_users` represents the changes performed by specific users that will be monitored. * `exclude_users` represents the changes performed by specific users that will `NOT` be monitored. * `include_processes` represents the changes performed by specific processes that will be monitored. * `exclude_processes` represents the changes performed by specific processes that will be `NOT` monitored. * `content_files` represents the files that will be monitored. Listed files must match the file include pattern and not match the file exclude pattern * `content_registry_values` represents the registry values whose content will be monitored. Listed registry values must match the registry include pattern and not match the registry exclude pattern * `enable_content_capture` File system directory monitoring: * `watch_delete_directory_changes` * `watch_create_directory_changes` * `watch_rename_directory_changes` * `watch_attributes_directory_changes` (`macOS` is not supported at this time) * `watch_permissions_directory_changes` (`macOS` is not supported at this time) File system file monitoring: * `watch_rename_file_changes` * `watch_write_file_changes` * `watch_create_file_changes` * `watch_delete_file_changes` * `watch_attributes_file_changes` (`macOS` is not supported at this time) * `watch_permissions_file_changes` (`macOS` is not supported at this time) Windows registry key and value monitoring: * `watch_create_key_changes` * `watch_delete_key_changes` * `watch_rename_key_changes` * `watch_set_value_changes` * `watch_delete_value_changes` * `watch_create_file_changes`
|
1738
|
+
# @param [Hash] opts the optional parameters
|
1739
|
+
# @return [Array<(RulegroupsRulesResponse, Integer, Hash)>] RulegroupsRulesResponse data, response status code and response headers
|
1740
|
+
def update_rules_with_http_info(body, opts = {})
|
1741
|
+
if @api_client.config.debugging
|
1742
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.update_rules ...'
|
1743
|
+
end
|
1744
|
+
# verify the required parameter 'body' is set
|
1745
|
+
if @api_client.config.client_side_validation && body.nil?
|
1746
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FilevantageApi.update_rules"
|
1747
|
+
end
|
1748
|
+
# resource path
|
1749
|
+
local_var_path = '/filevantage/entities/rule-groups-rules/v1'
|
1750
|
+
|
1751
|
+
# query parameters
|
1752
|
+
query_params = opts[:query_params] || {}
|
1753
|
+
|
1754
|
+
# header parameters
|
1755
|
+
header_params = opts[:header_params] || {}
|
1756
|
+
# HTTP header 'Accept' (if needed)
|
1757
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1758
|
+
# HTTP header 'Content-Type'
|
1759
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1760
|
+
if !content_type.nil?
|
1761
|
+
header_params['Content-Type'] = content_type
|
1762
|
+
end
|
1763
|
+
|
1764
|
+
# form parameters
|
1765
|
+
form_params = opts[:form_params] || {}
|
1766
|
+
|
1767
|
+
# http body (model)
|
1768
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1769
|
+
|
1770
|
+
# return_type
|
1771
|
+
return_type = opts[:debug_return_type] || 'RulegroupsRulesResponse'
|
1772
|
+
|
1773
|
+
# auth_names
|
1774
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1775
|
+
|
1776
|
+
new_options = opts.merge(
|
1777
|
+
:operation => :"FilevantageApi.update_rules",
|
1778
|
+
:header_params => header_params,
|
1779
|
+
:query_params => query_params,
|
1780
|
+
:form_params => form_params,
|
1781
|
+
:body => post_body,
|
1782
|
+
:auth_names => auth_names,
|
1783
|
+
:return_type => return_type
|
1784
|
+
)
|
1785
|
+
|
1786
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1787
|
+
if @api_client.config.debugging
|
1788
|
+
@api_client.config.logger.debug "API called: FilevantageApi#update_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1789
|
+
end
|
1790
|
+
return data, status_code, headers
|
1791
|
+
end
|
1792
|
+
|
1793
|
+
# Updates the provided scheduled exclusion configuration within the provided policy.
|
1794
|
+
# Updates the provided scheduled exclusion configuration within the provided policy.
|
1795
|
+
# @param body [ScheduledexclusionsUpdateRequest] Update an existing scheduled exclusion for the specified policy. * `policy_id` to add the scheduled exclusion to. * `name` must be between 1 and 100 characters. * `description` can be between 0 and 500 characters. * `users` can be between 0 and 500 characters representing a comma separated list of user to exclude their changes. * admin* excludes changes made by all usernames that begin with admin. Falon GLOB syntax is supported. * `processes` can be between 0 and 500 characters representing a comma separated list of processes to exclude their changes. * **\\RunMe.exe or **/RunMe.sh excludes changes made by RunMe.exe or RunMe.sh in any location. * `schedule_start` must be provided to indicate the start of the schedule. This date/time must be an rfc3339 formatted string https://datatracker.ietf.org/doc/html/rfc3339. * `schedule_end` optionally provided to indicate the end of the schedule. This date/time must be an rfc3339 formatted string https://datatracker.ietf.org/doc/html/rfc3339. * `timezone` must be provided to indicate the TimeZone Name set for the provided `scheduled_start` and `scheduled_end` values. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. * `repeated` optionally provided to indicate that the exclusion is applied repeatedly within the `scheduled_start` and `scheduled_end` time. * `start_time` must be the hour(00-23) and minute(00-59) of the day formatted as `HH:MM`. Required if `all_day` is not set to `true` * `end_time` must be the hour(00-23) and minute(00-59) of the day formatted as `HH:MM`. Required if `all_day` is not set to `true` * `all_day` must be `true` or `false` to indicate the exclusion is applied all day. * `frequency` must be one of `daily`, `weekly` or `monthly`. * `occurrence` must be one of the following when `frequency` is set to `monthly`: * `1st`, `2nd`, `3rd`, `4th` or `Last` represents the week. * `Days` represents specific calendar days. * `weekly_days` must be one or more of `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` or `Sunday` when `frequency` is set to `weekly` or `frequency` is set to `monthly` and `occurrence` is NOT set to `Days`. * `monthly_days` must be set to one or more calendar days, between 1 and 31 when `frequency` is set to `monthly` and `occurrence` is set to `Days`.
|
1796
|
+
# @param [Hash] opts the optional parameters
|
1797
|
+
# @return [ScheduledexclusionsResponse]
|
1798
|
+
def update_scheduled_exclusions(body, opts = {})
|
1799
|
+
data, _status_code, _headers = update_scheduled_exclusions_with_http_info(body, opts)
|
1800
|
+
data
|
1801
|
+
end
|
1802
|
+
|
1803
|
+
# Updates the provided scheduled exclusion configuration within the provided policy.
|
1804
|
+
# Updates the provided scheduled exclusion configuration within the provided policy.
|
1805
|
+
# @param body [ScheduledexclusionsUpdateRequest] Update an existing scheduled exclusion for the specified policy. * `policy_id` to add the scheduled exclusion to. * `name` must be between 1 and 100 characters. * `description` can be between 0 and 500 characters. * `users` can be between 0 and 500 characters representing a comma separated list of user to exclude their changes. * admin* excludes changes made by all usernames that begin with admin. Falon GLOB syntax is supported. * `processes` can be between 0 and 500 characters representing a comma separated list of processes to exclude their changes. * **\\RunMe.exe or **/RunMe.sh excludes changes made by RunMe.exe or RunMe.sh in any location. * `schedule_start` must be provided to indicate the start of the schedule. This date/time must be an rfc3339 formatted string https://datatracker.ietf.org/doc/html/rfc3339. * `schedule_end` optionally provided to indicate the end of the schedule. This date/time must be an rfc3339 formatted string https://datatracker.ietf.org/doc/html/rfc3339. * `timezone` must be provided to indicate the TimeZone Name set for the provided `scheduled_start` and `scheduled_end` values. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. * `repeated` optionally provided to indicate that the exclusion is applied repeatedly within the `scheduled_start` and `scheduled_end` time. * `start_time` must be the hour(00-23) and minute(00-59) of the day formatted as `HH:MM`. Required if `all_day` is not set to `true` * `end_time` must be the hour(00-23) and minute(00-59) of the day formatted as `HH:MM`. Required if `all_day` is not set to `true` * `all_day` must be `true` or `false` to indicate the exclusion is applied all day. * `frequency` must be one of `daily`, `weekly` or `monthly`. * `occurrence` must be one of the following when `frequency` is set to `monthly`: * `1st`, `2nd`, `3rd`, `4th` or `Last` represents the week. * `Days` represents specific calendar days. * `weekly_days` must be one or more of `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday` or `Sunday` when `frequency` is set to `weekly` or `frequency` is set to `monthly` and `occurrence` is NOT set to `Days`. * `monthly_days` must be set to one or more calendar days, between 1 and 31 when `frequency` is set to `monthly` and `occurrence` is set to `Days`.
|
1806
|
+
# @param [Hash] opts the optional parameters
|
1807
|
+
# @return [Array<(ScheduledexclusionsResponse, Integer, Hash)>] ScheduledexclusionsResponse data, response status code and response headers
|
1808
|
+
def update_scheduled_exclusions_with_http_info(body, opts = {})
|
1809
|
+
if @api_client.config.debugging
|
1810
|
+
@api_client.config.logger.debug 'Calling API: FilevantageApi.update_scheduled_exclusions ...'
|
1811
|
+
end
|
1812
|
+
# verify the required parameter 'body' is set
|
1813
|
+
if @api_client.config.client_side_validation && body.nil?
|
1814
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FilevantageApi.update_scheduled_exclusions"
|
1815
|
+
end
|
1816
|
+
# resource path
|
1817
|
+
local_var_path = '/filevantage/entities/policy-scheduled-exclusions/v1'
|
1818
|
+
|
1819
|
+
# query parameters
|
1820
|
+
query_params = opts[:query_params] || {}
|
1821
|
+
|
1822
|
+
# header parameters
|
1823
|
+
header_params = opts[:header_params] || {}
|
1824
|
+
# HTTP header 'Accept' (if needed)
|
1825
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1826
|
+
# HTTP header 'Content-Type'
|
1827
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1828
|
+
if !content_type.nil?
|
1829
|
+
header_params['Content-Type'] = content_type
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
# form parameters
|
1833
|
+
form_params = opts[:form_params] || {}
|
1834
|
+
|
1835
|
+
# http body (model)
|
1836
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1837
|
+
|
1838
|
+
# return_type
|
1839
|
+
return_type = opts[:debug_return_type] || 'ScheduledexclusionsResponse'
|
1840
|
+
|
1841
|
+
# auth_names
|
1842
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1843
|
+
|
1844
|
+
new_options = opts.merge(
|
1845
|
+
:operation => :"FilevantageApi.update_scheduled_exclusions",
|
1846
|
+
:header_params => header_params,
|
1847
|
+
:query_params => query_params,
|
1848
|
+
:form_params => form_params,
|
1849
|
+
:body => post_body,
|
1850
|
+
:auth_names => auth_names,
|
1851
|
+
:return_type => return_type
|
1852
|
+
)
|
1853
|
+
|
1854
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1855
|
+
if @api_client.config.debugging
|
1856
|
+
@api_client.config.logger.debug "API called: FilevantageApi#update_scheduled_exclusions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
172
1857
|
end
|
173
1858
|
return data, status_code, headers
|
174
1859
|
end
|