crimson-falcon 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +293 -70
- data/lib/crimson-falcon/api/activity_monitor.rb +120 -0
- data/lib/crimson-falcon/api/alerts.rb +88 -0
- data/lib/crimson-falcon/api/aspm.rb +133 -3
- data/lib/crimson-falcon/api/cloud_azure_registration.rb +318 -0
- data/lib/crimson-falcon/api/cloud_oci_registration.rb +4 -4
- data/lib/crimson-falcon/api/cloud_security_assets.rb +2 -2
- data/lib/crimson-falcon/api/container_image_compliance.rb +22 -22
- data/lib/crimson-falcon/api/cspm_registration.rb +69 -0
- data/lib/crimson-falcon/api/default.rb +0 -62
- data/lib/crimson-falcon/api/exposure_management.rb +67 -0
- data/lib/crimson-falcon/api/falcon_complete_dashboard.rb +71 -4
- data/lib/crimson-falcon/api/falcon_container_image.rb +121 -0
- data/lib/crimson-falcon/api/identity_protection.rb +2 -2
- data/lib/crimson-falcon/api/integration_builder.rb +313 -0
- data/lib/crimson-falcon/api/intel.rb +73 -0
- data/lib/crimson-falcon/api/intelligence_indicator_graph.rb +23 -15
- data/lib/crimson-falcon/api/inventories.rb +186 -0
- data/lib/crimson-falcon/api/kubernetes_container_compliance.rb +62 -0
- data/lib/crimson-falcon/api/kubernetes_protection.rb +3 -0
- data/lib/crimson-falcon/api/message_center.rb +4 -70
- data/lib/crimson-falcon/api/real_time_response_admin.rb +62 -0
- data/lib/crimson-falcon/api/release_notes.rb +76 -0
- data/lib/crimson-falcon/api/saa_s.rb +156 -0
- data/lib/crimson-falcon/api/security_check.rb +484 -0
- data/lib/crimson-falcon/api/system.rb +168 -0
- data/lib/crimson-falcon/api/user_management.rb +4 -4
- data/lib/crimson-falcon/models/account_integration289680abbdb24ecc9e55e90a4c2f1770.rb +443 -0
- data/lib/crimson-falcon/models/{types_query_result.rb → activity251e72f10e9424e568d72ab0351a6fb1b.rb} +17 -19
- data/lib/crimson-falcon/models/affected_entity9f6cb0be3b91460090c751db2c883b7c.rb +392 -0
- data/lib/crimson-falcon/models/alert85f2306d175b4314b4d51d0096103dcc.rb +539 -0
- data/lib/crimson-falcon/models/api_patch_rule_search_v1.rb +5 -0
- data/lib/crimson-falcon/models/api_rule_search_v1.rb +5 -0
- data/lib/crimson-falcon/models/{aspm_data.rb → aspm_inventory_data.rb} +3 -3
- data/lib/crimson-falcon/models/azure_additional_feature.rb +269 -0
- data/lib/crimson-falcon/models/azure_azure_registration_create_input.rb +497 -0
- data/lib/crimson-falcon/models/azure_azure_registration_create_request_ext_v1.rb +239 -0
- data/lib/crimson-falcon/models/azure_azure_registration_response_ext_v1.rb +266 -0
- data/lib/crimson-falcon/models/azure_azure_registration_update_input.rb +492 -0
- data/lib/crimson-falcon/models/azure_azure_registration_update_request_ext_v1.rb +239 -0
- data/lib/crimson-falcon/models/azure_delete_registration_response_ext_v1.rb +266 -0
- data/lib/crimson-falcon/models/azure_deleted_registration.rb +383 -0
- data/lib/crimson-falcon/models/azure_deleted_subscription_info.rb +267 -0
- data/lib/crimson-falcon/models/azure_event_hub_settings.rb +295 -0
- data/lib/crimson-falcon/models/azure_tenant_registration.rb +578 -0
- data/lib/crimson-falcon/models/cdrioamanager_get_cloud_event_ids_response.rb +266 -0
- data/lib/crimson-falcon/models/costs.rb +4 -4
- data/lib/crimson-falcon/models/criteria301f5eeae5ba41edb767b27e749f6375.rb +274 -0
- data/lib/crimson-falcon/models/data_transaction_response_dto31852908d6f14d268312c3fcdb497315.rb +365 -0
- data/lib/crimson-falcon/models/data_transaction_response_dto614da2e1369e44e596d2935db3da0365.rb +365 -0
- data/lib/crimson-falcon/models/data_transaction_response_dto_cdc34dae7da648de941209e7e6a30770.rb +365 -0
- data/lib/crimson-falcon/models/detects_external_alert.rb +18 -1
- data/lib/crimson-falcon/models/device3550eb212db1414995c297cdbfe5cc16.rb +552 -0
- data/lib/crimson-falcon/models/dismiss_affected.rb +257 -0
- data/lib/crimson-falcon/models/dismiss_security_check.rb +257 -0
- data/lib/crimson-falcon/models/distribution_descriptor.rb +283 -0
- data/lib/crimson-falcon/models/domain_actor_document.rb +10 -1
- data/lib/crimson-falcon/models/domain_aggregates_response.rb +4 -2
- data/lib/crimson-falcon/models/domain_aggregation_result.rb +267 -0
- data/lib/crimson-falcon/models/domain_aggregation_result_item.rb +331 -0
- data/lib/crimson-falcon/models/domain_cloud_group.rb +270 -0
- data/lib/crimson-falcon/models/domain_discover_api_host.rb +30 -1
- data/lib/crimson-falcon/models/domain_discover_apiio_t_host.rb +30 -1
- data/lib/crimson-falcon/models/domain_feature_status.rb +32 -15
- data/lib/crimson-falcon/models/domain_iot_imported_host.rb +405 -0
- data/lib/crimson-falcon/models/domain_kestrel_data_export_header_computation_function.rb +269 -0
- data/lib/crimson-falcon/models/domain_kestrel_data_export_header_mapping.rb +255 -0
- data/lib/crimson-falcon/models/domain_kestrel_data_export_params.rb +278 -0
- data/lib/crimson-falcon/models/{quickscanpro_mitre_attack.rb → domain_mitre_attack.rb} +23 -5
- data/lib/crimson-falcon/models/{quickscanpro_mitre_attack_parent.rb → domain_mitre_attack_parent.rb} +3 -3
- data/lib/crimson-falcon/models/domain_msa_meta_info.rb +4 -18
- data/lib/crimson-falcon/models/domain_news_document.rb +2 -2
- data/lib/crimson-falcon/models/domain_notification_config.rb +32 -4
- data/lib/crimson-falcon/models/domain_query_response.rb +8 -1
- data/lib/crimson-falcon/models/domain_report_metadata.rb +10 -15
- data/lib/crimson-falcon/models/domain_rule.rb +69 -63
- data/lib/crimson-falcon/models/domain_scan.rb +10 -1
- data/lib/crimson-falcon/models/domain_scheduled_report_v1.rb +15 -1
- data/lib/crimson-falcon/models/domain_vulnerability.rb +135 -38
- data/lib/crimson-falcon/models/domain_vulnerability_actor.rb +255 -0
- data/lib/crimson-falcon/models/{restapi_indicators_aggregates_request.rb → domain_vulnerability_affected_product.rb} +21 -17
- data/lib/crimson-falcon/models/domain_vulnerability_cvss_v2.rb +303 -0
- data/lib/crimson-falcon/models/domain_vulnerability_cvss_v3.rb +325 -0
- data/lib/crimson-falcon/models/domain_vulnerability_related_threat.rb +247 -0
- data/lib/crimson-falcon/models/domain_vulnerability_report.rb +265 -0
- data/lib/crimson-falcon/models/domain_xdr_params.rb +12 -1
- data/lib/crimson-falcon/models/error02abad40db9c4a4baf68f01bea6071c4.rb +264 -0
- data/lib/crimson-falcon/models/error068cf337479748d6ac14b4a9c4043a93.rb +264 -0
- data/lib/crimson-falcon/models/error208252f00cf64de68d28810846b7dd26.rb +264 -0
- data/lib/crimson-falcon/models/error20dfebe4526641bd81749e954da7890e.rb +264 -0
- data/lib/crimson-falcon/models/error2a083e88c6764d16bbb98873ef1e9e15.rb +264 -0
- data/lib/crimson-falcon/models/error2c3c8d4e65c3447a8eae772de1b0e3ef.rb +264 -0
- data/lib/crimson-falcon/models/error35d6bd13358246f9ae9ffbe791550e06.rb +264 -0
- data/lib/crimson-falcon/models/error476679d881284bdc9a5192128d50d4b6.rb +264 -0
- data/lib/crimson-falcon/models/error479167a4d6534b6a85ec7857c5fb14ba.rb +264 -0
- data/lib/crimson-falcon/models/error4bee1dd3515c454f83249366486164d0.rb +264 -0
- data/lib/crimson-falcon/models/error7bbeca3b1c2440f19c0730f62b3b6ef4.rb +264 -0
- data/lib/crimson-falcon/models/error878b6eeb86ef40cdb1ec5f1207207e09.rb +264 -0
- data/lib/crimson-falcon/models/error9cad4d8f334c467daf30ed3a72664779.rb +264 -0
- data/lib/crimson-falcon/models/error_bc084ac4caa243b199e2307fb94184c3.rb +264 -0
- data/lib/crimson-falcon/models/error_d3d26008b8464eeb912ff06244246cf2.rb +264 -0
- data/lib/crimson-falcon/models/error_f2e2dae6d0e945279a68e68afaee2d54.rb +264 -0
- data/lib/crimson-falcon/models/error_fa972818e96245a89bcee1f18b40eb0a.rb +264 -0
- data/lib/crimson-falcon/models/exposure_da5345c68b174f978f19999c3e00cab9.rb +300 -0
- data/lib/crimson-falcon/models/figapi_lookup_indicator.rb +468 -0
- data/lib/crimson-falcon/models/flightcontrolapi_grant_input.rb +11 -1
- data/lib/crimson-falcon/models/fwmgr_api_json_diff.rb +3 -3
- data/lib/crimson-falcon/models/fwmgr_api_rule_group_modify_request_v1.rb +1 -1
- data/lib/crimson-falcon/models/get_activity_monitor.rb +258 -0
- data/lib/crimson-falcon/models/get_affected.rb +257 -0
- data/lib/crimson-falcon/models/get_alerts_response.rb +258 -0
- data/lib/crimson-falcon/models/get_device_inventory.rb +258 -0
- data/lib/crimson-falcon/models/get_end_transaction.rb +258 -0
- data/lib/crimson-falcon/models/get_integrations.rb +258 -0
- data/lib/crimson-falcon/models/get_metrics.rb +258 -0
- data/lib/crimson-falcon/models/get_security_checks.rb +258 -0
- data/lib/crimson-falcon/models/get_security_compliance.rb +257 -0
- data/lib/crimson-falcon/models/get_supported_saas.rb +258 -0
- data/lib/crimson-falcon/models/get_system_logs.rb +258 -0
- data/lib/crimson-falcon/models/get_system_users.rb +258 -0
- data/lib/crimson-falcon/models/get_transaction_status.rb +258 -0
- data/lib/crimson-falcon/models/get_user_inventory.rb +258 -0
- data/lib/crimson-falcon/models/integration_a9d173a3bf93430f84054286043aa8e5.rb +305 -0
- data/lib/crimson-falcon/models/integration_e95afa6fc5e04968b0e9d83e90042eca.rb +365 -0
- data/lib/crimson-falcon/models/issue9a61d8c8ccac45858497af4786b275c7.rb +291 -0
- data/lib/crimson-falcon/models/meta17335150dd1a4934a3a031a7b41e650b.rb +270 -0
- data/lib/crimson-falcon/models/meta23005461ac9a41fbb4620fe4aa0a3438.rb +270 -0
- data/lib/crimson-falcon/models/meta27c23ca116c1477bb85e765b5e09af69.rb +270 -0
- data/lib/crimson-falcon/models/meta37a0d574ca884a2f8641e122e47a3ce9.rb +270 -0
- data/lib/crimson-falcon/models/meta4f2b2e3bbfd74a7fb14e0ca86dd47d57.rb +270 -0
- data/lib/crimson-falcon/models/meta4fda3fb731c54f5480750a508fa0142d.rb +270 -0
- data/lib/crimson-falcon/models/meta536da5d66c054c69889a624cf1068900.rb +270 -0
- data/lib/crimson-falcon/models/meta6dbc34e4022d4b5c9fe5785caf9801e7.rb +270 -0
- data/lib/crimson-falcon/models/meta77f6bf58ba0045649e59a4655807a6ab.rb +270 -0
- data/lib/crimson-falcon/models/meta9b68681eb9464c4e9612730248f519d6.rb +270 -0
- data/lib/crimson-falcon/models/meta_c84ad721c6a841869874276dd0683cbb.rb +270 -0
- data/lib/crimson-falcon/models/meta_d1db20ce08ad45b3987ead9035c153a9.rb +270 -0
- data/lib/crimson-falcon/models/meta_d43679bfb5f448afa0899baa948533d1.rb +270 -0
- data/lib/crimson-falcon/models/meta_e1df370799c7419d805c0f95b5d1ae90.rb +270 -0
- data/lib/crimson-falcon/models/meta_e4ad714b314449299eca720f9d63b718.rb +270 -0
- data/lib/crimson-falcon/models/meta_fb2fed2c461a4af583e5b3b790c82df1.rb +270 -0
- data/lib/crimson-falcon/models/meta_fe9ab4e0124e4f0fb9946562895a2c78.rb +270 -0
- data/lib/crimson-falcon/models/models_api_image_combined_export.rb +45 -1
- data/lib/crimson-falcon/models/models_cluster.rb +15 -1
- data/lib/crimson-falcon/models/models_config_info_type.rb +363 -0
- data/lib/crimson-falcon/models/models_elf_binary_info_type.rb +327 -0
- data/lib/crimson-falcon/models/models_he_string_file_info_type.rb +273 -0
- data/lib/crimson-falcon/models/models_he_string_info_type.rb +262 -0
- data/lib/crimson-falcon/models/models_image_info_type.rb +353 -0
- data/lib/crimson-falcon/models/models_image_metadata_type.rb +279 -0
- data/lib/crimson-falcon/models/models_inventory_engine_info_type.rb +278 -0
- data/lib/crimson-falcon/models/models_inventory_scan_request_type.rb +458 -0
- data/lib/crimson-falcon/models/models_inventory_type.rb +419 -0
- data/lib/crimson-falcon/models/models_layer_info_type.rb +322 -0
- data/lib/crimson-falcon/models/models_ml_model_type.rb +332 -0
- data/lib/crimson-falcon/models/models_scan_info_type.rb +279 -0
- data/lib/crimson-falcon/models/models_scan_request_type.rb +385 -0
- data/lib/crimson-falcon/models/pagination033f3d78a056499b8f4877419a0ab636.rb +305 -0
- data/lib/crimson-falcon/models/pagination080eaa160ef24b9ea15b29a7376520d1.rb +305 -0
- data/lib/crimson-falcon/models/pagination10594326d99a4b3a8681178b13e58952.rb +305 -0
- data/lib/crimson-falcon/models/pagination13aeb546de8049e7b3a1c36f9c93266b.rb +305 -0
- data/lib/crimson-falcon/models/pagination210dcb9a1e7d4355aa68be7ec0fd01f5.rb +305 -0
- data/lib/crimson-falcon/models/pagination30037a29e9404616b03177274ec26e23.rb +305 -0
- data/lib/crimson-falcon/models/pagination3b8a127584ba4423a93eb7c8169b572b.rb +305 -0
- data/lib/crimson-falcon/models/pagination3f3e43ffd8e64379931bdcb29aebc087.rb +305 -0
- data/lib/crimson-falcon/models/pagination52f77164aafe4de6b6db6d957e7daa2d.rb +305 -0
- data/lib/crimson-falcon/models/pagination548073ea1b2b436ba88a22f20220668f.rb +305 -0
- data/lib/crimson-falcon/models/pagination5540128e40ad49718c1f4b4b5e4e558c.rb +305 -0
- data/lib/crimson-falcon/models/pagination6447d6d09066458cbbaa67ba2e2337cc.rb +305 -0
- data/lib/crimson-falcon/models/pagination9bacca2551f14ff5a7ca8bd9d42e3cd2.rb +305 -0
- data/lib/crimson-falcon/models/pagination_d97a43983ded4cd7b949b22c9365f3ac.rb +305 -0
- data/lib/crimson-falcon/models/pagination_f16542f2ce284253ae3ba96625cde422.rb +305 -0
- data/lib/crimson-falcon/models/pagination_f3897127524749a8977efcf98f6fca21.rb +305 -0
- data/lib/crimson-falcon/models/pagination_f6ab71b91d6246e0bd736cf3af5fad6e.rb +305 -0
- data/lib/crimson-falcon/models/quickscanpro_error.rb +253 -0
- data/lib/crimson-falcon/models/quickscanpro_file_upload_response.rb +1 -1
- data/lib/crimson-falcon/models/quickscanpro_launch_scan_response.rb +1 -1
- data/lib/crimson-falcon/models/quickscanpro_meta_info.rb +248 -0
- data/lib/crimson-falcon/models/quickscanpro_query_scan_results_response.rb +1 -1
- data/lib/crimson-falcon/models/quickscanpro_scan_metadata.rb +12 -1
- data/lib/crimson-falcon/models/quickscanpro_scan_result.rb +1 -1
- data/lib/crimson-falcon/models/rbac_cloud_group.rb +270 -0
- data/lib/crimson-falcon/models/reason_result53b5512288cb4a35afeb08fb3232bc9a.rb +258 -0
- data/lib/crimson-falcon/models/reason_result85bd120760ba447ea4ed7050227cea6d.rb +258 -0
- data/lib/crimson-falcon/models/registration_iom_event_v2.rb +12 -1
- data/lib/crimson-falcon/models/{domain_case_creation_request.rb → releasenotes_release_note_v2.rb} +56 -66
- data/lib/crimson-falcon/models/{restapi_indicators_aggregates_response.rb → releasenotes_release_note_wrapper_v2.rb} +4 -4
- data/lib/crimson-falcon/models/resources_cloud_context.rb +1 -1
- data/lib/crimson-falcon/models/resources_cloud_resource.rb +12 -1
- data/lib/crimson-falcon/models/resources_compliance_control.rb +37 -4
- data/lib/crimson-falcon/models/restapi_indicators_lookup_request.rb +242 -0
- data/lib/crimson-falcon/models/restapi_lookup_indicator_response.rb +271 -0
- data/lib/crimson-falcon/models/schema2_manifest.rb +278 -0
- data/lib/crimson-falcon/models/security_check_metrics4dc2138e50b94346aca29c17db424031.rb +309 -0
- data/lib/crimson-falcon/models/security_check_with_compliance_fabac54a5b434140a3258784ea52cedd.rb +780 -0
- data/lib/crimson-falcon/models/source1a19145b2d194d208fce893f033e7d77.rb +309 -0
- data/lib/crimson-falcon/models/source_acb91d86550f449aa4b1b5310bf5ae84.rb +309 -0
- data/lib/crimson-falcon/models/source_f8f9612cb66e48f38a21f3f6c9c90ce3.rb +309 -0
- data/lib/crimson-falcon/models/status_breakdown_c9f65dddc40c4ce591a60ab63a17ab21.rb +309 -0
- data/lib/crimson-falcon/models/supported_integration6399100b6064428e971df473366a4291.rb +286 -0
- data/lib/crimson-falcon/models/system_log35829c828fcc41f99005750f1c86b16b.rb +479 -0
- data/lib/crimson-falcon/models/system_user62e536308fad4c7f8f020fb76f162088.rb +485 -0
- data/lib/crimson-falcon/models/types_query_count_response.rb +0 -10
- data/lib/crimson-falcon/models/types_query_overtime_response_item.rb +0 -10
- data/lib/crimson-falcon/models/types_query_request.rb +10 -1
- data/lib/crimson-falcon/models/types_query_response.rb +0 -10
- data/lib/crimson-falcon/models/upload_data_request.rb +258 -0
- data/lib/crimson-falcon/models/upload_data_response.rb +258 -0
- data/lib/crimson-falcon/models/user_c59913813fcc4565a44e697480b8846b.rb +599 -0
- data/lib/crimson-falcon/models/v1_history.rb +270 -0
- data/lib/crimson-falcon/models/v1_image.rb +334 -0
- data/lib/crimson-falcon/models/v1_image_config.rb +327 -0
- data/lib/crimson-falcon/models/v1_platform.rb +282 -0
- data/lib/crimson-falcon/models/v1_root_fs.rb +255 -0
- data/lib/crimson-falcon/models/webhooktrigger_response_config.rb +1 -11
- data/lib/crimson-falcon/version.rb +2 -2
- data/lib/crimson-falcon.rb +156 -9
- data/spec/api/activity_monitor_spec.rb +71 -0
- data/spec/api/alerts_spec.rb +20 -0
- data/spec/api/aspm_spec.rb +25 -1
- data/spec/api/cloud_azure_registration_spec.rb +55 -0
- data/spec/api/cloud_oci_registration_spec.rb +2 -2
- data/spec/api/cloud_security_assets_spec.rb +1 -1
- data/spec/api/container_image_compliance_spec.rb +11 -11
- data/spec/api/cspm_registration_spec.rb +12 -0
- data/spec/api/default_spec.rb +0 -11
- data/spec/api/exposure_management_spec.rb +14 -0
- data/spec/api/falcon_complete_dashboard_spec.rb +16 -2
- data/spec/api/falcon_container_image_spec.rb +21 -0
- data/spec/api/integration_builder_spec.rb +102 -0
- data/spec/api/intel_spec.rb +16 -0
- data/spec/api/intelligence_indicator_graph_spec.rb +7 -4
- data/spec/api/{datascanner_spec.rb → inventories_spec.rb} +27 -27
- data/spec/api/kubernetes_container_compliance_spec.rb +11 -0
- data/spec/api/kubernetes_protection_spec.rb +1 -0
- data/spec/api/message_center_spec.rb +1 -12
- data/spec/api/real_time_response_admin_spec.rb +11 -0
- data/spec/api/release_notes_spec.rb +13 -0
- data/spec/api/saa_s_spec.rb +75 -0
- data/spec/api/security_check_spec.rb +139 -0
- data/spec/api/system_spec.rb +79 -0
- data/spec/api/user_management_spec.rb +1 -1
- data/spec/models/account_integration289680abbdb24ecc9e55e90a4c2f1770_spec.rb +105 -0
- data/spec/models/activity251e72f10e9424e568d72ab0351a6fb1b_spec.rb +51 -0
- data/spec/models/affected_entity9f6cb0be3b91460090c751db2c883b7c_spec.rb +99 -0
- data/spec/models/alert85f2306d175b4314b4d51d0096103dcc_spec.rb +129 -0
- data/spec/models/{aspm_data_spec.rb → aspm_inventory_data_spec.rb} +6 -6
- data/spec/models/azure_additional_feature_spec.rb +63 -0
- data/spec/models/azure_azure_registration_create_input_spec.rb +189 -0
- data/spec/models/azure_azure_registration_create_request_ext_v1_spec.rb +51 -0
- data/spec/models/azure_azure_registration_response_ext_v1_spec.rb +63 -0
- data/spec/models/azure_azure_registration_update_input_spec.rb +189 -0
- data/spec/models/azure_azure_registration_update_request_ext_v1_spec.rb +51 -0
- data/spec/models/azure_delete_registration_response_ext_v1_spec.rb +63 -0
- data/spec/models/azure_deleted_registration_spec.rb +111 -0
- data/spec/models/azure_deleted_subscription_info_spec.rb +63 -0
- data/spec/models/azure_event_hub_settings_spec.rb +75 -0
- data/spec/models/azure_tenant_registration_spec.rb +243 -0
- data/spec/models/cdrioamanager_get_cloud_event_ids_response_spec.rb +63 -0
- data/spec/models/criteria301f5eeae5ba41edb767b27e749f6375_spec.rb +57 -0
- data/spec/models/data_transaction_response_dto31852908d6f14d268312c3fcdb497315_spec.rb +79 -0
- data/spec/models/data_transaction_response_dto614da2e1369e44e596d2935db3da0365_spec.rb +79 -0
- data/spec/models/data_transaction_response_dto_cdc34dae7da648de941209e7e6a30770_spec.rb +79 -0
- data/spec/models/detects_external_alert_spec.rb +6 -0
- data/spec/models/device3550eb212db1414995c297cdbfe5cc16_spec.rb +147 -0
- data/spec/models/dismiss_affected_spec.rb +63 -0
- data/spec/models/dismiss_security_check_spec.rb +63 -0
- data/spec/models/distribution_descriptor_spec.rb +81 -0
- data/spec/models/domain_actor_document_spec.rb +6 -0
- data/spec/models/domain_aggregation_result_item_spec.rb +105 -0
- data/spec/models/domain_aggregation_result_spec.rb +63 -0
- data/spec/models/domain_cloud_group_spec.rb +75 -0
- data/spec/models/domain_discover_api_host_spec.rb +18 -0
- data/spec/models/domain_discover_apiio_t_host_spec.rb +18 -0
- data/spec/models/domain_feature_status_spec.rb +13 -1
- data/spec/models/domain_iot_imported_host_spec.rb +165 -0
- data/spec/models/domain_kestrel_data_export_header_computation_function_spec.rb +63 -0
- data/spec/models/domain_kestrel_data_export_header_mapping_spec.rb +57 -0
- data/spec/models/domain_kestrel_data_export_params_spec.rb +69 -0
- data/spec/models/{quickscanpro_mitre_attack_parent_spec.rb → domain_mitre_attack_parent_spec.rb} +6 -6
- data/spec/models/{quickscanpro_mitre_attack_spec.rb → domain_mitre_attack_spec.rb} +18 -6
- data/spec/models/domain_msa_meta_info_spec.rb +0 -6
- data/spec/models/domain_notification_config_spec.rb +12 -0
- data/spec/models/domain_report_metadata_spec.rb +4 -4
- data/spec/models/domain_rule_spec.rb +13 -7
- data/spec/models/domain_scan_spec.rb +6 -0
- data/spec/models/domain_scheduled_report_v1_spec.rb +6 -0
- data/spec/models/domain_vulnerability_actor_spec.rb +63 -0
- data/spec/models/domain_vulnerability_affected_product_spec.rb +57 -0
- data/spec/models/domain_vulnerability_cvss_v2_spec.rb +93 -0
- data/spec/models/domain_vulnerability_cvss_v3_spec.rb +105 -0
- data/spec/models/domain_vulnerability_related_threat_spec.rb +57 -0
- data/spec/models/domain_vulnerability_report_spec.rb +69 -0
- data/spec/models/domain_vulnerability_spec.rb +63 -3
- data/spec/models/domain_xdr_params_spec.rb +6 -0
- data/spec/models/error02abad40db9c4a4baf68f01bea6071c4_spec.rb +57 -0
- data/spec/models/error068cf337479748d6ac14b4a9c4043a93_spec.rb +57 -0
- data/spec/models/error208252f00cf64de68d28810846b7dd26_spec.rb +57 -0
- data/spec/models/error20dfebe4526641bd81749e954da7890e_spec.rb +57 -0
- data/spec/models/error2a083e88c6764d16bbb98873ef1e9e15_spec.rb +57 -0
- data/spec/models/error2c3c8d4e65c3447a8eae772de1b0e3ef_spec.rb +57 -0
- data/spec/models/error35d6bd13358246f9ae9ffbe791550e06_spec.rb +57 -0
- data/spec/models/error476679d881284bdc9a5192128d50d4b6_spec.rb +57 -0
- data/spec/models/error479167a4d6534b6a85ec7857c5fb14ba_spec.rb +57 -0
- data/spec/models/error4bee1dd3515c454f83249366486164d0_spec.rb +57 -0
- data/spec/models/error7bbeca3b1c2440f19c0730f62b3b6ef4_spec.rb +57 -0
- data/spec/models/error878b6eeb86ef40cdb1ec5f1207207e09_spec.rb +57 -0
- data/spec/models/error9cad4d8f334c467daf30ed3a72664779_spec.rb +57 -0
- data/spec/models/error_bc084ac4caa243b199e2307fb94184c3_spec.rb +57 -0
- data/spec/models/error_d3d26008b8464eeb912ff06244246cf2_spec.rb +57 -0
- data/spec/models/error_f2e2dae6d0e945279a68e68afaee2d54_spec.rb +57 -0
- data/spec/models/error_fa972818e96245a89bcee1f18b40eb0a_spec.rb +57 -0
- data/spec/models/exposure_da5345c68b174f978f19999c3e00cab9_spec.rb +69 -0
- data/spec/models/figapi_lookup_indicator_spec.rb +189 -0
- data/spec/models/flightcontrolapi_grant_input_spec.rb +6 -0
- data/spec/models/fwmgr_api_json_diff_spec.rb +6 -6
- data/spec/models/get_activity_monitor_spec.rb +63 -0
- data/spec/models/get_affected_spec.rb +63 -0
- data/spec/models/get_alerts_response_spec.rb +63 -0
- data/spec/models/get_device_inventory_spec.rb +63 -0
- data/spec/models/get_end_transaction_spec.rb +63 -0
- data/spec/models/get_integrations_spec.rb +63 -0
- data/spec/models/get_metrics_spec.rb +63 -0
- data/spec/models/get_security_checks_spec.rb +63 -0
- data/spec/models/get_security_compliance_spec.rb +63 -0
- data/spec/models/get_supported_saas_spec.rb +63 -0
- data/spec/models/get_system_logs_spec.rb +63 -0
- data/spec/models/get_system_users_spec.rb +63 -0
- data/spec/models/get_transaction_status_spec.rb +63 -0
- data/spec/models/get_user_inventory_spec.rb +63 -0
- data/spec/models/integration_a9d173a3bf93430f84054286043aa8e5_spec.rb +63 -0
- data/spec/models/integration_e95afa6fc5e04968b0e9d83e90042eca_spec.rb +87 -0
- data/spec/models/issue9a61d8c8ccac45858497af4786b275c7_spec.rb +57 -0
- data/spec/models/meta17335150dd1a4934a3a031a7b41e650b_spec.rb +63 -0
- data/spec/models/meta23005461ac9a41fbb4620fe4aa0a3438_spec.rb +63 -0
- data/spec/models/meta27c23ca116c1477bb85e765b5e09af69_spec.rb +63 -0
- data/spec/models/meta37a0d574ca884a2f8641e122e47a3ce9_spec.rb +63 -0
- data/spec/models/meta4f2b2e3bbfd74a7fb14e0ca86dd47d57_spec.rb +63 -0
- data/spec/models/meta4fda3fb731c54f5480750a508fa0142d_spec.rb +63 -0
- data/spec/models/meta536da5d66c054c69889a624cf1068900_spec.rb +63 -0
- data/spec/models/meta6dbc34e4022d4b5c9fe5785caf9801e7_spec.rb +63 -0
- data/spec/models/meta77f6bf58ba0045649e59a4655807a6ab_spec.rb +63 -0
- data/spec/models/meta9b68681eb9464c4e9612730248f519d6_spec.rb +63 -0
- data/spec/models/meta_c84ad721c6a841869874276dd0683cbb_spec.rb +63 -0
- data/spec/models/meta_d1db20ce08ad45b3987ead9035c153a9_spec.rb +63 -0
- data/spec/models/meta_d43679bfb5f448afa0899baa948533d1_spec.rb +63 -0
- data/spec/models/meta_e1df370799c7419d805c0f95b5d1ae90_spec.rb +63 -0
- data/spec/models/meta_e4ad714b314449299eca720f9d63b718_spec.rb +63 -0
- data/spec/models/meta_fb2fed2c461a4af583e5b3b790c82df1_spec.rb +63 -0
- data/spec/models/meta_fe9ab4e0124e4f0fb9946562895a2c78_spec.rb +63 -0
- data/spec/models/models_api_image_combined_export_spec.rb +24 -0
- data/spec/models/models_cluster_spec.rb +6 -0
- data/spec/models/models_config_info_type_spec.rb +99 -0
- data/spec/models/models_elf_binary_info_type_spec.rb +93 -0
- data/spec/models/models_he_string_file_info_type_spec.rb +69 -0
- data/spec/models/models_he_string_info_type_spec.rb +63 -0
- data/spec/models/models_image_info_type_spec.rb +117 -0
- data/spec/models/models_image_metadata_type_spec.rb +81 -0
- data/spec/models/models_inventory_engine_info_type_spec.rb +69 -0
- data/spec/models/models_inventory_scan_request_type_spec.rb +159 -0
- data/spec/models/models_inventory_type_spec.rb +135 -0
- data/spec/models/models_layer_info_type_spec.rb +93 -0
- data/spec/models/models_ml_model_type_spec.rb +93 -0
- data/spec/models/{domain_case_creation_request_spec.rb → models_scan_info_type_spec.rb} +12 -12
- data/spec/models/models_scan_request_type_spec.rb +117 -0
- data/spec/models/pagination033f3d78a056499b8f4877419a0ab636_spec.rb +75 -0
- data/spec/models/pagination080eaa160ef24b9ea15b29a7376520d1_spec.rb +75 -0
- data/spec/models/pagination10594326d99a4b3a8681178b13e58952_spec.rb +75 -0
- data/spec/models/pagination13aeb546de8049e7b3a1c36f9c93266b_spec.rb +75 -0
- data/spec/models/pagination210dcb9a1e7d4355aa68be7ec0fd01f5_spec.rb +75 -0
- data/spec/models/pagination30037a29e9404616b03177274ec26e23_spec.rb +75 -0
- data/spec/models/pagination3b8a127584ba4423a93eb7c8169b572b_spec.rb +75 -0
- data/spec/models/pagination3f3e43ffd8e64379931bdcb29aebc087_spec.rb +75 -0
- data/spec/models/pagination52f77164aafe4de6b6db6d957e7daa2d_spec.rb +75 -0
- data/spec/models/pagination548073ea1b2b436ba88a22f20220668f_spec.rb +75 -0
- data/spec/models/pagination5540128e40ad49718c1f4b4b5e4e558c_spec.rb +75 -0
- data/spec/models/pagination6447d6d09066458cbbaa67ba2e2337cc_spec.rb +75 -0
- data/spec/models/pagination9bacca2551f14ff5a7ca8bd9d42e3cd2_spec.rb +75 -0
- data/spec/models/pagination_d97a43983ded4cd7b949b22c9365f3ac_spec.rb +75 -0
- data/spec/models/pagination_f16542f2ce284253ae3ba96625cde422_spec.rb +75 -0
- data/spec/models/pagination_f3897127524749a8977efcf98f6fca21_spec.rb +75 -0
- data/spec/models/pagination_f6ab71b91d6246e0bd736cf3af5fad6e_spec.rb +75 -0
- data/spec/models/{types_query_result_spec.rb → quickscanpro_error_spec.rb} +8 -8
- data/spec/{api/handle_spec.rb → models/quickscanpro_meta_info_spec.rb} +12 -17
- data/spec/models/quickscanpro_scan_metadata_spec.rb +6 -0
- data/spec/models/rbac_cloud_group_spec.rb +75 -0
- data/spec/models/reason_result53b5512288cb4a35afeb08fb3232bc9a_spec.rb +51 -0
- data/spec/models/reason_result85bd120760ba447ea4ed7050227cea6d_spec.rb +51 -0
- data/spec/models/registration_iom_event_v2_spec.rb +6 -0
- data/spec/models/releasenotes_release_note_v2_spec.rb +81 -0
- data/spec/models/releasenotes_release_note_wrapper_v2_spec.rb +63 -0
- data/spec/models/resources_cloud_resource_spec.rb +6 -0
- data/spec/models/resources_compliance_control_spec.rb +18 -0
- data/spec/models/{restapi_indicators_aggregates_request_spec.rb → restapi_indicators_lookup_request_spec.rb} +7 -7
- data/spec/models/{restapi_indicators_aggregates_response_spec.rb → restapi_lookup_indicator_response_spec.rb} +6 -6
- data/spec/models/schema2_manifest_spec.rb +69 -0
- data/spec/models/security_check_metrics4dc2138e50b94346aca29c17db424031_spec.rb +81 -0
- data/spec/models/security_check_with_compliance_fabac54a5b434140a3258784ea52cedd_spec.rb +183 -0
- data/spec/models/source1a19145b2d194d208fce893f033e7d77_spec.rb +69 -0
- data/spec/models/source_acb91d86550f449aa4b1b5310bf5ae84_spec.rb +69 -0
- data/spec/models/source_f8f9612cb66e48f38a21f3f6c9c90ce3_spec.rb +69 -0
- data/spec/models/status_breakdown_c9f65dddc40c4ce591a60ab63a17ab21_spec.rb +81 -0
- data/spec/models/supported_integration6399100b6064428e971df473366a4291_spec.rb +63 -0
- data/spec/models/system_log35829c828fcc41f99005750f1c86b16b_spec.rb +105 -0
- data/spec/models/system_user62e536308fad4c7f8f020fb76f162088_spec.rb +123 -0
- data/spec/models/types_query_request_spec.rb +6 -0
- data/spec/models/upload_data_request_spec.rb +51 -0
- data/spec/models/upload_data_response_spec.rb +63 -0
- data/spec/models/user_c59913813fcc4565a44e697480b8846b_spec.rb +141 -0
- data/spec/models/v1_history_spec.rb +75 -0
- data/spec/models/v1_image_config_spec.rb +105 -0
- data/spec/models/v1_image_spec.rb +105 -0
- data/spec/models/v1_platform_spec.rb +75 -0
- data/spec/models/v1_root_fs_spec.rb +57 -0
- data/spec/models/webhooktrigger_response_config_spec.rb +0 -6
- metadata +2343 -1902
- data/lib/crimson-falcon/api/datascanner.rb +0 -225
- data/lib/crimson-falcon/api/handle.rb +0 -94
@@ -0,0 +1,485 @@
|
|
1
|
+
=begin
|
2
|
+
Crimson Falcon - Ruby Client SDK
|
3
|
+
|
4
|
+
Code auto-generated by OpenAPI Generator; DO NOT EDIT.
|
5
|
+
|
6
|
+
MIT License
|
7
|
+
|
8
|
+
Copyright (c) 2023 Crowdstrike
|
9
|
+
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
12
|
+
in the Software without restriction, including without limitation the rights
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
15
|
+
furnished to do so, subject to the following conditions:
|
16
|
+
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
18
|
+
copies or substantial portions of the Software.
|
19
|
+
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
26
|
+
SOFTWARE.
|
27
|
+
|
28
|
+
=end
|
29
|
+
|
30
|
+
require 'date'
|
31
|
+
require 'time'
|
32
|
+
|
33
|
+
module Falcon
|
34
|
+
class SystemUser62e536308fad4c7f8f020fb76f162088
|
35
|
+
attr_accessor :account_id
|
36
|
+
|
37
|
+
attr_accessor :bypass_sso
|
38
|
+
|
39
|
+
attr_accessor :create_date
|
40
|
+
|
41
|
+
attr_accessor :email
|
42
|
+
|
43
|
+
attr_accessor :enabled
|
44
|
+
|
45
|
+
attr_accessor :first_name
|
46
|
+
|
47
|
+
attr_accessor :id
|
48
|
+
|
49
|
+
attr_accessor :last_login
|
50
|
+
|
51
|
+
attr_accessor :last_name
|
52
|
+
|
53
|
+
attr_accessor :locked_out
|
54
|
+
|
55
|
+
attr_accessor :mfa_enabled
|
56
|
+
|
57
|
+
attr_accessor :role
|
58
|
+
|
59
|
+
attr_accessor :scoped_integration_ids
|
60
|
+
|
61
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
62
|
+
def self.attribute_map
|
63
|
+
{
|
64
|
+
:'account_id' => :'account_id',
|
65
|
+
:'bypass_sso' => :'bypass_sso',
|
66
|
+
:'create_date' => :'create_date',
|
67
|
+
:'email' => :'email',
|
68
|
+
:'enabled' => :'enabled',
|
69
|
+
:'first_name' => :'first_name',
|
70
|
+
:'id' => :'id',
|
71
|
+
:'last_login' => :'last_login',
|
72
|
+
:'last_name' => :'last_name',
|
73
|
+
:'locked_out' => :'locked_out',
|
74
|
+
:'mfa_enabled' => :'mfa_enabled',
|
75
|
+
:'role' => :'role',
|
76
|
+
:'scoped_integration_ids' => :'scoped_integration_ids'
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
80
|
+
# Returns all the JSON keys this model knows about
|
81
|
+
def self.acceptable_attributes
|
82
|
+
attribute_map.values
|
83
|
+
end
|
84
|
+
|
85
|
+
# Attribute type mapping.
|
86
|
+
def self.openapi_types
|
87
|
+
{
|
88
|
+
:'account_id' => :'String',
|
89
|
+
:'bypass_sso' => :'Boolean',
|
90
|
+
:'create_date' => :'Time',
|
91
|
+
:'email' => :'String',
|
92
|
+
:'enabled' => :'Boolean',
|
93
|
+
:'first_name' => :'String',
|
94
|
+
:'id' => :'String',
|
95
|
+
:'last_login' => :'Time',
|
96
|
+
:'last_name' => :'String',
|
97
|
+
:'locked_out' => :'Boolean',
|
98
|
+
:'mfa_enabled' => :'Boolean',
|
99
|
+
:'role' => :'String',
|
100
|
+
:'scoped_integration_ids' => :'Array<String>'
|
101
|
+
}
|
102
|
+
end
|
103
|
+
|
104
|
+
# List of attributes with nullable: true
|
105
|
+
def self.openapi_nullable
|
106
|
+
Set.new([
|
107
|
+
])
|
108
|
+
end
|
109
|
+
|
110
|
+
# Initializes the object
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
+
def initialize(attributes = {})
|
113
|
+
if (!attributes.is_a?(Hash))
|
114
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Falcon::SystemUser62e536308fad4c7f8f020fb76f162088` initialize method"
|
115
|
+
end
|
116
|
+
|
117
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
118
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
119
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
120
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Falcon::SystemUser62e536308fad4c7f8f020fb76f162088`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
121
|
+
end
|
122
|
+
h[k.to_sym] = v
|
123
|
+
}
|
124
|
+
|
125
|
+
if attributes.key?(:'account_id')
|
126
|
+
self.account_id = attributes[:'account_id']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'bypass_sso')
|
130
|
+
self.bypass_sso = attributes[:'bypass_sso']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'create_date')
|
134
|
+
self.create_date = attributes[:'create_date']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'email')
|
138
|
+
self.email = attributes[:'email']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.key?(:'enabled')
|
142
|
+
self.enabled = attributes[:'enabled']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.key?(:'first_name')
|
146
|
+
self.first_name = attributes[:'first_name']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.key?(:'id')
|
150
|
+
self.id = attributes[:'id']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'last_login')
|
154
|
+
self.last_login = attributes[:'last_login']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'last_name')
|
158
|
+
self.last_name = attributes[:'last_name']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.key?(:'locked_out')
|
162
|
+
self.locked_out = attributes[:'locked_out']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'mfa_enabled')
|
166
|
+
self.mfa_enabled = attributes[:'mfa_enabled']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.key?(:'role')
|
170
|
+
self.role = attributes[:'role']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.key?(:'scoped_integration_ids')
|
174
|
+
if (value = attributes[:'scoped_integration_ids']).is_a?(Array)
|
175
|
+
self.scoped_integration_ids = value
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
181
|
+
# @return Array for valid properties with the reasons
|
182
|
+
def list_invalid_properties
|
183
|
+
invalid_properties = Array.new
|
184
|
+
if @account_id.nil?
|
185
|
+
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
186
|
+
end
|
187
|
+
|
188
|
+
if @bypass_sso.nil?
|
189
|
+
invalid_properties.push('invalid value for "bypass_sso", bypass_sso cannot be nil.')
|
190
|
+
end
|
191
|
+
|
192
|
+
if @create_date.nil?
|
193
|
+
invalid_properties.push('invalid value for "create_date", create_date cannot be nil.')
|
194
|
+
end
|
195
|
+
|
196
|
+
if @email.nil?
|
197
|
+
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
198
|
+
end
|
199
|
+
|
200
|
+
if @email.to_s.length < 1
|
201
|
+
invalid_properties.push('invalid value for "email", the character length must be great than or equal to 1.')
|
202
|
+
end
|
203
|
+
|
204
|
+
if @enabled.nil?
|
205
|
+
invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
|
206
|
+
end
|
207
|
+
|
208
|
+
if @first_name.nil?
|
209
|
+
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
210
|
+
end
|
211
|
+
|
212
|
+
if @first_name.to_s.length < 1
|
213
|
+
invalid_properties.push('invalid value for "first_name", the character length must be great than or equal to 1.')
|
214
|
+
end
|
215
|
+
|
216
|
+
if @id.nil?
|
217
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
218
|
+
end
|
219
|
+
|
220
|
+
if @last_login.nil?
|
221
|
+
invalid_properties.push('invalid value for "last_login", last_login cannot be nil.')
|
222
|
+
end
|
223
|
+
|
224
|
+
if @last_name.nil?
|
225
|
+
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
226
|
+
end
|
227
|
+
|
228
|
+
if @last_name.to_s.length < 1
|
229
|
+
invalid_properties.push('invalid value for "last_name", the character length must be great than or equal to 1.')
|
230
|
+
end
|
231
|
+
|
232
|
+
if @locked_out.nil?
|
233
|
+
invalid_properties.push('invalid value for "locked_out", locked_out cannot be nil.')
|
234
|
+
end
|
235
|
+
|
236
|
+
if @mfa_enabled.nil?
|
237
|
+
invalid_properties.push('invalid value for "mfa_enabled", mfa_enabled cannot be nil.')
|
238
|
+
end
|
239
|
+
|
240
|
+
if @role.nil?
|
241
|
+
invalid_properties.push('invalid value for "role", role cannot be nil.')
|
242
|
+
end
|
243
|
+
|
244
|
+
if @role.to_s.length < 1
|
245
|
+
invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
|
246
|
+
end
|
247
|
+
|
248
|
+
if @scoped_integration_ids.nil?
|
249
|
+
invalid_properties.push('invalid value for "scoped_integration_ids", scoped_integration_ids cannot be nil.')
|
250
|
+
end
|
251
|
+
|
252
|
+
invalid_properties
|
253
|
+
end
|
254
|
+
|
255
|
+
# Check to see if the all the properties in the model are valid
|
256
|
+
# @return true if the model is valid
|
257
|
+
def valid?
|
258
|
+
return false if @account_id.nil?
|
259
|
+
return false if @bypass_sso.nil?
|
260
|
+
return false if @create_date.nil?
|
261
|
+
return false if @email.nil?
|
262
|
+
return false if @email.to_s.length < 1
|
263
|
+
return false if @enabled.nil?
|
264
|
+
return false if @first_name.nil?
|
265
|
+
return false if @first_name.to_s.length < 1
|
266
|
+
return false if @id.nil?
|
267
|
+
return false if @last_login.nil?
|
268
|
+
return false if @last_name.nil?
|
269
|
+
return false if @last_name.to_s.length < 1
|
270
|
+
return false if @locked_out.nil?
|
271
|
+
return false if @mfa_enabled.nil?
|
272
|
+
return false if @role.nil?
|
273
|
+
return false if @role.to_s.length < 1
|
274
|
+
return false if @scoped_integration_ids.nil?
|
275
|
+
true
|
276
|
+
end
|
277
|
+
|
278
|
+
# Custom attribute writer method with validation
|
279
|
+
# @param [Object] email Value to be assigned
|
280
|
+
def email=(email)
|
281
|
+
if email.nil?
|
282
|
+
fail ArgumentError, 'email cannot be nil'
|
283
|
+
end
|
284
|
+
|
285
|
+
if email.to_s.length < 1
|
286
|
+
fail ArgumentError, 'invalid value for "email", the character length must be great than or equal to 1.'
|
287
|
+
end
|
288
|
+
|
289
|
+
@email = email
|
290
|
+
end
|
291
|
+
|
292
|
+
# Custom attribute writer method with validation
|
293
|
+
# @param [Object] first_name Value to be assigned
|
294
|
+
def first_name=(first_name)
|
295
|
+
if first_name.nil?
|
296
|
+
fail ArgumentError, 'first_name cannot be nil'
|
297
|
+
end
|
298
|
+
|
299
|
+
if first_name.to_s.length < 1
|
300
|
+
fail ArgumentError, 'invalid value for "first_name", the character length must be great than or equal to 1.'
|
301
|
+
end
|
302
|
+
|
303
|
+
@first_name = first_name
|
304
|
+
end
|
305
|
+
|
306
|
+
# Custom attribute writer method with validation
|
307
|
+
# @param [Object] last_name Value to be assigned
|
308
|
+
def last_name=(last_name)
|
309
|
+
if last_name.nil?
|
310
|
+
fail ArgumentError, 'last_name cannot be nil'
|
311
|
+
end
|
312
|
+
|
313
|
+
if last_name.to_s.length < 1
|
314
|
+
fail ArgumentError, 'invalid value for "last_name", the character length must be great than or equal to 1.'
|
315
|
+
end
|
316
|
+
|
317
|
+
@last_name = last_name
|
318
|
+
end
|
319
|
+
|
320
|
+
# Custom attribute writer method with validation
|
321
|
+
# @param [Object] role Value to be assigned
|
322
|
+
def role=(role)
|
323
|
+
if role.nil?
|
324
|
+
fail ArgumentError, 'role cannot be nil'
|
325
|
+
end
|
326
|
+
|
327
|
+
if role.to_s.length < 1
|
328
|
+
fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
|
329
|
+
end
|
330
|
+
|
331
|
+
@role = role
|
332
|
+
end
|
333
|
+
|
334
|
+
# Checks equality by comparing each attribute.
|
335
|
+
# @param [Object] Object to be compared
|
336
|
+
def ==(o)
|
337
|
+
return true if self.equal?(o)
|
338
|
+
self.class == o.class &&
|
339
|
+
account_id == o.account_id &&
|
340
|
+
bypass_sso == o.bypass_sso &&
|
341
|
+
create_date == o.create_date &&
|
342
|
+
email == o.email &&
|
343
|
+
enabled == o.enabled &&
|
344
|
+
first_name == o.first_name &&
|
345
|
+
id == o.id &&
|
346
|
+
last_login == o.last_login &&
|
347
|
+
last_name == o.last_name &&
|
348
|
+
locked_out == o.locked_out &&
|
349
|
+
mfa_enabled == o.mfa_enabled &&
|
350
|
+
role == o.role &&
|
351
|
+
scoped_integration_ids == o.scoped_integration_ids
|
352
|
+
end
|
353
|
+
|
354
|
+
# @see the `==` method
|
355
|
+
# @param [Object] Object to be compared
|
356
|
+
def eql?(o)
|
357
|
+
self == o
|
358
|
+
end
|
359
|
+
|
360
|
+
# Calculates hash code according to all attributes.
|
361
|
+
# @return [Integer] Hash code
|
362
|
+
def hash
|
363
|
+
[account_id, bypass_sso, create_date, email, enabled, first_name, id, last_login, last_name, locked_out, mfa_enabled, role, scoped_integration_ids].hash
|
364
|
+
end
|
365
|
+
|
366
|
+
# Builds the object from hash
|
367
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
368
|
+
# @return [Object] Returns the model itself
|
369
|
+
def self.build_from_hash(attributes)
|
370
|
+
new.build_from_hash(attributes)
|
371
|
+
end
|
372
|
+
|
373
|
+
# Builds the object from hash
|
374
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
375
|
+
# @return [Object] Returns the model itself
|
376
|
+
def build_from_hash(attributes)
|
377
|
+
return nil unless attributes.is_a?(Hash)
|
378
|
+
attributes = attributes.transform_keys(&:to_sym)
|
379
|
+
self.class.openapi_types.each_pair do |key, type|
|
380
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
381
|
+
self.send("#{key}=", nil)
|
382
|
+
elsif type =~ /\AArray<(.*)>/i
|
383
|
+
# check to ensure the input is an array given that the attribute
|
384
|
+
# is documented as an array but the input is not
|
385
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
386
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
387
|
+
end
|
388
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
389
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
393
|
+
self
|
394
|
+
end
|
395
|
+
|
396
|
+
# Deserializes the data based on type
|
397
|
+
# @param string type Data type
|
398
|
+
# @param string value Value to be deserialized
|
399
|
+
# @return [Object] Deserialized data
|
400
|
+
def _deserialize(type, value)
|
401
|
+
case type.to_sym
|
402
|
+
when :Time
|
403
|
+
Time.parse(value)
|
404
|
+
when :Date
|
405
|
+
Date.parse(value)
|
406
|
+
when :String
|
407
|
+
value.to_s
|
408
|
+
when :Integer
|
409
|
+
value.to_i
|
410
|
+
when :Float
|
411
|
+
value.to_f
|
412
|
+
when :Boolean
|
413
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
414
|
+
true
|
415
|
+
else
|
416
|
+
false
|
417
|
+
end
|
418
|
+
when :Object
|
419
|
+
# generic object (usually a Hash), return directly
|
420
|
+
value
|
421
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
422
|
+
inner_type = Regexp.last_match[:inner_type]
|
423
|
+
value.map { |v| _deserialize(inner_type, v) }
|
424
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
425
|
+
k_type = Regexp.last_match[:k_type]
|
426
|
+
v_type = Regexp.last_match[:v_type]
|
427
|
+
{}.tap do |hash|
|
428
|
+
value.each do |k, v|
|
429
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
430
|
+
end
|
431
|
+
end
|
432
|
+
else # model
|
433
|
+
# models (e.g. Pet) or oneOf
|
434
|
+
klass = Falcon.const_get(type)
|
435
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
# Returns the string representation of the object
|
440
|
+
# @return [String] String presentation of the object
|
441
|
+
def to_s
|
442
|
+
to_hash.to_s
|
443
|
+
end
|
444
|
+
|
445
|
+
# to_body is an alias to to_hash (backward compatibility)
|
446
|
+
# @return [Hash] Returns the object in the form of hash
|
447
|
+
def to_body
|
448
|
+
to_hash
|
449
|
+
end
|
450
|
+
|
451
|
+
# Returns the object in the form of hash
|
452
|
+
# @return [Hash] Returns the object in the form of hash
|
453
|
+
def to_hash
|
454
|
+
hash = {}
|
455
|
+
self.class.attribute_map.each_pair do |attr, param|
|
456
|
+
value = self.send(attr)
|
457
|
+
if value.nil?
|
458
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
459
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
460
|
+
end
|
461
|
+
|
462
|
+
hash[param] = _to_hash(value)
|
463
|
+
end
|
464
|
+
hash
|
465
|
+
end
|
466
|
+
|
467
|
+
# Outputs non-array value in the form of hash
|
468
|
+
# For object, use to_hash. Otherwise, just return the value
|
469
|
+
# @param [Object] value Any valid value
|
470
|
+
# @return [Hash] Returns the value in the form of hash
|
471
|
+
def _to_hash(value)
|
472
|
+
if value.is_a?(Array)
|
473
|
+
value.compact.map { |v| _to_hash(v) }
|
474
|
+
elsif value.is_a?(Hash)
|
475
|
+
{}.tap do |hash|
|
476
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
477
|
+
end
|
478
|
+
elsif value.respond_to? :to_hash
|
479
|
+
value.to_hash
|
480
|
+
else
|
481
|
+
value
|
482
|
+
end
|
483
|
+
end
|
484
|
+
end
|
485
|
+
end
|
@@ -91,22 +91,12 @@ module Falcon
|
|
91
91
|
# @return Array for valid properties with the reasons
|
92
92
|
def list_invalid_properties
|
93
93
|
invalid_properties = Array.new
|
94
|
-
if @count.nil?
|
95
|
-
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
96
|
-
end
|
97
|
-
|
98
|
-
if @result_type.nil?
|
99
|
-
invalid_properties.push('invalid value for "result_type", result_type cannot be nil.')
|
100
|
-
end
|
101
|
-
|
102
94
|
invalid_properties
|
103
95
|
end
|
104
96
|
|
105
97
|
# Check to see if the all the properties in the model are valid
|
106
98
|
# @return true if the model is valid
|
107
99
|
def valid?
|
108
|
-
return false if @count.nil?
|
109
|
-
return false if @result_type.nil?
|
110
100
|
true
|
111
101
|
end
|
112
102
|
|
@@ -91,22 +91,12 @@ module Falcon
|
|
91
91
|
# @return Array for valid properties with the reasons
|
92
92
|
def list_invalid_properties
|
93
93
|
invalid_properties = Array.new
|
94
|
-
if @result.nil?
|
95
|
-
invalid_properties.push('invalid value for "result", result cannot be nil.')
|
96
|
-
end
|
97
|
-
|
98
|
-
if @timestamp.nil?
|
99
|
-
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
100
|
-
end
|
101
|
-
|
102
94
|
invalid_properties
|
103
95
|
end
|
104
96
|
|
105
97
|
# Check to see if the all the properties in the model are valid
|
106
98
|
# @return true if the model is valid
|
107
99
|
def valid?
|
108
|
-
return false if @result.nil?
|
109
|
-
return false if @timestamp.nil?
|
110
100
|
true
|
111
101
|
end
|
112
102
|
|
@@ -36,6 +36,8 @@ module Falcon
|
|
36
36
|
|
37
37
|
attr_accessor :query
|
38
38
|
|
39
|
+
attr_accessor :revision_id
|
40
|
+
|
39
41
|
attr_accessor :select_fields
|
40
42
|
|
41
43
|
attr_accessor :timestamp
|
@@ -45,6 +47,7 @@ module Falcon
|
|
45
47
|
{
|
46
48
|
:'paginate' => :'paginate',
|
47
49
|
:'query' => :'query',
|
50
|
+
:'revision_id' => :'revisionId',
|
48
51
|
:'select_fields' => :'selectFields',
|
49
52
|
:'timestamp' => :'timestamp'
|
50
53
|
}
|
@@ -60,6 +63,7 @@ module Falcon
|
|
60
63
|
{
|
61
64
|
:'paginate' => :'TypesPaginate',
|
62
65
|
:'query' => :'String',
|
66
|
+
:'revision_id' => :'Integer',
|
63
67
|
:'select_fields' => :'TypesQueryRequestSelectFields',
|
64
68
|
:'timestamp' => :'Integer'
|
65
69
|
}
|
@@ -94,6 +98,10 @@ module Falcon
|
|
94
98
|
self.query = attributes[:'query']
|
95
99
|
end
|
96
100
|
|
101
|
+
if attributes.key?(:'revision_id')
|
102
|
+
self.revision_id = attributes[:'revision_id']
|
103
|
+
end
|
104
|
+
|
97
105
|
if attributes.key?(:'select_fields')
|
98
106
|
self.select_fields = attributes[:'select_fields']
|
99
107
|
end
|
@@ -128,6 +136,7 @@ module Falcon
|
|
128
136
|
self.class == o.class &&
|
129
137
|
paginate == o.paginate &&
|
130
138
|
query == o.query &&
|
139
|
+
revision_id == o.revision_id &&
|
131
140
|
select_fields == o.select_fields &&
|
132
141
|
timestamp == o.timestamp
|
133
142
|
end
|
@@ -141,7 +150,7 @@ module Falcon
|
|
141
150
|
# Calculates hash code according to all attributes.
|
142
151
|
# @return [Integer] Hash code
|
143
152
|
def hash
|
144
|
-
[paginate, query, select_fields, timestamp].hash
|
153
|
+
[paginate, query, revision_id, select_fields, timestamp].hash
|
145
154
|
end
|
146
155
|
|
147
156
|
# Builds the object from hash
|
@@ -93,22 +93,12 @@ module Falcon
|
|
93
93
|
# @return Array for valid properties with the reasons
|
94
94
|
def list_invalid_properties
|
95
95
|
invalid_properties = Array.new
|
96
|
-
if @result_json.nil?
|
97
|
-
invalid_properties.push('invalid value for "result_json", result_json cannot be nil.')
|
98
|
-
end
|
99
|
-
|
100
|
-
if @result_type.nil?
|
101
|
-
invalid_properties.push('invalid value for "result_type", result_type cannot be nil.')
|
102
|
-
end
|
103
|
-
|
104
96
|
invalid_properties
|
105
97
|
end
|
106
98
|
|
107
99
|
# Check to see if the all the properties in the model are valid
|
108
100
|
# @return true if the model is valid
|
109
101
|
def valid?
|
110
|
-
return false if @result_json.nil?
|
111
|
-
return false if @result_type.nil?
|
112
102
|
true
|
113
103
|
end
|
114
104
|
|