crimson-falcon 0.5.0 → 1.0.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 +2151 -1857
- data/lib/crimson-falcon/api/{alerts_api.rb → alerts.rb} +105 -39
- data/lib/crimson-falcon/api/{api_integrations_api.rb → api_integrations.rb} +12 -12
- data/lib/crimson-falcon/api/{aspm_api.rb → aspm.rb} +295 -96
- data/lib/crimson-falcon/api/{certificate_based_exclusions_api.rb → certificate_based_exclusions.rb} +25 -25
- data/lib/crimson-falcon/api/{default_api.rb → cloud_aws_registration.rb} +29 -29
- data/lib/crimson-falcon/api/cloud_azure_registration.rb +105 -0
- data/lib/crimson-falcon/api/{cloud_connect_aws_api.rb → cloud_connect_aws.rb} +35 -35
- data/lib/crimson-falcon/api/cloud_security_assets.rb +179 -0
- data/lib/crimson-falcon/api/{cloud_snapshots_api.rb → cloud_snapshots.rb} +22 -22
- data/lib/crimson-falcon/api/{compliance_assessments_api.rb → compliance_assessments.rb} +34 -34
- data/lib/crimson-falcon/api/{configuration_assessment_api.rb → configuration_assessment.rb} +11 -11
- data/lib/crimson-falcon/api/{configuration_assessment_evaluation_logic_api.rb → configuration_assessment_evaluation_logic.rb} +5 -5
- data/lib/crimson-falcon/api/{container_alerts_api.rb → container_alerts.rb} +20 -20
- data/lib/crimson-falcon/api/{container_detections_api.rb → container_detections.rb} +46 -46
- data/lib/crimson-falcon/api/{container_images_api.rb → container_images.rb} +116 -116
- data/lib/crimson-falcon/api/{container_packages_api.rb → container_packages.rb} +122 -52
- data/lib/crimson-falcon/api/{container_vulnerabilities_api.rb → container_vulnerabilities.rb} +93 -93
- data/lib/crimson-falcon/api/content_update_policies.rb +769 -0
- data/lib/crimson-falcon/api/correlation_rules.rb +505 -0
- data/lib/crimson-falcon/api/{cspg_iacapi_api.rb → cspg_iac.rb} +4 -4
- data/lib/crimson-falcon/api/{cspm_registration_api.rb → cspm_registration.rb} +473 -414
- data/lib/crimson-falcon/api/{custom_ioa_api.rb → custom_ioa.rb} +82 -82
- data/lib/crimson-falcon/api/{custom_storage_api.rb → custom_storage.rb} +136 -136
- data/lib/crimson-falcon/api/{d4c_registration_api.rb → d4c_registration.rb} +97 -178
- data/lib/crimson-falcon/api/{datascanner_api.rb → datascanner.rb} +13 -13
- data/lib/crimson-falcon/api/{delivery_settings_api.rb → delivery_settings.rb} +8 -8
- data/lib/crimson-falcon/api/deployments.rb +115 -0
- data/lib/crimson-falcon/api/{detects_api.rb → detects.rb} +18 -18
- data/lib/crimson-falcon/api/device_content.rb +176 -0
- data/lib/crimson-falcon/api/{device_control_policies_api.rb → device_control_policies.rb} +57 -57
- data/lib/crimson-falcon/api/{discover_api.rb → discover.rb} +119 -53
- data/lib/crimson-falcon/api/{discover_iot_api.rb → discover_iot.rb} +16 -16
- data/lib/crimson-falcon/api/downloads.rb +108 -0
- data/lib/crimson-falcon/api/{downloads_api_api.rb → downloads_api.rb} +4 -73
- data/lib/crimson-falcon/api/{drift_indicators_api.rb → drift_indicators.rb} +38 -38
- data/lib/crimson-falcon/api/{event_schema_api.rb → event_schema.rb} +10 -10
- data/lib/crimson-falcon/api/{event_streams_api.rb → event_streams.rb} +11 -11
- data/lib/crimson-falcon/api/{exposure_management_api.rb → exposure_management.rb} +47 -41
- data/lib/crimson-falcon/api/{falcon_complete_dashboard_api.rb → falcon_complete_dashboard.rb} +73 -73
- data/lib/crimson-falcon/api/{falcon_container_api.rb → falcon_container.rb} +4 -4
- data/lib/crimson-falcon/api/{falcon_container_cli_api.rb → falcon_container_cli.rb} +5 -5
- data/lib/crimson-falcon/api/{falcon_container_image_api.rb → falcon_container_image.rb} +46 -46
- data/lib/crimson-falcon/api/{falconx_sandbox_api.rb → falconx_sandbox.rb} +62 -62
- data/lib/crimson-falcon/api/{field_schema_api.rb → field_schema.rb} +7 -7
- data/lib/crimson-falcon/api/{filevantage_api.rb → filevantage.rb} +149 -149
- data/lib/crimson-falcon/api/{firewall_management_api.rb → firewall_management.rb} +138 -138
- data/lib/crimson-falcon/api/{firewall_policies_api.rb → firewall_policies.rb} +52 -52
- data/lib/crimson-falcon/api/{foundry_logscale_api.rb → foundry_logscale.rb} +65 -65
- data/lib/crimson-falcon/api/{handle_api.rb → handle.rb} +4 -4
- data/lib/crimson-falcon/api/{host_group_api.rb → host_group.rb} +46 -46
- data/lib/crimson-falcon/api/{host_migration_api.rb → host_migration.rb} +49 -49
- data/lib/crimson-falcon/api/{hosts_api.rb → hosts.rb} +50 -50
- data/lib/crimson-falcon/api/{humio_auth_proxy_api.rb → humio_auth_proxy.rb} +37 -37
- data/lib/crimson-falcon/api/{identity_entities_api.rb → identity_entities.rb} +12 -12
- data/lib/crimson-falcon/api/{identity_protection_api.rb → identity_protection.rb} +28 -28
- data/lib/crimson-falcon/api/{image_assessment_policies_api.rb → image_assessment_policies.rb} +44 -44
- data/lib/crimson-falcon/api/{incidents_api.rb → incidents.rb} +22 -22
- data/lib/crimson-falcon/api/{installation_tokens_api.rb → installation_tokens.rb} +29 -29
- data/lib/crimson-falcon/api/{installation_tokens_settings_api.rb → installation_tokens_settings.rb} +5 -5
- data/lib/crimson-falcon/api/{intel_api.rb → intel.rb} +85 -85
- data/lib/crimson-falcon/api/intelligence_indicator_graph.rb +118 -0
- data/lib/crimson-falcon/api/{ioa_exclusions_api.rb → ioa_exclusions.rb} +20 -20
- data/lib/crimson-falcon/api/{ioc_api.rb → ioc.rb} +61 -61
- data/lib/crimson-falcon/api/{iocs_api.rb → iocs.rb} +21 -21
- data/lib/crimson-falcon/api/{kubernetes_protection_api.rb → kubernetes_protection.rb} +370 -370
- data/lib/crimson-falcon/api/lookup_files.rb +239 -0
- data/lib/crimson-falcon/api/{malquery_api.rb → malquery.rb} +36 -36
- data/lib/crimson-falcon/api/{message_center_api.rb → message_center.rb} +42 -42
- data/lib/crimson-falcon/api/{ml_exclusions_api.rb → ml_exclusions.rb} +20 -20
- data/lib/crimson-falcon/api/{mobile_enrollment_api.rb → mobile_enrollment.rb} +9 -9
- data/lib/crimson-falcon/api/{mssp_api.rb → mssp.rb} +117 -117
- data/lib/crimson-falcon/api/{oauth2_api.rb → oauth2.rb} +10 -10
- data/lib/crimson-falcon/api/{ods_api.rb → ods.rb} +61 -61
- data/lib/crimson-falcon/api/{overwatch_dashboard_api.rb → overwatch_dashboard.rb} +21 -21
- data/lib/crimson-falcon/api/{prevention_policies_api.rb → prevention_policies.rb} +50 -50
- data/lib/crimson-falcon/api/{quarantine_api.rb → quarantine.rb} +24 -24
- data/lib/crimson-falcon/api/{quick_scan_api.rb → quick_scan.rb} +16 -16
- data/lib/crimson-falcon/api/{quick_scan_pro_api.rb → quick_scan_pro.rb} +25 -25
- data/lib/crimson-falcon/api/{real_time_response_api.rb → real_time_response.rb} +98 -98
- data/lib/crimson-falcon/api/{real_time_response_admin_api.rb → real_time_response_admin.rb} +72 -72
- data/lib/crimson-falcon/api/{real_time_response_audit_api.rb → real_time_response_audit.rb} +4 -4
- data/lib/crimson-falcon/api/{recon_api.rb → recon.rb} +109 -109
- data/lib/crimson-falcon/api/release_notes.rb +287 -0
- data/lib/crimson-falcon/api/releases.rb +125 -0
- data/lib/crimson-falcon/api/{report_executions_api.rb → report_executions.rb} +16 -16
- data/lib/crimson-falcon/api/{response_policies_api.rb → response_policies.rb} +50 -50
- data/lib/crimson-falcon/api/{runtime_detections_api.rb → runtime_detections.rb} +13 -13
- data/lib/crimson-falcon/api/{sample_uploads_api.rb → sample_uploads.rb} +49 -49
- data/lib/crimson-falcon/api/{scheduled_reports_api.rb → scheduled_reports.rb} +12 -12
- data/lib/crimson-falcon/api/{sensor_download_api.rb → sensor_download.rb} +32 -32
- data/lib/crimson-falcon/api/{sensor_update_policies_api.rb → sensor_update_policies.rb} +88 -88
- data/lib/crimson-falcon/api/{sensor_usage_api_api.rb → sensor_usage.rb} +4 -4
- data/lib/crimson-falcon/api/{sensor_visibility_exclusions_api.rb → sensor_visibility_exclusions.rb} +20 -20
- data/lib/crimson-falcon/api/{spotlight_evaluation_logic_api.rb → spotlight_evaluation_logic.rb} +13 -13
- data/lib/crimson-falcon/api/{spotlight_vulnerabilities_api.rb → spotlight_vulnerabilities.rb} +27 -27
- data/lib/crimson-falcon/api/{threatgraph_api.rb → threatgraph.rb} +42 -42
- data/lib/crimson-falcon/api/{unidentified_containers_api.rb → unidentified_containers.rb} +23 -23
- data/lib/crimson-falcon/api/{user_management_api.rb → user_management.rb} +94 -94
- data/lib/crimson-falcon/api/vulnerabilities.rb +106 -0
- data/lib/crimson-falcon/api/{workflows_api.rb → workflows.rb} +76 -76
- data/lib/crimson-falcon/api/{zero_trust_assessment_api.rb → zero_trust_assessment.rb} +12 -12
- data/lib/crimson-falcon/models/api_create_rule_operation_v1.rb +257 -0
- data/lib/crimson-falcon/models/api_get_entities_rules_response_v1.rb +266 -0
- data/lib/crimson-falcon/models/api_patch_rule_operation_v1.rb +257 -0
- data/lib/crimson-falcon/models/api_patch_rule_search_v1.rb +261 -0
- data/lib/crimson-falcon/models/api_rule_create_request_v1.rb +354 -0
- data/lib/crimson-falcon/models/api_rule_operation_v1.rb +266 -0
- data/lib/crimson-falcon/models/api_rule_patch_request_v1.rb +311 -0
- data/lib/crimson-falcon/models/api_rule_schedule_v1.rb +239 -0
- data/lib/crimson-falcon/models/api_rule_schedule_v1_patch.rb +239 -0
- data/lib/crimson-falcon/models/api_rule_search_v1.rb +276 -0
- data/lib/crimson-falcon/models/api_rule_v1.rb +132 -203
- data/lib/crimson-falcon/models/apidomain_saved_search_execute_request_v1.rb +1 -89
- data/lib/crimson-falcon/models/assets_get_resource_ids_response.rb +261 -0
- data/lib/crimson-falcon/models/assets_get_resources_response.rb +266 -0
- data/lib/crimson-falcon/models/base_set_content_update_policy_precedence_req_v1.rb +242 -0
- data/lib/crimson-falcon/models/content_update_create_policies_req_v1.rb +241 -0
- data/lib/crimson-falcon/models/content_update_create_policy_req_v1.rb +259 -0
- data/lib/crimson-falcon/models/content_update_ring_assignment_settings_v1.rb +253 -0
- data/lib/crimson-falcon/models/content_update_settings_v1.rb +241 -0
- data/lib/crimson-falcon/models/content_update_update_policies_req_v1.rb +241 -0
- data/lib/crimson-falcon/models/content_update_update_policy_req_v1.rb +269 -0
- data/lib/crimson-falcon/models/dataclassifications_label.rb +267 -0
- data/lib/crimson-falcon/models/dataclassifications_response.rb +284 -0
- data/lib/crimson-falcon/models/dataclassifications_tag.rb +283 -0
- data/lib/crimson-falcon/models/deployments_api_deployment_ring_view.rb +302 -0
- data/lib/crimson-falcon/models/deployments_api_deployment_view.rb +309 -0
- data/lib/crimson-falcon/models/deployments_api_deployment_view_wrapper.rb +271 -0
- data/lib/crimson-falcon/models/detectsapi_post_combined_alerts_v1_meta.rb +271 -0
- data/lib/crimson-falcon/models/detectsapi_post_combined_alerts_v1_paging.rb +262 -0
- data/lib/crimson-falcon/models/detectsapi_post_combined_alerts_v1_request_swagger.rb +261 -0
- data/lib/crimson-falcon/models/detectsapi_post_combined_alerts_v1_response_swagger.rb +272 -0
- data/lib/crimson-falcon/models/device_control_usb_class_exceptions_req_v1.rb +3 -3
- data/lib/crimson-falcon/models/device_control_usb_class_exceptions_response.rb +3 -3
- data/lib/crimson-falcon/models/devicecontent_content_category.rb +234 -0
- data/lib/crimson-falcon/models/devicecontent_state.rb +345 -0
- data/lib/crimson-falcon/models/devicecontentapi_entities_response_v1.rb +271 -0
- data/lib/crimson-falcon/models/devicecontentapi_query_response_v1.rb +271 -0
- data/lib/crimson-falcon/models/domain_aws_account_resource_metadata.rb +66 -1
- data/lib/crimson-falcon/models/domain_benchmark.rb +12 -1
- data/lib/crimson-falcon/models/domain_content_update_policy_resp_v1.rb +474 -0
- data/lib/crimson-falcon/models/domain_content_update_settings_v1.rb +241 -0
- data/lib/crimson-falcon/models/domain_discover_api_active_discovery_host.rb +21 -1
- data/lib/crimson-falcon/models/domain_discover_api_application_host.rb +13 -1
- data/lib/crimson-falcon/models/domain_discover_api_host.rb +33 -1
- data/lib/crimson-falcon/models/domain_discover_apiio_t_host.rb +33 -1
- data/lib/crimson-falcon/models/domain_kestrel_params.rb +239 -0
- data/lib/crimson-falcon/models/domain_lookup_file.rb +453 -0
- data/lib/crimson-falcon/models/domain_lookup_file_wrapper.rb +271 -0
- data/lib/crimson-falcon/models/domain_report_metadata.rb +10 -1
- data/lib/crimson-falcon/models/domain_ring_assignment_settings_v1.rb +267 -0
- data/lib/crimson-falcon/models/domain_scheduled_report_v1.rb +15 -1
- data/lib/crimson-falcon/models/domain_update_rule_request_v1.rb +18 -1
- data/lib/crimson-falcon/models/figapi_adversary.rb +235 -0
- data/lib/crimson-falcon/models/figapi_country.rb +245 -0
- data/lib/crimson-falcon/models/figapi_domain.rb +345 -0
- data/lib/crimson-falcon/models/figapi_email_address.rb +252 -0
- data/lib/crimson-falcon/models/figapi_file.rb +299 -0
- data/lib/crimson-falcon/models/figapi_indicator.rb +458 -0
- data/lib/crimson-falcon/models/figapi_ipv4.rb +269 -0
- data/lib/crimson-falcon/models/figapi_ipv6.rb +269 -0
- data/lib/crimson-falcon/models/figapi_mx_record.rb +284 -0
- data/lib/crimson-falcon/models/figapi_name_server.rb +254 -0
- data/lib/crimson-falcon/models/figapi_report.rb +235 -0
- data/lib/crimson-falcon/models/figapi_sector.rb +245 -0
- data/lib/crimson-falcon/models/figapi_threat.rb +235 -0
- data/lib/crimson-falcon/models/figapi_url.rb +247 -0
- data/lib/crimson-falcon/models/figapi_vulnerability.rb +374 -0
- data/lib/crimson-falcon/models/figapi_who_is.rb +261 -0
- data/lib/crimson-falcon/models/figapi_whois_record.rb +306 -0
- data/lib/crimson-falcon/models/figapi_x509_certificate.rb +297 -0
- data/lib/crimson-falcon/models/graph_condition.rb +2 -12
- data/lib/crimson-falcon/models/help.rb +239 -0
- data/lib/crimson-falcon/models/ingestion_cve_exploit_reference.rb +267 -0
- data/lib/crimson-falcon/models/ingestion_cve_exploit_source.rb +283 -0
- data/lib/crimson-falcon/models/ingestion_ex_prt_rating_factors.rb +281 -0
- data/lib/crimson-falcon/models/ingestion_reference.rb +255 -0
- data/lib/crimson-falcon/models/inventoryapi_surface_error.rb +260 -0
- data/lib/crimson-falcon/models/{client_fql_statement.rb → inventoryapi_user_external_asset.rb} +16 -28
- data/lib/crimson-falcon/models/inventoryapi_user_external_asset_create.rb +257 -0
- data/lib/crimson-falcon/models/inventoryapi_user_external_asset_create_request_v1.rb +242 -0
- data/lib/crimson-falcon/models/inventoryapi_user_external_asset_create_response_v1.rb +266 -0
- data/lib/crimson-falcon/models/inventoryapi_user_external_asset_result.rb +322 -0
- data/lib/crimson-falcon/models/inventoryapidomain_subsidiary.rb +245 -0
- data/lib/crimson-falcon/models/jsonschema_pivot.rb +19 -1
- data/lib/crimson-falcon/models/jsonschema_signals_extensions.rb +22 -4
- data/lib/crimson-falcon/models/jsonschema_ui_extensions.rb +34 -4
- data/lib/crimson-falcon/models/models_api_customer_and_image.rb +15 -1
- data/lib/crimson-falcon/models/models_api_image_combined_export.rb +26 -1
- data/lib/crimson-falcon/models/models_api_package_combined.rb +15 -1
- data/lib/crimson-falcon/models/models_api_package_combined_v2.rb +381 -0
- data/lib/crimson-falcon/models/models_api_vulnerability_combined.rb +15 -1
- data/lib/crimson-falcon/models/models_application_library.rb +13 -4
- data/lib/crimson-falcon/models/models_container.rb +15 -1
- data/lib/crimson-falcon/models/models_ext_api_image_combined.rb +15 -1
- data/lib/crimson-falcon/models/models_message.rb +239 -0
- data/lib/crimson-falcon/models/models_partial_fingerprints.rb +239 -0
- data/lib/crimson-falcon/models/models_result.rb +339 -0
- data/lib/crimson-falcon/models/models_result_location.rb +253 -0
- data/lib/crimson-falcon/models/models_result_location_properties.rb +253 -0
- data/lib/crimson-falcon/models/models_result_physical_location.rb +253 -0
- data/lib/crimson-falcon/models/models_result_physical_location_artifact_location.rb +239 -0
- data/lib/crimson-falcon/models/models_result_physical_location_region.rb +239 -0
- data/lib/crimson-falcon/models/models_result_properties.rb +365 -0
- data/lib/crimson-falcon/models/models_rule.rb +337 -0
- data/lib/crimson-falcon/models/models_rule_default_configuration.rb +239 -0
- data/lib/crimson-falcon/models/models_rule_properties.rb +669 -0
- data/lib/crimson-falcon/models/models_run.rb +255 -0
- data/lib/crimson-falcon/models/models_run_tool.rb +239 -0
- data/lib/crimson-falcon/models/models_run_tool_driver.rb +283 -0
- data/lib/crimson-falcon/models/models_vulnerability_sarif.rb +269 -0
- data/lib/crimson-falcon/models/packages_api_combined_package_v2.rb +266 -0
- data/lib/crimson-falcon/models/policyframework_benchmark.rb +253 -0
- data/lib/crimson-falcon/models/policyframework_control.rb +290 -0
- data/lib/crimson-falcon/models/quickscanpro_query_scan_results_response.rb +10 -1
- data/lib/crimson-falcon/models/registration_aws_account_ext_v2.rb +19 -1
- data/lib/crimson-falcon/models/registration_aws_account_patch.rb +19 -1
- data/lib/crimson-falcon/models/registration_aws_account_response_v2.rb +0 -5
- data/lib/crimson-falcon/models/registration_azure_download_certificate_response_v1.rb +0 -5
- data/lib/crimson-falcon/models/registration_iom_event_v2.rb +12 -1
- data/lib/crimson-falcon/models/releasecontents_release_content.rb +327 -0
- data/lib/crimson-falcon/models/releasecontents_release_content_version.rb +267 -0
- data/lib/crimson-falcon/models/releasenotes_entities_get_request.rb +241 -0
- data/lib/crimson-falcon/models/releasenotes_entities_get_response_wrapper.rb +269 -0
- data/lib/crimson-falcon/models/releasenotes_note_detail.rb +270 -0
- data/lib/crimson-falcon/models/releasenotes_release_note_v1.rb +303 -0
- data/lib/crimson-falcon/models/releasenotes_release_note_wrapper_v1.rb +271 -0
- data/lib/crimson-falcon/models/releases_release.rb +328 -0
- data/lib/crimson-falcon/models/releases_release_wrapper.rb +271 -0
- data/lib/crimson-falcon/models/resources_app.rb +243 -0
- data/lib/crimson-falcon/models/resources_asset_graph.rb +243 -0
- data/lib/crimson-falcon/models/resources_cloud_context.rb +378 -0
- data/lib/crimson-falcon/models/resources_cloud_resource.rb +604 -0
- data/lib/crimson-falcon/models/resources_compliance.rb +307 -0
- data/lib/crimson-falcon/models/resources_detections.rb +291 -0
- data/lib/crimson-falcon/models/resources_host.rb +390 -0
- data/lib/crimson-falcon/models/resources_relationship.rb +261 -0
- data/lib/crimson-falcon/models/resources_vulnerability.rb +262 -0
- data/lib/crimson-falcon/models/rest_azure_download_script_request_data.rb +239 -0
- data/lib/crimson-falcon/models/rest_azure_download_script_request_v1.rb +241 -0
- data/lib/crimson-falcon/models/rest_azure_provision_get_account_script_response_v1.rb +266 -0
- data/lib/crimson-falcon/models/rest_azure_script.rb +276 -0
- data/lib/crimson-falcon/models/rest_cursor_and_limit_meta_info.rb +289 -0
- data/lib/crimson-falcon/models/rest_cursor_meta_info.rb +280 -0
- data/lib/crimson-falcon/models/rest_cursor_response_fields.rb +250 -0
- data/lib/crimson-falcon/models/rest_paging.rb +262 -0
- data/lib/crimson-falcon/models/restapi_indicator_response.rb +271 -0
- data/lib/crimson-falcon/models/restapi_indicators_query_request.rb +255 -0
- data/lib/crimson-falcon/models/restapi_indicators_query_sort_request.rb +267 -0
- data/lib/crimson-falcon/models/sadomain_typosquatting_base_domain.rb +19 -1
- data/lib/crimson-falcon/models/sadomain_typosquatting_subdomain.rb +1 -15
- data/lib/crimson-falcon/models/string_wrapper.rb +266 -0
- data/lib/crimson-falcon/models/types_get_executor_nodes_metadata_response.rb +278 -0
- data/lib/crimson-falcon/models/types_get_integration_tasks_metadata_response.rb +267 -0
- data/lib/crimson-falcon/models/v2_for_loop.rb +10 -1
- data/lib/crimson-falcon/models/vulnerabilities_vulnerability_entity_sarif_response.rb +266 -0
- data/lib/crimson-falcon/version.rb +2 -2
- data/lib/crimson-falcon.rb +223 -90
- data/spec/api/{alerts_api_spec.rb → alerts_spec.rb} +21 -10
- data/spec/api/{api_integrations_api_spec.rb → api_integrations_spec.rb} +8 -8
- data/spec/api/{aspm_api_spec.rb → aspm_spec.rb} +51 -8
- data/spec/api/{certificate_based_exclusions_api_spec.rb → certificate_based_exclusions_spec.rb} +8 -8
- data/spec/api/{default_api_spec.rb → cloud_aws_registration_spec.rb} +8 -8
- data/spec/api/cloud_azure_registration_spec.rb +63 -0
- data/spec/api/{cloud_connect_aws_api_spec.rb → cloud_connect_aws_spec.rb} +8 -8
- data/spec/api/cloud_security_assets_spec.rb +78 -0
- data/spec/api/{cloud_snapshots_api_spec.rb → cloud_snapshots_spec.rb} +8 -8
- data/spec/api/{compliance_assessments_api_spec.rb → compliance_assessments_spec.rb} +8 -8
- data/spec/api/{configuration_assessment_evaluation_logic_api_spec.rb → configuration_assessment_evaluation_logic_spec.rb} +8 -8
- data/spec/api/{configuration_assessment_api_spec.rb → configuration_assessment_spec.rb} +8 -8
- data/spec/api/{container_alerts_api_spec.rb → container_alerts_spec.rb} +12 -12
- data/spec/api/{container_detections_api_spec.rb → container_detections_spec.rb} +18 -18
- data/spec/api/{container_images_api_spec.rb → container_images_spec.rb} +38 -38
- data/spec/api/{container_packages_api_spec.rb → container_packages_spec.rb} +36 -21
- data/spec/api/{container_vulnerabilities_api_spec.rb → container_vulnerabilities_spec.rb} +28 -28
- data/spec/api/content_update_policies_spec.rb +177 -0
- data/spec/api/correlation_rules_spec.rb +137 -0
- data/spec/api/{cspg_iacapi_api_spec.rb → cspg_iac_spec.rb} +8 -8
- data/spec/api/{cspm_registration_api_spec.rb → cspm_registration_spec.rb} +94 -84
- data/spec/api/{custom_ioa_api_spec.rb → custom_ioa_spec.rb} +12 -12
- data/spec/api/{custom_storage_api_spec.rb → custom_storage_spec.rb} +8 -8
- data/spec/api/{d4c_registration_api_spec.rb → d4c_registration_spec.rb} +9 -22
- data/spec/api/{datascanner_api_spec.rb → datascanner_spec.rb} +8 -8
- data/spec/api/{delivery_settings_api_spec.rb → delivery_settings_spec.rb} +8 -8
- data/spec/api/deployments_spec.rb +65 -0
- data/spec/api/{detects_api_spec.rb → detects_spec.rb} +8 -8
- data/spec/api/device_content_spec.rb +77 -0
- data/spec/api/{device_control_policies_api_spec.rb → device_control_policies_spec.rb} +8 -8
- data/spec/api/{discover_iot_api_spec.rb → discover_iot_spec.rb} +8 -8
- data/spec/api/{discover_api_spec.rb → discover_spec.rb} +19 -8
- data/spec/api/{downloads_api_api_spec.rb → downloads_spec.rb} +8 -20
- data/spec/api/{drift_indicators_api_spec.rb → drift_indicators_spec.rb} +16 -16
- data/spec/api/{event_schema_api_spec.rb → event_schema_spec.rb} +8 -8
- data/spec/api/{event_streams_api_spec.rb → event_streams_spec.rb} +8 -8
- data/spec/api/{exposure_management_api_spec.rb → exposure_management_spec.rb} +10 -8
- data/spec/api/{falcon_complete_dashboard_api_spec.rb → falcon_complete_dashboard_spec.rb} +8 -8
- data/spec/api/{falcon_container_cli_api_spec.rb → falcon_container_cli_spec.rb} +8 -8
- data/spec/api/{falcon_container_image_api_spec.rb → falcon_container_image_spec.rb} +13 -13
- data/spec/api/{falcon_container_api_spec.rb → falcon_container_spec.rb} +8 -8
- data/spec/api/{falconx_sandbox_api_spec.rb → falconx_sandbox_spec.rb} +8 -8
- data/spec/api/{field_schema_api_spec.rb → field_schema_spec.rb} +8 -8
- data/spec/api/{filevantage_api_spec.rb → filevantage_spec.rb} +14 -14
- data/spec/api/{firewall_management_api_spec.rb → firewall_management_spec.rb} +16 -16
- data/spec/api/{firewall_policies_api_spec.rb → firewall_policies_spec.rb} +8 -8
- data/spec/api/{foundry_logscale_api_spec.rb → foundry_logscale_spec.rb} +8 -8
- data/spec/api/{handle_api_spec.rb → handle_spec.rb} +8 -8
- data/spec/api/{host_group_api_spec.rb → host_group_spec.rb} +8 -8
- data/spec/api/{host_migration_api_spec.rb → host_migration_spec.rb} +10 -10
- data/spec/api/{hosts_api_spec.rb → hosts_spec.rb} +8 -8
- data/spec/api/{humio_auth_proxy_api_spec.rb → humio_auth_proxy_spec.rb} +8 -8
- data/spec/api/{identity_entities_api_spec.rb → identity_entities_spec.rb} +8 -8
- data/spec/api/{identity_protection_api_spec.rb → identity_protection_spec.rb} +8 -8
- data/spec/api/{image_assessment_policies_api_spec.rb → image_assessment_policies_spec.rb} +8 -8
- data/spec/api/{incidents_api_spec.rb → incidents_spec.rb} +8 -8
- data/spec/api/{installation_tokens_settings_api_spec.rb → installation_tokens_settings_spec.rb} +8 -8
- data/spec/api/{installation_tokens_api_spec.rb → installation_tokens_spec.rb} +8 -8
- data/spec/api/{intel_api_spec.rb → intel_spec.rb} +8 -8
- data/spec/api/intelligence_indicator_graph_spec.rb +66 -0
- data/spec/api/{ioa_exclusions_api_spec.rb → ioa_exclusions_spec.rb} +8 -8
- data/spec/api/{ioc_api_spec.rb → ioc_spec.rb} +8 -8
- data/spec/api/{iocs_api_spec.rb → iocs_spec.rb} +8 -8
- data/spec/api/{kubernetes_protection_api_spec.rb → kubernetes_protection_spec.rb} +66 -66
- data/spec/api/lookup_files_spec.rb +80 -0
- data/spec/api/{malquery_api_spec.rb → malquery_spec.rb} +8 -8
- data/spec/api/{message_center_api_spec.rb → message_center_spec.rb} +8 -8
- data/spec/api/{ml_exclusions_api_spec.rb → ml_exclusions_spec.rb} +8 -8
- data/spec/api/{mobile_enrollment_api_spec.rb → mobile_enrollment_spec.rb} +8 -8
- data/spec/api/{mssp_api_spec.rb → mssp_spec.rb} +8 -8
- data/spec/api/{oauth2_api_spec.rb → oauth2_spec.rb} +8 -8
- data/spec/api/{ods_api_spec.rb → ods_spec.rb} +8 -8
- data/spec/api/{overwatch_dashboard_api_spec.rb → overwatch_dashboard_spec.rb} +8 -8
- data/spec/api/{prevention_policies_api_spec.rb → prevention_policies_spec.rb} +8 -8
- data/spec/api/{quarantine_api_spec.rb → quarantine_spec.rb} +8 -8
- data/spec/api/{quick_scan_pro_api_spec.rb → quick_scan_pro_spec.rb} +8 -8
- data/spec/api/{quick_scan_api_spec.rb → quick_scan_spec.rb} +8 -8
- data/spec/api/{real_time_response_admin_api_spec.rb → real_time_response_admin_spec.rb} +8 -8
- data/spec/api/{real_time_response_audit_api_spec.rb → real_time_response_audit_spec.rb} +8 -8
- data/spec/api/{real_time_response_api_spec.rb → real_time_response_spec.rb} +8 -8
- data/spec/api/{recon_api_spec.rb → recon_spec.rb} +8 -8
- data/spec/api/release_notes_spec.rb +97 -0
- data/spec/api/releases_spec.rb +68 -0
- data/spec/api/{report_executions_api_spec.rb → report_executions_spec.rb} +8 -8
- data/spec/api/{response_policies_api_spec.rb → response_policies_spec.rb} +8 -8
- data/spec/api/{runtime_detections_api_spec.rb → runtime_detections_spec.rb} +11 -11
- data/spec/api/{sample_uploads_api_spec.rb → sample_uploads_spec.rb} +8 -8
- data/spec/api/{scheduled_reports_api_spec.rb → scheduled_reports_spec.rb} +8 -8
- data/spec/api/{sensor_download_api_spec.rb → sensor_download_spec.rb} +8 -8
- data/spec/api/{sensor_update_policies_api_spec.rb → sensor_update_policies_spec.rb} +8 -8
- data/spec/api/{sensor_usage_api_api_spec.rb → sensor_usage_spec.rb} +8 -8
- data/spec/api/{sensor_visibility_exclusions_api_spec.rb → sensor_visibility_exclusions_spec.rb} +8 -8
- data/spec/api/{spotlight_evaluation_logic_api_spec.rb → spotlight_evaluation_logic_spec.rb} +8 -8
- data/spec/api/{spotlight_vulnerabilities_api_spec.rb → spotlight_vulnerabilities_spec.rb} +12 -12
- data/spec/api/{threatgraph_api_spec.rb → threatgraph_spec.rb} +8 -8
- data/spec/api/{unidentified_containers_api_spec.rb → unidentified_containers_spec.rb} +13 -13
- data/spec/api/{user_management_api_spec.rb → user_management_spec.rb} +8 -8
- data/spec/api/vulnerabilities_spec.rb +66 -0
- data/spec/api/{workflows_api_spec.rb → workflows_spec.rb} +8 -8
- data/spec/api/{zero_trust_assessment_api_spec.rb → zero_trust_assessment_spec.rb} +8 -8
- data/spec/models/api_create_rule_operation_v1_spec.rb +63 -0
- data/spec/models/api_get_entities_rules_response_v1_spec.rb +63 -0
- data/spec/models/api_patch_rule_operation_v1_spec.rb +63 -0
- data/spec/models/api_patch_rule_search_v1_spec.rb +69 -0
- data/spec/models/api_rule_create_request_v1_spec.rb +111 -0
- data/spec/models/api_rule_operation_v1_spec.rb +69 -0
- data/spec/models/api_rule_patch_request_v1_spec.rb +99 -0
- data/spec/models/api_rule_schedule_v1_patch_spec.rb +51 -0
- data/spec/models/api_rule_schedule_v1_spec.rb +51 -0
- data/spec/models/api_rule_search_v1_spec.rb +69 -0
- data/spec/models/api_rule_v1_spec.rb +16 -34
- data/spec/models/apidomain_saved_search_execute_request_v1_spec.rb +0 -36
- data/spec/models/assets_get_resource_ids_response_spec.rb +63 -0
- data/spec/models/assets_get_resources_response_spec.rb +63 -0
- data/spec/models/base_set_content_update_policy_precedence_req_v1_spec.rb +51 -0
- data/spec/models/content_update_create_policies_req_v1_spec.rb +51 -0
- data/spec/models/content_update_create_policy_req_v1_spec.rb +63 -0
- data/spec/models/content_update_ring_assignment_settings_v1_spec.rb +57 -0
- data/spec/models/content_update_settings_v1_spec.rb +51 -0
- data/spec/models/content_update_update_policies_req_v1_spec.rb +51 -0
- data/spec/models/content_update_update_policy_req_v1_spec.rb +69 -0
- data/spec/models/dataclassifications_label_spec.rb +63 -0
- data/spec/models/dataclassifications_response_spec.rb +75 -0
- data/spec/models/dataclassifications_tag_spec.rb +69 -0
- data/spec/models/deployments_api_deployment_ring_view_spec.rb +87 -0
- data/spec/models/deployments_api_deployment_view_spec.rb +93 -0
- data/spec/models/deployments_api_deployment_view_wrapper_spec.rb +63 -0
- data/spec/models/detectsapi_post_combined_alerts_v1_meta_spec.rb +69 -0
- data/spec/models/detectsapi_post_combined_alerts_v1_paging_spec.rb +63 -0
- data/spec/models/detectsapi_post_combined_alerts_v1_request_swagger_spec.rb +69 -0
- data/spec/models/detectsapi_post_combined_alerts_v1_response_swagger_spec.rb +63 -0
- data/spec/models/device_control_usb_class_exceptions_req_v1_spec.rb +1 -1
- data/spec/models/device_control_usb_class_exceptions_response_spec.rb +1 -1
- data/spec/models/devicecontent_content_category_spec.rb +51 -0
- data/spec/models/devicecontent_state_spec.rb +117 -0
- data/spec/models/devicecontentapi_entities_response_v1_spec.rb +63 -0
- data/spec/models/devicecontentapi_query_response_v1_spec.rb +63 -0
- data/spec/models/domain_aws_account_resource_metadata_spec.rb +30 -0
- data/spec/models/domain_benchmark_spec.rb +6 -0
- data/spec/models/domain_content_update_policy_resp_v1_spec.rb +153 -0
- data/spec/models/domain_content_update_settings_v1_spec.rb +51 -0
- data/spec/models/domain_discover_api_active_discovery_host_spec.rb +12 -0
- data/spec/models/domain_discover_api_application_host_spec.rb +6 -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_kestrel_params_spec.rb +51 -0
- data/spec/models/domain_lookup_file_spec.rb +147 -0
- data/spec/models/domain_lookup_file_wrapper_spec.rb +63 -0
- data/spec/models/domain_report_metadata_spec.rb +6 -0
- data/spec/models/domain_ring_assignment_settings_v1_spec.rb +63 -0
- data/spec/models/domain_scheduled_report_v1_spec.rb +6 -0
- data/spec/models/domain_update_rule_request_v1_spec.rb +6 -0
- data/spec/models/figapi_adversary_spec.rb +51 -0
- data/spec/models/figapi_country_spec.rb +57 -0
- data/spec/models/figapi_domain_spec.rb +117 -0
- data/spec/models/figapi_email_address_spec.rb +63 -0
- data/spec/models/figapi_file_spec.rb +87 -0
- data/spec/models/figapi_indicator_spec.rb +183 -0
- data/spec/models/figapi_ipv4_spec.rb +69 -0
- data/spec/models/figapi_ipv6_spec.rb +69 -0
- data/spec/models/figapi_mx_record_spec.rb +75 -0
- data/spec/models/figapi_name_server_spec.rb +63 -0
- data/spec/models/figapi_report_spec.rb +51 -0
- data/spec/models/figapi_sector_spec.rb +57 -0
- data/spec/models/figapi_threat_spec.rb +51 -0
- data/spec/models/figapi_url_spec.rb +57 -0
- data/spec/models/figapi_vulnerability_spec.rb +141 -0
- data/spec/models/figapi_who_is_spec.rb +69 -0
- data/spec/models/figapi_whois_record_spec.rb +99 -0
- data/spec/models/figapi_x509_certificate_spec.rb +93 -0
- data/spec/models/graph_condition_spec.rb +0 -6
- data/spec/models/help_spec.rb +51 -0
- data/spec/models/ingestion_cve_exploit_reference_spec.rb +63 -0
- data/spec/models/ingestion_cve_exploit_source_spec.rb +69 -0
- data/spec/models/ingestion_ex_prt_rating_factors_spec.rb +69 -0
- data/spec/models/ingestion_reference_spec.rb +57 -0
- data/spec/models/inventoryapi_surface_error_spec.rb +63 -0
- data/spec/models/inventoryapi_user_external_asset_create_request_v1_spec.rb +51 -0
- data/spec/models/inventoryapi_user_external_asset_create_response_v1_spec.rb +63 -0
- data/spec/models/inventoryapi_user_external_asset_create_spec.rb +57 -0
- data/spec/models/inventoryapi_user_external_asset_result_spec.rb +93 -0
- data/spec/models/inventoryapi_user_external_asset_spec.rb +57 -0
- data/spec/models/inventoryapidomain_subsidiary_spec.rb +57 -0
- data/spec/models/jsonschema_pivot_spec.rb +12 -0
- data/spec/models/jsonschema_signals_extensions_spec.rb +12 -0
- data/spec/models/jsonschema_ui_extensions_spec.rb +18 -0
- data/spec/models/models_api_customer_and_image_spec.rb +6 -0
- data/spec/models/models_api_image_combined_export_spec.rb +12 -0
- data/spec/models/models_api_package_combined_spec.rb +6 -0
- data/spec/models/models_api_package_combined_v2_spec.rb +111 -0
- data/spec/models/models_api_vulnerability_combined_spec.rb +6 -0
- data/spec/models/models_application_library_spec.rb +6 -0
- data/spec/models/models_container_spec.rb +6 -0
- data/spec/models/models_ext_api_image_combined_spec.rb +6 -0
- data/spec/models/models_message_spec.rb +51 -0
- data/spec/models/models_partial_fingerprints_spec.rb +51 -0
- data/spec/models/models_result_location_properties_spec.rb +57 -0
- data/spec/models/models_result_location_spec.rb +57 -0
- data/spec/models/models_result_physical_location_artifact_location_spec.rb +51 -0
- data/spec/models/models_result_physical_location_region_spec.rb +51 -0
- data/spec/models/models_result_physical_location_spec.rb +57 -0
- data/spec/models/models_result_properties_spec.rb +105 -0
- data/spec/models/models_result_spec.rb +93 -0
- data/spec/models/models_rule_default_configuration_spec.rb +51 -0
- data/spec/models/models_rule_properties_spec.rb +231 -0
- data/spec/models/models_rule_spec.rb +93 -0
- data/spec/models/models_run_spec.rb +57 -0
- data/spec/models/models_run_tool_driver_spec.rb +69 -0
- data/spec/models/models_run_tool_spec.rb +51 -0
- data/spec/models/models_vulnerability_sarif_spec.rb +63 -0
- data/spec/models/packages_api_combined_package_v2_spec.rb +63 -0
- data/spec/models/policyframework_benchmark_spec.rb +57 -0
- data/spec/models/policyframework_control_spec.rb +87 -0
- data/spec/models/quickscanpro_query_scan_results_response_spec.rb +6 -0
- data/spec/models/registration_aws_account_ext_v2_spec.rb +12 -0
- data/spec/models/registration_aws_account_patch_spec.rb +12 -0
- data/spec/models/registration_iom_event_v2_spec.rb +6 -0
- data/spec/models/releasecontents_release_content_spec.rb +93 -0
- data/spec/models/releasecontents_release_content_version_spec.rb +63 -0
- data/spec/models/releasenotes_entities_get_request_spec.rb +51 -0
- data/spec/models/releasenotes_entities_get_response_wrapper_spec.rb +63 -0
- data/spec/models/releasenotes_note_detail_spec.rb +69 -0
- data/spec/models/releasenotes_release_note_v1_spec.rb +81 -0
- data/spec/models/releasenotes_release_note_wrapper_v1_spec.rb +63 -0
- data/spec/models/releases_release_spec.rb +99 -0
- data/spec/models/releases_release_wrapper_spec.rb +63 -0
- data/spec/models/resources_app_spec.rb +57 -0
- data/spec/models/resources_asset_graph_spec.rb +57 -0
- data/spec/models/resources_cloud_context_spec.rb +147 -0
- data/spec/models/resources_cloud_resource_spec.rb +291 -0
- data/spec/models/resources_compliance_spec.rb +87 -0
- data/spec/models/resources_detections_spec.rb +81 -0
- data/spec/models/resources_host_spec.rb +147 -0
- data/spec/models/resources_relationship_spec.rb +69 -0
- data/spec/models/resources_vulnerability_spec.rb +63 -0
- data/spec/models/rest_azure_download_script_request_data_spec.rb +51 -0
- data/spec/models/rest_azure_download_script_request_v1_spec.rb +51 -0
- data/spec/models/rest_azure_provision_get_account_script_response_v1_spec.rb +63 -0
- data/spec/models/rest_azure_script_spec.rb +69 -0
- data/spec/models/rest_cursor_and_limit_meta_info_spec.rb +81 -0
- data/spec/models/rest_cursor_meta_info_spec.rb +75 -0
- data/spec/models/rest_cursor_response_fields_spec.rb +57 -0
- data/spec/models/{client_fql_statement_spec.rb → rest_paging_spec.rb} +9 -9
- data/spec/models/restapi_indicator_response_spec.rb +63 -0
- data/spec/models/restapi_indicators_query_request_spec.rb +57 -0
- data/spec/models/restapi_indicators_query_sort_request_spec.rb +63 -0
- data/spec/models/sadomain_typosquatting_base_domain_spec.rb +12 -0
- data/spec/models/sadomain_typosquatting_subdomain_spec.rb +0 -6
- data/spec/models/string_wrapper_spec.rb +63 -0
- data/spec/models/types_get_executor_nodes_metadata_response_spec.rb +75 -0
- data/spec/models/types_get_integration_tasks_metadata_response_spec.rb +69 -0
- data/spec/models/v2_for_loop_spec.rb +6 -0
- data/spec/models/vulnerabilities_vulnerability_entity_sarif_response_spec.rb +63 -0
- data/spec/spec_helper.rb +8 -0
- metadata +2129 -1732
@@ -30,7 +30,7 @@ SOFTWARE.
|
|
30
30
|
require 'cgi'
|
31
31
|
|
32
32
|
module Falcon
|
33
|
-
class
|
33
|
+
class CspmRegistration
|
34
34
|
attr_accessor :api_client
|
35
35
|
|
36
36
|
def initialize(api_client = ApiClient.default)
|
@@ -39,8 +39,6 @@ module Falcon
|
|
39
39
|
# Returns JSON object(s) that contain the base64 encoded certificate for a service principal.
|
40
40
|
# @param tenant_id [Array<String>] Azure Tenant ID
|
41
41
|
# @param [Hash] opts the optional parameters
|
42
|
-
# @option opts [Boolean] :refresh Setting to true will invalidate the current certificate and generate a new certificate (default to false)
|
43
|
-
# @option opts [String] :years_valid Years the certificate should be valid (only used when refresh=true)
|
44
42
|
# @return [RegistrationAzureDownloadCertificateResponseV1]
|
45
43
|
def azure_download_certificate(tenant_id, opts = {})
|
46
44
|
data, _status_code, _headers = azure_download_certificate_with_http_info(tenant_id, opts)
|
@@ -50,37 +48,98 @@ module Falcon
|
|
50
48
|
# Returns JSON object(s) that contain the base64 encoded certificate for a service principal.
|
51
49
|
# @param tenant_id [Array<String>] Azure Tenant ID
|
52
50
|
# @param [Hash] opts the optional parameters
|
53
|
-
# @option opts [Boolean] :refresh Setting to true will invalidate the current certificate and generate a new certificate (default to false)
|
54
|
-
# @option opts [String] :years_valid Years the certificate should be valid (only used when refresh=true)
|
55
51
|
# @return [Array<(RegistrationAzureDownloadCertificateResponseV1, Integer, Hash)>] RegistrationAzureDownloadCertificateResponseV1 data, response status code and response headers
|
56
52
|
def azure_download_certificate_with_http_info(tenant_id, opts = {})
|
57
53
|
if @api_client.config.debugging
|
58
|
-
@api_client.config.logger.debug 'Calling API:
|
54
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.azure_download_certificate ...'
|
59
55
|
end
|
60
56
|
# verify the required parameter 'tenant_id' is set
|
61
57
|
if @api_client.config.client_side_validation && tenant_id.nil?
|
62
|
-
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling
|
58
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling CspmRegistration.azure_download_certificate"
|
59
|
+
end
|
60
|
+
# resource path
|
61
|
+
local_var_path = '/cloud-connect-cspm-azure/entities/download-certificate/v1'
|
62
|
+
|
63
|
+
# query parameters
|
64
|
+
query_params = opts[:query_params] || {}
|
65
|
+
query_params[:'tenant_id'] = @api_client.build_collection_param(tenant_id, :multi)
|
66
|
+
|
67
|
+
# header parameters
|
68
|
+
header_params = opts[:header_params] || {}
|
69
|
+
# HTTP header 'Accept' (if needed)
|
70
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/octet-stream'])
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = opts[:form_params] || {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = opts[:debug_body]
|
77
|
+
|
78
|
+
# return_type
|
79
|
+
return_type = opts[:debug_return_type] || 'RegistrationAzureDownloadCertificateResponseV1'
|
80
|
+
|
81
|
+
# auth_names
|
82
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
83
|
+
|
84
|
+
new_options = opts.merge(
|
85
|
+
:operation => :"CspmRegistration.azure_download_certificate",
|
86
|
+
:header_params => header_params,
|
87
|
+
:query_params => query_params,
|
88
|
+
:form_params => form_params,
|
89
|
+
:body => post_body,
|
90
|
+
:auth_names => auth_names,
|
91
|
+
:return_type => return_type
|
92
|
+
)
|
93
|
+
|
94
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
95
|
+
if @api_client.config.debugging
|
96
|
+
@api_client.config.logger.debug "API called: CspmRegistration#azure_download_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
97
|
+
end
|
98
|
+
return data, status_code, headers
|
99
|
+
end
|
100
|
+
|
101
|
+
# Refresh certificate and returns JSON object(s) that contain the base64 encoded certificate for a service principal.
|
102
|
+
# @param tenant_id [Array<String>] Azure Tenant ID
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @option opts [String] :years_valid Years the certificate should be valid. Max 2 (default to '1')
|
105
|
+
# @return [RegistrationAzureDownloadCertificateResponseV1]
|
106
|
+
def azure_refresh_certificate(tenant_id, opts = {})
|
107
|
+
data, _status_code, _headers = azure_refresh_certificate_with_http_info(tenant_id, opts)
|
108
|
+
data
|
109
|
+
end
|
110
|
+
|
111
|
+
# Refresh certificate and returns JSON object(s) that contain the base64 encoded certificate for a service principal.
|
112
|
+
# @param tenant_id [Array<String>] Azure Tenant ID
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @option opts [String] :years_valid Years the certificate should be valid. Max 2 (default to '1')
|
115
|
+
# @return [Array<(RegistrationAzureDownloadCertificateResponseV1, Integer, Hash)>] RegistrationAzureDownloadCertificateResponseV1 data, response status code and response headers
|
116
|
+
def azure_refresh_certificate_with_http_info(tenant_id, opts = {})
|
117
|
+
if @api_client.config.debugging
|
118
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.azure_refresh_certificate ...'
|
119
|
+
end
|
120
|
+
# verify the required parameter 'tenant_id' is set
|
121
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
122
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling CspmRegistration.azure_refresh_certificate"
|
63
123
|
end
|
64
124
|
if @api_client.config.client_side_validation && !opts[:'years_valid'].nil? && opts[:'years_valid'].to_s.length > 2
|
65
|
-
fail ArgumentError, 'invalid value for "opts[:"years_valid"]" when calling
|
125
|
+
fail ArgumentError, 'invalid value for "opts[:"years_valid"]" when calling CspmRegistration.azure_refresh_certificate, the character length must be smaller than or equal to 2.'
|
66
126
|
end
|
67
127
|
|
68
128
|
if @api_client.config.client_side_validation && !opts[:'years_valid'].nil? && opts[:'years_valid'].to_s.length < 1
|
69
|
-
fail ArgumentError, 'invalid value for "opts[:"years_valid"]" when calling
|
129
|
+
fail ArgumentError, 'invalid value for "opts[:"years_valid"]" when calling CspmRegistration.azure_refresh_certificate, the character length must be great than or equal to 1.'
|
70
130
|
end
|
71
131
|
|
72
132
|
pattern = Regexp.new(/^[0-9]{1,2}$/)
|
73
133
|
if @api_client.config.client_side_validation && !opts[:'years_valid'].nil? && opts[:'years_valid'] !~ pattern
|
74
|
-
fail ArgumentError, "invalid value for 'opts[:\"years_valid\"]' when calling
|
134
|
+
fail ArgumentError, "invalid value for 'opts[:\"years_valid\"]' when calling CspmRegistration.azure_refresh_certificate, must conform to the pattern #{pattern}."
|
75
135
|
end
|
76
136
|
|
77
137
|
# resource path
|
78
|
-
local_var_path = '/cloud-connect-cspm-azure/entities/
|
138
|
+
local_var_path = '/cloud-connect-cspm-azure/entities/refresh-certificate/v1'
|
79
139
|
|
80
140
|
# query parameters
|
81
141
|
query_params = opts[:query_params] || {}
|
82
142
|
query_params[:'tenant_id'] = @api_client.build_collection_param(tenant_id, :multi)
|
83
|
-
query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
|
84
143
|
query_params[:'years_valid'] = opts[:'years_valid'] if !opts[:'years_valid'].nil?
|
85
144
|
|
86
145
|
# header parameters
|
@@ -101,7 +160,7 @@ module Falcon
|
|
101
160
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
102
161
|
|
103
162
|
new_options = opts.merge(
|
104
|
-
:operation => :"
|
163
|
+
:operation => :"CspmRegistration.azure_refresh_certificate",
|
105
164
|
:header_params => header_params,
|
106
165
|
:query_params => query_params,
|
107
166
|
:form_params => form_params,
|
@@ -110,9 +169,9 @@ module Falcon
|
|
110
169
|
:return_type => return_type
|
111
170
|
)
|
112
171
|
|
113
|
-
data, status_code, headers = @api_client.call_api(:
|
172
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
114
173
|
if @api_client.config.debugging
|
115
|
-
@api_client.config.logger.debug "API called:
|
174
|
+
@api_client.config.logger.debug "API called: CspmRegistration#azure_refresh_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
116
175
|
end
|
117
176
|
return data, status_code, headers
|
118
177
|
end
|
@@ -121,8 +180,8 @@ module Falcon
|
|
121
180
|
# @param body [RegistrationGCPAccountExtRequestV2]
|
122
181
|
# @param [Hash] opts the optional parameters
|
123
182
|
# @return [RegistrationGCPAccountResponseExtV2]
|
124
|
-
def
|
125
|
-
data, _status_code, _headers =
|
183
|
+
def connect_cspm_gcp_account(body, opts = {})
|
184
|
+
data, _status_code, _headers = connect_cspm_gcp_account_with_http_info(body, opts)
|
126
185
|
data
|
127
186
|
end
|
128
187
|
|
@@ -130,13 +189,13 @@ module Falcon
|
|
130
189
|
# @param body [RegistrationGCPAccountExtRequestV2]
|
131
190
|
# @param [Hash] opts the optional parameters
|
132
191
|
# @return [Array<(RegistrationGCPAccountResponseExtV2, Integer, Hash)>] RegistrationGCPAccountResponseExtV2 data, response status code and response headers
|
133
|
-
def
|
192
|
+
def connect_cspm_gcp_account_with_http_info(body, opts = {})
|
134
193
|
if @api_client.config.debugging
|
135
|
-
@api_client.config.logger.debug 'Calling API:
|
194
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.connect_cspm_gcp_account ...'
|
136
195
|
end
|
137
196
|
# verify the required parameter 'body' is set
|
138
197
|
if @api_client.config.client_side_validation && body.nil?
|
139
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
198
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.connect_cspm_gcp_account"
|
140
199
|
end
|
141
200
|
# resource path
|
142
201
|
local_var_path = '/cloud-connect-cspm-gcp/entities/account/v2'
|
@@ -167,7 +226,7 @@ module Falcon
|
|
167
226
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
168
227
|
|
169
228
|
new_options = opts.merge(
|
170
|
-
:operation => :"
|
229
|
+
:operation => :"CspmRegistration.connect_cspm_gcp_account",
|
171
230
|
:header_params => header_params,
|
172
231
|
:query_params => query_params,
|
173
232
|
:form_params => form_params,
|
@@ -178,7 +237,7 @@ module Falcon
|
|
178
237
|
|
179
238
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
180
239
|
if @api_client.config.debugging
|
181
|
-
@api_client.config.logger.debug "API called:
|
240
|
+
@api_client.config.logger.debug "API called: CspmRegistration#connect_cspm_gcp_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
182
241
|
end
|
183
242
|
return data, status_code, headers
|
184
243
|
end
|
@@ -198,11 +257,11 @@ module Falcon
|
|
198
257
|
# @return [Array<(RegistrationAWSAccountResponseV2, Integer, Hash)>] RegistrationAWSAccountResponseV2 data, response status code and response headers
|
199
258
|
def create_cspm_aws_account_with_http_info(body, opts = {})
|
200
259
|
if @api_client.config.debugging
|
201
|
-
@api_client.config.logger.debug 'Calling API:
|
260
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.create_cspm_aws_account ...'
|
202
261
|
end
|
203
262
|
# verify the required parameter 'body' is set
|
204
263
|
if @api_client.config.client_side_validation && body.nil?
|
205
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
264
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.create_cspm_aws_account"
|
206
265
|
end
|
207
266
|
# resource path
|
208
267
|
local_var_path = '/cloud-connect-cspm-aws/entities/account/v1'
|
@@ -233,7 +292,7 @@ module Falcon
|
|
233
292
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
234
293
|
|
235
294
|
new_options = opts.merge(
|
236
|
-
:operation => :"
|
295
|
+
:operation => :"CspmRegistration.create_cspm_aws_account",
|
237
296
|
:header_params => header_params,
|
238
297
|
:query_params => query_params,
|
239
298
|
:form_params => form_params,
|
@@ -244,7 +303,7 @@ module Falcon
|
|
244
303
|
|
245
304
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
246
305
|
if @api_client.config.debugging
|
247
|
-
@api_client.config.logger.debug "API called:
|
306
|
+
@api_client.config.logger.debug "API called: CspmRegistration#create_cspm_aws_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
248
307
|
end
|
249
308
|
return data, status_code, headers
|
250
309
|
end
|
@@ -264,11 +323,11 @@ module Falcon
|
|
264
323
|
# @return [Array<(RegistrationAzureAccountResponseV1, Integer, Hash)>] RegistrationAzureAccountResponseV1 data, response status code and response headers
|
265
324
|
def create_cspm_azure_account_with_http_info(body, opts = {})
|
266
325
|
if @api_client.config.debugging
|
267
|
-
@api_client.config.logger.debug 'Calling API:
|
326
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.create_cspm_azure_account ...'
|
268
327
|
end
|
269
328
|
# verify the required parameter 'body' is set
|
270
329
|
if @api_client.config.client_side_validation && body.nil?
|
271
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
330
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.create_cspm_azure_account"
|
272
331
|
end
|
273
332
|
# resource path
|
274
333
|
local_var_path = '/cloud-connect-cspm-azure/entities/account/v1'
|
@@ -299,7 +358,7 @@ module Falcon
|
|
299
358
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
300
359
|
|
301
360
|
new_options = opts.merge(
|
302
|
-
:operation => :"
|
361
|
+
:operation => :"CspmRegistration.create_cspm_azure_account",
|
303
362
|
:header_params => header_params,
|
304
363
|
:query_params => query_params,
|
305
364
|
:form_params => form_params,
|
@@ -310,7 +369,7 @@ module Falcon
|
|
310
369
|
|
311
370
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
312
371
|
if @api_client.config.debugging
|
313
|
-
@api_client.config.logger.debug "API called:
|
372
|
+
@api_client.config.logger.debug "API called: CspmRegistration#create_cspm_azure_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
314
373
|
end
|
315
374
|
return data, status_code, headers
|
316
375
|
end
|
@@ -330,11 +389,11 @@ module Falcon
|
|
330
389
|
# @return [Array<(RegistrationAzureAccountResponseV1, Integer, Hash)>] RegistrationAzureAccountResponseV1 data, response status code and response headers
|
331
390
|
def create_cspm_azure_management_group_with_http_info(body, opts = {})
|
332
391
|
if @api_client.config.debugging
|
333
|
-
@api_client.config.logger.debug 'Calling API:
|
392
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.create_cspm_azure_management_group ...'
|
334
393
|
end
|
335
394
|
# verify the required parameter 'body' is set
|
336
395
|
if @api_client.config.client_side_validation && body.nil?
|
337
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
396
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.create_cspm_azure_management_group"
|
338
397
|
end
|
339
398
|
# resource path
|
340
399
|
local_var_path = '/cloud-connect-cspm-azure/entities/management-group/v1'
|
@@ -365,7 +424,7 @@ module Falcon
|
|
365
424
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
366
425
|
|
367
426
|
new_options = opts.merge(
|
368
|
-
:operation => :"
|
427
|
+
:operation => :"CspmRegistration.create_cspm_azure_management_group",
|
369
428
|
:header_params => header_params,
|
370
429
|
:query_params => query_params,
|
371
430
|
:form_params => form_params,
|
@@ -376,7 +435,7 @@ module Falcon
|
|
376
435
|
|
377
436
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
378
437
|
if @api_client.config.debugging
|
379
|
-
@api_client.config.logger.debug "API called:
|
438
|
+
@api_client.config.logger.debug "API called: CspmRegistration#create_cspm_azure_management_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
380
439
|
end
|
381
440
|
return data, status_code, headers
|
382
441
|
end
|
@@ -385,8 +444,8 @@ module Falcon
|
|
385
444
|
# @param body [RegistrationGCPAccountCreateRequestExtV1]
|
386
445
|
# @param [Hash] opts the optional parameters
|
387
446
|
# @return [RegistrationGCPAccountResponseV1]
|
388
|
-
def
|
389
|
-
data, _status_code, _headers =
|
447
|
+
def create_cspm_gcp_account(body, opts = {})
|
448
|
+
data, _status_code, _headers = create_cspm_gcp_account_with_http_info(body, opts)
|
390
449
|
data
|
391
450
|
end
|
392
451
|
|
@@ -394,13 +453,13 @@ module Falcon
|
|
394
453
|
# @param body [RegistrationGCPAccountCreateRequestExtV1]
|
395
454
|
# @param [Hash] opts the optional parameters
|
396
455
|
# @return [Array<(RegistrationGCPAccountResponseV1, Integer, Hash)>] RegistrationGCPAccountResponseV1 data, response status code and response headers
|
397
|
-
def
|
456
|
+
def create_cspm_gcp_account_with_http_info(body, opts = {})
|
398
457
|
if @api_client.config.debugging
|
399
|
-
@api_client.config.logger.debug 'Calling API:
|
458
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.create_cspm_gcp_account ...'
|
400
459
|
end
|
401
460
|
# verify the required parameter 'body' is set
|
402
461
|
if @api_client.config.client_side_validation && body.nil?
|
403
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
462
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.create_cspm_gcp_account"
|
404
463
|
end
|
405
464
|
# resource path
|
406
465
|
local_var_path = '/cloud-connect-cspm-gcp/entities/account/v1'
|
@@ -431,7 +490,7 @@ module Falcon
|
|
431
490
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
432
491
|
|
433
492
|
new_options = opts.merge(
|
434
|
-
:operation => :"
|
493
|
+
:operation => :"CspmRegistration.create_cspm_gcp_account",
|
435
494
|
:header_params => header_params,
|
436
495
|
:query_params => query_params,
|
437
496
|
:form_params => form_params,
|
@@ -442,7 +501,7 @@ module Falcon
|
|
442
501
|
|
443
502
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
444
503
|
if @api_client.config.debugging
|
445
|
-
@api_client.config.logger.debug "API called:
|
504
|
+
@api_client.config.logger.debug "API called: CspmRegistration#create_cspm_gcp_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
446
505
|
end
|
447
506
|
return data, status_code, headers
|
448
507
|
end
|
@@ -451,7 +510,7 @@ module Falcon
|
|
451
510
|
# @param [Hash] opts the optional parameters
|
452
511
|
# @option opts [Array<String>] :ids AWS account IDs to remove
|
453
512
|
# @option opts [Array<String>] :organization_ids AWS organization IDs to remove
|
454
|
-
# @return [
|
513
|
+
# @return [MsaspecResponseFields]
|
455
514
|
def delete_cspm_aws_account(opts = {})
|
456
515
|
data, _status_code, _headers = delete_cspm_aws_account_with_http_info(opts)
|
457
516
|
data
|
@@ -461,10 +520,10 @@ module Falcon
|
|
461
520
|
# @param [Hash] opts the optional parameters
|
462
521
|
# @option opts [Array<String>] :ids AWS account IDs to remove
|
463
522
|
# @option opts [Array<String>] :organization_ids AWS organization IDs to remove
|
464
|
-
# @return [Array<(
|
523
|
+
# @return [Array<(MsaspecResponseFields, Integer, Hash)>] MsaspecResponseFields data, response status code and response headers
|
465
524
|
def delete_cspm_aws_account_with_http_info(opts = {})
|
466
525
|
if @api_client.config.debugging
|
467
|
-
@api_client.config.logger.debug 'Calling API:
|
526
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.delete_cspm_aws_account ...'
|
468
527
|
end
|
469
528
|
# resource path
|
470
529
|
local_var_path = '/cloud-connect-cspm-aws/entities/account/v1'
|
@@ -486,13 +545,13 @@ module Falcon
|
|
486
545
|
post_body = opts[:debug_body]
|
487
546
|
|
488
547
|
# return_type
|
489
|
-
return_type = opts[:debug_return_type] || '
|
548
|
+
return_type = opts[:debug_return_type] || 'MsaspecResponseFields'
|
490
549
|
|
491
550
|
# auth_names
|
492
551
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
493
552
|
|
494
553
|
new_options = opts.merge(
|
495
|
-
:operation => :"
|
554
|
+
:operation => :"CspmRegistration.delete_cspm_aws_account",
|
496
555
|
:header_params => header_params,
|
497
556
|
:query_params => query_params,
|
498
557
|
:form_params => form_params,
|
@@ -503,7 +562,7 @@ module Falcon
|
|
503
562
|
|
504
563
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
505
564
|
if @api_client.config.debugging
|
506
|
-
@api_client.config.logger.debug "API called:
|
565
|
+
@api_client.config.logger.debug "API called: CspmRegistration#delete_cspm_aws_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
507
566
|
end
|
508
567
|
return data, status_code, headers
|
509
568
|
end
|
@@ -527,19 +586,19 @@ module Falcon
|
|
527
586
|
# @return [Array<(MsaBaseEntitiesResponse, Integer, Hash)>] MsaBaseEntitiesResponse data, response status code and response headers
|
528
587
|
def delete_cspm_azure_account_with_http_info(opts = {})
|
529
588
|
if @api_client.config.debugging
|
530
|
-
@api_client.config.logger.debug 'Calling API:
|
589
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.delete_cspm_azure_account ...'
|
531
590
|
end
|
532
591
|
if @api_client.config.client_side_validation && !opts[:'retain_tenant'].nil? && opts[:'retain_tenant'].to_s.length > 5
|
533
|
-
fail ArgumentError, 'invalid value for "opts[:"retain_tenant"]" when calling
|
592
|
+
fail ArgumentError, 'invalid value for "opts[:"retain_tenant"]" when calling CspmRegistration.delete_cspm_azure_account, the character length must be smaller than or equal to 5.'
|
534
593
|
end
|
535
594
|
|
536
595
|
if @api_client.config.client_side_validation && !opts[:'retain_tenant'].nil? && opts[:'retain_tenant'].to_s.length < 4
|
537
|
-
fail ArgumentError, 'invalid value for "opts[:"retain_tenant"]" when calling
|
596
|
+
fail ArgumentError, 'invalid value for "opts[:"retain_tenant"]" when calling CspmRegistration.delete_cspm_azure_account, the character length must be great than or equal to 4.'
|
538
597
|
end
|
539
598
|
|
540
599
|
pattern = Regexp.new(/^(true|false)$/)
|
541
600
|
if @api_client.config.client_side_validation && !opts[:'retain_tenant'].nil? && opts[:'retain_tenant'] !~ pattern
|
542
|
-
fail ArgumentError, "invalid value for 'opts[:\"retain_tenant\"]' when calling
|
601
|
+
fail ArgumentError, "invalid value for 'opts[:\"retain_tenant\"]' when calling CspmRegistration.delete_cspm_azure_account, must conform to the pattern #{pattern}."
|
543
602
|
end
|
544
603
|
|
545
604
|
# resource path
|
@@ -569,7 +628,7 @@ module Falcon
|
|
569
628
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
570
629
|
|
571
630
|
new_options = opts.merge(
|
572
|
-
:operation => :"
|
631
|
+
:operation => :"CspmRegistration.delete_cspm_azure_account",
|
573
632
|
:header_params => header_params,
|
574
633
|
:query_params => query_params,
|
575
634
|
:form_params => form_params,
|
@@ -580,7 +639,7 @@ module Falcon
|
|
580
639
|
|
581
640
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
582
641
|
if @api_client.config.debugging
|
583
|
-
@api_client.config.logger.debug "API called:
|
642
|
+
@api_client.config.logger.debug "API called: CspmRegistration#delete_cspm_azure_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
584
643
|
end
|
585
644
|
return data, status_code, headers
|
586
645
|
end
|
@@ -600,7 +659,7 @@ module Falcon
|
|
600
659
|
# @return [Array<(MsaspecResponseFields, Integer, Hash)>] MsaspecResponseFields data, response status code and response headers
|
601
660
|
def delete_cspm_azure_management_group_with_http_info(opts = {})
|
602
661
|
if @api_client.config.debugging
|
603
|
-
@api_client.config.logger.debug 'Calling API:
|
662
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.delete_cspm_azure_management_group ...'
|
604
663
|
end
|
605
664
|
# resource path
|
606
665
|
local_var_path = '/cloud-connect-cspm-azure/entities/management-group/v1'
|
@@ -627,7 +686,7 @@ module Falcon
|
|
627
686
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
628
687
|
|
629
688
|
new_options = opts.merge(
|
630
|
-
:operation => :"
|
689
|
+
:operation => :"CspmRegistration.delete_cspm_azure_management_group",
|
631
690
|
:header_params => header_params,
|
632
691
|
:query_params => query_params,
|
633
692
|
:form_params => form_params,
|
@@ -638,7 +697,7 @@ module Falcon
|
|
638
697
|
|
639
698
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
640
699
|
if @api_client.config.debugging
|
641
|
-
@api_client.config.logger.debug "API called:
|
700
|
+
@api_client.config.logger.debug "API called: CspmRegistration#delete_cspm_azure_management_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
642
701
|
end
|
643
702
|
return data, status_code, headers
|
644
703
|
end
|
@@ -647,8 +706,8 @@ module Falcon
|
|
647
706
|
# @param [Hash] opts the optional parameters
|
648
707
|
# @option opts [Array<String>] :ids Hierarchical Resource IDs of accounts
|
649
708
|
# @return [MsaBaseEntitiesResponse]
|
650
|
-
def
|
651
|
-
data, _status_code, _headers =
|
709
|
+
def delete_cspm_gcp_account(opts = {})
|
710
|
+
data, _status_code, _headers = delete_cspm_gcp_account_with_http_info(opts)
|
652
711
|
data
|
653
712
|
end
|
654
713
|
|
@@ -656,9 +715,9 @@ module Falcon
|
|
656
715
|
# @param [Hash] opts the optional parameters
|
657
716
|
# @option opts [Array<String>] :ids Hierarchical Resource IDs of accounts
|
658
717
|
# @return [Array<(MsaBaseEntitiesResponse, Integer, Hash)>] MsaBaseEntitiesResponse data, response status code and response headers
|
659
|
-
def
|
718
|
+
def delete_cspm_gcp_account_with_http_info(opts = {})
|
660
719
|
if @api_client.config.debugging
|
661
|
-
@api_client.config.logger.debug 'Calling API:
|
720
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.delete_cspm_gcp_account ...'
|
662
721
|
end
|
663
722
|
# resource path
|
664
723
|
local_var_path = '/cloud-connect-cspm-gcp/entities/account/v1'
|
@@ -685,7 +744,7 @@ module Falcon
|
|
685
744
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
686
745
|
|
687
746
|
new_options = opts.merge(
|
688
|
-
:operation => :"
|
747
|
+
:operation => :"CspmRegistration.delete_cspm_gcp_account",
|
689
748
|
:header_params => header_params,
|
690
749
|
:query_params => query_params,
|
691
750
|
:form_params => form_params,
|
@@ -696,7 +755,7 @@ module Falcon
|
|
696
755
|
|
697
756
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
698
757
|
if @api_client.config.debugging
|
699
|
-
@api_client.config.logger.debug "API called:
|
758
|
+
@api_client.config.logger.debug "API called: CspmRegistration#delete_cspm_gcp_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
700
759
|
end
|
701
760
|
return data, status_code, headers
|
702
761
|
end
|
@@ -742,7 +801,7 @@ module Falcon
|
|
742
801
|
# @return [Array<(RegistrationExternalIOAEventResponse, Integer, Hash)>] RegistrationExternalIOAEventResponse data, response status code and response headers
|
743
802
|
def get_behavior_detections_with_http_info(opts = {})
|
744
803
|
if @api_client.config.debugging
|
745
|
-
@api_client.config.logger.debug 'Calling API:
|
804
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_behavior_detections ...'
|
746
805
|
end
|
747
806
|
allowable_values = ["aws", "azure"]
|
748
807
|
if @api_client.config.client_side_validation && opts[:'cloud_provider'] && !allowable_values.include?(opts[:'cloud_provider'])
|
@@ -750,7 +809,7 @@ module Falcon
|
|
750
809
|
end
|
751
810
|
pattern = Regexp.new(/^(aws|azure)$/)
|
752
811
|
if @api_client.config.client_side_validation && !opts[:'cloud_provider'].nil? && opts[:'cloud_provider'] !~ pattern
|
753
|
-
fail ArgumentError, "invalid value for 'opts[:\"cloud_provider\"]' when calling
|
812
|
+
fail ArgumentError, "invalid value for 'opts[:\"cloud_provider\"]' when calling CspmRegistration.get_behavior_detections, must conform to the pattern #{pattern}."
|
754
813
|
end
|
755
814
|
|
756
815
|
allowable_values = ["ACM", "ACR", "Any", "App Engine", "AppService", "BigQuery", "Cloud Load Balancing", "Cloud Logging", "Cloud SQL", "Cloud Storage", "CloudFormation", "CloudTrail", "CloudWatch Logs", "Cloudfront", "Compute Engine", "Config", "Disk", "DynamoDB", "EBS", "EC2", "ECR", "EFS", "EKS", "ELB", "EMR", "Elasticache", "GuardDuty", "IAM", "Identity", "KMS", "KeyVault", "Kinesis", "Kubernetes", "Lambda", "LoadBalancer", "Monitor", "NLB/ALB", "NetworkSecurityGroup", "PostgreSQL", "RDS", "Redshift", "S3", "SES", "SNS", "SQLDatabase", "SQLServer", "SQS", "SSM", "Serverless Application Repository", "StorageAccount", "Subscriptions", "VPC", "VirtualMachine", "VirtualNetwork"]
|
@@ -767,7 +826,7 @@ module Falcon
|
|
767
826
|
end
|
768
827
|
pattern = Regexp.new(/^\d+$/)
|
769
828
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] !~ pattern
|
770
|
-
fail ArgumentError, "invalid value for 'opts[:\"limit\"]' when calling
|
829
|
+
fail ArgumentError, "invalid value for 'opts[:\"limit\"]' when calling CspmRegistration.get_behavior_detections, must conform to the pattern #{pattern}."
|
771
830
|
end
|
772
831
|
|
773
832
|
# resource path
|
@@ -808,7 +867,7 @@ module Falcon
|
|
808
867
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
809
868
|
|
810
869
|
new_options = opts.merge(
|
811
|
-
:operation => :"
|
870
|
+
:operation => :"CspmRegistration.get_behavior_detections",
|
812
871
|
:header_params => header_params,
|
813
872
|
:query_params => query_params,
|
814
873
|
:form_params => form_params,
|
@@ -819,7 +878,7 @@ module Falcon
|
|
819
878
|
|
820
879
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
821
880
|
if @api_client.config.debugging
|
822
|
-
@api_client.config.logger.debug "API called:
|
881
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_behavior_detections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
823
882
|
end
|
824
883
|
return data, status_code, headers
|
825
884
|
end
|
@@ -839,11 +898,11 @@ module Falcon
|
|
839
898
|
# @return [Array<(RegistrationExternalIOMEventResponseV2, Integer, Hash)>] RegistrationExternalIOMEventResponseV2 data, response status code and response headers
|
840
899
|
def get_configuration_detection_entities_with_http_info(ids, opts = {})
|
841
900
|
if @api_client.config.debugging
|
842
|
-
@api_client.config.logger.debug 'Calling API:
|
901
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_configuration_detection_entities ...'
|
843
902
|
end
|
844
903
|
# verify the required parameter 'ids' is set
|
845
904
|
if @api_client.config.client_side_validation && ids.nil?
|
846
|
-
fail ArgumentError, "Missing the required parameter 'ids' when calling
|
905
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling CspmRegistration.get_configuration_detection_entities"
|
847
906
|
end
|
848
907
|
# resource path
|
849
908
|
local_var_path = '/detects/entities/iom/v2'
|
@@ -870,7 +929,7 @@ module Falcon
|
|
870
929
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
871
930
|
|
872
931
|
new_options = opts.merge(
|
873
|
-
:operation => :"
|
932
|
+
:operation => :"CspmRegistration.get_configuration_detection_entities",
|
874
933
|
:header_params => header_params,
|
875
934
|
:query_params => query_params,
|
876
935
|
:form_params => form_params,
|
@@ -881,7 +940,7 @@ module Falcon
|
|
881
940
|
|
882
941
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
883
942
|
if @api_client.config.debugging
|
884
|
-
@api_client.config.logger.debug "API called:
|
943
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_configuration_detection_entities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
885
944
|
end
|
886
945
|
return data, status_code, headers
|
887
946
|
end
|
@@ -909,18 +968,18 @@ module Falcon
|
|
909
968
|
# @return [Array<(RegistrationIOMEventIDsResponseV2, Integer, Hash)>] RegistrationIOMEventIDsResponseV2 data, response status code and response headers
|
910
969
|
def get_configuration_detection_ids_v2_with_http_info(opts = {})
|
911
970
|
if @api_client.config.debugging
|
912
|
-
@api_client.config.logger.debug 'Calling API:
|
971
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_configuration_detection_ids_v2 ...'
|
913
972
|
end
|
914
973
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
915
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
974
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CspmRegistration.get_configuration_detection_ids_v2, must be smaller than or equal to 1000.'
|
916
975
|
end
|
917
976
|
|
918
977
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
|
919
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
978
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CspmRegistration.get_configuration_detection_ids_v2, must be greater than or equal to 0.'
|
920
979
|
end
|
921
980
|
|
922
981
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
923
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling
|
982
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling CspmRegistration.get_configuration_detection_ids_v2, must be greater than or equal to 0.'
|
924
983
|
end
|
925
984
|
|
926
985
|
# resource path
|
@@ -952,7 +1011,7 @@ module Falcon
|
|
952
1011
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
953
1012
|
|
954
1013
|
new_options = opts.merge(
|
955
|
-
:operation => :"
|
1014
|
+
:operation => :"CspmRegistration.get_configuration_detection_ids_v2",
|
956
1015
|
:header_params => header_params,
|
957
1016
|
:query_params => query_params,
|
958
1017
|
:form_params => form_params,
|
@@ -963,7 +1022,7 @@ module Falcon
|
|
963
1022
|
|
964
1023
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
965
1024
|
if @api_client.config.debugging
|
966
|
-
@api_client.config.logger.debug "API called:
|
1025
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_configuration_detection_ids_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
967
1026
|
end
|
968
1027
|
return data, status_code, headers
|
969
1028
|
end
|
@@ -1001,7 +1060,7 @@ module Falcon
|
|
1001
1060
|
# @return [Array<(RegistrationExternalIOMEventResponse, Integer, Hash)>] RegistrationExternalIOMEventResponse data, response status code and response headers
|
1002
1061
|
def get_configuration_detections_with_http_info(opts = {})
|
1003
1062
|
if @api_client.config.debugging
|
1004
|
-
@api_client.config.logger.debug 'Calling API:
|
1063
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_configuration_detections ...'
|
1005
1064
|
end
|
1006
1065
|
allowable_values = ["aws", "azure", "gcp"]
|
1007
1066
|
if @api_client.config.client_side_validation && opts[:'cloud_provider'] && !allowable_values.include?(opts[:'cloud_provider'])
|
@@ -1013,7 +1072,7 @@ module Falcon
|
|
1013
1072
|
end
|
1014
1073
|
pattern = Regexp.new(/^[0-9a-z\-_]{2,}$/)
|
1015
1074
|
if @api_client.config.client_side_validation && !opts[:'region'].nil? && opts[:'region'] !~ pattern
|
1016
|
-
fail ArgumentError, "invalid value for 'opts[:\"region\"]' when calling
|
1075
|
+
fail ArgumentError, "invalid value for 'opts[:\"region\"]' when calling CspmRegistration.get_configuration_detections, must conform to the pattern #{pattern}."
|
1017
1076
|
end
|
1018
1077
|
|
1019
1078
|
allowable_values = ["Critical", "High", "Informational", "Medium"]
|
@@ -1026,7 +1085,7 @@ module Falcon
|
|
1026
1085
|
end
|
1027
1086
|
pattern = Regexp.new(/^\d+$/)
|
1028
1087
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] !~ pattern
|
1029
|
-
fail ArgumentError, "invalid value for 'opts[:\"limit\"]' when calling
|
1088
|
+
fail ArgumentError, "invalid value for 'opts[:\"limit\"]' when calling CspmRegistration.get_configuration_detections, must conform to the pattern #{pattern}."
|
1030
1089
|
end
|
1031
1090
|
|
1032
1091
|
# resource path
|
@@ -1063,7 +1122,7 @@ module Falcon
|
|
1063
1122
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1064
1123
|
|
1065
1124
|
new_options = opts.merge(
|
1066
|
-
:operation => :"
|
1125
|
+
:operation => :"CspmRegistration.get_configuration_detections",
|
1067
1126
|
:header_params => header_params,
|
1068
1127
|
:query_params => query_params,
|
1069
1128
|
:form_params => form_params,
|
@@ -1074,7 +1133,7 @@ module Falcon
|
|
1074
1133
|
|
1075
1134
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1076
1135
|
if @api_client.config.debugging
|
1077
|
-
@api_client.config.logger.debug "API called:
|
1136
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_configuration_detections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1078
1137
|
end
|
1079
1138
|
return data, status_code, headers
|
1080
1139
|
end
|
@@ -1112,7 +1171,7 @@ module Falcon
|
|
1112
1171
|
# @return [Array<(RegistrationAWSAccountResponseV2, Integer, Hash)>] RegistrationAWSAccountResponseV2 data, response status code and response headers
|
1113
1172
|
def get_cspm_aws_account_with_http_info(opts = {})
|
1114
1173
|
if @api_client.config.debugging
|
1115
|
-
@api_client.config.logger.debug 'Calling API:
|
1174
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_aws_account ...'
|
1116
1175
|
end
|
1117
1176
|
allowable_values = ["dry", "full"]
|
1118
1177
|
if @api_client.config.client_side_validation && opts[:'scan_type'] && !allowable_values.include?(opts[:'scan_type'])
|
@@ -1168,7 +1227,7 @@ module Falcon
|
|
1168
1227
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1169
1228
|
|
1170
1229
|
new_options = opts.merge(
|
1171
|
-
:operation => :"
|
1230
|
+
:operation => :"CspmRegistration.get_cspm_aws_account",
|
1172
1231
|
:header_params => header_params,
|
1173
1232
|
:query_params => query_params,
|
1174
1233
|
:form_params => form_params,
|
@@ -1179,7 +1238,7 @@ module Falcon
|
|
1179
1238
|
|
1180
1239
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1181
1240
|
if @api_client.config.debugging
|
1182
|
-
@api_client.config.logger.debug "API called:
|
1241
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_aws_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1183
1242
|
end
|
1184
1243
|
return data, status_code, headers
|
1185
1244
|
end
|
@@ -1223,9 +1282,9 @@ module Falcon
|
|
1223
1282
|
# @return [Array<(RegistrationAWSProvisionGetAccountScriptResponseV2, Integer, Hash)>] RegistrationAWSProvisionGetAccountScriptResponseV2 data, response status code and response headers
|
1224
1283
|
def get_cspm_aws_account_scripts_attachment_with_http_info(opts = {})
|
1225
1284
|
if @api_client.config.debugging
|
1226
|
-
@api_client.config.logger.debug 'Calling API:
|
1285
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_aws_account_scripts_attachment ...'
|
1227
1286
|
end
|
1228
|
-
allowable_values = ["aws-bash", "aws-terraform"]
|
1287
|
+
allowable_values = ["aws-bash", "aws-terraform", "aws-native-terraform"]
|
1229
1288
|
if @api_client.config.client_side_validation && opts[:'template'] && !allowable_values.include?(opts[:'template'])
|
1230
1289
|
fail ArgumentError, "invalid value for \"template\", must be one of #{allowable_values}"
|
1231
1290
|
end
|
@@ -1251,17 +1310,17 @@ module Falcon
|
|
1251
1310
|
end
|
1252
1311
|
pattern = Regexp.new(/.*/)
|
1253
1312
|
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ pattern
|
1254
|
-
fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling
|
1313
|
+
fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling CspmRegistration.get_cspm_aws_account_scripts_attachment, must conform to the pattern #{pattern}."
|
1255
1314
|
end
|
1256
1315
|
|
1257
1316
|
pattern = Regexp.new(/.*/)
|
1258
1317
|
if @api_client.config.client_side_validation && !opts[:'aws_profile'].nil? && opts[:'aws_profile'] !~ pattern
|
1259
|
-
fail ArgumentError, "invalid value for 'opts[:\"aws_profile\"]' when calling
|
1318
|
+
fail ArgumentError, "invalid value for 'opts[:\"aws_profile\"]' when calling CspmRegistration.get_cspm_aws_account_scripts_attachment, must conform to the pattern #{pattern}."
|
1260
1319
|
end
|
1261
1320
|
|
1262
1321
|
pattern = Regexp.new(/.*/)
|
1263
1322
|
if @api_client.config.client_side_validation && !opts[:'custom_role_name'].nil? && opts[:'custom_role_name'] !~ pattern
|
1264
|
-
fail ArgumentError, "invalid value for 'opts[:\"custom_role_name\"]' when calling
|
1323
|
+
fail ArgumentError, "invalid value for 'opts[:\"custom_role_name\"]' when calling CspmRegistration.get_cspm_aws_account_scripts_attachment, must conform to the pattern #{pattern}."
|
1265
1324
|
end
|
1266
1325
|
|
1267
1326
|
# resource path
|
@@ -1301,7 +1360,7 @@ module Falcon
|
|
1301
1360
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1302
1361
|
|
1303
1362
|
new_options = opts.merge(
|
1304
|
-
:operation => :"
|
1363
|
+
:operation => :"CspmRegistration.get_cspm_aws_account_scripts_attachment",
|
1305
1364
|
:header_params => header_params,
|
1306
1365
|
:query_params => query_params,
|
1307
1366
|
:form_params => form_params,
|
@@ -1312,7 +1371,7 @@ module Falcon
|
|
1312
1371
|
|
1313
1372
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1314
1373
|
if @api_client.config.debugging
|
1315
|
-
@api_client.config.logger.debug "API called:
|
1374
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_aws_account_scripts_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1316
1375
|
end
|
1317
1376
|
return data, status_code, headers
|
1318
1377
|
end
|
@@ -1338,7 +1397,7 @@ module Falcon
|
|
1338
1397
|
# @return [Array<(RegistrationAWSConsoleURLResponseV2, Integer, Hash)>] RegistrationAWSConsoleURLResponseV2 data, response status code and response headers
|
1339
1398
|
def get_cspm_aws_console_setup_urls_with_http_info(opts = {})
|
1340
1399
|
if @api_client.config.debugging
|
1341
|
-
@api_client.config.logger.debug 'Calling API:
|
1400
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_aws_console_setup_urls ...'
|
1342
1401
|
end
|
1343
1402
|
allowable_values = ["true", "false"]
|
1344
1403
|
if @api_client.config.client_side_validation && opts[:'use_existing_cloudtrail'] && !allowable_values.include?(opts[:'use_existing_cloudtrail'])
|
@@ -1346,7 +1405,7 @@ module Falcon
|
|
1346
1405
|
end
|
1347
1406
|
pattern = Regexp.new(/^[0-9a-z-]{2,}$/)
|
1348
1407
|
if @api_client.config.client_side_validation && !opts[:'region'].nil? && opts[:'region'] !~ pattern
|
1349
|
-
fail ArgumentError, "invalid value for 'opts[:\"region\"]' when calling
|
1408
|
+
fail ArgumentError, "invalid value for 'opts[:\"region\"]' when calling CspmRegistration.get_cspm_aws_console_setup_urls, must conform to the pattern #{pattern}."
|
1350
1409
|
end
|
1351
1410
|
|
1352
1411
|
allowable_values = ["aws-url", "aws-iom-url", "aws-ioa-url", "aws-sensor-management-url", "aws-dspm-url", "aws-idp-url"]
|
@@ -1381,7 +1440,7 @@ module Falcon
|
|
1381
1440
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1382
1441
|
|
1383
1442
|
new_options = opts.merge(
|
1384
|
-
:operation => :"
|
1443
|
+
:operation => :"CspmRegistration.get_cspm_aws_console_setup_urls",
|
1385
1444
|
:header_params => header_params,
|
1386
1445
|
:query_params => query_params,
|
1387
1446
|
:form_params => form_params,
|
@@ -1392,7 +1451,7 @@ module Falcon
|
|
1392
1451
|
|
1393
1452
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1394
1453
|
if @api_client.config.debugging
|
1395
|
-
@api_client.config.logger.debug "API called:
|
1454
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_aws_console_setup_urls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1396
1455
|
end
|
1397
1456
|
return data, status_code, headers
|
1398
1457
|
end
|
@@ -1424,24 +1483,24 @@ module Falcon
|
|
1424
1483
|
# @return [Array<(RegistrationAzureAccountResponseV1, Integer, Hash)>] RegistrationAzureAccountResponseV1 data, response status code and response headers
|
1425
1484
|
def get_cspm_azure_account_with_http_info(opts = {})
|
1426
1485
|
if @api_client.config.debugging
|
1427
|
-
@api_client.config.logger.debug 'Calling API:
|
1486
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_azure_account ...'
|
1428
1487
|
end
|
1429
1488
|
if @api_client.config.client_side_validation && !opts[:'scan_type'].nil? && opts[:'scan_type'].to_s.length > 4
|
1430
|
-
fail ArgumentError, 'invalid value for "opts[:"scan_type"]" when calling
|
1489
|
+
fail ArgumentError, 'invalid value for "opts[:"scan_type"]" when calling CspmRegistration.get_cspm_azure_account, the character length must be smaller than or equal to 4.'
|
1431
1490
|
end
|
1432
1491
|
|
1433
1492
|
if @api_client.config.client_side_validation && !opts[:'scan_type'].nil? && opts[:'scan_type'].to_s.length < 3
|
1434
|
-
fail ArgumentError, 'invalid value for "opts[:"scan_type"]" when calling
|
1493
|
+
fail ArgumentError, 'invalid value for "opts[:"scan_type"]" when calling CspmRegistration.get_cspm_azure_account, the character length must be great than or equal to 3.'
|
1435
1494
|
end
|
1436
1495
|
|
1437
1496
|
pattern = Regexp.new(/^(full|dry)$/)
|
1438
1497
|
if @api_client.config.client_side_validation && !opts[:'scan_type'].nil? && opts[:'scan_type'] !~ pattern
|
1439
|
-
fail ArgumentError, "invalid value for 'opts[:\"scan_type\"]' when calling
|
1498
|
+
fail ArgumentError, "invalid value for 'opts[:\"scan_type\"]' when calling CspmRegistration.get_cspm_azure_account, must conform to the pattern #{pattern}."
|
1440
1499
|
end
|
1441
1500
|
|
1442
1501
|
pattern = Regexp.new(/^(provisioned|operational)$/)
|
1443
1502
|
if @api_client.config.client_side_validation && !opts[:'status'].nil? && opts[:'status'] !~ pattern
|
1444
|
-
fail ArgumentError, "invalid value for 'opts[:\"status\"]' when calling
|
1503
|
+
fail ArgumentError, "invalid value for 'opts[:\"status\"]' when calling CspmRegistration.get_cspm_azure_account, must conform to the pattern #{pattern}."
|
1445
1504
|
end
|
1446
1505
|
|
1447
1506
|
allowable_values = ["false", "true"]
|
@@ -1450,7 +1509,7 @@ module Falcon
|
|
1450
1509
|
end
|
1451
1510
|
pattern = Regexp.new(/^(true|false)$/)
|
1452
1511
|
if @api_client.config.client_side_validation && !opts[:'cspm_lite'].nil? && opts[:'cspm_lite'] !~ pattern
|
1453
|
-
fail ArgumentError, "invalid value for 'opts[:\"cspm_lite\"]' when calling
|
1512
|
+
fail ArgumentError, "invalid value for 'opts[:\"cspm_lite\"]' when calling CspmRegistration.get_cspm_azure_account, must conform to the pattern #{pattern}."
|
1454
1513
|
end
|
1455
1514
|
|
1456
1515
|
# resource path
|
@@ -1484,7 +1543,7 @@ module Falcon
|
|
1484
1543
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1485
1544
|
|
1486
1545
|
new_options = opts.merge(
|
1487
|
-
:operation => :"
|
1546
|
+
:operation => :"CspmRegistration.get_cspm_azure_account",
|
1488
1547
|
:header_params => header_params,
|
1489
1548
|
:query_params => query_params,
|
1490
1549
|
:form_params => form_params,
|
@@ -1495,7 +1554,7 @@ module Falcon
|
|
1495
1554
|
|
1496
1555
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1497
1556
|
if @api_client.config.debugging
|
1498
|
-
@api_client.config.logger.debug "API called:
|
1557
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_azure_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1499
1558
|
end
|
1500
1559
|
return data, status_code, headers
|
1501
1560
|
end
|
@@ -1519,7 +1578,7 @@ module Falcon
|
|
1519
1578
|
# @return [Array<(RegistrationAzureManagementGroupResponseV1, Integer, Hash)>] RegistrationAzureManagementGroupResponseV1 data, response status code and response headers
|
1520
1579
|
def get_cspm_azure_management_group_with_http_info(opts = {})
|
1521
1580
|
if @api_client.config.debugging
|
1522
|
-
@api_client.config.logger.debug 'Calling API:
|
1581
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_azure_management_group ...'
|
1523
1582
|
end
|
1524
1583
|
# resource path
|
1525
1584
|
local_var_path = '/cloud-connect-cspm-azure/entities/management-group/v1'
|
@@ -1548,7 +1607,7 @@ module Falcon
|
|
1548
1607
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1549
1608
|
|
1550
1609
|
new_options = opts.merge(
|
1551
|
-
:operation => :"
|
1610
|
+
:operation => :"CspmRegistration.get_cspm_azure_management_group",
|
1552
1611
|
:header_params => header_params,
|
1553
1612
|
:query_params => query_params,
|
1554
1613
|
:form_params => form_params,
|
@@ -1559,7 +1618,7 @@ module Falcon
|
|
1559
1618
|
|
1560
1619
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1561
1620
|
if @api_client.config.debugging
|
1562
|
-
@api_client.config.logger.debug "API called:
|
1621
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_azure_management_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1563
1622
|
end
|
1564
1623
|
return data, status_code, headers
|
1565
1624
|
end
|
@@ -1587,19 +1646,19 @@ module Falcon
|
|
1587
1646
|
# @return [Array<(RegistrationAzureProvisionGetUserScriptResponseV1, Integer, Hash)>] RegistrationAzureProvisionGetUserScriptResponseV1 data, response status code and response headers
|
1588
1647
|
def get_cspm_azure_user_scripts_attachment_with_http_info(opts = {})
|
1589
1648
|
if @api_client.config.debugging
|
1590
|
-
@api_client.config.logger.debug 'Calling API:
|
1649
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_azure_user_scripts_attachment ...'
|
1591
1650
|
end
|
1592
1651
|
if @api_client.config.client_side_validation && !opts[:'tenant_id'].nil? && opts[:'tenant_id'].to_s.length > 36
|
1593
|
-
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling
|
1652
|
+
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling CspmRegistration.get_cspm_azure_user_scripts_attachment, the character length must be smaller than or equal to 36.'
|
1594
1653
|
end
|
1595
1654
|
|
1596
1655
|
if @api_client.config.client_side_validation && !opts[:'tenant_id'].nil? && opts[:'tenant_id'].to_s.length < 36
|
1597
|
-
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling
|
1656
|
+
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling CspmRegistration.get_cspm_azure_user_scripts_attachment, the character length must be great than or equal to 36.'
|
1598
1657
|
end
|
1599
1658
|
|
1600
1659
|
pattern = Regexp.new(/^[0-9a-z-]{36}$/)
|
1601
1660
|
if @api_client.config.client_side_validation && !opts[:'tenant_id'].nil? && opts[:'tenant_id'] !~ pattern
|
1602
|
-
fail ArgumentError, "invalid value for 'opts[:\"tenant_id\"]' when calling
|
1661
|
+
fail ArgumentError, "invalid value for 'opts[:\"tenant_id\"]' when calling CspmRegistration.get_cspm_azure_user_scripts_attachment, must conform to the pattern #{pattern}."
|
1603
1662
|
end
|
1604
1663
|
|
1605
1664
|
allowable_values = ["commercial", "gov"]
|
@@ -1608,7 +1667,7 @@ module Falcon
|
|
1608
1667
|
end
|
1609
1668
|
pattern = Regexp.new(/^(commercial|gov)$/)
|
1610
1669
|
if @api_client.config.client_side_validation && !opts[:'account_type'].nil? && opts[:'account_type'] !~ pattern
|
1611
|
-
fail ArgumentError, "invalid value for 'opts[:\"account_type\"]' when calling
|
1670
|
+
fail ArgumentError, "invalid value for 'opts[:\"account_type\"]' when calling CspmRegistration.get_cspm_azure_user_scripts_attachment, must conform to the pattern #{pattern}."
|
1612
1671
|
end
|
1613
1672
|
|
1614
1673
|
# resource path
|
@@ -1640,7 +1699,7 @@ module Falcon
|
|
1640
1699
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1641
1700
|
|
1642
1701
|
new_options = opts.merge(
|
1643
|
-
:operation => :"
|
1702
|
+
:operation => :"CspmRegistration.get_cspm_azure_user_scripts_attachment",
|
1644
1703
|
:header_params => header_params,
|
1645
1704
|
:query_params => query_params,
|
1646
1705
|
:form_params => form_params,
|
@@ -1651,38 +1710,64 @@ module Falcon
|
|
1651
1710
|
|
1652
1711
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1653
1712
|
if @api_client.config.debugging
|
1654
|
-
@api_client.config.logger.debug "API called:
|
1713
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_azure_user_scripts_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1655
1714
|
end
|
1656
1715
|
return data, status_code, headers
|
1657
1716
|
end
|
1658
1717
|
|
1659
|
-
#
|
1660
|
-
# @param ids [Array<Integer>] Policy IDs
|
1718
|
+
# Returns information about the current status of an GCP account.
|
1661
1719
|
# @param [Hash] opts the optional parameters
|
1662
|
-
# @
|
1663
|
-
|
1664
|
-
|
1720
|
+
# @option opts [String] :parent_type GCP Hierarchy Parent Type, organization/folder/project
|
1721
|
+
# @option opts [Array<String>] :ids Hierarchical Resource IDs of accounts
|
1722
|
+
# @option opts [String] :scan_type Type of scan, dry or full, to perform on selected accounts
|
1723
|
+
# @option opts [String] :status Account status to filter results by.
|
1724
|
+
# @option opts [Integer] :limit The maximum records to return. Defaults to 100. (default to 100)
|
1725
|
+
# @option opts [Integer] :offset The offset to start retrieving records from
|
1726
|
+
# @option opts [String] :sort Order fields in ascending or descending order. Ex: parent_type|asc.
|
1727
|
+
# @return [RegistrationGCPAccountResponseV1]
|
1728
|
+
def get_cspm_gcp_account(opts = {})
|
1729
|
+
data, _status_code, _headers = get_cspm_gcp_account_with_http_info(opts)
|
1665
1730
|
data
|
1666
1731
|
end
|
1667
1732
|
|
1668
|
-
#
|
1669
|
-
# @param ids [Array<Integer>] Policy IDs
|
1733
|
+
# Returns information about the current status of an GCP account.
|
1670
1734
|
# @param [Hash] opts the optional parameters
|
1671
|
-
# @
|
1672
|
-
|
1735
|
+
# @option opts [String] :parent_type GCP Hierarchy Parent Type, organization/folder/project
|
1736
|
+
# @option opts [Array<String>] :ids Hierarchical Resource IDs of accounts
|
1737
|
+
# @option opts [String] :scan_type Type of scan, dry or full, to perform on selected accounts
|
1738
|
+
# @option opts [String] :status Account status to filter results by.
|
1739
|
+
# @option opts [Integer] :limit The maximum records to return. Defaults to 100. (default to 100)
|
1740
|
+
# @option opts [Integer] :offset The offset to start retrieving records from
|
1741
|
+
# @option opts [String] :sort Order fields in ascending or descending order. Ex: parent_type|asc.
|
1742
|
+
# @return [Array<(RegistrationGCPAccountResponseV1, Integer, Hash)>] RegistrationGCPAccountResponseV1 data, response status code and response headers
|
1743
|
+
def get_cspm_gcp_account_with_http_info(opts = {})
|
1673
1744
|
if @api_client.config.debugging
|
1674
|
-
@api_client.config.logger.debug 'Calling API:
|
1745
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_gcp_account ...'
|
1675
1746
|
end
|
1676
|
-
|
1677
|
-
if @api_client.config.client_side_validation &&
|
1678
|
-
fail ArgumentError, "
|
1747
|
+
allowable_values = ["Folder", "Organization", "Project"]
|
1748
|
+
if @api_client.config.client_side_validation && opts[:'parent_type'] && !allowable_values.include?(opts[:'parent_type'])
|
1749
|
+
fail ArgumentError, "invalid value for \"parent_type\", must be one of #{allowable_values}"
|
1750
|
+
end
|
1751
|
+
allowable_values = ["dry", "full"]
|
1752
|
+
if @api_client.config.client_side_validation && opts[:'scan_type'] && !allowable_values.include?(opts[:'scan_type'])
|
1753
|
+
fail ArgumentError, "invalid value for \"scan_type\", must be one of #{allowable_values}"
|
1754
|
+
end
|
1755
|
+
allowable_values = ["operational", "provisioned"]
|
1756
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
1757
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
1679
1758
|
end
|
1680
1759
|
# resource path
|
1681
|
-
local_var_path = '/
|
1760
|
+
local_var_path = '/cloud-connect-cspm-gcp/entities/account/v1'
|
1682
1761
|
|
1683
1762
|
# query parameters
|
1684
1763
|
query_params = opts[:query_params] || {}
|
1685
|
-
query_params[:'
|
1764
|
+
query_params[:'parent_type'] = opts[:'parent_type'] if !opts[:'parent_type'].nil?
|
1765
|
+
query_params[:'ids'] = @api_client.build_collection_param(opts[:'ids'], :multi) if !opts[:'ids'].nil?
|
1766
|
+
query_params[:'scan-type'] = opts[:'scan_type'] if !opts[:'scan_type'].nil?
|
1767
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
1768
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1769
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1770
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
1686
1771
|
|
1687
1772
|
# header parameters
|
1688
1773
|
header_params = opts[:header_params] || {}
|
@@ -1696,13 +1781,13 @@ module Falcon
|
|
1696
1781
|
post_body = opts[:debug_body]
|
1697
1782
|
|
1698
1783
|
# return_type
|
1699
|
-
return_type = opts[:debug_return_type] || '
|
1784
|
+
return_type = opts[:debug_return_type] || 'RegistrationGCPAccountResponseV1'
|
1700
1785
|
|
1701
1786
|
# auth_names
|
1702
1787
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1703
1788
|
|
1704
1789
|
new_options = opts.merge(
|
1705
|
-
:operation => :"
|
1790
|
+
:operation => :"CspmRegistration.get_cspm_gcp_account",
|
1706
1791
|
:header_params => header_params,
|
1707
1792
|
:query_params => query_params,
|
1708
1793
|
:form_params => form_params,
|
@@ -1713,43 +1798,39 @@ module Falcon
|
|
1713
1798
|
|
1714
1799
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1715
1800
|
if @api_client.config.debugging
|
1716
|
-
@api_client.config.logger.debug "API called:
|
1801
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_gcp_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1717
1802
|
end
|
1718
1803
|
return data, status_code, headers
|
1719
1804
|
end
|
1720
1805
|
|
1721
|
-
#
|
1722
|
-
# @param ids [Integer] Policy ID
|
1806
|
+
# Returns the service account id and client email for external clients.
|
1723
1807
|
# @param [Hash] opts the optional parameters
|
1724
|
-
# @
|
1725
|
-
|
1726
|
-
|
1808
|
+
# @option opts [String] :id Service Account ID
|
1809
|
+
# @return [RegistrationGCPServiceAccountResponseExtV1]
|
1810
|
+
def get_cspm_gcp_service_accounts_ext(opts = {})
|
1811
|
+
data, _status_code, _headers = get_cspm_gcp_service_accounts_ext_with_http_info(opts)
|
1727
1812
|
data
|
1728
1813
|
end
|
1729
1814
|
|
1730
|
-
#
|
1731
|
-
# @param ids [Integer] Policy ID
|
1815
|
+
# Returns the service account id and client email for external clients.
|
1732
1816
|
# @param [Hash] opts the optional parameters
|
1733
|
-
# @
|
1734
|
-
|
1817
|
+
# @option opts [String] :id Service Account ID
|
1818
|
+
# @return [Array<(RegistrationGCPServiceAccountResponseExtV1, Integer, Hash)>] RegistrationGCPServiceAccountResponseExtV1 data, response status code and response headers
|
1819
|
+
def get_cspm_gcp_service_accounts_ext_with_http_info(opts = {})
|
1735
1820
|
if @api_client.config.debugging
|
1736
|
-
@api_client.config.logger.debug 'Calling API:
|
1737
|
-
end
|
1738
|
-
# verify the required parameter 'ids' is set
|
1739
|
-
if @api_client.config.client_side_validation && ids.nil?
|
1740
|
-
fail ArgumentError, "Missing the required parameter 'ids' when calling CspmRegistrationApi.get_cspm_policy"
|
1821
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_gcp_service_accounts_ext ...'
|
1741
1822
|
end
|
1742
1823
|
pattern = Regexp.new(/^\d+$/)
|
1743
|
-
if @api_client.config.client_side_validation &&
|
1744
|
-
fail ArgumentError, "invalid value for '
|
1824
|
+
if @api_client.config.client_side_validation && !opts[:'id'].nil? && opts[:'id'] !~ pattern
|
1825
|
+
fail ArgumentError, "invalid value for 'opts[:\"id\"]' when calling CspmRegistration.get_cspm_gcp_service_accounts_ext, must conform to the pattern #{pattern}."
|
1745
1826
|
end
|
1746
1827
|
|
1747
1828
|
# resource path
|
1748
|
-
local_var_path = '/
|
1829
|
+
local_var_path = '/cloud-connect-cspm-gcp/entities/service-accounts/v1'
|
1749
1830
|
|
1750
1831
|
# query parameters
|
1751
1832
|
query_params = opts[:query_params] || {}
|
1752
|
-
query_params[:'
|
1833
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
1753
1834
|
|
1754
1835
|
# header parameters
|
1755
1836
|
header_params = opts[:header_params] || {}
|
@@ -1763,13 +1844,13 @@ module Falcon
|
|
1763
1844
|
post_body = opts[:debug_body]
|
1764
1845
|
|
1765
1846
|
# return_type
|
1766
|
-
return_type = opts[:debug_return_type] || '
|
1847
|
+
return_type = opts[:debug_return_type] || 'RegistrationGCPServiceAccountResponseExtV1'
|
1767
1848
|
|
1768
1849
|
# auth_names
|
1769
1850
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1770
1851
|
|
1771
1852
|
new_options = opts.merge(
|
1772
|
-
:operation => :"
|
1853
|
+
:operation => :"CspmRegistration.get_cspm_gcp_service_accounts_ext",
|
1773
1854
|
:header_params => header_params,
|
1774
1855
|
:query_params => query_params,
|
1775
1856
|
:form_params => form_params,
|
@@ -1780,63 +1861,46 @@ module Falcon
|
|
1780
1861
|
|
1781
1862
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1782
1863
|
if @api_client.config.debugging
|
1783
|
-
@api_client.config.logger.debug "API called:
|
1864
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_gcp_service_accounts_ext\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1784
1865
|
end
|
1785
1866
|
return data, status_code, headers
|
1786
1867
|
end
|
1787
1868
|
|
1788
|
-
#
|
1869
|
+
# Return a script for customer to run in their cloud environment to grant us access to their GCP environment as a downloadable attachment
|
1789
1870
|
# @param [Hash] opts the optional parameters
|
1790
|
-
# @option opts [String] :
|
1791
|
-
# @option opts [String] :
|
1792
|
-
# @
|
1793
|
-
|
1794
|
-
|
1795
|
-
data, _status_code, _headers = get_cspm_policy_settings_with_http_info(opts)
|
1871
|
+
# @option opts [String] :parent_type GCP Hierarchy Parent Type, organization/folder/project
|
1872
|
+
# @option opts [Array<String>] :ids Hierarchical Resource IDs of accounts
|
1873
|
+
# @return [RegistrationGCPProvisionGetUserScriptResponseV1]
|
1874
|
+
def get_cspm_gcp_user_scripts_attachment(opts = {})
|
1875
|
+
data, _status_code, _headers = get_cspm_gcp_user_scripts_attachment_with_http_info(opts)
|
1796
1876
|
data
|
1797
1877
|
end
|
1798
1878
|
|
1799
|
-
#
|
1879
|
+
# Return a script for customer to run in their cloud environment to grant us access to their GCP environment as a downloadable attachment
|
1800
1880
|
# @param [Hash] opts the optional parameters
|
1801
|
-
# @option opts [String] :
|
1802
|
-
# @option opts [String] :
|
1803
|
-
# @
|
1804
|
-
|
1805
|
-
def get_cspm_policy_settings_with_http_info(opts = {})
|
1881
|
+
# @option opts [String] :parent_type GCP Hierarchy Parent Type, organization/folder/project
|
1882
|
+
# @option opts [Array<String>] :ids Hierarchical Resource IDs of accounts
|
1883
|
+
# @return [Array<(RegistrationGCPProvisionGetUserScriptResponseV1, Integer, Hash)>] RegistrationGCPProvisionGetUserScriptResponseV1 data, response status code and response headers
|
1884
|
+
def get_cspm_gcp_user_scripts_attachment_with_http_info(opts = {})
|
1806
1885
|
if @api_client.config.debugging
|
1807
|
-
@api_client.config.logger.debug 'Calling API:
|
1808
|
-
end
|
1809
|
-
allowable_values = ["ACM", "ACR", "Any", "App Engine", "AppService", "BigQuery", "Cloud Load Balancing", "Cloud Logging", "Cloud SQL", "Cloud Storage", "CloudFormation", "CloudTrail", "CloudWatch Logs", "Cloudfront", "Compute Engine", "Config", "Disk", "DynamoDB", "EBS", "EC2", "ECR", "EFS", "EKS", "ELB", "EMR", "Elasticache", "GuardDuty", "IAM", "Identity", "KMS", "KeyVault", "Kinesis", "Kubernetes", "Lambda", "LoadBalancer", "Monitor", "NLB/ALB", "NetworkSecurityGroup", "PostgreSQL", "RDS", "Redshift", "S3", "SES", "SNS", "SQLDatabase", "SQLServer", "SQS", "SSM", "Serverless Application Repository", "StorageAccount", "Subscriptions", "VPC", "VirtualMachine", "VirtualNetwork"]
|
1810
|
-
if @api_client.config.client_side_validation && opts[:'service'] && !allowable_values.include?(opts[:'service'])
|
1811
|
-
fail ArgumentError, "invalid value for \"service\", must be one of #{allowable_values}"
|
1812
|
-
end
|
1813
|
-
pattern = Regexp.new(/^\d+$/)
|
1814
|
-
if @api_client.config.client_side_validation && !opts[:'policy_id'].nil? && opts[:'policy_id'] !~ pattern
|
1815
|
-
fail ArgumentError, "invalid value for 'opts[:\"policy_id\"]' when calling CspmRegistrationApi.get_cspm_policy_settings, must conform to the pattern #{pattern}."
|
1886
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_gcp_user_scripts_attachment ...'
|
1816
1887
|
end
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
fail ArgumentError, "invalid value for \"cloud_platform\", must be one of #{allowable_values}"
|
1821
|
-
end
|
1822
|
-
pattern = Regexp.new(/^(aws|azure|gcp)$/)
|
1823
|
-
if @api_client.config.client_side_validation && !opts[:'cloud_platform'].nil? && opts[:'cloud_platform'] !~ pattern
|
1824
|
-
fail ArgumentError, "invalid value for 'opts[:\"cloud_platform\"]' when calling CspmRegistrationApi.get_cspm_policy_settings, must conform to the pattern #{pattern}."
|
1888
|
+
allowable_values = ["Folder", "Organization", "Project"]
|
1889
|
+
if @api_client.config.client_side_validation && opts[:'parent_type'] && !allowable_values.include?(opts[:'parent_type'])
|
1890
|
+
fail ArgumentError, "invalid value for \"parent_type\", must be one of #{allowable_values}"
|
1825
1891
|
end
|
1826
|
-
|
1827
1892
|
# resource path
|
1828
|
-
local_var_path = '/
|
1893
|
+
local_var_path = '/cloud-connect-cspm-gcp/entities/user-scripts-download/v1'
|
1829
1894
|
|
1830
1895
|
# query parameters
|
1831
1896
|
query_params = opts[:query_params] || {}
|
1832
|
-
query_params[:'
|
1833
|
-
query_params[:'
|
1834
|
-
query_params[:'cloud-platform'] = opts[:'cloud_platform'] if !opts[:'cloud_platform'].nil?
|
1897
|
+
query_params[:'parent_type'] = opts[:'parent_type'] if !opts[:'parent_type'].nil?
|
1898
|
+
query_params[:'ids'] = @api_client.build_collection_param(opts[:'ids'], :multi) if !opts[:'ids'].nil?
|
1835
1899
|
|
1836
1900
|
# header parameters
|
1837
1901
|
header_params = opts[:header_params] || {}
|
1838
1902
|
# HTTP header 'Accept' (if needed)
|
1839
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1903
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/octet-stream'])
|
1840
1904
|
|
1841
1905
|
# form parameters
|
1842
1906
|
form_params = opts[:form_params] || {}
|
@@ -1845,13 +1909,13 @@ module Falcon
|
|
1845
1909
|
post_body = opts[:debug_body]
|
1846
1910
|
|
1847
1911
|
# return_type
|
1848
|
-
return_type = opts[:debug_return_type] || '
|
1912
|
+
return_type = opts[:debug_return_type] || 'RegistrationGCPProvisionGetUserScriptResponseV1'
|
1849
1913
|
|
1850
1914
|
# auth_names
|
1851
1915
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1852
1916
|
|
1853
1917
|
new_options = opts.merge(
|
1854
|
-
:operation => :"
|
1918
|
+
:operation => :"CspmRegistration.get_cspm_gcp_user_scripts_attachment",
|
1855
1919
|
:header_params => header_params,
|
1856
1920
|
:query_params => query_params,
|
1857
1921
|
:form_params => form_params,
|
@@ -1862,54 +1926,62 @@ module Falcon
|
|
1862
1926
|
|
1863
1927
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1864
1928
|
if @api_client.config.debugging
|
1865
|
-
@api_client.config.logger.debug "API called:
|
1929
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_gcp_user_scripts_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1866
1930
|
end
|
1867
1931
|
return data, status_code, headers
|
1868
1932
|
end
|
1869
1933
|
|
1870
|
-
#
|
1934
|
+
# Run a synchronous health check.
|
1935
|
+
# @param body [RegistrationGCPAccountValidationRequestV1]
|
1871
1936
|
# @param [Hash] opts the optional parameters
|
1872
|
-
# @
|
1873
|
-
|
1874
|
-
|
1875
|
-
data, _status_code, _headers = get_cspm_scan_schedule_with_http_info(opts)
|
1937
|
+
# @return [RegistrationGCPAccountValidationResponseV1]
|
1938
|
+
def get_cspm_gcp_validate_accounts_ext(body, opts = {})
|
1939
|
+
data, _status_code, _headers = get_cspm_gcp_validate_accounts_ext_with_http_info(body, opts)
|
1876
1940
|
data
|
1877
1941
|
end
|
1878
1942
|
|
1879
|
-
#
|
1943
|
+
# Run a synchronous health check.
|
1944
|
+
# @param body [RegistrationGCPAccountValidationRequestV1]
|
1880
1945
|
# @param [Hash] opts the optional parameters
|
1881
|
-
# @
|
1882
|
-
|
1883
|
-
def get_cspm_scan_schedule_with_http_info(opts = {})
|
1946
|
+
# @return [Array<(RegistrationGCPAccountValidationResponseV1, Integer, Hash)>] RegistrationGCPAccountValidationResponseV1 data, response status code and response headers
|
1947
|
+
def get_cspm_gcp_validate_accounts_ext_with_http_info(body, opts = {})
|
1884
1948
|
if @api_client.config.debugging
|
1885
|
-
@api_client.config.logger.debug 'Calling API:
|
1949
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_gcp_validate_accounts_ext ...'
|
1950
|
+
end
|
1951
|
+
# verify the required parameter 'body' is set
|
1952
|
+
if @api_client.config.client_side_validation && body.nil?
|
1953
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.get_cspm_gcp_validate_accounts_ext"
|
1886
1954
|
end
|
1887
1955
|
# resource path
|
1888
|
-
local_var_path = '/
|
1956
|
+
local_var_path = '/cloud-connect-cspm-gcp/entities/account/validate/v1'
|
1889
1957
|
|
1890
1958
|
# query parameters
|
1891
1959
|
query_params = opts[:query_params] || {}
|
1892
|
-
query_params[:'cloud-platform'] = @api_client.build_collection_param(opts[:'cloud_platform'], :multi) if !opts[:'cloud_platform'].nil?
|
1893
1960
|
|
1894
1961
|
# header parameters
|
1895
1962
|
header_params = opts[:header_params] || {}
|
1896
1963
|
# HTTP header 'Accept' (if needed)
|
1897
1964
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1965
|
+
# HTTP header 'Content-Type'
|
1966
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1967
|
+
if !content_type.nil?
|
1968
|
+
header_params['Content-Type'] = content_type
|
1969
|
+
end
|
1898
1970
|
|
1899
1971
|
# form parameters
|
1900
1972
|
form_params = opts[:form_params] || {}
|
1901
1973
|
|
1902
1974
|
# http body (model)
|
1903
|
-
post_body = opts[:debug_body]
|
1975
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1904
1976
|
|
1905
1977
|
# return_type
|
1906
|
-
return_type = opts[:debug_return_type] || '
|
1978
|
+
return_type = opts[:debug_return_type] || 'RegistrationGCPAccountValidationResponseV1'
|
1907
1979
|
|
1908
1980
|
# auth_names
|
1909
1981
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1910
1982
|
|
1911
1983
|
new_options = opts.merge(
|
1912
|
-
:operation => :"
|
1984
|
+
:operation => :"CspmRegistration.get_cspm_gcp_validate_accounts_ext",
|
1913
1985
|
:header_params => header_params,
|
1914
1986
|
:query_params => query_params,
|
1915
1987
|
:form_params => form_params,
|
@@ -1918,66 +1990,40 @@ module Falcon
|
|
1918
1990
|
:return_type => return_type
|
1919
1991
|
)
|
1920
1992
|
|
1921
|
-
data, status_code, headers = @api_client.call_api(:
|
1993
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1922
1994
|
if @api_client.config.debugging
|
1923
|
-
@api_client.config.logger.debug "API called:
|
1995
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_gcp_validate_accounts_ext\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1924
1996
|
end
|
1925
1997
|
return data, status_code, headers
|
1926
1998
|
end
|
1927
1999
|
|
1928
|
-
#
|
2000
|
+
# Given an array of policy IDs, returns detailed policies information.
|
2001
|
+
# @param ids [Array<Integer>] Policy IDs
|
1929
2002
|
# @param [Hash] opts the optional parameters
|
1930
|
-
# @
|
1931
|
-
|
1932
|
-
|
1933
|
-
# @option opts [String] :status Account status to filter results by.
|
1934
|
-
# @option opts [Integer] :limit The maximum records to return. Defaults to 100. (default to 100)
|
1935
|
-
# @option opts [Integer] :offset The offset to start retrieving records from
|
1936
|
-
# @option opts [String] :sort Order fields in ascending or descending order. Ex: parent_type|asc.
|
1937
|
-
# @return [RegistrationGCPAccountResponseV1]
|
1938
|
-
def get_cspmcgp_account(opts = {})
|
1939
|
-
data, _status_code, _headers = get_cspmcgp_account_with_http_info(opts)
|
2003
|
+
# @return [RegistrationPolicyResponseV1]
|
2004
|
+
def get_cspm_policies_details(ids, opts = {})
|
2005
|
+
data, _status_code, _headers = get_cspm_policies_details_with_http_info(ids, opts)
|
1940
2006
|
data
|
1941
2007
|
end
|
1942
2008
|
|
1943
|
-
#
|
2009
|
+
# Given an array of policy IDs, returns detailed policies information.
|
2010
|
+
# @param ids [Array<Integer>] Policy IDs
|
1944
2011
|
# @param [Hash] opts the optional parameters
|
1945
|
-
# @
|
1946
|
-
|
1947
|
-
# @option opts [String] :scan_type Type of scan, dry or full, to perform on selected accounts
|
1948
|
-
# @option opts [String] :status Account status to filter results by.
|
1949
|
-
# @option opts [Integer] :limit The maximum records to return. Defaults to 100. (default to 100)
|
1950
|
-
# @option opts [Integer] :offset The offset to start retrieving records from
|
1951
|
-
# @option opts [String] :sort Order fields in ascending or descending order. Ex: parent_type|asc.
|
1952
|
-
# @return [Array<(RegistrationGCPAccountResponseV1, Integer, Hash)>] RegistrationGCPAccountResponseV1 data, response status code and response headers
|
1953
|
-
def get_cspmcgp_account_with_http_info(opts = {})
|
2012
|
+
# @return [Array<(RegistrationPolicyResponseV1, Integer, Hash)>] RegistrationPolicyResponseV1 data, response status code and response headers
|
2013
|
+
def get_cspm_policies_details_with_http_info(ids, opts = {})
|
1954
2014
|
if @api_client.config.debugging
|
1955
|
-
@api_client.config.logger.debug 'Calling API:
|
1956
|
-
end
|
1957
|
-
allowable_values = ["Folder", "Organization", "Project"]
|
1958
|
-
if @api_client.config.client_side_validation && opts[:'parent_type'] && !allowable_values.include?(opts[:'parent_type'])
|
1959
|
-
fail ArgumentError, "invalid value for \"parent_type\", must be one of #{allowable_values}"
|
2015
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_policies_details ...'
|
1960
2016
|
end
|
1961
|
-
|
1962
|
-
if @api_client.config.client_side_validation &&
|
1963
|
-
fail ArgumentError, "
|
1964
|
-
end
|
1965
|
-
allowable_values = ["operational", "provisioned"]
|
1966
|
-
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
1967
|
-
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
2017
|
+
# verify the required parameter 'ids' is set
|
2018
|
+
if @api_client.config.client_side_validation && ids.nil?
|
2019
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling CspmRegistration.get_cspm_policies_details"
|
1968
2020
|
end
|
1969
2021
|
# resource path
|
1970
|
-
local_var_path = '/
|
2022
|
+
local_var_path = '/settings/entities/policy-details/v2'
|
1971
2023
|
|
1972
2024
|
# query parameters
|
1973
2025
|
query_params = opts[:query_params] || {}
|
1974
|
-
query_params[:'
|
1975
|
-
query_params[:'ids'] = @api_client.build_collection_param(opts[:'ids'], :multi) if !opts[:'ids'].nil?
|
1976
|
-
query_params[:'scan-type'] = opts[:'scan_type'] if !opts[:'scan_type'].nil?
|
1977
|
-
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
1978
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1979
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1980
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
2026
|
+
query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
|
1981
2027
|
|
1982
2028
|
# header parameters
|
1983
2029
|
header_params = opts[:header_params] || {}
|
@@ -1991,13 +2037,13 @@ module Falcon
|
|
1991
2037
|
post_body = opts[:debug_body]
|
1992
2038
|
|
1993
2039
|
# return_type
|
1994
|
-
return_type = opts[:debug_return_type] || '
|
2040
|
+
return_type = opts[:debug_return_type] || 'RegistrationPolicyResponseV1'
|
1995
2041
|
|
1996
2042
|
# auth_names
|
1997
2043
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
1998
2044
|
|
1999
2045
|
new_options = opts.merge(
|
2000
|
-
:operation => :"
|
2046
|
+
:operation => :"CspmRegistration.get_cspm_policies_details",
|
2001
2047
|
:header_params => header_params,
|
2002
2048
|
:query_params => query_params,
|
2003
2049
|
:form_params => form_params,
|
@@ -2008,39 +2054,43 @@ module Falcon
|
|
2008
2054
|
|
2009
2055
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2010
2056
|
if @api_client.config.debugging
|
2011
|
-
@api_client.config.logger.debug "API called:
|
2057
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_policies_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2012
2058
|
end
|
2013
2059
|
return data, status_code, headers
|
2014
2060
|
end
|
2015
2061
|
|
2016
|
-
#
|
2062
|
+
# Given a policy ID, returns detailed policy information.
|
2063
|
+
# @param ids [Integer] Policy ID
|
2017
2064
|
# @param [Hash] opts the optional parameters
|
2018
|
-
# @
|
2019
|
-
|
2020
|
-
|
2021
|
-
data, _status_code, _headers = get_cspmgcp_service_accounts_ext_with_http_info(opts)
|
2065
|
+
# @return [RegistrationPolicyResponseV1]
|
2066
|
+
def get_cspm_policy(ids, opts = {})
|
2067
|
+
data, _status_code, _headers = get_cspm_policy_with_http_info(ids, opts)
|
2022
2068
|
data
|
2023
2069
|
end
|
2024
2070
|
|
2025
|
-
#
|
2071
|
+
# Given a policy ID, returns detailed policy information.
|
2072
|
+
# @param ids [Integer] Policy ID
|
2026
2073
|
# @param [Hash] opts the optional parameters
|
2027
|
-
# @
|
2028
|
-
|
2029
|
-
def get_cspmgcp_service_accounts_ext_with_http_info(opts = {})
|
2074
|
+
# @return [Array<(RegistrationPolicyResponseV1, Integer, Hash)>] RegistrationPolicyResponseV1 data, response status code and response headers
|
2075
|
+
def get_cspm_policy_with_http_info(ids, opts = {})
|
2030
2076
|
if @api_client.config.debugging
|
2031
|
-
@api_client.config.logger.debug 'Calling API:
|
2077
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_policy ...'
|
2078
|
+
end
|
2079
|
+
# verify the required parameter 'ids' is set
|
2080
|
+
if @api_client.config.client_side_validation && ids.nil?
|
2081
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling CspmRegistration.get_cspm_policy"
|
2032
2082
|
end
|
2033
2083
|
pattern = Regexp.new(/^\d+$/)
|
2034
|
-
if @api_client.config.client_side_validation &&
|
2035
|
-
fail ArgumentError, "invalid value for '
|
2084
|
+
if @api_client.config.client_side_validation && ids !~ pattern
|
2085
|
+
fail ArgumentError, "invalid value for 'ids' when calling CspmRegistration.get_cspm_policy, must conform to the pattern #{pattern}."
|
2036
2086
|
end
|
2037
2087
|
|
2038
2088
|
# resource path
|
2039
|
-
local_var_path = '/
|
2089
|
+
local_var_path = '/settings/entities/policy-details/v1'
|
2040
2090
|
|
2041
2091
|
# query parameters
|
2042
2092
|
query_params = opts[:query_params] || {}
|
2043
|
-
query_params[:'
|
2093
|
+
query_params[:'ids'] = ids
|
2044
2094
|
|
2045
2095
|
# header parameters
|
2046
2096
|
header_params = opts[:header_params] || {}
|
@@ -2054,13 +2104,13 @@ module Falcon
|
|
2054
2104
|
post_body = opts[:debug_body]
|
2055
2105
|
|
2056
2106
|
# return_type
|
2057
|
-
return_type = opts[:debug_return_type] || '
|
2107
|
+
return_type = opts[:debug_return_type] || 'RegistrationPolicyResponseV1'
|
2058
2108
|
|
2059
2109
|
# auth_names
|
2060
2110
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2061
2111
|
|
2062
2112
|
new_options = opts.merge(
|
2063
|
-
:operation => :"
|
2113
|
+
:operation => :"CspmRegistration.get_cspm_policy",
|
2064
2114
|
:header_params => header_params,
|
2065
2115
|
:query_params => query_params,
|
2066
2116
|
:form_params => form_params,
|
@@ -2071,46 +2121,63 @@ module Falcon
|
|
2071
2121
|
|
2072
2122
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2073
2123
|
if @api_client.config.debugging
|
2074
|
-
@api_client.config.logger.debug "API called:
|
2124
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2075
2125
|
end
|
2076
2126
|
return data, status_code, headers
|
2077
2127
|
end
|
2078
2128
|
|
2079
|
-
#
|
2129
|
+
# Returns information about current policy settings.
|
2080
2130
|
# @param [Hash] opts the optional parameters
|
2081
|
-
# @option opts [String] :
|
2082
|
-
# @option opts [
|
2083
|
-
# @
|
2084
|
-
|
2085
|
-
|
2131
|
+
# @option opts [String] :service Service type to filter policy settings by.
|
2132
|
+
# @option opts [String] :policy_id Policy ID
|
2133
|
+
# @option opts [String] :cloud_platform Cloud Platform (e.g.: aws|azure|gcp)
|
2134
|
+
# @return [RegistrationPolicySettingsResponseV1]
|
2135
|
+
def get_cspm_policy_settings(opts = {})
|
2136
|
+
data, _status_code, _headers = get_cspm_policy_settings_with_http_info(opts)
|
2086
2137
|
data
|
2087
2138
|
end
|
2088
2139
|
|
2089
|
-
#
|
2140
|
+
# Returns information about current policy settings.
|
2090
2141
|
# @param [Hash] opts the optional parameters
|
2091
|
-
# @option opts [String] :
|
2092
|
-
# @option opts [
|
2093
|
-
# @
|
2094
|
-
|
2142
|
+
# @option opts [String] :service Service type to filter policy settings by.
|
2143
|
+
# @option opts [String] :policy_id Policy ID
|
2144
|
+
# @option opts [String] :cloud_platform Cloud Platform (e.g.: aws|azure|gcp)
|
2145
|
+
# @return [Array<(RegistrationPolicySettingsResponseV1, Integer, Hash)>] RegistrationPolicySettingsResponseV1 data, response status code and response headers
|
2146
|
+
def get_cspm_policy_settings_with_http_info(opts = {})
|
2095
2147
|
if @api_client.config.debugging
|
2096
|
-
@api_client.config.logger.debug 'Calling API:
|
2148
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_policy_settings ...'
|
2097
2149
|
end
|
2098
|
-
allowable_values = ["
|
2099
|
-
if @api_client.config.client_side_validation && opts[:'
|
2100
|
-
fail ArgumentError, "invalid value for \"
|
2150
|
+
allowable_values = ["ACM", "ACR", "Any", "App Engine", "AppService", "BigQuery", "Cloud Load Balancing", "Cloud Logging", "Cloud SQL", "Cloud Storage", "CloudFormation", "CloudTrail", "CloudWatch Logs", "Cloudfront", "Compute Engine", "Config", "Disk", "DynamoDB", "EBS", "EC2", "ECR", "EFS", "EKS", "ELB", "EMR", "Elasticache", "GuardDuty", "IAM", "Identity", "KMS", "KeyVault", "Kinesis", "Kubernetes", "Lambda", "LoadBalancer", "Monitor", "NLB/ALB", "NetworkSecurityGroup", "PostgreSQL", "RDS", "Redshift", "S3", "SES", "SNS", "SQLDatabase", "SQLServer", "SQS", "SSM", "Serverless Application Repository", "StorageAccount", "Subscriptions", "VPC", "VirtualMachine", "VirtualNetwork"]
|
2151
|
+
if @api_client.config.client_side_validation && opts[:'service'] && !allowable_values.include?(opts[:'service'])
|
2152
|
+
fail ArgumentError, "invalid value for \"service\", must be one of #{allowable_values}"
|
2153
|
+
end
|
2154
|
+
pattern = Regexp.new(/^\d+$/)
|
2155
|
+
if @api_client.config.client_side_validation && !opts[:'policy_id'].nil? && opts[:'policy_id'] !~ pattern
|
2156
|
+
fail ArgumentError, "invalid value for 'opts[:\"policy_id\"]' when calling CspmRegistration.get_cspm_policy_settings, must conform to the pattern #{pattern}."
|
2101
2157
|
end
|
2158
|
+
|
2159
|
+
allowable_values = ["aws", "azure", "gcp"]
|
2160
|
+
if @api_client.config.client_side_validation && opts[:'cloud_platform'] && !allowable_values.include?(opts[:'cloud_platform'])
|
2161
|
+
fail ArgumentError, "invalid value for \"cloud_platform\", must be one of #{allowable_values}"
|
2162
|
+
end
|
2163
|
+
pattern = Regexp.new(/^(aws|azure|gcp)$/)
|
2164
|
+
if @api_client.config.client_side_validation && !opts[:'cloud_platform'].nil? && opts[:'cloud_platform'] !~ pattern
|
2165
|
+
fail ArgumentError, "invalid value for 'opts[:\"cloud_platform\"]' when calling CspmRegistration.get_cspm_policy_settings, must conform to the pattern #{pattern}."
|
2166
|
+
end
|
2167
|
+
|
2102
2168
|
# resource path
|
2103
|
-
local_var_path = '/
|
2169
|
+
local_var_path = '/settings/entities/policy/v1'
|
2104
2170
|
|
2105
2171
|
# query parameters
|
2106
2172
|
query_params = opts[:query_params] || {}
|
2107
|
-
query_params[:'
|
2108
|
-
query_params[:'
|
2173
|
+
query_params[:'service'] = opts[:'service'] if !opts[:'service'].nil?
|
2174
|
+
query_params[:'policy-id'] = opts[:'policy_id'] if !opts[:'policy_id'].nil?
|
2175
|
+
query_params[:'cloud-platform'] = opts[:'cloud_platform'] if !opts[:'cloud_platform'].nil?
|
2109
2176
|
|
2110
2177
|
# header parameters
|
2111
2178
|
header_params = opts[:header_params] || {}
|
2112
2179
|
# HTTP header 'Accept' (if needed)
|
2113
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'
|
2180
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2114
2181
|
|
2115
2182
|
# form parameters
|
2116
2183
|
form_params = opts[:form_params] || {}
|
@@ -2119,13 +2186,13 @@ module Falcon
|
|
2119
2186
|
post_body = opts[:debug_body]
|
2120
2187
|
|
2121
2188
|
# return_type
|
2122
|
-
return_type = opts[:debug_return_type] || '
|
2189
|
+
return_type = opts[:debug_return_type] || 'RegistrationPolicySettingsResponseV1'
|
2123
2190
|
|
2124
2191
|
# auth_names
|
2125
2192
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2126
2193
|
|
2127
2194
|
new_options = opts.merge(
|
2128
|
-
:operation => :"
|
2195
|
+
:operation => :"CspmRegistration.get_cspm_policy_settings",
|
2129
2196
|
:header_params => header_params,
|
2130
2197
|
:query_params => query_params,
|
2131
2198
|
:form_params => form_params,
|
@@ -2136,62 +2203,54 @@ module Falcon
|
|
2136
2203
|
|
2137
2204
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2138
2205
|
if @api_client.config.debugging
|
2139
|
-
@api_client.config.logger.debug "API called:
|
2206
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_policy_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2140
2207
|
end
|
2141
2208
|
return data, status_code, headers
|
2142
2209
|
end
|
2143
2210
|
|
2144
|
-
#
|
2145
|
-
# @param body [RegistrationGCPAccountValidationRequestV1]
|
2211
|
+
# Returns scan schedule configuration for one or more cloud platforms.
|
2146
2212
|
# @param [Hash] opts the optional parameters
|
2147
|
-
# @
|
2148
|
-
|
2149
|
-
|
2213
|
+
# @option opts [Array<String>] :cloud_platform Cloud Platform
|
2214
|
+
# @return [RegistrationScanScheduleResponseV1]
|
2215
|
+
def get_cspm_scan_schedule(opts = {})
|
2216
|
+
data, _status_code, _headers = get_cspm_scan_schedule_with_http_info(opts)
|
2150
2217
|
data
|
2151
2218
|
end
|
2152
2219
|
|
2153
|
-
#
|
2154
|
-
# @param body [RegistrationGCPAccountValidationRequestV1]
|
2220
|
+
# Returns scan schedule configuration for one or more cloud platforms.
|
2155
2221
|
# @param [Hash] opts the optional parameters
|
2156
|
-
# @
|
2157
|
-
|
2222
|
+
# @option opts [Array<String>] :cloud_platform Cloud Platform
|
2223
|
+
# @return [Array<(RegistrationScanScheduleResponseV1, Integer, Hash)>] RegistrationScanScheduleResponseV1 data, response status code and response headers
|
2224
|
+
def get_cspm_scan_schedule_with_http_info(opts = {})
|
2158
2225
|
if @api_client.config.debugging
|
2159
|
-
@api_client.config.logger.debug 'Calling API:
|
2160
|
-
end
|
2161
|
-
# verify the required parameter 'body' is set
|
2162
|
-
if @api_client.config.client_side_validation && body.nil?
|
2163
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistrationApi.get_cspmgcp_validate_accounts_ext"
|
2226
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.get_cspm_scan_schedule ...'
|
2164
2227
|
end
|
2165
2228
|
# resource path
|
2166
|
-
local_var_path = '/
|
2229
|
+
local_var_path = '/settings/scan-schedule/v1'
|
2167
2230
|
|
2168
2231
|
# query parameters
|
2169
2232
|
query_params = opts[:query_params] || {}
|
2233
|
+
query_params[:'cloud-platform'] = @api_client.build_collection_param(opts[:'cloud_platform'], :multi) if !opts[:'cloud_platform'].nil?
|
2170
2234
|
|
2171
2235
|
# header parameters
|
2172
2236
|
header_params = opts[:header_params] || {}
|
2173
2237
|
# HTTP header 'Accept' (if needed)
|
2174
2238
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2175
|
-
# HTTP header 'Content-Type'
|
2176
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
2177
|
-
if !content_type.nil?
|
2178
|
-
header_params['Content-Type'] = content_type
|
2179
|
-
end
|
2180
2239
|
|
2181
2240
|
# form parameters
|
2182
2241
|
form_params = opts[:form_params] || {}
|
2183
2242
|
|
2184
2243
|
# http body (model)
|
2185
|
-
post_body = opts[:debug_body]
|
2244
|
+
post_body = opts[:debug_body]
|
2186
2245
|
|
2187
2246
|
# return_type
|
2188
|
-
return_type = opts[:debug_return_type] || '
|
2247
|
+
return_type = opts[:debug_return_type] || 'RegistrationScanScheduleResponseV1'
|
2189
2248
|
|
2190
2249
|
# auth_names
|
2191
2250
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2192
2251
|
|
2193
2252
|
new_options = opts.merge(
|
2194
|
-
:operation => :"
|
2253
|
+
:operation => :"CspmRegistration.get_cspm_scan_schedule",
|
2195
2254
|
:header_params => header_params,
|
2196
2255
|
:query_params => query_params,
|
2197
2256
|
:form_params => form_params,
|
@@ -2200,9 +2259,9 @@ module Falcon
|
|
2200
2259
|
:return_type => return_type
|
2201
2260
|
)
|
2202
2261
|
|
2203
|
-
data, status_code, headers = @api_client.call_api(:
|
2262
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2204
2263
|
if @api_client.config.debugging
|
2205
|
-
@api_client.config.logger.debug "API called:
|
2264
|
+
@api_client.config.logger.debug "API called: CspmRegistration#get_cspm_scan_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2206
2265
|
end
|
2207
2266
|
return data, status_code, headers
|
2208
2267
|
end
|
@@ -2222,11 +2281,11 @@ module Falcon
|
|
2222
2281
|
# @return [Array<(RegistrationAWSAccountResponseV2, Integer, Hash)>] RegistrationAWSAccountResponseV2 data, response status code and response headers
|
2223
2282
|
def patch_cspm_aws_account_with_http_info(body, opts = {})
|
2224
2283
|
if @api_client.config.debugging
|
2225
|
-
@api_client.config.logger.debug 'Calling API:
|
2284
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.patch_cspm_aws_account ...'
|
2226
2285
|
end
|
2227
2286
|
# verify the required parameter 'body' is set
|
2228
2287
|
if @api_client.config.client_side_validation && body.nil?
|
2229
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
2288
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.patch_cspm_aws_account"
|
2230
2289
|
end
|
2231
2290
|
# resource path
|
2232
2291
|
local_var_path = '/cloud-connect-cspm-aws/entities/account/v1'
|
@@ -2257,7 +2316,7 @@ module Falcon
|
|
2257
2316
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2258
2317
|
|
2259
2318
|
new_options = opts.merge(
|
2260
|
-
:operation => :"
|
2319
|
+
:operation => :"CspmRegistration.patch_cspm_aws_account",
|
2261
2320
|
:header_params => header_params,
|
2262
2321
|
:query_params => query_params,
|
2263
2322
|
:form_params => form_params,
|
@@ -2268,7 +2327,7 @@ module Falcon
|
|
2268
2327
|
|
2269
2328
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2270
2329
|
if @api_client.config.debugging
|
2271
|
-
@api_client.config.logger.debug "API called:
|
2330
|
+
@api_client.config.logger.debug "API called: CspmRegistration#patch_cspm_aws_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2272
2331
|
end
|
2273
2332
|
return data, status_code, headers
|
2274
2333
|
end
|
@@ -2288,11 +2347,11 @@ module Falcon
|
|
2288
2347
|
# @return [Array<(RegistrationAzureAccountResponseV1, Integer, Hash)>] RegistrationAzureAccountResponseV1 data, response status code and response headers
|
2289
2348
|
def update_cspm_azure_account_with_http_info(body, opts = {})
|
2290
2349
|
if @api_client.config.debugging
|
2291
|
-
@api_client.config.logger.debug 'Calling API:
|
2350
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.update_cspm_azure_account ...'
|
2292
2351
|
end
|
2293
2352
|
# verify the required parameter 'body' is set
|
2294
2353
|
if @api_client.config.client_side_validation && body.nil?
|
2295
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
2354
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.update_cspm_azure_account"
|
2296
2355
|
end
|
2297
2356
|
# resource path
|
2298
2357
|
local_var_path = '/cloud-connect-cspm-azure/entities/account/v1'
|
@@ -2323,7 +2382,7 @@ module Falcon
|
|
2323
2382
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2324
2383
|
|
2325
2384
|
new_options = opts.merge(
|
2326
|
-
:operation => :"
|
2385
|
+
:operation => :"CspmRegistration.update_cspm_azure_account",
|
2327
2386
|
:header_params => header_params,
|
2328
2387
|
:query_params => query_params,
|
2329
2388
|
:form_params => form_params,
|
@@ -2334,7 +2393,7 @@ module Falcon
|
|
2334
2393
|
|
2335
2394
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2336
2395
|
if @api_client.config.debugging
|
2337
|
-
@api_client.config.logger.debug "API called:
|
2396
|
+
@api_client.config.logger.debug "API called: CspmRegistration#update_cspm_azure_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2338
2397
|
end
|
2339
2398
|
return data, status_code, headers
|
2340
2399
|
end
|
@@ -2356,36 +2415,36 @@ module Falcon
|
|
2356
2415
|
# @return [Array<(RegistrationAzureTenantConfigurationResponseV1, Integer, Hash)>] RegistrationAzureTenantConfigurationResponseV1 data, response status code and response headers
|
2357
2416
|
def update_cspm_azure_account_client_id_with_http_info(id, opts = {})
|
2358
2417
|
if @api_client.config.debugging
|
2359
|
-
@api_client.config.logger.debug 'Calling API:
|
2418
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.update_cspm_azure_account_client_id ...'
|
2360
2419
|
end
|
2361
2420
|
# verify the required parameter 'id' is set
|
2362
2421
|
if @api_client.config.client_side_validation && id.nil?
|
2363
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
2422
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CspmRegistration.update_cspm_azure_account_client_id"
|
2364
2423
|
end
|
2365
2424
|
if @api_client.config.client_side_validation && id.to_s.length > 36
|
2366
|
-
fail ArgumentError, 'invalid value for "id" when calling
|
2425
|
+
fail ArgumentError, 'invalid value for "id" when calling CspmRegistration.update_cspm_azure_account_client_id, the character length must be smaller than or equal to 36.'
|
2367
2426
|
end
|
2368
2427
|
|
2369
2428
|
if @api_client.config.client_side_validation && id.to_s.length < 36
|
2370
|
-
fail ArgumentError, 'invalid value for "id" when calling
|
2429
|
+
fail ArgumentError, 'invalid value for "id" when calling CspmRegistration.update_cspm_azure_account_client_id, the character length must be great than or equal to 36.'
|
2371
2430
|
end
|
2372
2431
|
|
2373
2432
|
pattern = Regexp.new(/^[0-9a-z-]{36}$/)
|
2374
2433
|
if @api_client.config.client_side_validation && id !~ pattern
|
2375
|
-
fail ArgumentError, "invalid value for 'id' when calling
|
2434
|
+
fail ArgumentError, "invalid value for 'id' when calling CspmRegistration.update_cspm_azure_account_client_id, must conform to the pattern #{pattern}."
|
2376
2435
|
end
|
2377
2436
|
|
2378
2437
|
if @api_client.config.client_side_validation && !opts[:'tenant_id'].nil? && opts[:'tenant_id'].to_s.length > 36
|
2379
|
-
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling
|
2438
|
+
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling CspmRegistration.update_cspm_azure_account_client_id, the character length must be smaller than or equal to 36.'
|
2380
2439
|
end
|
2381
2440
|
|
2382
2441
|
if @api_client.config.client_side_validation && !opts[:'tenant_id'].nil? && opts[:'tenant_id'].to_s.length < 36
|
2383
|
-
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling
|
2442
|
+
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling CspmRegistration.update_cspm_azure_account_client_id, the character length must be great than or equal to 36.'
|
2384
2443
|
end
|
2385
2444
|
|
2386
2445
|
pattern = Regexp.new(/^[0-9a-z-]{36}$/)
|
2387
2446
|
if @api_client.config.client_side_validation && !opts[:'tenant_id'].nil? && opts[:'tenant_id'] !~ pattern
|
2388
|
-
fail ArgumentError, "invalid value for 'opts[:\"tenant_id\"]' when calling
|
2447
|
+
fail ArgumentError, "invalid value for 'opts[:\"tenant_id\"]' when calling CspmRegistration.update_cspm_azure_account_client_id, must conform to the pattern #{pattern}."
|
2389
2448
|
end
|
2390
2449
|
|
2391
2450
|
# resource path
|
@@ -2414,7 +2473,7 @@ module Falcon
|
|
2414
2473
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2415
2474
|
|
2416
2475
|
new_options = opts.merge(
|
2417
|
-
:operation => :"
|
2476
|
+
:operation => :"CspmRegistration.update_cspm_azure_account_client_id",
|
2418
2477
|
:header_params => header_params,
|
2419
2478
|
:query_params => query_params,
|
2420
2479
|
:form_params => form_params,
|
@@ -2425,7 +2484,7 @@ module Falcon
|
|
2425
2484
|
|
2426
2485
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2427
2486
|
if @api_client.config.debugging
|
2428
|
-
@api_client.config.logger.debug "API called:
|
2487
|
+
@api_client.config.logger.debug "API called: CspmRegistration#update_cspm_azure_account_client_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2429
2488
|
end
|
2430
2489
|
return data, status_code, headers
|
2431
2490
|
end
|
@@ -2447,36 +2506,36 @@ module Falcon
|
|
2447
2506
|
# @return [Array<(RegistrationAzureTenantDefaultSubscriptionIDResponseV1, Integer, Hash)>] RegistrationAzureTenantDefaultSubscriptionIDResponseV1 data, response status code and response headers
|
2448
2507
|
def update_cspm_azure_tenant_default_subscription_id_with_http_info(subscription_id, opts = {})
|
2449
2508
|
if @api_client.config.debugging
|
2450
|
-
@api_client.config.logger.debug 'Calling API:
|
2509
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.update_cspm_azure_tenant_default_subscription_id ...'
|
2451
2510
|
end
|
2452
2511
|
# verify the required parameter 'subscription_id' is set
|
2453
2512
|
if @api_client.config.client_side_validation && subscription_id.nil?
|
2454
|
-
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling
|
2513
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling CspmRegistration.update_cspm_azure_tenant_default_subscription_id"
|
2455
2514
|
end
|
2456
2515
|
if @api_client.config.client_side_validation && subscription_id.to_s.length > 36
|
2457
|
-
fail ArgumentError, 'invalid value for "subscription_id" when calling
|
2516
|
+
fail ArgumentError, 'invalid value for "subscription_id" when calling CspmRegistration.update_cspm_azure_tenant_default_subscription_id, the character length must be smaller than or equal to 36.'
|
2458
2517
|
end
|
2459
2518
|
|
2460
2519
|
if @api_client.config.client_side_validation && subscription_id.to_s.length < 36
|
2461
|
-
fail ArgumentError, 'invalid value for "subscription_id" when calling
|
2520
|
+
fail ArgumentError, 'invalid value for "subscription_id" when calling CspmRegistration.update_cspm_azure_tenant_default_subscription_id, the character length must be great than or equal to 36.'
|
2462
2521
|
end
|
2463
2522
|
|
2464
2523
|
pattern = Regexp.new(/^[0-9a-z-]{36}$/)
|
2465
2524
|
if @api_client.config.client_side_validation && subscription_id !~ pattern
|
2466
|
-
fail ArgumentError, "invalid value for 'subscription_id' when calling
|
2525
|
+
fail ArgumentError, "invalid value for 'subscription_id' when calling CspmRegistration.update_cspm_azure_tenant_default_subscription_id, must conform to the pattern #{pattern}."
|
2467
2526
|
end
|
2468
2527
|
|
2469
2528
|
if @api_client.config.client_side_validation && !opts[:'tenant_id'].nil? && opts[:'tenant_id'].to_s.length > 36
|
2470
|
-
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling
|
2529
|
+
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling CspmRegistration.update_cspm_azure_tenant_default_subscription_id, the character length must be smaller than or equal to 36.'
|
2471
2530
|
end
|
2472
2531
|
|
2473
2532
|
if @api_client.config.client_side_validation && !opts[:'tenant_id'].nil? && opts[:'tenant_id'].to_s.length < 36
|
2474
|
-
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling
|
2533
|
+
fail ArgumentError, 'invalid value for "opts[:"tenant_id"]" when calling CspmRegistration.update_cspm_azure_tenant_default_subscription_id, the character length must be great than or equal to 36.'
|
2475
2534
|
end
|
2476
2535
|
|
2477
2536
|
pattern = Regexp.new(/^[0-9a-z-]{36}$/)
|
2478
2537
|
if @api_client.config.client_side_validation && !opts[:'tenant_id'].nil? && opts[:'tenant_id'] !~ pattern
|
2479
|
-
fail ArgumentError, "invalid value for 'opts[:\"tenant_id\"]' when calling
|
2538
|
+
fail ArgumentError, "invalid value for 'opts[:\"tenant_id\"]' when calling CspmRegistration.update_cspm_azure_tenant_default_subscription_id, must conform to the pattern #{pattern}."
|
2480
2539
|
end
|
2481
2540
|
|
2482
2541
|
# resource path
|
@@ -2505,7 +2564,7 @@ module Falcon
|
|
2505
2564
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2506
2565
|
|
2507
2566
|
new_options = opts.merge(
|
2508
|
-
:operation => :"
|
2567
|
+
:operation => :"CspmRegistration.update_cspm_azure_tenant_default_subscription_id",
|
2509
2568
|
:header_params => header_params,
|
2510
2569
|
:query_params => query_params,
|
2511
2570
|
:form_params => form_params,
|
@@ -2516,34 +2575,34 @@ module Falcon
|
|
2516
2575
|
|
2517
2576
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2518
2577
|
if @api_client.config.debugging
|
2519
|
-
@api_client.config.logger.debug "API called:
|
2578
|
+
@api_client.config.logger.debug "API called: CspmRegistration#update_cspm_azure_tenant_default_subscription_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2520
2579
|
end
|
2521
2580
|
return data, status_code, headers
|
2522
2581
|
end
|
2523
2582
|
|
2524
|
-
#
|
2525
|
-
# @param body [
|
2583
|
+
# Patches a existing account in our system for a customer.
|
2584
|
+
# @param body [RegistrationGCPAccountPatchRequestV1]
|
2526
2585
|
# @param [Hash] opts the optional parameters
|
2527
|
-
# @return [
|
2528
|
-
def
|
2529
|
-
data, _status_code, _headers =
|
2586
|
+
# @return [RegistrationGCPAccountResponseV1]
|
2587
|
+
def update_cspm_gcp_account(body, opts = {})
|
2588
|
+
data, _status_code, _headers = update_cspm_gcp_account_with_http_info(body, opts)
|
2530
2589
|
data
|
2531
2590
|
end
|
2532
2591
|
|
2533
|
-
#
|
2534
|
-
# @param body [
|
2592
|
+
# Patches a existing account in our system for a customer.
|
2593
|
+
# @param body [RegistrationGCPAccountPatchRequestV1]
|
2535
2594
|
# @param [Hash] opts the optional parameters
|
2536
|
-
# @return [Array<(
|
2537
|
-
def
|
2595
|
+
# @return [Array<(RegistrationGCPAccountResponseV1, Integer, Hash)>] RegistrationGCPAccountResponseV1 data, response status code and response headers
|
2596
|
+
def update_cspm_gcp_account_with_http_info(body, opts = {})
|
2538
2597
|
if @api_client.config.debugging
|
2539
|
-
@api_client.config.logger.debug 'Calling API:
|
2598
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.update_cspm_gcp_account ...'
|
2540
2599
|
end
|
2541
2600
|
# verify the required parameter 'body' is set
|
2542
2601
|
if @api_client.config.client_side_validation && body.nil?
|
2543
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
2602
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.update_cspm_gcp_account"
|
2544
2603
|
end
|
2545
2604
|
# resource path
|
2546
|
-
local_var_path = '/
|
2605
|
+
local_var_path = '/cloud-connect-cspm-gcp/entities/account/v1'
|
2547
2606
|
|
2548
2607
|
# query parameters
|
2549
2608
|
query_params = opts[:query_params] || {}
|
@@ -2565,13 +2624,13 @@ module Falcon
|
|
2565
2624
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
2566
2625
|
|
2567
2626
|
# return_type
|
2568
|
-
return_type = opts[:debug_return_type] || '
|
2627
|
+
return_type = opts[:debug_return_type] || 'RegistrationGCPAccountResponseV1'
|
2569
2628
|
|
2570
2629
|
# auth_names
|
2571
2630
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2572
2631
|
|
2573
2632
|
new_options = opts.merge(
|
2574
|
-
:operation => :"
|
2633
|
+
:operation => :"CspmRegistration.update_cspm_gcp_account",
|
2575
2634
|
:header_params => header_params,
|
2576
2635
|
:query_params => query_params,
|
2577
2636
|
:form_params => form_params,
|
@@ -2582,34 +2641,34 @@ module Falcon
|
|
2582
2641
|
|
2583
2642
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2584
2643
|
if @api_client.config.debugging
|
2585
|
-
@api_client.config.logger.debug "API called:
|
2644
|
+
@api_client.config.logger.debug "API called: CspmRegistration#update_cspm_gcp_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2586
2645
|
end
|
2587
2646
|
return data, status_code, headers
|
2588
2647
|
end
|
2589
2648
|
|
2590
|
-
#
|
2591
|
-
# @param body [
|
2649
|
+
# Patches the service account key for external clients.
|
2650
|
+
# @param body [RegistrationGCPServiceAccountPatchRequestV1]
|
2592
2651
|
# @param [Hash] opts the optional parameters
|
2593
|
-
# @return [
|
2594
|
-
def
|
2595
|
-
data, _status_code, _headers =
|
2652
|
+
# @return [RegistrationGCPServiceAccountResponseExtV1]
|
2653
|
+
def update_cspm_gcp_service_accounts_ext(body, opts = {})
|
2654
|
+
data, _status_code, _headers = update_cspm_gcp_service_accounts_ext_with_http_info(body, opts)
|
2596
2655
|
data
|
2597
2656
|
end
|
2598
2657
|
|
2599
|
-
#
|
2600
|
-
# @param body [
|
2658
|
+
# Patches the service account key for external clients.
|
2659
|
+
# @param body [RegistrationGCPServiceAccountPatchRequestV1]
|
2601
2660
|
# @param [Hash] opts the optional parameters
|
2602
|
-
# @return [Array<(
|
2603
|
-
def
|
2661
|
+
# @return [Array<(RegistrationGCPServiceAccountResponseExtV1, Integer, Hash)>] RegistrationGCPServiceAccountResponseExtV1 data, response status code and response headers
|
2662
|
+
def update_cspm_gcp_service_accounts_ext_with_http_info(body, opts = {})
|
2604
2663
|
if @api_client.config.debugging
|
2605
|
-
@api_client.config.logger.debug 'Calling API:
|
2664
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.update_cspm_gcp_service_accounts_ext ...'
|
2606
2665
|
end
|
2607
2666
|
# verify the required parameter 'body' is set
|
2608
2667
|
if @api_client.config.client_side_validation && body.nil?
|
2609
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
2668
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.update_cspm_gcp_service_accounts_ext"
|
2610
2669
|
end
|
2611
2670
|
# resource path
|
2612
|
-
local_var_path = '/
|
2671
|
+
local_var_path = '/cloud-connect-cspm-gcp/entities/service-accounts/v1'
|
2613
2672
|
|
2614
2673
|
# query parameters
|
2615
2674
|
query_params = opts[:query_params] || {}
|
@@ -2631,13 +2690,13 @@ module Falcon
|
|
2631
2690
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
2632
2691
|
|
2633
2692
|
# return_type
|
2634
|
-
return_type = opts[:debug_return_type] || '
|
2693
|
+
return_type = opts[:debug_return_type] || 'RegistrationGCPServiceAccountResponseExtV1'
|
2635
2694
|
|
2636
2695
|
# auth_names
|
2637
2696
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2638
2697
|
|
2639
2698
|
new_options = opts.merge(
|
2640
|
-
:operation => :"
|
2699
|
+
:operation => :"CspmRegistration.update_cspm_gcp_service_accounts_ext",
|
2641
2700
|
:header_params => header_params,
|
2642
2701
|
:query_params => query_params,
|
2643
2702
|
:form_params => form_params,
|
@@ -2646,36 +2705,36 @@ module Falcon
|
|
2646
2705
|
:return_type => return_type
|
2647
2706
|
)
|
2648
2707
|
|
2649
|
-
data, status_code, headers = @api_client.call_api(:
|
2708
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2650
2709
|
if @api_client.config.debugging
|
2651
|
-
@api_client.config.logger.debug "API called:
|
2710
|
+
@api_client.config.logger.debug "API called: CspmRegistration#update_cspm_gcp_service_accounts_ext\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2652
2711
|
end
|
2653
2712
|
return data, status_code, headers
|
2654
2713
|
end
|
2655
2714
|
|
2656
|
-
#
|
2657
|
-
# @param body [
|
2715
|
+
# Updates a policy setting - can be used to override policy severity or to disable a policy entirely.
|
2716
|
+
# @param body [RegistrationPolicyRequestExtV1]
|
2658
2717
|
# @param [Hash] opts the optional parameters
|
2659
|
-
# @return [
|
2660
|
-
def
|
2661
|
-
data, _status_code, _headers =
|
2718
|
+
# @return [RegistrationPolicySettingsResponseV1]
|
2719
|
+
def update_cspm_policy_settings(body, opts = {})
|
2720
|
+
data, _status_code, _headers = update_cspm_policy_settings_with_http_info(body, opts)
|
2662
2721
|
data
|
2663
2722
|
end
|
2664
2723
|
|
2665
|
-
#
|
2666
|
-
# @param body [
|
2724
|
+
# Updates a policy setting - can be used to override policy severity or to disable a policy entirely.
|
2725
|
+
# @param body [RegistrationPolicyRequestExtV1]
|
2667
2726
|
# @param [Hash] opts the optional parameters
|
2668
|
-
# @return [Array<(
|
2669
|
-
def
|
2727
|
+
# @return [Array<(RegistrationPolicySettingsResponseV1, Integer, Hash)>] RegistrationPolicySettingsResponseV1 data, response status code and response headers
|
2728
|
+
def update_cspm_policy_settings_with_http_info(body, opts = {})
|
2670
2729
|
if @api_client.config.debugging
|
2671
|
-
@api_client.config.logger.debug 'Calling API:
|
2730
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.update_cspm_policy_settings ...'
|
2672
2731
|
end
|
2673
2732
|
# verify the required parameter 'body' is set
|
2674
2733
|
if @api_client.config.client_side_validation && body.nil?
|
2675
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
2734
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.update_cspm_policy_settings"
|
2676
2735
|
end
|
2677
2736
|
# resource path
|
2678
|
-
local_var_path = '/
|
2737
|
+
local_var_path = '/settings/entities/policy/v1'
|
2679
2738
|
|
2680
2739
|
# query parameters
|
2681
2740
|
query_params = opts[:query_params] || {}
|
@@ -2697,13 +2756,13 @@ module Falcon
|
|
2697
2756
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
2698
2757
|
|
2699
2758
|
# return_type
|
2700
|
-
return_type = opts[:debug_return_type] || '
|
2759
|
+
return_type = opts[:debug_return_type] || 'RegistrationPolicySettingsResponseV1'
|
2701
2760
|
|
2702
2761
|
# auth_names
|
2703
2762
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2704
2763
|
|
2705
2764
|
new_options = opts.merge(
|
2706
|
-
:operation => :"
|
2765
|
+
:operation => :"CspmRegistration.update_cspm_policy_settings",
|
2707
2766
|
:header_params => header_params,
|
2708
2767
|
:query_params => query_params,
|
2709
2768
|
:form_params => form_params,
|
@@ -2714,34 +2773,34 @@ module Falcon
|
|
2714
2773
|
|
2715
2774
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2716
2775
|
if @api_client.config.debugging
|
2717
|
-
@api_client.config.logger.debug "API called:
|
2776
|
+
@api_client.config.logger.debug "API called: CspmRegistration#update_cspm_policy_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2718
2777
|
end
|
2719
2778
|
return data, status_code, headers
|
2720
2779
|
end
|
2721
2780
|
|
2722
|
-
#
|
2723
|
-
# @param body [
|
2781
|
+
# Updates scan schedule configuration for one or more cloud platforms.
|
2782
|
+
# @param body [RegistrationScanScheduleUpdateRequestV1]
|
2724
2783
|
# @param [Hash] opts the optional parameters
|
2725
|
-
# @return [
|
2726
|
-
def
|
2727
|
-
data, _status_code, _headers =
|
2784
|
+
# @return [RegistrationScanScheduleResponseV1]
|
2785
|
+
def update_cspm_scan_schedule(body, opts = {})
|
2786
|
+
data, _status_code, _headers = update_cspm_scan_schedule_with_http_info(body, opts)
|
2728
2787
|
data
|
2729
2788
|
end
|
2730
2789
|
|
2731
|
-
#
|
2732
|
-
# @param body [
|
2790
|
+
# Updates scan schedule configuration for one or more cloud platforms.
|
2791
|
+
# @param body [RegistrationScanScheduleUpdateRequestV1]
|
2733
2792
|
# @param [Hash] opts the optional parameters
|
2734
|
-
# @return [Array<(
|
2735
|
-
def
|
2793
|
+
# @return [Array<(RegistrationScanScheduleResponseV1, Integer, Hash)>] RegistrationScanScheduleResponseV1 data, response status code and response headers
|
2794
|
+
def update_cspm_scan_schedule_with_http_info(body, opts = {})
|
2736
2795
|
if @api_client.config.debugging
|
2737
|
-
@api_client.config.logger.debug 'Calling API:
|
2796
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.update_cspm_scan_schedule ...'
|
2738
2797
|
end
|
2739
2798
|
# verify the required parameter 'body' is set
|
2740
2799
|
if @api_client.config.client_side_validation && body.nil?
|
2741
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
2800
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.update_cspm_scan_schedule"
|
2742
2801
|
end
|
2743
2802
|
# resource path
|
2744
|
-
local_var_path = '/
|
2803
|
+
local_var_path = '/settings/scan-schedule/v1'
|
2745
2804
|
|
2746
2805
|
# query parameters
|
2747
2806
|
query_params = opts[:query_params] || {}
|
@@ -2763,13 +2822,13 @@ module Falcon
|
|
2763
2822
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
2764
2823
|
|
2765
2824
|
# return_type
|
2766
|
-
return_type = opts[:debug_return_type] || '
|
2825
|
+
return_type = opts[:debug_return_type] || 'RegistrationScanScheduleResponseV1'
|
2767
2826
|
|
2768
2827
|
# auth_names
|
2769
2828
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2770
2829
|
|
2771
2830
|
new_options = opts.merge(
|
2772
|
-
:operation => :"
|
2831
|
+
:operation => :"CspmRegistration.update_cspm_scan_schedule",
|
2773
2832
|
:header_params => header_params,
|
2774
2833
|
:query_params => query_params,
|
2775
2834
|
:form_params => form_params,
|
@@ -2778,9 +2837,9 @@ module Falcon
|
|
2778
2837
|
:return_type => return_type
|
2779
2838
|
)
|
2780
2839
|
|
2781
|
-
data, status_code, headers = @api_client.call_api(:
|
2840
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2782
2841
|
if @api_client.config.debugging
|
2783
|
-
@api_client.config.logger.debug "API called:
|
2842
|
+
@api_client.config.logger.debug "API called: CspmRegistration#update_cspm_scan_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2784
2843
|
end
|
2785
2844
|
return data, status_code, headers
|
2786
2845
|
end
|
@@ -2789,8 +2848,8 @@ module Falcon
|
|
2789
2848
|
# @param body [RegistrationGCPServiceAccountValidationRequestV1]
|
2790
2849
|
# @param [Hash] opts the optional parameters
|
2791
2850
|
# @return [RegistrationGCPServiceAccountValidationResponseV1]
|
2792
|
-
def
|
2793
|
-
data, _status_code, _headers =
|
2851
|
+
def validate_cspm_gcp_service_account_ext(body, opts = {})
|
2852
|
+
data, _status_code, _headers = validate_cspm_gcp_service_account_ext_with_http_info(body, opts)
|
2794
2853
|
data
|
2795
2854
|
end
|
2796
2855
|
|
@@ -2798,13 +2857,13 @@ module Falcon
|
|
2798
2857
|
# @param body [RegistrationGCPServiceAccountValidationRequestV1]
|
2799
2858
|
# @param [Hash] opts the optional parameters
|
2800
2859
|
# @return [Array<(RegistrationGCPServiceAccountValidationResponseV1, Integer, Hash)>] RegistrationGCPServiceAccountValidationResponseV1 data, response status code and response headers
|
2801
|
-
def
|
2860
|
+
def validate_cspm_gcp_service_account_ext_with_http_info(body, opts = {})
|
2802
2861
|
if @api_client.config.debugging
|
2803
|
-
@api_client.config.logger.debug 'Calling API:
|
2862
|
+
@api_client.config.logger.debug 'Calling API: CspmRegistration.validate_cspm_gcp_service_account_ext ...'
|
2804
2863
|
end
|
2805
2864
|
# verify the required parameter 'body' is set
|
2806
2865
|
if @api_client.config.client_side_validation && body.nil?
|
2807
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling
|
2866
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CspmRegistration.validate_cspm_gcp_service_account_ext"
|
2808
2867
|
end
|
2809
2868
|
# resource path
|
2810
2869
|
local_var_path = '/cloud-connect-cspm-gcp/entities/service-accounts/validate/v1'
|
@@ -2835,7 +2894,7 @@ module Falcon
|
|
2835
2894
|
auth_names = opts[:debug_auth_names] || ['oauth2']
|
2836
2895
|
|
2837
2896
|
new_options = opts.merge(
|
2838
|
-
:operation => :"
|
2897
|
+
:operation => :"CspmRegistration.validate_cspm_gcp_service_account_ext",
|
2839
2898
|
:header_params => header_params,
|
2840
2899
|
:query_params => query_params,
|
2841
2900
|
:form_params => form_params,
|
@@ -2846,7 +2905,7 @@ module Falcon
|
|
2846
2905
|
|
2847
2906
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2848
2907
|
if @api_client.config.debugging
|
2849
|
-
@api_client.config.logger.debug "API called:
|
2908
|
+
@api_client.config.logger.debug "API called: CspmRegistration#validate_cspm_gcp_service_account_ext\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2850
2909
|
end
|
2851
2910
|
return data, status_code, headers
|
2852
2911
|
end
|