Class: OCI::DataSafe::DataSafeClient
- Inherits:
-
Object
- Object
- OCI::DataSafe::DataSafeClient
- Defined in:
- lib/oci/data_safe/data_safe_client.rb
Overview
APIs for using Oracle Data Safe.
Instance Attribute Summary collapse
-
#api_client ⇒ OCI::ApiClient
readonly
Client used to make HTTP requests.
-
#endpoint ⇒ String
readonly
Fully qualified endpoint URL.
-
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
-
#retry_config ⇒ OCI::Retry::RetryConfig
readonly
The default retry configuration to apply to all operations in this service client.
Instance Method Summary collapse
-
#activate_target_database(activate_target_database_details, target_database_id, opts = {}) ⇒ Response
Reactivates a previously deactivated Data Safe target database.
-
#add_masking_columns_from_sdm(masking_policy_id, opts = {}) ⇒ Response
Adds columns to the specified masking policy from the associated sensitive data model.
-
#alerts_update(alerts_update_details, opts = {}) ⇒ Response
Updates alerts in the specified compartment.
-
#apply_discovery_job_results(sensitive_data_model_id, apply_discovery_job_results_details, opts = {}) ⇒ Response
Applies the results of a discovery job to the specified sensitive data model.
-
#apply_sdm_masking_policy_difference(masking_policy_id, apply_sdm_masking_policy_difference_details, opts = {}) ⇒ Response
Applies the difference of a SDM Masking policy difference resource to the specified masking policy.
-
#bulk_create_sensitive_types(bulk_create_sensitive_types_details, opc_compartment_id, opts = {}) ⇒ Response
Uploads a sensitive types xml file (also called template) to create new sensitive types.
-
#bulk_create_sql_firewall_allowed_sqls(bulk_create_sql_firewall_allowed_sqls_details, opts = {}) ⇒ Response
Appends the allowedSqls with entries from the logs.
-
#bulk_delete_sql_firewall_allowed_sqls(bulk_delete_sql_firewall_allowed_sqls_details, opts = {}) ⇒ Response
Delete multiple allowed sqls from the SQL firewall policy.
-
#calculate_audit_volume_available(audit_profile_id, calculate_audit_volume_available_details, opts = {}) ⇒ Response
Calculates the volume of audit events available on the target database to be collected.
-
#calculate_audit_volume_collected(audit_profile_id, calculate_audit_volume_collected_details, opts = {}) ⇒ Response
Calculates the volume of audit events collected by data safe.
-
#cancel_work_request(work_request_id, opts = {}) ⇒ Response
Cancel the specified work request.
-
#change_alert_compartment(alert_id, change_alert_compartment_details, opts = {}) ⇒ Response
Moves the specified alert into a different compartment.
-
#change_alert_policy_compartment(alert_policy_id, change_alert_policy_compartment_details, opts = {}) ⇒ Response
Moves the specified alert policy into a different compartment.
-
#change_audit_archive_retrieval_compartment(audit_archive_retrieval_id, change_audit_archive_retrieval_compartment_details, opts = {}) ⇒ Response
Moves the archive retreival to the specified compartment.
-
#change_audit_policy_compartment(audit_policy_id, change_audit_policy_compartment_details, opts = {}) ⇒ Response
Moves the specified audit policy and its dependent resources into a different compartment.
-
#change_audit_profile_compartment(audit_profile_id, change_audit_profile_compartment_details, opts = {}) ⇒ Response
Moves the specified audit profile and its dependent resources into a different compartment.
-
#change_data_safe_private_endpoint_compartment(data_safe_private_endpoint_id, change_data_safe_private_endpoint_compartment_details, opts = {}) ⇒ Response
Moves the Data Safe private endpoint and its dependent resources to the specified compartment.
-
#change_database_security_config_compartment(database_security_config_id, change_database_security_config_compartment_details, opts = {}) ⇒ Response
Moves the specified database security configuration and its dependent resources into a different compartment.
-
#change_discovery_job_compartment(discovery_job_id, change_discovery_job_compartment_details, opts = {}) ⇒ Response
Moves the specified discovery job and its dependent resources into a different compartment.
-
#change_library_masking_format_compartment(library_masking_format_id, change_library_masking_format_compartment_details, opts = {}) ⇒ Response
Moves the specified library masking format into a different compartment.
-
#change_masking_policy_compartment(masking_policy_id, change_masking_policy_compartment_details, opts = {}) ⇒ Response
Moves the specified masking policy and its dependent resources into a different compartment.
-
#change_masking_policy_health_report_compartment(masking_policy_health_report_id, change_masking_policy_health_report_compartment_details, opts = {}) ⇒ Response
Moves the specified masking policy health report and its dependent resources into a different compartment.
-
#change_on_prem_connector_compartment(on_prem_connector_id, change_on_prem_connector_compartment_details, opts = {}) ⇒ Response
Moves the specified on-premises connector into a different compartment.
-
#change_report_compartment(report_id, change_report_compartment_details, opts = {}) ⇒ Response
Moves a resource into a different compartment.
-
#change_report_definition_compartment(report_definition_id, change_report_definition_compartment_details, opts = {}) ⇒ Response
Moves a resource into a different compartment.
-
#change_retention(audit_profile_id, change_retention_details, opts = {}) ⇒ Response
Change the online and offline months .
-
#change_sdm_masking_policy_difference_compartment(sdm_masking_policy_difference_id, change_sdm_masking_policy_difference_compartment_details, opts = {}) ⇒ Response
Moves the specified SDM masking policy difference into a different compartment.
-
#change_security_assessment_compartment(security_assessment_id, change_security_assessment_compartment_details, opts = {}) ⇒ Response
Moves the specified saved security assessment or future scheduled assessments into a different compartment.
-
#change_security_policy_compartment(security_policy_id, change_security_policy_compartment_details, opts = {}) ⇒ Response
Moves the specified security policy and its dependent resources into a different compartment.
-
#change_security_policy_deployment_compartment(security_policy_deployment_id, change_security_policy_deployment_compartment_details, opts = {}) ⇒ Response
Moves the specified security policy deployment and its dependent resources into a different compartment.
-
#change_sensitive_data_model_compartment(sensitive_data_model_id, change_sensitive_data_model_compartment_details, opts = {}) ⇒ Response
Moves the specified sensitive data model and its dependent resources into a different compartment.
-
#change_sensitive_type_compartment(sensitive_type_id, change_sensitive_type_compartment_details, opts = {}) ⇒ Response
Moves the specified sensitive type into a different compartment.
-
#change_sensitive_type_group_compartment(sensitive_type_group_id, change_sensitive_type_group_compartment_details, opts = {}) ⇒ Response
Moves the sensitive type group to the specified compartment.
-
#change_sensitive_types_export_compartment(sensitive_types_export_id, change_sensitive_types_export_compartment_details, opts = {}) ⇒ Response
Moves the specified sensitive types export into a different compartment.
-
#change_sql_collection_compartment(sql_collection_id, change_sql_collection_compartment_details, opts = {}) ⇒ Response
Moves the specified SQL collection and its dependent resources into a different compartment.
-
#change_sql_firewall_policy_compartment(sql_firewall_policy_id, change_sql_firewall_policy_compartment_details, opts = {}) ⇒ Response
Moves the specified SQL Firewall policy and its dependent resources into a different compartment.
-
#change_target_alert_policy_association_compartment(target_alert_policy_association_id, change_target_alert_policy_association_compartment_details, opts = {}) ⇒ Response
Moves the specified target-alert policy Association into a different compartment.
-
#change_target_database_compartment(target_database_id, change_target_database_compartment_details, opts = {}) ⇒ Response
Moves the Data Safe target database to the specified compartment.
-
#change_user_assessment_compartment(user_assessment_id, change_user_assessment_compartment_details, opts = {}) ⇒ Response
Moves the specified saved user assessment or future scheduled assessments into a different compartment.
-
#compare_security_assessment(security_assessment_id, compare_security_assessment_details, opts = {}) ⇒ Response
Compares two security assessments.
-
#compare_user_assessment(user_assessment_id, compare_user_assessment_details, opts = {}) ⇒ Response
Compares two user assessments.
-
#create_alert_policy(create_alert_policy_details, opts = {}) ⇒ Response
Creates a new user-defined alert policy.
-
#create_alert_policy_rule(create_alert_policy_rule_details, alert_policy_id, opts = {}) ⇒ Response
Creates a new rule for the alert policy.
-
#create_audit_archive_retrieval(create_audit_archive_retrieval_details, opts = {}) ⇒ Response
Creates a work request to retrieve archived audit data.
-
#create_data_safe_private_endpoint(create_data_safe_private_endpoint_details, opts = {}) ⇒ Response
Creates a new Data Safe private endpoint.
-
#create_discovery_job(create_discovery_job_details, opts = {}) ⇒ Response
Performs incremental data discovery for the specified sensitive data model.
-
#create_library_masking_format(create_library_masking_format_details, opts = {}) ⇒ Response
Creates a new library masking format.
-
#create_masking_column(create_masking_column_details, masking_policy_id, opts = {}) ⇒ Response
Creates a new masking column in the specified masking policy.
-
#create_masking_policy(create_masking_policy_details, opts = {}) ⇒ Response
Creates a new masking policy and associates it with a sensitive data model or a target database.
-
#create_on_prem_connector(create_on_prem_connector_details, opts = {}) ⇒ Response
Creates a new on-premises connector.
-
#create_peer_target_database(target_database_id, create_peer_target_database_details, opts = {}) ⇒ Response
Creates the peer target database under the primary target database in Data Safe.
-
#create_referential_relation(sensitive_data_model_id, create_referential_relation_details, opts = {}) ⇒ Response
Creates a new referential relation in the specified sensitive data model.
-
#create_report_definition(create_report_definition_details, opts = {}) ⇒ Response
Creates a new report definition with parameters specified in the body.
-
#create_sdm_masking_policy_difference(create_sdm_masking_policy_difference_details, opts = {}) ⇒ Response
Creates SDM masking policy difference for the specified masking policy.
-
#create_security_assessment(create_security_assessment_details, opts = {}) ⇒ Response
Creates a new saved security assessment for one or multiple targets in a compartment.
-
#create_sensitive_column(sensitive_data_model_id, create_sensitive_column_details, opts = {}) ⇒ Response
Creates a new sensitive column in the specified sensitive data model.
-
#create_sensitive_data_model(create_sensitive_data_model_details, opts = {}) ⇒ Response
Creates a new sensitive data model.
-
#create_sensitive_type(create_sensitive_type_details, opts = {}) ⇒ Response
Creates a new sensitive type, which can be a basic sensitive type with regular expressions or a sensitive category.
-
#create_sensitive_type_group(create_sensitive_type_group_details, opts = {}) ⇒ Response
Creates a new sensitive type group.
-
#create_sensitive_types_export(create_sensitive_types_export_details, opts = {}) ⇒ Response
Generates a downloadable file corresponding to the specified list of sensitive types.
-
#create_sql_collection(create_sql_collection_details, opts = {}) ⇒ Response
Creates a new SQL collection resource.
-
#create_target_alert_policy_association(create_target_alert_policy_association_details, opts = {}) ⇒ Response
Creates a new target-alert policy association to track a alert policy applied on target.
-
#create_target_database(create_target_database_details, opts = {}) ⇒ Response
Registers the specified database with Data Safe and creates a Data Safe target database in the Data Safe Console.
-
#create_user_assessment(create_user_assessment_details, opts = {}) ⇒ Response
Creates a new saved user assessment for one or multiple targets in a compartment.
-
#deactivate_target_database(target_database_id, opts = {}) ⇒ Response
Deactivates a target database in Data Safe.
-
#delete_alert_policy(alert_policy_id, opts = {}) ⇒ Response
Deletes the specified user-defined alert policy.
-
#delete_alert_policy_rule(alert_policy_id, rule_key, opts = {}) ⇒ Response
Deletes the specified user-defined alert policy rule.
-
#delete_audit_archive_retrieval(audit_archive_retrieval_id, opts = {}) ⇒ Response
To unload retrieved archive data, call the operation ListAuditArchiveRetrieval first.
-
#delete_audit_trail(audit_trail_id, opts = {}) ⇒ Response
Deletes the specified audit trail.
-
#delete_data_safe_private_endpoint(data_safe_private_endpoint_id, opts = {}) ⇒ Response
Deletes the specified Data Safe private endpoint.
-
#delete_discovery_job(discovery_job_id, opts = {}) ⇒ Response
Deletes the specified discovery job.
-
#delete_discovery_job_result(discovery_job_id, result_key, opts = {}) ⇒ Response
Deletes the specified discovery result.
-
#delete_library_masking_format(library_masking_format_id, opts = {}) ⇒ Response
Deletes the specified library masking format.
-
#delete_masking_column(masking_column_key, masking_policy_id, opts = {}) ⇒ Response
Deletes the specified masking column.
-
#delete_masking_policy(masking_policy_id, opts = {}) ⇒ Response
Deletes the specified masking policy.
-
#delete_masking_policy_health_report(masking_policy_health_report_id, opts = {}) ⇒ Response
Deletes the specified masking policy health report.
-
#delete_masking_report(masking_report_id, opts = {}) ⇒ Response
Deletes the specified masking report.
-
#delete_on_prem_connector(on_prem_connector_id, opts = {}) ⇒ Response
Deletes the specified on-premises connector.
-
#delete_peer_target_database(target_database_id, peer_target_database_id, opts = {}) ⇒ Response
Removes the specified peer target database from Data Safe.
-
#delete_referential_relation(sensitive_data_model_id, referential_relation_key, opts = {}) ⇒ Response
Deletes the specified referential relation.
-
#delete_report_definition(report_definition_id, opts = {}) ⇒ Response
Deletes the specified report definition.
-
#delete_sdm_masking_policy_difference(sdm_masking_policy_difference_id, opts = {}) ⇒ Response
Deletes the specified SDM Masking policy difference.
-
#delete_security_assessment(security_assessment_id, opts = {}) ⇒ Response
Deletes the specified saved security assessment or schedule.
-
#delete_sensitive_column(sensitive_data_model_id, sensitive_column_key, opts = {}) ⇒ Response
Deletes the specified sensitive column.
-
#delete_sensitive_data_model(sensitive_data_model_id, opts = {}) ⇒ Response
Deletes the specified sensitive data model.
-
#delete_sensitive_type(sensitive_type_id, opts = {}) ⇒ Response
Deletes the specified sensitive type.
-
#delete_sensitive_type_group(sensitive_type_group_id, opts = {}) ⇒ Response
Deletes the specified sensitive type group.
-
#delete_sensitive_types_export(sensitive_types_export_id, opts = {}) ⇒ Response
Deletes the specified sensitive types export.
-
#delete_sql_collection(sql_collection_id, opts = {}) ⇒ Response
Deletes the specified SQL collection.
-
#delete_sql_firewall_allowed_sql(sql_firewall_allowed_sql_id, opts = {}) ⇒ Response
Deletes the specified allowed sql.
-
#delete_sql_firewall_policy(sql_firewall_policy_id, opts = {}) ⇒ Response
Deletes the SQL Firewall policy resource.
-
#delete_target_alert_policy_association(target_alert_policy_association_id, opts = {}) ⇒ Response
Deletes the specified target-alert policy Association.
-
#delete_target_database(target_database_id, opts = {}) ⇒ Response
Deregisters the specified database from Data Safe and removes the target database from the Data Safe Console.
-
#delete_user_assessment(user_assessment_id, opts = {}) ⇒ Response
Deletes the specified saved user assessment or schedule.
-
#discover_audit_trails(audit_profile_id, opts = {}) ⇒ Response
Updates the list of audit trails created under audit profile.The operation can be used to create new audit trails for target database when they become available for audit collection because of change of database version or change of database unified mode or change of data base edition or being deleted previously etc.
-
#download_discovery_report(sensitive_data_model_id, download_discovery_report_details, opts = {}, &block) ⇒ Response
Downloads an already-generated discovery report.
-
#download_masking_log(masking_policy_id, download_masking_log_details, opts = {}, &block) ⇒ Response
Downloads the masking log generated by the last masking operation on a target database using the specified masking policy.
-
#download_masking_policy(masking_policy_id, download_masking_policy_details, opts = {}, &block) ⇒ Response
Downloads an already-generated file corresponding to the specified masking policy.
-
#download_masking_report(masking_policy_id, download_masking_report_details, opts = {}, &block) ⇒ Response
Downloads an already-generated masking report.
-
#download_privilege_script(opts = {}, &block) ⇒ Response
Downloads the privilege script to grant/revoke required roles from the Data Safe account on the target database.
-
#download_security_assessment_report(security_assessment_id, download_security_assessment_report_details, opts = {}, &block) ⇒ Response
Downloads the report of the specified security assessment.
-
#download_sensitive_data_model(sensitive_data_model_id, download_sensitive_data_model_details, opts = {}, &block) ⇒ Response
Downloads an already-generated file corresponding to the specified sensitive data model.
-
#download_sensitive_types_export(sensitive_types_export_id, download_sensitive_types_export_details, opts = {}, &block) ⇒ Response
Downloads an already-generated file corresponding to the specified sensitive types export.
-
#download_user_assessment_report(user_assessment_id, download_user_assessment_report_details, opts = {}, &block) ⇒ Response
Downloads the report of the specified user assessment.
-
#enable_data_safe_configuration(enable_data_safe_configuration_details, opts = {}) ⇒ Response
Enables Data Safe in the tenancy and region.
-
#generate_discovery_report_for_download(sensitive_data_model_id, generate_discovery_report_for_download_details, opts = {}) ⇒ Response
Generates a downloadable discovery report.
-
#generate_health_report(masking_policy_id, generate_health_report_details, opts = {}) ⇒ Response
Performs health check on the masking policy.
-
#generate_masking_policy_for_download(masking_policy_id, generate_masking_policy_for_download_details, opts = {}) ⇒ Response
Generates a downloadable file corresponding to the specified masking policy.
-
#generate_masking_report_for_download(masking_policy_id, generate_masking_report_for_download_details, opts = {}) ⇒ Response
Generates a downloadable masking report.
-
#generate_on_prem_connector_configuration(generate_on_prem_connector_configuration_details, on_prem_connector_id, opts = {}, &block) ⇒ Response
Creates and downloads the configuration of the specified on-premises connector.
-
#generate_report(report_definition_id, generate_report_details, opts = {}) ⇒ Response
Generates a .xls or .pdf report based on parameters and report definition.
-
#generate_security_assessment_report(security_assessment_id, generate_security_assessment_report_details, opts = {}) ⇒ Response
Generates the report of the specified security assessment.
-
#generate_sensitive_data_model_for_download(sensitive_data_model_id, generate_sensitive_data_model_for_download_details, opts = {}) ⇒ Response
Generates a downloadable file corresponding to the specified sensitive data model.
-
#generate_sql_firewall_policy(sql_collection_id, opts = {}) ⇒ Response
Generates or appends to the SQL Firewall policy using the specified SQL collection.
-
#generate_user_assessment_report(user_assessment_id, generate_user_assessment_report_details, opts = {}) ⇒ Response
Generates the report of the specified user assessment.
-
#get_alert(alert_id, opts = {}) ⇒ Response
Gets the details of the specified alerts.
-
#get_alert_policy(alert_policy_id, opts = {}) ⇒ Response
Gets the details of alert policy by its ID.
-
#get_alert_policy_rule(alert_policy_id, rule_key, opts = {}) ⇒ Response
Gets the details of a policy rule by its key.
-
#get_audit_archive_retrieval(audit_archive_retrieval_id, opts = {}) ⇒ Response
Gets the details of the specified archive retreival.
-
#get_audit_policy(audit_policy_id, opts = {}) ⇒ Response
Gets a audit policy by identifier.
-
#get_audit_profile(audit_profile_id, opts = {}) ⇒ Response
Gets the details of audit profile resource and associated audit trails of the audit profile.
-
#get_audit_trail(audit_trail_id, opts = {}) ⇒ Response
Gets the details of audit trail.
-
#get_compatible_formats_for_data_types(opts = {}) ⇒ Response
Gets a list of basic masking formats compatible with the supported data types.
-
#get_compatible_formats_for_sensitive_types(compartment_id, opts = {}) ⇒ Response
Gets a list of library masking formats compatible with the existing sensitive types.
-
#get_data_safe_configuration(opts = {}) ⇒ Response
Gets the details of the Data Safe configuration.
-
#get_data_safe_private_endpoint(data_safe_private_endpoint_id, opts = {}) ⇒ Response
Gets the details of the specified Data Safe private endpoint.
-
#get_database_security_config(database_security_config_id, opts = {}) ⇒ Response
Gets a database security configuration by identifier.
-
#get_database_table_access_entry(security_policy_report_id, database_table_access_entry_key, opts = {}) ⇒ Response
Gets a database table access entry object by identifier.
-
#get_database_view_access_entry(security_policy_report_id, database_view_access_entry_key, opts = {}) ⇒ Response
Gets a database view access object by identifier.
-
#get_difference_column(sdm_masking_policy_difference_id, difference_column_key, opts = {}) ⇒ Response
Gets the details of the specified SDM Masking policy difference column.
-
#get_discovery_job(discovery_job_id, opts = {}) ⇒ Response
Gets the details of the specified discovery job.
-
#get_discovery_job_result(discovery_job_id, result_key, opts = {}) ⇒ Response
Gets the details of the specified discovery result.
-
#get_library_masking_format(library_masking_format_id, opts = {}) ⇒ Response
Gets the details of the specified library masking format.
-
#get_masking_column(masking_policy_id, masking_column_key, opts = {}) ⇒ Response
Gets the details of the specified masking column.
-
#get_masking_policy(masking_policy_id, opts = {}) ⇒ Response
Gets the details of the specified masking policy.
-
#get_masking_policy_health_report(masking_policy_health_report_id, opts = {}) ⇒ Response
Gets the details of the specified masking policy health report.
-
#get_masking_report(masking_report_id, opts = {}) ⇒ Response
Gets the details of the specified masking report.
-
#get_on_prem_connector(on_prem_connector_id, opts = {}) ⇒ Response
Gets the details of the specified on-premises connector.
-
#get_peer_target_database(target_database_id, peer_target_database_id, opts = {}) ⇒ Response
Returns the details of the specified Data Safe peer target database.
-
#get_profile(user_assessment_id, profile_name, opts = {}) ⇒ Response
Lists the details of given profile available on the target.
-
#get_referential_relation(sensitive_data_model_id, referential_relation_key, opts = {}) ⇒ Response
Gets the details of the specified referential relation.
-
#get_report(report_id, opts = {}) ⇒ Response
Gets a report by identifier.
-
#get_report_content(report_id, opts = {}, &block) ⇒ Response
Downloads the specified report in the form of .xls or .pdf.
-
#get_report_definition(report_definition_id, opts = {}) ⇒ Response
Gets the details of report definition specified by the identifier.
-
#get_sdm_masking_policy_difference(sdm_masking_policy_difference_id, opts = {}) ⇒ Response
Gets the details of the specified SDM Masking policy difference.
-
#get_security_assessment(security_assessment_id, opts = {}) ⇒ Response
Gets the details of the specified security assessment.
-
#get_security_assessment_comparison(security_assessment_id, comparison_security_assessment_id, opts = {}) ⇒ Response
Gets the details of the comparison report for the security assessments submitted for comparison.
-
#get_security_policy(security_policy_id, opts = {}) ⇒ Response
Gets a security policy by the specified OCID of the security policy resource.
-
#get_security_policy_deployment(security_policy_deployment_id, opts = {}) ⇒ Response
Gets a security policy deployment by identifier.
-
#get_security_policy_entry_state(security_policy_deployment_id, security_policy_entry_state_id, opts = {}) ⇒ Response
Gets a security policy entity states by identifier.
-
#get_security_policy_report(security_policy_report_id, opts = {}) ⇒ Response
Gets a security policy report by the specified OCID of the security policy report resource.
-
#get_sensitive_column(sensitive_data_model_id, sensitive_column_key, opts = {}) ⇒ Response
Gets the details of the specified sensitive column.
-
#get_sensitive_data_model(sensitive_data_model_id, opts = {}) ⇒ Response
Gets the details of the specified sensitive data model.
-
#get_sensitive_type(sensitive_type_id, opts = {}) ⇒ Response
Gets the details of the specified sensitive type.
-
#get_sensitive_type_group(sensitive_type_group_id, opts = {}) ⇒ Response
Gets the details of the specified sensitive type group.
-
#get_sensitive_types_export(sensitive_types_export_id, opts = {}) ⇒ Response
Gets the details of the specified sensitive types export by identifier.
-
#get_sql_collection(sql_collection_id, opts = {}) ⇒ Response
Gets a SQL collection by identifier.
-
#get_sql_firewall_allowed_sql(sql_firewall_allowed_sql_id, opts = {}) ⇒ Response
Gets a SQL firewall allowed SQL by identifier.
-
#get_sql_firewall_policy(sql_firewall_policy_id, opts = {}) ⇒ Response
Gets a SQL Firewall policy by identifier.
-
#get_target_alert_policy_association(target_alert_policy_association_id, opts = {}) ⇒ Response
Gets the details of target-alert policy association by its ID.
-
#get_target_database(target_database_id, opts = {}) ⇒ Response
Returns the details of the specified Data Safe target database.
-
#get_user_assessment(user_assessment_id, opts = {}) ⇒ Response
Gets a user assessment by identifier.
-
#get_user_assessment_comparison(user_assessment_id, comparison_user_assessment_id, opts = {}) ⇒ Response
Gets the details of the comparison report for the user assessments submitted for comparison.
-
#get_work_request(work_request_id, opts = {}) ⇒ Response
Gets the details of the specified work request.
-
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ DataSafeClient
constructor
Creates a new DataSafeClient.
-
#list_alert_analytics(compartment_id, opts = {}) ⇒ Response
Returns the aggregation details of the alerts.
-
#list_alert_policies(compartment_id, opts = {}) ⇒ Response
Gets a list of all alert policies.
-
#list_alert_policy_rules(alert_policy_id, opts = {}) ⇒ Response
Lists the rules of the specified alert policy.
-
#list_alerts(compartment_id, opts = {}) ⇒ Response
Gets a list of all alerts.
-
#list_audit_archive_retrievals(compartment_id, opts = {}) ⇒ Response
Returns the list of audit archive retrieval.
-
#list_audit_event_analytics(compartment_id, opts = {}) ⇒ Response
By default the ListAuditEventAnalytics operation will return all of the summary columns.
-
#list_audit_events(compartment_id, opts = {}) ⇒ Response
The ListAuditEvents operation returns specified
compartmentId
audit Events only. -
#list_audit_policies(compartment_id, opts = {}) ⇒ Response
Retrieves a list of all audited targets with their corresponding provisioned audit policies, and their provisioning conditions.
-
#list_audit_policy_analytics(compartment_id, opts = {}) ⇒ Response
Gets a list of aggregated audit policy details on the target databases.
-
#list_audit_profile_analytics(compartment_id, opts = {}) ⇒ Response
Gets a list of audit profile aggregated details .
-
#list_audit_profiles(compartment_id, opts = {}) ⇒ Response
Gets a list of all audit profiles.
-
#list_audit_trail_analytics(compartment_id, opts = {}) ⇒ Response
Gets a list of audit trail aggregated details .
-
#list_audit_trails(compartment_id, opts = {}) ⇒ Response
Gets a list of all audit trails.
-
#list_available_audit_volumes(audit_profile_id, work_request_id, opts = {}) ⇒ Response
Retrieves a list of audit trails, and associated audit event volume for each trail up to defined start date.
-
#list_collected_audit_volumes(audit_profile_id, work_request_id, opts = {}) ⇒ Response
Gets a list of all collected audit volume data points.
-
#list_columns(target_database_id, opts = {}) ⇒ Response
Returns a list of column metadata objects.
-
#list_data_safe_private_endpoints(compartment_id, opts = {}) ⇒ Response
Gets a list of Data Safe private endpoints.
-
#list_database_security_configs(compartment_id, opts = {}) ⇒ Response
Retrieves a list of all database security configurations in Data Safe.
-
#list_database_table_access_entries(security_policy_report_id, opts = {}) ⇒ Response
Retrieves a list of all database table access entries in Data Safe.
-
#list_database_view_access_entries(security_policy_report_id, opts = {}) ⇒ Response
Retrieves a list of all database view access entries in Data Safe.
-
#list_difference_columns(sdm_masking_policy_difference_id, opts = {}) ⇒ Response
Gets a list of columns of a SDM masking policy difference resource based on the specified query parameters.
-
#list_discovery_analytics(compartment_id, opts = {}) ⇒ Response
Gets consolidated discovery analytics data based on the specified query parameters.
-
#list_discovery_job_results(discovery_job_id, opts = {}) ⇒ Response
Gets a list of discovery results based on the specified query parameters.
-
#list_discovery_jobs(compartment_id, opts = {}) ⇒ Response
Gets a list of incremental discovery jobs based on the specified query parameters.
-
#list_finding_analytics(compartment_id, opts = {}) ⇒ Response
Gets a list of findings aggregated details in the specified compartment.
-
#list_findings(security_assessment_id, opts = {}) ⇒ Response
List all the findings from all the targets in the specified compartment.
-
#list_findings_change_audit_logs(security_assessment_id, opts = {}) ⇒ Response
List all changes made by user to risk level of findings of the specified assessment.
-
#list_grants(user_assessment_id, user_key, opts = {}) ⇒ Response
Gets a list of grants for a particular user in the specified user assessment.
-
#list_grouped_sensitive_types(sensitive_type_group_id, opts = {}) ⇒ Response
Gets the list of sensitive type Ids present in the specified sensitive type group.
-
#list_library_masking_formats(compartment_id, opts = {}) ⇒ Response
Gets a list of library masking formats based on the specified query parameters.
-
#list_masked_columns(masking_report_id, opts = {}) ⇒ Response
Gets a list of masked columns present in the specified masking report and based on the specified query parameters.
-
#list_masking_analytics(compartment_id, opts = {}) ⇒ Response
Gets consolidated masking analytics data based on the specified query parameters.
-
#list_masking_columns(masking_policy_id, opts = {}) ⇒ Response
Gets a list of masking columns present in the specified masking policy and based on the specified query parameters.
-
#list_masking_errors(masking_report_id, opts = {}) ⇒ Response
Gets a list of masking errors in a masking run based on the specified query parameters.
-
#list_masking_objects(masking_policy_id, opts = {}) ⇒ Response
Gets a list of masking objects present in the specified masking policy and based on the specified query parameters.
-
#list_masking_policies(compartment_id, opts = {}) ⇒ Response
Gets a list of masking policies based on the specified query parameters.
-
#list_masking_policy_health_report_logs(masking_policy_health_report_id, opts = {}) ⇒ Response
Gets a list of errors and warnings from a masking policy health check.
-
#list_masking_policy_health_reports(compartment_id, opts = {}) ⇒ Response
Gets a list of masking policy health reports based on the specified query parameters.
-
#list_masking_policy_referential_relations(masking_policy_id, opts = {}) ⇒ Response
Gets a list of referential relations present in the specified masking policy based on the specified query parameters.
-
#list_masking_reports(compartment_id, opts = {}) ⇒ Response
Gets a list of masking reports based on the specified query parameters.
-
#list_masking_schemas(masking_policy_id, opts = {}) ⇒ Response
Gets a list of masking schemas present in the specified masking policy and based on the specified query parameters.
-
#list_on_prem_connectors(compartment_id, opts = {}) ⇒ Response
Gets a list of on-premises connectors.
-
#list_password_expiry_date_analytics(user_assessment_id, opts = {}) ⇒ Response
Gets a list of count of the users with password expiry dates in next 30 days, between next 30-90 days, and beyond 90 days based on specified user assessment.
-
#list_peer_target_databases(target_database_id, opts = {}) ⇒ Response
Lists all the peer target databases under the primary target database identified by the OCID passed as path parameter.
-
#list_profile_analytics(user_assessment_id, compartment_id, opts = {}) ⇒ Response
Gets a list of aggregated user profile details in the specified compartment.
-
#list_profile_summaries(user_assessment_id, compartment_id, opts = {}) ⇒ Response
Gets a list of user profiles containing the profile details along with the target id and user counts.
-
#list_referential_relations(sensitive_data_model_id, opts = {}) ⇒ Response
Gets a list of referential relations present in the specified sensitive data model based on the specified query parameters.
-
#list_report_definitions(compartment_id, opts = {}) ⇒ Response
Gets a list of report definitions.
-
#list_reports(compartment_id, opts = {}) ⇒ Response
Gets a list of all the reports in the compartment.
-
#list_role_grant_paths(security_policy_report_id, grantee, granted_role, opts = {}) ⇒ Response
Retrieves a list of all role grant paths for a particular user.
-
#list_roles(target_database_id, opts = {}) ⇒ Response
Returns a list of role metadata objects.
-
#list_schemas(target_database_id, opts = {}) ⇒ Response
Returns list of schema.
-
#list_sdm_masking_policy_differences(compartment_id, opts = {}) ⇒ Response
Gets a list of SDM and masking policy difference resources based on the specified query parameters.
-
#list_security_assessments(compartment_id, opts = {}) ⇒ Response
Gets a list of security assessments.
-
#list_security_feature_analytics(compartment_id, opts = {}) ⇒ Response
Gets a list of Database security feature usage aggregated details in the specified compartment.
-
#list_security_features(compartment_id, opts = {}) ⇒ Response
Lists the usage of Database security features for a given compartment or a target level, based on the filters provided.
-
#list_security_policies(compartment_id, opts = {}) ⇒ Response
Retrieves a list of all security policies in Data Safe.
-
#list_security_policy_deployments(compartment_id, opts = {}) ⇒ Response
Retrieves a list of all security policy deployments in Data Safe.
-
#list_security_policy_entry_states(security_policy_deployment_id, opts = {}) ⇒ Response
Retrieves a list of all security policy entry states in Data Safe.
-
#list_security_policy_reports(compartment_id, opts = {}) ⇒ Response
Retrieves a list of all security policy reports in Data Safe.
-
#list_sensitive_column_analytics(compartment_id, opts = {}) ⇒ Response
Gets consolidated sensitive columns analytics data based on the specified query parameters.
-
#list_sensitive_columns(sensitive_data_model_id, opts = {}) ⇒ Response
Gets a list of sensitive columns present in the specified sensitive data model based on the specified query parameters.
-
#list_sensitive_data_model_sensitive_types(sensitive_data_model_id, opts = {}) ⇒ Response
Gets a list of sensitive type Ids present in the specified sensitive data model.
-
#list_sensitive_data_models(compartment_id, opts = {}) ⇒ Response
Gets a list of sensitive data models based on the specified query parameters.
-
#list_sensitive_objects(sensitive_data_model_id, opts = {}) ⇒ Response
Gets a list of sensitive objects present in the specified sensitive data model based on the specified query parameters.
-
#list_sensitive_schemas(sensitive_data_model_id, opts = {}) ⇒ Response
Gets a list of sensitive schemas present in the specified sensitive data model based on the specified query parameters.
-
#list_sensitive_type_groups(compartment_id, opts = {}) ⇒ Response
Gets a list of sensitive type groups based on the specified query parameters.
-
#list_sensitive_types(compartment_id, opts = {}) ⇒ Response
Gets a list of sensitive types based on the specified query parameters.
-
#list_sensitive_types_exports(compartment_id, opts = {}) ⇒ Response
Retrieves a list of all sensitive types export in Data Safe based on the specified query parameters.
-
#list_sql_collection_analytics(compartment_id, opts = {}) ⇒ Response
Retrieves a list of all SQL collection analytics in Data Safe.
-
#list_sql_collection_log_insights(time_started, time_ended, sql_collection_id, opts = {}) ⇒ Response
Retrieves a list of the SQL collection log analytics.
-
#list_sql_collections(compartment_id, opts = {}) ⇒ Response
Retrieves a list of all SQL collections in Data Safe.
-
#list_sql_firewall_allowed_sql_analytics(compartment_id, opts = {}) ⇒ Response
Returns the aggregation details of all SQL Firewall allowed SQL statements.
-
#list_sql_firewall_allowed_sqls(compartment_id, opts = {}) ⇒ Response
Retrieves a list of all SQL Firewall allowed SQL statements.
-
#list_sql_firewall_policies(compartment_id, opts = {}) ⇒ Response
Retrieves a list of all SQL Firewall policies.
-
#list_sql_firewall_policy_analytics(compartment_id, opts = {}) ⇒ Response
Gets a list of aggregated SQL Firewall policy details.
-
#list_sql_firewall_violation_analytics(compartment_id, opts = {}) ⇒ Response
Returns the aggregation details of the SQL Firewall violations.
-
#list_sql_firewall_violations(compartment_id, opts = {}) ⇒ Response
Gets a list of all the SQL Firewall violations captured by the firewall.
-
#list_tables(target_database_id, opts = {}) ⇒ Response
Returns a list of table metadata objects.
-
#list_target_alert_policy_associations(compartment_id, opts = {}) ⇒ Response
Gets a list of all target-alert policy associations.
-
#list_target_databases(compartment_id, opts = {}) ⇒ Response
Returns the list of registered target databases in Data Safe.
-
#list_user_access_analytics(user_assessment_id, opts = {}) ⇒ Response
Gets a list of aggregated user access analytics in the specified target in a compartment.
-
#list_user_analytics(user_assessment_id, opts = {}) ⇒ Response
Gets a list of aggregated user details from the specified user assessment.
-
#list_user_assessments(compartment_id, opts = {}) ⇒ Response
Gets a list of user assessments.
-
#list_users(user_assessment_id, opts = {}) ⇒ Response
Gets a list of users of the specified user assessment.
-
#list_work_request_errors(work_request_id, opts = {}) ⇒ Response
Gets a list of errors for the specified work request.
-
#list_work_request_logs(work_request_id, opts = {}) ⇒ Response
Gets a list of log entries for the specified work request.
-
#list_work_requests(compartment_id, opts = {}) ⇒ Response
Gets a list of work requests.
-
#logger ⇒ Logger
The logger for this client.
-
#mask_data(masking_policy_id, mask_data_details, opts = {}) ⇒ Response
Masks data using the specified masking policy.
-
#modify_global_settings(modify_global_settings_details, compartment_id, opts = {}) ⇒ Response
Modifies Global Settings in Data Safe in the tenancy and region.
-
#patch_alerts(patch_alerts_details, opts = {}) ⇒ Response
Updates the status of one or more alert specified by the alert IDs.
-
#patch_discovery_job_results(discovery_job_id, patch_discovery_job_result_details, opts = {}) ⇒ Response
Patches one or more discovery results.
-
#patch_grouped_sensitive_types(sensitive_type_group_id, patch_grouped_sensitive_types_details, opts = {}) ⇒ Response
Patches one or more sensitive types in a sensitive type group.
-
#patch_masking_columns(masking_policy_id, patch_masking_columns_details, opts = {}) ⇒ Response
Patches one or more columns in the specified masking policy.
-
#patch_sdm_masking_policy_difference_columns(sdm_masking_policy_difference_id, patch_sdm_masking_policy_difference_columns_details, opts = {}) ⇒ Response
Patches one or more SDM masking policy difference columns.
-
#patch_sensitive_columns(sensitive_data_model_id, patch_sensitive_column_details, opts = {}) ⇒ Response
Patches one or more columns in the specified sensitive data model.
-
#patch_sql_firewall_allowed_sql(patch_sql_firewall_allowed_sql_details, opts = {}) ⇒ Response
Delete multiple allowed sqls.
-
#patch_target_alert_policy_association(patch_target_alert_policy_association_details, opts = {}) ⇒ Response
Creates new target-alert policy associations that will be applied on the target database.
-
#provision_audit_policy(provision_audit_policy_details, audit_policy_id, opts = {}) ⇒ Response
Provision audit policy.
-
#purge_sql_collection_logs(sql_collection_id, opts = {}) ⇒ Response
Purge the SQL collection logs for the specified SqlCollection.
-
#refresh_database_security_configuration(database_security_config_id, opts = {}) ⇒ Response
Refreshes the specified database security configuration.
-
#refresh_security_assessment(security_assessment_id, run_security_assessment_details, opts = {}) ⇒ Response
Runs a security assessment, refreshes the latest assessment, and saves it for future reference.
-
#refresh_sql_collection_log_insights(sql_collection_id, opts = {}) ⇒ Response
Refresh the specified SQL collection Log Insights.
-
#refresh_target_database(target_database_id, opts = {}) ⇒ Response
Refreshes the Data Safe target database to update it's state.
-
#refresh_user_assessment(user_assessment_id, run_user_assessment_details, opts = {}) ⇒ Response
Refreshes the latest assessment and saves it for future reference.
-
#remove_schedule_report(report_definition_id, opts = {}) ⇒ Response
Deletes the schedule of a .xls or .pdf report.
-
#resume_audit_trail(audit_trail_id, opts = {}) ⇒ Response
Resumes the specified audit trail once it got stopped.
-
#resume_work_request(work_request_id, opts = {}) ⇒ Response
Resume the given work request.
-
#retrieve_audit_policies(audit_policy_id, opts = {}) ⇒ Response
Retrieves the audit policy details from the source target database.
-
#schedule_report(report_definition_id, schedule_report_details, opts = {}) ⇒ Response
Schedules a .xls or .pdf report based on parameters and report definition.
-
#set_security_assessment_baseline(security_assessment_id, opts = {}) ⇒ Response
Sets the saved security assessment as the baseline in the compartment where the the specified assessment resides.
-
#set_user_assessment_baseline(user_assessment_id, opts = {}) ⇒ Response
Sets the saved user assessment as the baseline in the compartment where the specified assessment resides.
-
#start_audit_trail(start_audit_trail_details, audit_trail_id, opts = {}) ⇒ Response
Starts collection of audit records on the specified audit trail.
-
#start_sql_collection(sql_collection_id, opts = {}) ⇒ Response
Start the specified SQL collection.
-
#stop_audit_trail(audit_trail_id, opts = {}) ⇒ Response
Stops the specified audit trail.
-
#stop_sql_collection(sql_collection_id, opts = {}) ⇒ Response
Stops the specified SQL collection.
-
#suspend_work_request(work_request_id, opts = {}) ⇒ Response
Suspend the given work request.
-
#unset_security_assessment_baseline(security_assessment_id, opts = {}) ⇒ Response
Removes the baseline setting for the saved security assessment associated with the targetId passed via body.
-
#unset_user_assessment_baseline(user_assessment_id, opts = {}) ⇒ Response
Removes the baseline setting for the saved user assessment associated with the targetId passed via body.
-
#update_alert(alert_id, update_alert_details, opts = {}) ⇒ Response
Updates the status of the specified alert.
-
#update_alert_policy(alert_policy_id, update_alert_policy_details, opts = {}) ⇒ Response
Updates the specified alert policy .
-
#update_alert_policy_rule(alert_policy_id, rule_key, update_alert_policy_rule_details, opts = {}) ⇒ Response
Updates the specified alert policy rule.
-
#update_audit_archive_retrieval(audit_archive_retrieval_id, update_audit_archive_retrieval_details, opts = {}) ⇒ Response
Updates the audit archive retrieval.
-
#update_audit_policy(audit_policy_id, update_audit_policy_details, opts = {}) ⇒ Response
Updates the audit policy.
-
#update_audit_profile(audit_profile_id, update_audit_profile_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified audit profile.
-
#update_audit_trail(audit_trail_id, update_audit_trail_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified audit trail.
-
#update_data_safe_private_endpoint(data_safe_private_endpoint_id, update_data_safe_private_endpoint_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified Data Safe private endpoint.
-
#update_database_security_config(database_security_config_id, update_database_security_config_details, opts = {}) ⇒ Response
Updates the database security configuration.
-
#update_finding(security_assessment_id, finding_key, update_finding_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified finding.
-
#update_library_masking_format(library_masking_format_id, update_library_masking_format_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified library masking format.
-
#update_masking_column(masking_column_key, masking_policy_id, update_masking_column_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified masking column.
-
#update_masking_policy(masking_policy_id, update_masking_policy_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified masking policy.
-
#update_on_prem_connector(on_prem_connector_id, update_on_prem_connector_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified on-premises connector.
-
#update_on_prem_connector_wallet(update_on_prem_connector_wallet_details, on_prem_connector_id, opts = {}) ⇒ Response
Updates the wallet for the specified on-premises connector to a new version.
-
#update_peer_target_database(target_database_id, peer_target_database_id, update_peer_target_database_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified Data Safe peer target database.
-
#update_report(report_id, update_report_details, opts = {}) ⇒ Response
Updates the specified report.
-
#update_report_definition(report_definition_id, update_report_definition_details, opts = {}) ⇒ Response
Updates the specified report definition.
-
#update_sdm_masking_policy_difference(sdm_masking_policy_difference_id, update_sdm_masking_policy_difference_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified sdm masking policy difference.
-
#update_security_assessment(security_assessment_id, update_security_assessment_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified security assessment.
-
#update_security_policy(security_policy_id, update_security_policy_details, opts = {}) ⇒ Response
Updates the security policy.
-
#update_security_policy_deployment(security_policy_deployment_id, update_security_policy_deployment_details, opts = {}) ⇒ Response
Updates the security policy deployment.
-
#update_sensitive_column(sensitive_data_model_id, sensitive_column_key, update_sensitive_column_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified sensitive column.
-
#update_sensitive_data_model(sensitive_data_model_id, update_sensitive_data_model_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified sensitive data model.
-
#update_sensitive_type(sensitive_type_id, update_sensitive_type_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified sensitive type.
-
#update_sensitive_type_group(sensitive_type_group_id, update_sensitive_type_group_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified sensitive type group.
-
#update_sensitive_types_export(sensitive_types_export_id, update_sensitive_types_export_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified sensitive types export.
-
#update_sql_collection(sql_collection_id, update_sql_collection_details, opts = {}) ⇒ Response
Updates the SQL collection.
-
#update_sql_firewall_policy(sql_firewall_policy_id, update_sql_firewall_policy_details, opts = {}) ⇒ Response
Updates the SQL Firewall policy.
-
#update_target_alert_policy_association(target_alert_policy_association_id, update_target_alert_policy_association_details, opts = {}) ⇒ Response
Updates the specified target-alert policy association.
-
#update_target_database(target_database_id, update_target_database_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified Data Safe target database.
-
#update_user_assessment(user_assessment_id, update_user_assessment_details, opts = {}) ⇒ Response
Updates one or more attributes of the specified user assessment.
-
#upload_masking_policy(upload_masking_policy_details, masking_policy_id, opts = {}) ⇒ Response
Uploads a masking policy file (also called template) to update the specified masking policy.
-
#upload_sensitive_data_model(sensitive_data_model_id, upload_sensitive_data_model_details, opts = {}) ⇒ Response
Uploads a sensitive data model file (also called template) to update the specified sensitive data model.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ DataSafeClient
Creates a new DataSafeClient. Notes: If a config is not specified, then the global OCI.config will be used.
This client is not thread-safe
Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the region. A region may be specified in the config or via or the region parameter. If specified in both, then the region parameter will be used.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 55 def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers) # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then # pass it to this constructor. # # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid # so try and load the config from the default file. config = OCI::Config.validate_and_build_config_with_signer(config, signer) signer = OCI::Signer.config_file_auth_builder(config) if signer.nil? @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings) @retry_config = retry_config if endpoint @endpoint = endpoint + '/20181201' else region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end logger.info "DataSafeClient endpoint set to '#{@endpoint}'." if logger end |
Instance Attribute Details
#api_client ⇒ OCI::ApiClient (readonly)
Client used to make HTTP requests.
15 16 17 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
19 20 21 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 19 def endpoint @endpoint end |
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
29 30 31 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 29 def region @region end |
#retry_config ⇒ OCI::Retry::RetryConfig (readonly)
The default retry configuration to apply to all operations in this service client. This can be overridden on a per-operation basis. The default retry configuration value is nil
, which means that an operation will not perform any retries
25 26 27 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 25 def retry_config @retry_config end |
Instance Method Details
#activate_target_database(activate_target_database_details, target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use activate_target_database API.
Reactivates a previously deactivated Data Safe target database.
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 124 def activate_target_database(activate_target_database_details, target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#activate_target_database.' if logger raise "Missing the required parameter 'activate_target_database_details' when calling activate_target_database." if activate_target_database_details.nil? raise "Missing the required parameter 'target_database_id' when calling activate_target_database." if target_database_id.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}/actions/activate'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(activate_target_database_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#activate_target_database') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#add_masking_columns_from_sdm(masking_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use add_masking_columns_from_sdm API.
Adds columns to the specified masking policy from the associated sensitive data model. It automatically pulls all the sensitive columns and their relationships from the sensitive data model and uses this information to create columns in the masking policy. It also assigns default masking formats to these columns based on the associated sensitive types.
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 191 def add_masking_columns_from_sdm(masking_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#add_masking_columns_from_sdm.' if logger raise "Missing the required parameter 'masking_policy_id' when calling add_masking_columns_from_sdm." if masking_policy_id.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/actions/addMaskingColumnsFromSdm'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#add_masking_columns_from_sdm') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#alerts_update(alerts_update_details, opts = {}) ⇒ Response
Click here to see an example of how to use alerts_update API.
Updates alerts in the specified compartment.
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 265 def alerts_update(alerts_update_details, opts = {}) logger.debug 'Calling operation DataSafeClient#alerts_update.' if logger raise "Missing the required parameter 'alerts_update_details' when calling alerts_update." if alerts_update_details.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/alerts/actions/updateAll' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(alerts_update_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#alerts_update') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#apply_discovery_job_results(sensitive_data_model_id, apply_discovery_job_results_details, opts = {}) ⇒ Response
Click here to see an example of how to use apply_discovery_job_results API.
Applies the results of a discovery job to the specified sensitive data model. Note that the plannedAction attribute of discovery results is used for processing them. You should first use PatchDiscoveryJobResults to set the plannedAction attribute of the discovery results you want to process. ApplyDiscoveryJobResults automatically reads the plannedAction attribute and updates the sensitive data model to reflect the actions you planned.
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 337 def apply_discovery_job_results(sensitive_data_model_id, apply_discovery_job_results_details, opts = {}) logger.debug 'Calling operation DataSafeClient#apply_discovery_job_results.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling apply_discovery_job_results." if sensitive_data_model_id.nil? raise "Missing the required parameter 'apply_discovery_job_results_details' when calling apply_discovery_job_results." if apply_discovery_job_results_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns/actions/applyDiscoveryJobResults'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(apply_discovery_job_results_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#apply_discovery_job_results') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#apply_sdm_masking_policy_difference(masking_policy_id, apply_sdm_masking_policy_difference_details, opts = {}) ⇒ Response
Click here to see an example of how to use apply_sdm_masking_policy_difference API.
Applies the difference of a SDM Masking policy difference resource to the specified masking policy. Note that the plannedAction attribute of difference columns is used for processing. You should first use PatchSdmMaskingPolicyDifferenceColumns to set the plannedAction attribute of the difference columns you want to process. ApplySdmMaskingPolicyDifference automatically reads the plannedAction attribute and updates the masking policy to reflect the actions you planned. If the sdmMaskingPolicydifferenceId is not passed, the latest sdmMaskingPolicydifference is used. Note that if the masking policy associated with the SdmMaskingPolicyDifference used for this operation is not associated with the original SDM anymore, this operation won't be allowed.
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 410 def apply_sdm_masking_policy_difference(masking_policy_id, apply_sdm_masking_policy_difference_details, opts = {}) logger.debug 'Calling operation DataSafeClient#apply_sdm_masking_policy_difference.' if logger raise "Missing the required parameter 'masking_policy_id' when calling apply_sdm_masking_policy_difference." if masking_policy_id.nil? raise "Missing the required parameter 'apply_sdm_masking_policy_difference_details' when calling apply_sdm_masking_policy_difference." if apply_sdm_masking_policy_difference_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/maskingColumns/actions/applyDifferenceToMaskingColumns'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(apply_sdm_masking_policy_difference_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#apply_sdm_masking_policy_difference') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#bulk_create_sensitive_types(bulk_create_sensitive_types_details, opc_compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use bulk_create_sensitive_types API.
Uploads a sensitive types xml file (also called template) to create new sensitive types.
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 469 def bulk_create_sensitive_types(bulk_create_sensitive_types_details, opc_compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#bulk_create_sensitive_types.' if logger raise "Missing the required parameter 'bulk_create_sensitive_types_details' when calling bulk_create_sensitive_types." if bulk_create_sensitive_types_details.nil? raise "Missing the required parameter 'opc_compartment_id' when calling bulk_create_sensitive_types." if opc_compartment_id.nil? path = '/sensitiveTypes/actions/bulkCreateSensitiveTypes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'opc-compartment-id'] = opc_compartment_id header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'content-type'] ||= 'application/octet-stream' post_body = @api_client.object_to_http_body(bulk_create_sensitive_types_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#bulk_create_sensitive_types') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#bulk_create_sql_firewall_allowed_sqls(bulk_create_sql_firewall_allowed_sqls_details, opts = {}) ⇒ Response
Click here to see an example of how to use bulk_create_sql_firewall_allowed_sqls API.
Appends the allowedSqls with entries from the logs.
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 528 def bulk_create_sql_firewall_allowed_sqls(bulk_create_sql_firewall_allowed_sqls_details, opts = {}) logger.debug 'Calling operation DataSafeClient#bulk_create_sql_firewall_allowed_sqls.' if logger raise "Missing the required parameter 'bulk_create_sql_firewall_allowed_sqls_details' when calling bulk_create_sql_firewall_allowed_sqls." if bulk_create_sql_firewall_allowed_sqls_details.nil? path = '/sqlFirewallAllowedSqls/actions/bulkCreate' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(bulk_create_sql_firewall_allowed_sqls_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#bulk_create_sql_firewall_allowed_sqls') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#bulk_delete_sql_firewall_allowed_sqls(bulk_delete_sql_firewall_allowed_sqls_details, opts = {}) ⇒ Response
Click here to see an example of how to use bulk_delete_sql_firewall_allowed_sqls API.
Delete multiple allowed sqls from the SQL firewall policy.
582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 582 def bulk_delete_sql_firewall_allowed_sqls(bulk_delete_sql_firewall_allowed_sqls_details, opts = {}) logger.debug 'Calling operation DataSafeClient#bulk_delete_sql_firewall_allowed_sqls.' if logger raise "Missing the required parameter 'bulk_delete_sql_firewall_allowed_sqls_details' when calling bulk_delete_sql_firewall_allowed_sqls." if bulk_delete_sql_firewall_allowed_sqls_details.nil? path = '/sqlFirewallAllowedSqls/actions/bulkDelete' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(bulk_delete_sql_firewall_allowed_sqls_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#bulk_delete_sql_firewall_allowed_sqls') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#calculate_audit_volume_available(audit_profile_id, calculate_audit_volume_available_details, opts = {}) ⇒ Response
Click here to see an example of how to use calculate_audit_volume_available API.
Calculates the volume of audit events available on the target database to be collected. Measurable up to the defined retention period of the audit target resource.
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 646 def calculate_audit_volume_available(audit_profile_id, calculate_audit_volume_available_details, opts = {}) logger.debug 'Calling operation DataSafeClient#calculate_audit_volume_available.' if logger raise "Missing the required parameter 'audit_profile_id' when calling calculate_audit_volume_available." if audit_profile_id.nil? raise "Missing the required parameter 'calculate_audit_volume_available_details' when calling calculate_audit_volume_available." if calculate_audit_volume_available_details.nil? raise "Parameter value for 'audit_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_profile_id) path = '/auditProfiles/{auditProfileId}/actions/calculateAuditVolumeAvailable'.sub('{auditProfileId}', audit_profile_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(calculate_audit_volume_available_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#calculate_audit_volume_available') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#calculate_audit_volume_collected(audit_profile_id, calculate_audit_volume_collected_details, opts = {}) ⇒ Response
Click here to see an example of how to use calculate_audit_volume_collected API.
Calculates the volume of audit events collected by data safe.
715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 715 def calculate_audit_volume_collected(audit_profile_id, calculate_audit_volume_collected_details, opts = {}) logger.debug 'Calling operation DataSafeClient#calculate_audit_volume_collected.' if logger raise "Missing the required parameter 'audit_profile_id' when calling calculate_audit_volume_collected." if audit_profile_id.nil? raise "Missing the required parameter 'calculate_audit_volume_collected_details' when calling calculate_audit_volume_collected." if calculate_audit_volume_collected_details.nil? raise "Parameter value for 'audit_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_profile_id) path = '/auditProfiles/{auditProfileId}/actions/calculateAuditVolumeCollected'.sub('{auditProfileId}', audit_profile_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(calculate_audit_volume_collected_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#calculate_audit_volume_collected') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#cancel_work_request(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use cancel_work_request API.
Cancel the specified work request.
784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 784 def cancel_work_request(work_request_id, opts = {}) logger.debug 'Calling operation DataSafeClient#cancel_work_request.' if logger raise "Missing the required parameter 'work_request_id' when calling cancel_work_request." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#cancel_work_request') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_alert_compartment(alert_id, change_alert_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_alert_compartment API.
Moves the specified alert into a different compartment.
852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 852 def change_alert_compartment(alert_id, change_alert_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_alert_compartment.' if logger raise "Missing the required parameter 'alert_id' when calling change_alert_compartment." if alert_id.nil? raise "Missing the required parameter 'change_alert_compartment_details' when calling change_alert_compartment." if change_alert_compartment_details.nil? raise "Parameter value for 'alert_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_id) path = '/alerts/{alertId}/actions/changeCompartment'.sub('{alertId}', alert_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_alert_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_alert_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_alert_policy_compartment(alert_policy_id, change_alert_policy_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_alert_policy_compartment API.
Moves the specified alert policy into a different compartment.
921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 921 def change_alert_policy_compartment(alert_policy_id, change_alert_policy_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_alert_policy_compartment.' if logger raise "Missing the required parameter 'alert_policy_id' when calling change_alert_policy_compartment." if alert_policy_id.nil? raise "Missing the required parameter 'change_alert_policy_compartment_details' when calling change_alert_policy_compartment." if change_alert_policy_compartment_details.nil? raise "Parameter value for 'alert_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_policy_id) path = '/alertPolicies/{alertPolicyId}/actions/changeCompartment'.sub('{alertPolicyId}', alert_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_alert_policy_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_alert_policy_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_audit_archive_retrieval_compartment(audit_archive_retrieval_id, change_audit_archive_retrieval_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_audit_archive_retrieval_compartment API.
Moves the archive retreival to the specified compartment. When provided, if-Match is checked against ETag value of the resource.
991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 991 def change_audit_archive_retrieval_compartment(audit_archive_retrieval_id, change_audit_archive_retrieval_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_audit_archive_retrieval_compartment.' if logger raise "Missing the required parameter 'audit_archive_retrieval_id' when calling change_audit_archive_retrieval_compartment." if audit_archive_retrieval_id.nil? raise "Missing the required parameter 'change_audit_archive_retrieval_compartment_details' when calling change_audit_archive_retrieval_compartment." if change_audit_archive_retrieval_compartment_details.nil? raise "Parameter value for 'audit_archive_retrieval_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_archive_retrieval_id) path = '/auditArchiveRetrievals/{auditArchiveRetrievalId}/actions/changeCompartment'.sub('{auditArchiveRetrievalId}', audit_archive_retrieval_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_audit_archive_retrieval_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_audit_archive_retrieval_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_audit_policy_compartment(audit_policy_id, change_audit_policy_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_audit_policy_compartment API.
Moves the specified audit policy and its dependent resources into a different compartment.
1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1060 def change_audit_policy_compartment(audit_policy_id, change_audit_policy_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_audit_policy_compartment.' if logger raise "Missing the required parameter 'audit_policy_id' when calling change_audit_policy_compartment." if audit_policy_id.nil? raise "Missing the required parameter 'change_audit_policy_compartment_details' when calling change_audit_policy_compartment." if change_audit_policy_compartment_details.nil? raise "Parameter value for 'audit_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_policy_id) path = '/auditPolicies/{auditPolicyId}/actions/changeCompartment'.sub('{auditPolicyId}', audit_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_audit_policy_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_audit_policy_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_audit_profile_compartment(audit_profile_id, change_audit_profile_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_audit_profile_compartment API.
Moves the specified audit profile and its dependent resources into a different compartment.
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1129 def change_audit_profile_compartment(audit_profile_id, change_audit_profile_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_audit_profile_compartment.' if logger raise "Missing the required parameter 'audit_profile_id' when calling change_audit_profile_compartment." if audit_profile_id.nil? raise "Missing the required parameter 'change_audit_profile_compartment_details' when calling change_audit_profile_compartment." if change_audit_profile_compartment_details.nil? raise "Parameter value for 'audit_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_profile_id) path = '/auditProfiles/{auditProfileId}/actions/changeCompartment'.sub('{auditProfileId}', audit_profile_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_audit_profile_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_audit_profile_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_data_safe_private_endpoint_compartment(data_safe_private_endpoint_id, change_data_safe_private_endpoint_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_data_safe_private_endpoint_compartment API.
Moves the Data Safe private endpoint and its dependent resources to the specified compartment.
1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1193 def change_data_safe_private_endpoint_compartment(data_safe_private_endpoint_id, change_data_safe_private_endpoint_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_data_safe_private_endpoint_compartment.' if logger raise "Missing the required parameter 'data_safe_private_endpoint_id' when calling change_data_safe_private_endpoint_compartment." if data_safe_private_endpoint_id.nil? raise "Missing the required parameter 'change_data_safe_private_endpoint_compartment_details' when calling change_data_safe_private_endpoint_compartment." if change_data_safe_private_endpoint_compartment_details.nil? raise "Parameter value for 'data_safe_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(data_safe_private_endpoint_id) path = '/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}/actions/changeCompartment'.sub('{dataSafePrivateEndpointId}', data_safe_private_endpoint_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(change_data_safe_private_endpoint_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_data_safe_private_endpoint_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_database_security_config_compartment(database_security_config_id, change_database_security_config_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_database_security_config_compartment API.
Moves the specified database security configuration and its dependent resources into a different compartment.
1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1260 def change_database_security_config_compartment(database_security_config_id, change_database_security_config_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_database_security_config_compartment.' if logger raise "Missing the required parameter 'database_security_config_id' when calling change_database_security_config_compartment." if database_security_config_id.nil? raise "Missing the required parameter 'change_database_security_config_compartment_details' when calling change_database_security_config_compartment." if change_database_security_config_compartment_details.nil? raise "Parameter value for 'database_security_config_id' must not be blank" if OCI::Internal::Util.blank_string?(database_security_config_id) path = '/databaseSecurityConfigs/{databaseSecurityConfigId}/actions/changeCompartment'.sub('{databaseSecurityConfigId}', database_security_config_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_database_security_config_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_database_security_config_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_discovery_job_compartment(discovery_job_id, change_discovery_job_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_discovery_job_compartment API.
Moves the specified discovery job and its dependent resources into a different compartment.
1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1329 def change_discovery_job_compartment(discovery_job_id, change_discovery_job_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_discovery_job_compartment.' if logger raise "Missing the required parameter 'discovery_job_id' when calling change_discovery_job_compartment." if discovery_job_id.nil? raise "Missing the required parameter 'change_discovery_job_compartment_details' when calling change_discovery_job_compartment." if change_discovery_job_compartment_details.nil? raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id) path = '/discoveryJobs/{discoveryJobId}/actions/changeCompartment'.sub('{discoveryJobId}', discovery_job_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_discovery_job_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_discovery_job_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_library_masking_format_compartment(library_masking_format_id, change_library_masking_format_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_library_masking_format_compartment API.
Moves the specified library masking format into a different compartment.
1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1398 def change_library_masking_format_compartment(library_masking_format_id, change_library_masking_format_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_library_masking_format_compartment.' if logger raise "Missing the required parameter 'library_masking_format_id' when calling change_library_masking_format_compartment." if library_masking_format_id.nil? raise "Missing the required parameter 'change_library_masking_format_compartment_details' when calling change_library_masking_format_compartment." if change_library_masking_format_compartment_details.nil? raise "Parameter value for 'library_masking_format_id' must not be blank" if OCI::Internal::Util.blank_string?(library_masking_format_id) path = '/libraryMaskingFormats/{libraryMaskingFormatId}/actions/changeCompartment'.sub('{libraryMaskingFormatId}', library_masking_format_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_library_masking_format_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_library_masking_format_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_masking_policy_compartment(masking_policy_id, change_masking_policy_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_masking_policy_compartment API.
Moves the specified masking policy and its dependent resources into a different compartment.
1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1467 def change_masking_policy_compartment(masking_policy_id, change_masking_policy_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_masking_policy_compartment.' if logger raise "Missing the required parameter 'masking_policy_id' when calling change_masking_policy_compartment." if masking_policy_id.nil? raise "Missing the required parameter 'change_masking_policy_compartment_details' when calling change_masking_policy_compartment." if change_masking_policy_compartment_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/actions/changeCompartment'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_masking_policy_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_masking_policy_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_masking_policy_health_report_compartment(masking_policy_health_report_id, change_masking_policy_health_report_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_masking_policy_health_report_compartment API.
Moves the specified masking policy health report and its dependent resources into a different compartment.
1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1536 def change_masking_policy_health_report_compartment(masking_policy_health_report_id, change_masking_policy_health_report_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_masking_policy_health_report_compartment.' if logger raise "Missing the required parameter 'masking_policy_health_report_id' when calling change_masking_policy_health_report_compartment." if masking_policy_health_report_id.nil? raise "Missing the required parameter 'change_masking_policy_health_report_compartment_details' when calling change_masking_policy_health_report_compartment." if change_masking_policy_health_report_compartment_details.nil? raise "Parameter value for 'masking_policy_health_report_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_health_report_id) path = '/maskingPolicyHealthReports/{maskingPolicyHealthReportId}/actions/changeCompartment'.sub('{maskingPolicyHealthReportId}', masking_policy_health_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_masking_policy_health_report_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_masking_policy_health_report_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_on_prem_connector_compartment(on_prem_connector_id, change_on_prem_connector_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_on_prem_connector_compartment API.
Moves the specified on-premises connector into a different compartment.
1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1605 def change_on_prem_connector_compartment(on_prem_connector_id, change_on_prem_connector_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_on_prem_connector_compartment.' if logger raise "Missing the required parameter 'on_prem_connector_id' when calling change_on_prem_connector_compartment." if on_prem_connector_id.nil? raise "Missing the required parameter 'change_on_prem_connector_compartment_details' when calling change_on_prem_connector_compartment." if change_on_prem_connector_compartment_details.nil? raise "Parameter value for 'on_prem_connector_id' must not be blank" if OCI::Internal::Util.blank_string?(on_prem_connector_id) path = '/onPremConnectors/{onPremConnectorId}/actions/changeCompartment'.sub('{onPremConnectorId}', on_prem_connector_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_on_prem_connector_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_on_prem_connector_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_report_compartment(report_id, change_report_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_report_compartment API.
Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1674 def change_report_compartment(report_id, change_report_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_report_compartment.' if logger raise "Missing the required parameter 'report_id' when calling change_report_compartment." if report_id.nil? raise "Missing the required parameter 'change_report_compartment_details' when calling change_report_compartment." if change_report_compartment_details.nil? raise "Parameter value for 'report_id' must not be blank" if OCI::Internal::Util.blank_string?(report_id) path = '/reports/{reportId}/actions/changeCompartment'.sub('{reportId}', report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_report_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_report_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_report_definition_compartment(report_definition_id, change_report_definition_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_report_definition_compartment API.
Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1743 def change_report_definition_compartment(report_definition_id, change_report_definition_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_report_definition_compartment.' if logger raise "Missing the required parameter 'report_definition_id' when calling change_report_definition_compartment." if report_definition_id.nil? raise "Missing the required parameter 'change_report_definition_compartment_details' when calling change_report_definition_compartment." if change_report_definition_compartment_details.nil? raise "Parameter value for 'report_definition_id' must not be blank" if OCI::Internal::Util.blank_string?(report_definition_id) path = '/reportDefinitions/{reportDefinitionId}/actions/changeCompartment'.sub('{reportDefinitionId}', report_definition_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_report_definition_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_report_definition_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_retention(audit_profile_id, change_retention_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_retention API.
Change the online and offline months .
1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1812 def change_retention(audit_profile_id, change_retention_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_retention.' if logger raise "Missing the required parameter 'audit_profile_id' when calling change_retention." if audit_profile_id.nil? raise "Missing the required parameter 'change_retention_details' when calling change_retention." if change_retention_details.nil? raise "Parameter value for 'audit_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_profile_id) path = '/auditProfiles/{auditProfileId}/actions/changeRetention'.sub('{auditProfileId}', audit_profile_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_retention_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_retention') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_sdm_masking_policy_difference_compartment(sdm_masking_policy_difference_id, change_sdm_masking_policy_difference_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_sdm_masking_policy_difference_compartment API.
Moves the specified SDM masking policy difference into a different compartment.
1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1881 def change_sdm_masking_policy_difference_compartment(sdm_masking_policy_difference_id, change_sdm_masking_policy_difference_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_sdm_masking_policy_difference_compartment.' if logger raise "Missing the required parameter 'sdm_masking_policy_difference_id' when calling change_sdm_masking_policy_difference_compartment." if sdm_masking_policy_difference_id.nil? raise "Missing the required parameter 'change_sdm_masking_policy_difference_compartment_details' when calling change_sdm_masking_policy_difference_compartment." if change_sdm_masking_policy_difference_compartment_details.nil? raise "Parameter value for 'sdm_masking_policy_difference_id' must not be blank" if OCI::Internal::Util.blank_string?(sdm_masking_policy_difference_id) path = '/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}/actions/changeCompartment'.sub('{sdmMaskingPolicyDifferenceId}', sdm_masking_policy_difference_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_sdm_masking_policy_difference_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_sdm_masking_policy_difference_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_security_assessment_compartment(security_assessment_id, change_security_assessment_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_security_assessment_compartment API.
Moves the specified saved security assessment or future scheduled assessments into a different compartment.
To start, call first the operation ListSecurityAssessments with filters "type = save_schedule". This returns the scheduleAssessmentId. Then, call this changeCompartment with the scheduleAssessmentId.
The existing saved security assessments created due to the schedule are not moved. However, all new saves will be associated with the new compartment.
1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 1955 def change_security_assessment_compartment(security_assessment_id, change_security_assessment_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_security_assessment_compartment.' if logger raise "Missing the required parameter 'security_assessment_id' when calling change_security_assessment_compartment." if security_assessment_id.nil? raise "Missing the required parameter 'change_security_assessment_compartment_details' when calling change_security_assessment_compartment." if change_security_assessment_compartment_details.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}/actions/changeCompartment'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_security_assessment_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_security_assessment_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_security_policy_compartment(security_policy_id, change_security_policy_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_security_policy_compartment API.
Moves the specified security policy and its dependent resources into a different compartment.
2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2024 def change_security_policy_compartment(security_policy_id, change_security_policy_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_security_policy_compartment.' if logger raise "Missing the required parameter 'security_policy_id' when calling change_security_policy_compartment." if security_policy_id.nil? raise "Missing the required parameter 'change_security_policy_compartment_details' when calling change_security_policy_compartment." if change_security_policy_compartment_details.nil? raise "Parameter value for 'security_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_id) path = '/securityPolicies/{securityPolicyId}/actions/changeCompartment'.sub('{securityPolicyId}', security_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_security_policy_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_security_policy_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_security_policy_deployment_compartment(security_policy_deployment_id, change_security_policy_deployment_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_security_policy_deployment_compartment API.
Moves the specified security policy deployment and its dependent resources into a different compartment.
2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2093 def change_security_policy_deployment_compartment(security_policy_deployment_id, change_security_policy_deployment_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_security_policy_deployment_compartment.' if logger raise "Missing the required parameter 'security_policy_deployment_id' when calling change_security_policy_deployment_compartment." if security_policy_deployment_id.nil? raise "Missing the required parameter 'change_security_policy_deployment_compartment_details' when calling change_security_policy_deployment_compartment." if change_security_policy_deployment_compartment_details.nil? raise "Parameter value for 'security_policy_deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_deployment_id) path = '/securityPolicyDeployments/{securityPolicyDeploymentId}/actions/changeCompartment'.sub('{securityPolicyDeploymentId}', security_policy_deployment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_security_policy_deployment_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_security_policy_deployment_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_sensitive_data_model_compartment(sensitive_data_model_id, change_sensitive_data_model_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_sensitive_data_model_compartment API.
Moves the specified sensitive data model and its dependent resources into a different compartment.
2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2162 def change_sensitive_data_model_compartment(sensitive_data_model_id, change_sensitive_data_model_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_sensitive_data_model_compartment.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling change_sensitive_data_model_compartment." if sensitive_data_model_id.nil? raise "Missing the required parameter 'change_sensitive_data_model_compartment_details' when calling change_sensitive_data_model_compartment." if change_sensitive_data_model_compartment_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/actions/changeCompartment'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_sensitive_data_model_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_sensitive_data_model_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_sensitive_type_compartment(sensitive_type_id, change_sensitive_type_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_sensitive_type_compartment API.
Moves the specified sensitive type into a different compartment.
2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2231 def change_sensitive_type_compartment(sensitive_type_id, change_sensitive_type_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_sensitive_type_compartment.' if logger raise "Missing the required parameter 'sensitive_type_id' when calling change_sensitive_type_compartment." if sensitive_type_id.nil? raise "Missing the required parameter 'change_sensitive_type_compartment_details' when calling change_sensitive_type_compartment." if change_sensitive_type_compartment_details.nil? raise "Parameter value for 'sensitive_type_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_type_id) path = '/sensitiveTypes/{sensitiveTypeId}/actions/changeCompartment'.sub('{sensitiveTypeId}', sensitive_type_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_sensitive_type_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_sensitive_type_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_sensitive_type_group_compartment(sensitive_type_group_id, change_sensitive_type_group_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_sensitive_type_group_compartment API.
Moves the sensitive type group to the specified compartment.
2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2300 def change_sensitive_type_group_compartment(sensitive_type_group_id, change_sensitive_type_group_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_sensitive_type_group_compartment.' if logger raise "Missing the required parameter 'sensitive_type_group_id' when calling change_sensitive_type_group_compartment." if sensitive_type_group_id.nil? raise "Missing the required parameter 'change_sensitive_type_group_compartment_details' when calling change_sensitive_type_group_compartment." if change_sensitive_type_group_compartment_details.nil? raise "Parameter value for 'sensitive_type_group_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_type_group_id) path = '/sensitiveTypeGroups/{sensitiveTypeGroupId}/actions/changeCompartment'.sub('{sensitiveTypeGroupId}', sensitive_type_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_sensitive_type_group_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_sensitive_type_group_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_sensitive_types_export_compartment(sensitive_types_export_id, change_sensitive_types_export_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_sensitive_types_export_compartment API.
Moves the specified sensitive types export into a different compartment.
2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2369 def change_sensitive_types_export_compartment(sensitive_types_export_id, change_sensitive_types_export_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_sensitive_types_export_compartment.' if logger raise "Missing the required parameter 'sensitive_types_export_id' when calling change_sensitive_types_export_compartment." if sensitive_types_export_id.nil? raise "Missing the required parameter 'change_sensitive_types_export_compartment_details' when calling change_sensitive_types_export_compartment." if change_sensitive_types_export_compartment_details.nil? raise "Parameter value for 'sensitive_types_export_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_types_export_id) path = '/sensitiveTypesExports/{sensitiveTypesExportId}/actions/changeCompartment'.sub('{sensitiveTypesExportId}', sensitive_types_export_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_sensitive_types_export_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_sensitive_types_export_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_sql_collection_compartment(sql_collection_id, change_sql_collection_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_sql_collection_compartment API.
Moves the specified SQL collection and its dependent resources into a different compartment.
2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2438 def change_sql_collection_compartment(sql_collection_id, change_sql_collection_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_sql_collection_compartment.' if logger raise "Missing the required parameter 'sql_collection_id' when calling change_sql_collection_compartment." if sql_collection_id.nil? raise "Missing the required parameter 'change_sql_collection_compartment_details' when calling change_sql_collection_compartment." if change_sql_collection_compartment_details.nil? raise "Parameter value for 'sql_collection_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_collection_id) path = '/sqlCollections/{sqlCollectionId}/actions/changeCompartment'.sub('{sqlCollectionId}', sql_collection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_sql_collection_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_sql_collection_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_sql_firewall_policy_compartment(sql_firewall_policy_id, change_sql_firewall_policy_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_sql_firewall_policy_compartment API.
Moves the specified SQL Firewall policy and its dependent resources into a different compartment.
2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2507 def change_sql_firewall_policy_compartment(sql_firewall_policy_id, change_sql_firewall_policy_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_sql_firewall_policy_compartment.' if logger raise "Missing the required parameter 'sql_firewall_policy_id' when calling change_sql_firewall_policy_compartment." if sql_firewall_policy_id.nil? raise "Missing the required parameter 'change_sql_firewall_policy_compartment_details' when calling change_sql_firewall_policy_compartment." if change_sql_firewall_policy_compartment_details.nil? raise "Parameter value for 'sql_firewall_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_firewall_policy_id) path = '/sqlFirewallPolicies/{sqlFirewallPolicyId}/actions/changeCompartment'.sub('{sqlFirewallPolicyId}', sql_firewall_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_sql_firewall_policy_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_sql_firewall_policy_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_target_alert_policy_association_compartment(target_alert_policy_association_id, change_target_alert_policy_association_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_target_alert_policy_association_compartment API.
Moves the specified target-alert policy Association into a different compartment.
2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2576 def change_target_alert_policy_association_compartment(target_alert_policy_association_id, change_target_alert_policy_association_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_target_alert_policy_association_compartment.' if logger raise "Missing the required parameter 'target_alert_policy_association_id' when calling change_target_alert_policy_association_compartment." if target_alert_policy_association_id.nil? raise "Missing the required parameter 'change_target_alert_policy_association_compartment_details' when calling change_target_alert_policy_association_compartment." if change_target_alert_policy_association_compartment_details.nil? raise "Parameter value for 'target_alert_policy_association_id' must not be blank" if OCI::Internal::Util.blank_string?(target_alert_policy_association_id) path = '/targetAlertPolicyAssociations/{targetAlertPolicyAssociationId}/actions/changeCompartment'.sub('{targetAlertPolicyAssociationId}', target_alert_policy_association_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_target_alert_policy_association_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_target_alert_policy_association_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_target_database_compartment(target_database_id, change_target_database_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_target_database_compartment API.
Moves the Data Safe target database to the specified compartment.
2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2645 def change_target_database_compartment(target_database_id, change_target_database_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_target_database_compartment.' if logger raise "Missing the required parameter 'target_database_id' when calling change_target_database_compartment." if target_database_id.nil? raise "Missing the required parameter 'change_target_database_compartment_details' when calling change_target_database_compartment." if change_target_database_compartment_details.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}/actions/changeCompartment'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_target_database_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_target_database_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_user_assessment_compartment(user_assessment_id, change_user_assessment_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_user_assessment_compartment API.
Moves the specified saved user assessment or future scheduled assessments into a different compartment. To start storing scheduled user assessments on a different compartment, first call the operation ListUserAssessments with the filters "type = save_schedule". That call returns the scheduleAssessmentId. Then call ChangeUserAssessmentCompartment with the scheduleAssessmentId. The existing saved user assessments created per the schedule are not be moved. However, all new saves will be associated with the new compartment.
2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2719 def change_user_assessment_compartment(user_assessment_id, change_user_assessment_compartment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#change_user_assessment_compartment.' if logger raise "Missing the required parameter 'user_assessment_id' when calling change_user_assessment_compartment." if user_assessment_id.nil? raise "Missing the required parameter 'change_user_assessment_compartment_details' when calling change_user_assessment_compartment." if change_user_assessment_compartment_details.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/actions/changeCompartment'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_user_assessment_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#change_user_assessment_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#compare_security_assessment(security_assessment_id, compare_security_assessment_details, opts = {}) ⇒ Response
Click here to see an example of how to use compare_security_assessment API.
Compares two security assessments. For this comparison, a security assessment can be a saved assessment, a latest assessment, or a baseline assessment. For example, you can compare saved assessment or a latest assessment against a baseline.
2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2790 def compare_security_assessment(security_assessment_id, compare_security_assessment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#compare_security_assessment.' if logger raise "Missing the required parameter 'security_assessment_id' when calling compare_security_assessment." if security_assessment_id.nil? raise "Missing the required parameter 'compare_security_assessment_details' when calling compare_security_assessment." if compare_security_assessment_details.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}/actions/compare'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(compare_security_assessment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#compare_security_assessment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#compare_user_assessment(user_assessment_id, compare_user_assessment_details, opts = {}) ⇒ Response
Click here to see an example of how to use compare_user_assessment API.
Compares two user assessments. For this comparison, a user assessment can be a saved, a latest assessment, or a baseline. As an example, it can be used to compare a user assessment saved or a latest assessment with a baseline.
2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2861 def compare_user_assessment(user_assessment_id, compare_user_assessment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#compare_user_assessment.' if logger raise "Missing the required parameter 'user_assessment_id' when calling compare_user_assessment." if user_assessment_id.nil? raise "Missing the required parameter 'compare_user_assessment_details' when calling compare_user_assessment." if compare_user_assessment_details.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/actions/compare'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(compare_user_assessment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#compare_user_assessment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_alert_policy(create_alert_policy_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_alert_policy API.
Creates a new user-defined alert policy.
2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2924 def create_alert_policy(create_alert_policy_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_alert_policy.' if logger raise "Missing the required parameter 'create_alert_policy_details' when calling create_alert_policy." if create_alert_policy_details.nil? path = '/alertPolicies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_alert_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_alert_policy') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AlertPolicy' ) end # rubocop:enable Metrics/BlockLength end |
#create_alert_policy_rule(create_alert_policy_rule_details, alert_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use create_alert_policy_rule API.
Creates a new rule for the alert policy.
2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 2986 def create_alert_policy_rule(create_alert_policy_rule_details, alert_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#create_alert_policy_rule.' if logger raise "Missing the required parameter 'create_alert_policy_rule_details' when calling create_alert_policy_rule." if create_alert_policy_rule_details.nil? raise "Missing the required parameter 'alert_policy_id' when calling create_alert_policy_rule." if alert_policy_id.nil? raise "Parameter value for 'alert_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_policy_id) path = '/alertPolicies/{alertPolicyId}/rules'.sub('{alertPolicyId}', alert_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_alert_policy_rule_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_alert_policy_rule') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AlertPolicyRule' ) end # rubocop:enable Metrics/BlockLength end |
#create_audit_archive_retrieval(create_audit_archive_retrieval_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_audit_archive_retrieval API.
Creates a work request to retrieve archived audit data. This asynchronous process will usually take over an hour to complete. Save the id from the response of this operation. Call GetAuditArchiveRetrieval operation after an hour, passing the id to know the status of this operation.
3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3051 def create_audit_archive_retrieval(create_audit_archive_retrieval_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_audit_archive_retrieval.' if logger raise "Missing the required parameter 'create_audit_archive_retrieval_details' when calling create_audit_archive_retrieval." if create_audit_archive_retrieval_details.nil? path = '/auditArchiveRetrievals' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_audit_archive_retrieval_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_audit_archive_retrieval') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditArchiveRetrieval' ) end # rubocop:enable Metrics/BlockLength end |
#create_data_safe_private_endpoint(create_data_safe_private_endpoint_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_data_safe_private_endpoint API.
Creates a new Data Safe private endpoint.
3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3112 def create_data_safe_private_endpoint(create_data_safe_private_endpoint_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_data_safe_private_endpoint.' if logger raise "Missing the required parameter 'create_data_safe_private_endpoint_details' when calling create_data_safe_private_endpoint." if create_data_safe_private_endpoint_details.nil? path = '/dataSafePrivateEndpoints' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_data_safe_private_endpoint_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_data_safe_private_endpoint') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DataSafePrivateEndpoint' ) end # rubocop:enable Metrics/BlockLength end |
#create_discovery_job(create_discovery_job_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_discovery_job API.
Performs incremental data discovery for the specified sensitive data model. It uses the target database associated with the sensitive data model. After performing data discovery, you can use ListDiscoveryJobResults to view the discovery results, PatchDiscoveryJobResults to specify the action you want perform on these results, and then ApplyDiscoveryJobResults to process the results and apply them to the sensitive data model.
3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3177 def create_discovery_job(create_discovery_job_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_discovery_job.' if logger raise "Missing the required parameter 'create_discovery_job_details' when calling create_discovery_job." if create_discovery_job_details.nil? path = '/discoveryJobs' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_discovery_job_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_discovery_job') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DiscoveryJob' ) end # rubocop:enable Metrics/BlockLength end |
#create_library_masking_format(create_library_masking_format_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_library_masking_format API.
Creates a new library masking format. A masking format can have one or more format entries. The combined output of all the format entries is used for masking. It provides the flexibility to define a masking format that can generate different parts of a data value separately and then combine them to get the final data value for masking. Note that you cannot define masking condition in a library masking format.
3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3242 def create_library_masking_format(create_library_masking_format_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_library_masking_format.' if logger raise "Missing the required parameter 'create_library_masking_format_details' when calling create_library_masking_format." if create_library_masking_format_details.nil? path = '/libraryMaskingFormats' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_library_masking_format_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_library_masking_format') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::LibraryMaskingFormat' ) end # rubocop:enable Metrics/BlockLength end |
#create_masking_column(create_masking_column_details, masking_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use create_masking_column API.
Creates a new masking column in the specified masking policy. Use this operation to add parent columns only. It automatically adds the child columns from the associated sensitive data model or target database. If you provide the sensitiveTypeId attribute but not the maskingFormats attribute, it automatically assigns the default masking format associated with the specified sensitive type. Alternatively, if you provide the maskingFormats attribute, the specified masking formats are assigned to the column.
Using the maskingFormats attribute, you can assign one or more masking formats to a column. You need to specify a condition as part of each masking format. It enables you to do <a href="conditional“>docs.oracle.com/en/cloud/paas/data-safe/udscs/conditional-masking.html">conditional masking</a> so that you can mask the column data values differently using different masking conditions. A masking format can have one or more format entries. The combined output of all the format entries is used for masking. It provides the flexibility to define a masking format that can generate different parts of a data value separately and then combine them to get the final data value for masking.
You can use the maskingColumnGroup attribute to group the columns that you would like to mask together. It enables you to do <a href="group“>docs.oracle.com/en/cloud/paas/data-safe/udscs/group-masking1.html#GUID-755056B9-9540-48C0-9491-262A44A85037">group or compound masking</a> that ensures that the masked data across the columns in a group continue to retain the same logical relationship.
3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3323 def create_masking_column(create_masking_column_details, masking_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#create_masking_column.' if logger raise "Missing the required parameter 'create_masking_column_details' when calling create_masking_column." if create_masking_column_details.nil? raise "Missing the required parameter 'masking_policy_id' when calling create_masking_column." if masking_policy_id.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/maskingColumns'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_masking_column_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_masking_column') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_masking_policy(create_masking_policy_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_masking_policy API.
Creates a new masking policy and associates it with a sensitive data model or a target database.
To use a sensitive data model as the source of masking columns, set the columnSource attribute to SENSITIVE_DATA_MODEL and provide the sensitiveDataModelId attribute. After creating a masking policy, you can use the AddMaskingColumnsFromSdm operation to automatically add all the columns from the associated sensitive data model. In this case, the target database associated with the sensitive data model is used for column and masking format validations.
You can also create a masking policy without using a sensitive data model. In this case, you need to associate your masking policy with a target database by setting the columnSource attribute to TARGET and providing the targetId attribute. The specified target database is used for column and masking format validations.
After creating a masking policy, you can use the CreateMaskingColumn or PatchMaskingColumns operation to manually add columns to the policy. You need to add the parent columns only, and it automatically adds the child columns (in referential relationship with the parent columns) from the associated sensitive data model or target database.
3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3401 def create_masking_policy(create_masking_policy_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_masking_policy.' if logger raise "Missing the required parameter 'create_masking_policy_details' when calling create_masking_policy." if create_masking_policy_details.nil? path = '/maskingPolicies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_masking_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_masking_policy') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingPolicy' ) end # rubocop:enable Metrics/BlockLength end |
#create_on_prem_connector(create_on_prem_connector_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_on_prem_connector API.
Creates a new on-premises connector.
3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3462 def create_on_prem_connector(create_on_prem_connector_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_on_prem_connector.' if logger raise "Missing the required parameter 'create_on_prem_connector_details' when calling create_on_prem_connector." if create_on_prem_connector_details.nil? path = '/onPremConnectors' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_on_prem_connector_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_on_prem_connector') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::OnPremConnector' ) end # rubocop:enable Metrics/BlockLength end |
#create_peer_target_database(target_database_id, create_peer_target_database_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_peer_target_database API.
Creates the peer target database under the primary target database in Data Safe.
3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3529 def create_peer_target_database(target_database_id, create_peer_target_database_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_peer_target_database.' if logger raise "Missing the required parameter 'target_database_id' when calling create_peer_target_database." if target_database_id.nil? raise "Missing the required parameter 'create_peer_target_database_details' when calling create_peer_target_database." if create_peer_target_database_details.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}/peerTargetDatabases'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_peer_target_database_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_peer_target_database') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::PeerTargetDatabase' ) end # rubocop:enable Metrics/BlockLength end |
#create_referential_relation(sensitive_data_model_id, create_referential_relation_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_referential_relation API.
Creates a new referential relation in the specified sensitive data model.
3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3594 def create_referential_relation(sensitive_data_model_id, create_referential_relation_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_referential_relation.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling create_referential_relation." if sensitive_data_model_id.nil? raise "Missing the required parameter 'create_referential_relation_details' when calling create_referential_relation." if create_referential_relation_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_referential_relation_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_referential_relation') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_report_definition(create_report_definition_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_report_definition API.
Creates a new report definition with parameters specified in the body. The report definition is stored in the specified compartment.
3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3656 def create_report_definition(create_report_definition_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_report_definition.' if logger raise "Missing the required parameter 'create_report_definition_details' when calling create_report_definition." if create_report_definition_details.nil? path = '/reportDefinitions' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_report_definition_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_report_definition') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::ReportDefinition' ) end # rubocop:enable Metrics/BlockLength end |
#create_sdm_masking_policy_difference(create_sdm_masking_policy_difference_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_sdm_masking_policy_difference API.
Creates SDM masking policy difference for the specified masking policy. It finds the difference between masking columns of the masking policy and sensitive columns of the SDM. After performing this operation, you can use ListDifferenceColumns to view the difference columns, PatchSdmMaskingPolicyDifferenceColumns to specify the action you want perform on these columns, and then ApplySdmMaskingPolicyDifference to process the difference columns and apply them to the masking policy.
3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3721 def create_sdm_masking_policy_difference(create_sdm_masking_policy_difference_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_sdm_masking_policy_difference.' if logger raise "Missing the required parameter 'create_sdm_masking_policy_difference_details' when calling create_sdm_masking_policy_difference." if create_sdm_masking_policy_difference_details.nil? path = '/sdmMaskingPolicyDifferences' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_sdm_masking_policy_difference_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_sdm_masking_policy_difference') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SdmMaskingPolicyDifference' ) end # rubocop:enable Metrics/BlockLength end |
#create_security_assessment(create_security_assessment_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_security_assessment API.
Creates a new saved security assessment for one or multiple targets in a compartment. When this operation is performed, it will save the latest assessments in the specified compartment. If a schedule is passed, it will persist the latest assessments, at the defined date and time, in the format defined by RFC3339.
3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3784 def create_security_assessment(create_security_assessment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_security_assessment.' if logger raise "Missing the required parameter 'create_security_assessment_details' when calling create_security_assessment." if create_security_assessment_details.nil? path = '/securityAssessments' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_security_assessment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_security_assessment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityAssessment' ) end # rubocop:enable Metrics/BlockLength end |
#create_sensitive_column(sensitive_data_model_id, create_sensitive_column_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_sensitive_column API.
Creates a new sensitive column in the specified sensitive data model.
3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3846 def create_sensitive_column(sensitive_data_model_id, create_sensitive_column_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_sensitive_column.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling create_sensitive_column." if sensitive_data_model_id.nil? raise "Missing the required parameter 'create_sensitive_column_details' when calling create_sensitive_column." if create_sensitive_column_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_sensitive_column_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_sensitive_column') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_sensitive_data_model(create_sensitive_data_model_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_sensitive_data_model API.
Creates a new sensitive data model. If schemas and sensitive types are provided, it automatically runs data discovery and adds the discovered columns to the sensitive data model. Otherwise, it creates an empty sensitive data model that can be updated later.
3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3910 def create_sensitive_data_model(create_sensitive_data_model_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_sensitive_data_model.' if logger raise "Missing the required parameter 'create_sensitive_data_model_details' when calling create_sensitive_data_model." if create_sensitive_data_model_details.nil? path = '/sensitiveDataModels' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_sensitive_data_model_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_sensitive_data_model') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveDataModel' ) end # rubocop:enable Metrics/BlockLength end |
#create_sensitive_type(create_sensitive_type_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_sensitive_type API.
Creates a new sensitive type, which can be a basic sensitive type with regular expressions or a sensitive category. While sensitive types are used for data discovery, sensitive categories are used for logically grouping the related or similar sensitive types.
3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 3973 def create_sensitive_type(create_sensitive_type_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_sensitive_type.' if logger raise "Missing the required parameter 'create_sensitive_type_details' when calling create_sensitive_type." if create_sensitive_type_details.nil? path = '/sensitiveTypes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_sensitive_type_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_sensitive_type') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveType' ) end # rubocop:enable Metrics/BlockLength end |
#create_sensitive_type_group(create_sensitive_type_group_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_sensitive_type_group API.
Creates a new sensitive type group.
4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4034 def create_sensitive_type_group(create_sensitive_type_group_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_sensitive_type_group.' if logger raise "Missing the required parameter 'create_sensitive_type_group_details' when calling create_sensitive_type_group." if create_sensitive_type_group_details.nil? path = '/sensitiveTypeGroups' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_sensitive_type_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_sensitive_type_group') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveTypeGroup' ) end # rubocop:enable Metrics/BlockLength end |
#create_sensitive_types_export(create_sensitive_types_export_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_sensitive_types_export API.
Generates a downloadable file corresponding to the specified list of sensitive types. It's a prerequisite for the DownloadSensitiveTypesExport operation. Use this endpoint to generate a sensitive Types Export file and then use DownloadSensitiveTypesExport to download the generated file.
4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4097 def create_sensitive_types_export(create_sensitive_types_export_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_sensitive_types_export.' if logger raise "Missing the required parameter 'create_sensitive_types_export_details' when calling create_sensitive_types_export." if create_sensitive_types_export_details.nil? path = '/sensitiveTypesExports' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_sensitive_types_export_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_sensitive_types_export') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveTypesExport' ) end # rubocop:enable Metrics/BlockLength end |
#create_sql_collection(create_sql_collection_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_sql_collection API.
Creates a new SQL collection resource.
4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4158 def create_sql_collection(create_sql_collection_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_sql_collection.' if logger raise "Missing the required parameter 'create_sql_collection_details' when calling create_sql_collection." if create_sql_collection_details.nil? path = '/sqlCollections' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_sql_collection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_sql_collection') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlCollection' ) end # rubocop:enable Metrics/BlockLength end |
#create_target_alert_policy_association(create_target_alert_policy_association_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_target_alert_policy_association API.
Creates a new target-alert policy association to track a alert policy applied on target.
4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4219 def create_target_alert_policy_association(create_target_alert_policy_association_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_target_alert_policy_association.' if logger raise "Missing the required parameter 'create_target_alert_policy_association_details' when calling create_target_alert_policy_association." if create_target_alert_policy_association_details.nil? path = '/targetAlertPolicyAssociations' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_target_alert_policy_association_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_target_alert_policy_association') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::TargetAlertPolicyAssociation' ) end # rubocop:enable Metrics/BlockLength end |
#create_target_database(create_target_database_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_target_database API.
Registers the specified database with Data Safe and creates a Data Safe target database in the Data Safe Console.
4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4280 def create_target_database(create_target_database_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_target_database.' if logger raise "Missing the required parameter 'create_target_database_details' when calling create_target_database." if create_target_database_details.nil? path = '/targetDatabases' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_target_database_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_target_database') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::TargetDatabase' ) end # rubocop:enable Metrics/BlockLength end |
#create_user_assessment(create_user_assessment_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_user_assessment API.
Creates a new saved user assessment for one or multiple targets in a compartment. It saves the latest assessments in the specified compartment. If a scheduled is passed in, this operation persists the latest assessments that exist at the defined date and time, in the format defined by RFC3339.
4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4343 def create_user_assessment(create_user_assessment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#create_user_assessment.' if logger raise "Missing the required parameter 'create_user_assessment_details' when calling create_user_assessment." if create_user_assessment_details.nil? path = '/userAssessments' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_user_assessment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#create_user_assessment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::UserAssessment' ) end # rubocop:enable Metrics/BlockLength end |
#deactivate_target_database(target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use deactivate_target_database API.
Deactivates a target database in Data Safe.
4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4410 def deactivate_target_database(target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#deactivate_target_database.' if logger raise "Missing the required parameter 'target_database_id' when calling deactivate_target_database." if target_database_id.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}/actions/deactivate'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#deactivate_target_database') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_alert_policy(alert_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_alert_policy API.
Deletes the specified user-defined alert policy.
4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4472 def delete_alert_policy(alert_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_alert_policy.' if logger raise "Missing the required parameter 'alert_policy_id' when calling delete_alert_policy." if alert_policy_id.nil? raise "Parameter value for 'alert_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_policy_id) path = '/alertPolicies/{alertPolicyId}'.sub('{alertPolicyId}', alert_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_alert_policy') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_alert_policy_rule(alert_policy_id, rule_key, opts = {}) ⇒ Response
Click here to see an example of how to use delete_alert_policy_rule API.
Deletes the specified user-defined alert policy rule.
4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4533 def delete_alert_policy_rule(alert_policy_id, rule_key, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_alert_policy_rule.' if logger raise "Missing the required parameter 'alert_policy_id' when calling delete_alert_policy_rule." if alert_policy_id.nil? raise "Missing the required parameter 'rule_key' when calling delete_alert_policy_rule." if rule_key.nil? raise "Parameter value for 'alert_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_policy_id) raise "Parameter value for 'rule_key' must not be blank" if OCI::Internal::Util.blank_string?(rule_key) path = '/alertPolicies/{alertPolicyId}/rules/{ruleKey}'.sub('{alertPolicyId}', alert_policy_id.to_s).sub('{ruleKey}', rule_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_alert_policy_rule') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_audit_archive_retrieval(audit_archive_retrieval_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_audit_archive_retrieval API.
To unload retrieved archive data, call the operation ListAuditArchiveRetrieval first. This will return the auditArchiveRetrievalId. Then call this operation with auditArchiveRetrievalId.
4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4597 def delete_audit_archive_retrieval(audit_archive_retrieval_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_audit_archive_retrieval.' if logger raise "Missing the required parameter 'audit_archive_retrieval_id' when calling delete_audit_archive_retrieval." if audit_archive_retrieval_id.nil? raise "Parameter value for 'audit_archive_retrieval_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_archive_retrieval_id) path = '/auditArchiveRetrievals/{auditArchiveRetrievalId}'.sub('{auditArchiveRetrievalId}', audit_archive_retrieval_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_audit_archive_retrieval') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_audit_trail(audit_trail_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_audit_trail API.
Deletes the specified audit trail.
4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4657 def delete_audit_trail(audit_trail_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_audit_trail.' if logger raise "Missing the required parameter 'audit_trail_id' when calling delete_audit_trail." if audit_trail_id.nil? raise "Parameter value for 'audit_trail_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_trail_id) path = '/auditTrails/{auditTrailId}'.sub('{auditTrailId}', audit_trail_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_audit_trail') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_data_safe_private_endpoint(data_safe_private_endpoint_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_data_safe_private_endpoint API.
Deletes the specified Data Safe private endpoint.
4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4717 def delete_data_safe_private_endpoint(data_safe_private_endpoint_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_data_safe_private_endpoint.' if logger raise "Missing the required parameter 'data_safe_private_endpoint_id' when calling delete_data_safe_private_endpoint." if data_safe_private_endpoint_id.nil? raise "Parameter value for 'data_safe_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(data_safe_private_endpoint_id) path = '/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}'.sub('{dataSafePrivateEndpointId}', data_safe_private_endpoint_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_data_safe_private_endpoint') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_discovery_job(discovery_job_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_discovery_job API.
Deletes the specified discovery job.
4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4777 def delete_discovery_job(discovery_job_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_discovery_job.' if logger raise "Missing the required parameter 'discovery_job_id' when calling delete_discovery_job." if discovery_job_id.nil? raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id) path = '/discoveryJobs/{discoveryJobId}'.sub('{discoveryJobId}', discovery_job_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_discovery_job') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_discovery_job_result(discovery_job_id, result_key, opts = {}) ⇒ Response
Click here to see an example of how to use delete_discovery_job_result API.
Deletes the specified discovery result.
4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4838 def delete_discovery_job_result(discovery_job_id, result_key, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_discovery_job_result.' if logger raise "Missing the required parameter 'discovery_job_id' when calling delete_discovery_job_result." if discovery_job_id.nil? raise "Missing the required parameter 'result_key' when calling delete_discovery_job_result." if result_key.nil? raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id) raise "Parameter value for 'result_key' must not be blank" if OCI::Internal::Util.blank_string?(result_key) path = '/discoveryJobs/{discoveryJobId}/results/{resultKey}'.sub('{discoveryJobId}', discovery_job_id.to_s).sub('{resultKey}', result_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_discovery_job_result') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_library_masking_format(library_masking_format_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_library_masking_format API.
Deletes the specified library masking format.
4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4900 def delete_library_masking_format(library_masking_format_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_library_masking_format.' if logger raise "Missing the required parameter 'library_masking_format_id' when calling delete_library_masking_format." if library_masking_format_id.nil? raise "Parameter value for 'library_masking_format_id' must not be blank" if OCI::Internal::Util.blank_string?(library_masking_format_id) path = '/libraryMaskingFormats/{libraryMaskingFormatId}'.sub('{libraryMaskingFormatId}', library_masking_format_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_library_masking_format') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_masking_column(masking_column_key, masking_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_masking_column API.
Deletes the specified masking column.
4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 4961 def delete_masking_column(masking_column_key, masking_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_masking_column.' if logger raise "Missing the required parameter 'masking_column_key' when calling delete_masking_column." if masking_column_key.nil? raise "Missing the required parameter 'masking_policy_id' when calling delete_masking_column." if masking_policy_id.nil? raise "Parameter value for 'masking_column_key' must not be blank" if OCI::Internal::Util.blank_string?(masking_column_key) raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/maskingColumns/{maskingColumnKey}'.sub('{maskingColumnKey}', masking_column_key.to_s).sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_masking_column') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_masking_policy(masking_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_masking_policy API.
Deletes the specified masking policy.
5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5023 def delete_masking_policy(masking_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_masking_policy.' if logger raise "Missing the required parameter 'masking_policy_id' when calling delete_masking_policy." if masking_policy_id.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_masking_policy') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_masking_policy_health_report(masking_policy_health_report_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_masking_policy_health_report API.
Deletes the specified masking policy health report.
5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5083 def delete_masking_policy_health_report(masking_policy_health_report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_masking_policy_health_report.' if logger raise "Missing the required parameter 'masking_policy_health_report_id' when calling delete_masking_policy_health_report." if masking_policy_health_report_id.nil? raise "Parameter value for 'masking_policy_health_report_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_health_report_id) path = '/maskingPolicyHealthReports/{maskingPolicyHealthReportId}'.sub('{maskingPolicyHealthReportId}', masking_policy_health_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_masking_policy_health_report') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_masking_report(masking_report_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_masking_report API.
Deletes the specified masking report.
5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5143 def delete_masking_report(masking_report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_masking_report.' if logger raise "Missing the required parameter 'masking_report_id' when calling delete_masking_report." if masking_report_id.nil? raise "Parameter value for 'masking_report_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_report_id) path = '/maskingReports/{maskingReportId}'.sub('{maskingReportId}', masking_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_masking_report') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_on_prem_connector(on_prem_connector_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_on_prem_connector API.
Deletes the specified on-premises connector.
5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5203 def delete_on_prem_connector(on_prem_connector_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_on_prem_connector.' if logger raise "Missing the required parameter 'on_prem_connector_id' when calling delete_on_prem_connector." if on_prem_connector_id.nil? raise "Parameter value for 'on_prem_connector_id' must not be blank" if OCI::Internal::Util.blank_string?(on_prem_connector_id) path = '/onPremConnectors/{onPremConnectorId}'.sub('{onPremConnectorId}', on_prem_connector_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_on_prem_connector') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_peer_target_database(target_database_id, peer_target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_peer_target_database API.
Removes the specified peer target database from Data Safe.
5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5264 def delete_peer_target_database(target_database_id, peer_target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_peer_target_database.' if logger raise "Missing the required parameter 'target_database_id' when calling delete_peer_target_database." if target_database_id.nil? raise "Missing the required parameter 'peer_target_database_id' when calling delete_peer_target_database." if peer_target_database_id.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) raise "Parameter value for 'peer_target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(peer_target_database_id) path = '/targetDatabases/{targetDatabaseId}/peerTargetDatabases/{peerTargetDatabaseId}'.sub('{targetDatabaseId}', target_database_id.to_s).sub('{peerTargetDatabaseId}', peer_target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_peer_target_database') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_referential_relation(sensitive_data_model_id, referential_relation_key, opts = {}) ⇒ Response
Click here to see an example of how to use delete_referential_relation API.
Deletes the specified referential relation.
5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5328 def delete_referential_relation(sensitive_data_model_id, referential_relation_key, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_referential_relation.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling delete_referential_relation." if sensitive_data_model_id.nil? raise "Missing the required parameter 'referential_relation_key' when calling delete_referential_relation." if referential_relation_key.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) raise "Parameter value for 'referential_relation_key' must not be blank" if OCI::Internal::Util.blank_string?(referential_relation_key) path = '/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations/{referentialRelationKey}'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s).sub('{referentialRelationKey}', referential_relation_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_referential_relation') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_report_definition(report_definition_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_report_definition API.
Deletes the specified report definition. Only the user created report definition can be deleted. The seeded report definitions cannot be deleted.
5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5390 def delete_report_definition(report_definition_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_report_definition.' if logger raise "Missing the required parameter 'report_definition_id' when calling delete_report_definition." if report_definition_id.nil? raise "Parameter value for 'report_definition_id' must not be blank" if OCI::Internal::Util.blank_string?(report_definition_id) path = '/reportDefinitions/{reportDefinitionId}'.sub('{reportDefinitionId}', report_definition_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_report_definition') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_sdm_masking_policy_difference(sdm_masking_policy_difference_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_sdm_masking_policy_difference API.
Deletes the specified SDM Masking policy difference.
5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5450 def delete_sdm_masking_policy_difference(sdm_masking_policy_difference_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_sdm_masking_policy_difference.' if logger raise "Missing the required parameter 'sdm_masking_policy_difference_id' when calling delete_sdm_masking_policy_difference." if sdm_masking_policy_difference_id.nil? raise "Parameter value for 'sdm_masking_policy_difference_id' must not be blank" if OCI::Internal::Util.blank_string?(sdm_masking_policy_difference_id) path = '/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}'.sub('{sdmMaskingPolicyDifferenceId}', sdm_masking_policy_difference_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_sdm_masking_policy_difference') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_security_assessment(security_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_security_assessment API.
Deletes the specified saved security assessment or schedule. To delete a security assessment schedule, first call the operation ListSecurityAssessments with filters "type = save_schedule". That operation returns the scheduleAssessmentId. Then, call DeleteSecurityAssessment with the scheduleAssessmentId. If the assessment being deleted is the baseline for that compartment, then it will impact all baselines in the compartment.
5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5514 def delete_security_assessment(security_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_security_assessment.' if logger raise "Missing the required parameter 'security_assessment_id' when calling delete_security_assessment." if security_assessment_id.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_security_assessment') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_sensitive_column(sensitive_data_model_id, sensitive_column_key, opts = {}) ⇒ Response
Click here to see an example of how to use delete_sensitive_column API.
Deletes the specified sensitive column.
5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5575 def delete_sensitive_column(sensitive_data_model_id, sensitive_column_key, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_sensitive_column.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling delete_sensitive_column." if sensitive_data_model_id.nil? raise "Missing the required parameter 'sensitive_column_key' when calling delete_sensitive_column." if sensitive_column_key.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) raise "Parameter value for 'sensitive_column_key' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_column_key) path = '/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns/{sensitiveColumnKey}'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s).sub('{sensitiveColumnKey}', sensitive_column_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_sensitive_column') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_sensitive_data_model(sensitive_data_model_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_sensitive_data_model API.
Deletes the specified sensitive data model.
5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5637 def delete_sensitive_data_model(sensitive_data_model_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_sensitive_data_model.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling delete_sensitive_data_model." if sensitive_data_model_id.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_sensitive_data_model') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_sensitive_type(sensitive_type_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_sensitive_type API.
Deletes the specified sensitive type.
5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5697 def delete_sensitive_type(sensitive_type_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_sensitive_type.' if logger raise "Missing the required parameter 'sensitive_type_id' when calling delete_sensitive_type." if sensitive_type_id.nil? raise "Parameter value for 'sensitive_type_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_type_id) path = '/sensitiveTypes/{sensitiveTypeId}'.sub('{sensitiveTypeId}', sensitive_type_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_sensitive_type') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_sensitive_type_group(sensitive_type_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_sensitive_type_group API.
Deletes the specified sensitive type group.
5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5757 def delete_sensitive_type_group(sensitive_type_group_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_sensitive_type_group.' if logger raise "Missing the required parameter 'sensitive_type_group_id' when calling delete_sensitive_type_group." if sensitive_type_group_id.nil? raise "Parameter value for 'sensitive_type_group_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_type_group_id) path = '/sensitiveTypeGroups/{sensitiveTypeGroupId}'.sub('{sensitiveTypeGroupId}', sensitive_type_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_sensitive_type_group') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_sensitive_types_export(sensitive_types_export_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_sensitive_types_export API.
Deletes the specified sensitive types export.
5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5817 def delete_sensitive_types_export(sensitive_types_export_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_sensitive_types_export.' if logger raise "Missing the required parameter 'sensitive_types_export_id' when calling delete_sensitive_types_export." if sensitive_types_export_id.nil? raise "Parameter value for 'sensitive_types_export_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_types_export_id) path = '/sensitiveTypesExports/{sensitiveTypesExportId}'.sub('{sensitiveTypesExportId}', sensitive_types_export_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_sensitive_types_export') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_sql_collection(sql_collection_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_sql_collection API.
Deletes the specified SQL collection.
5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5877 def delete_sql_collection(sql_collection_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_sql_collection.' if logger raise "Missing the required parameter 'sql_collection_id' when calling delete_sql_collection." if sql_collection_id.nil? raise "Parameter value for 'sql_collection_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_collection_id) path = '/sqlCollections/{sqlCollectionId}'.sub('{sqlCollectionId}', sql_collection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_sql_collection') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_sql_firewall_allowed_sql(sql_firewall_allowed_sql_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_sql_firewall_allowed_sql API.
Deletes the specified allowed sql.
5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5937 def delete_sql_firewall_allowed_sql(sql_firewall_allowed_sql_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_sql_firewall_allowed_sql.' if logger raise "Missing the required parameter 'sql_firewall_allowed_sql_id' when calling delete_sql_firewall_allowed_sql." if sql_firewall_allowed_sql_id.nil? raise "Parameter value for 'sql_firewall_allowed_sql_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_firewall_allowed_sql_id) path = '/sqlFirewallAllowedSqls/{sqlFirewallAllowedSqlId}'.sub('{sqlFirewallAllowedSqlId}', sql_firewall_allowed_sql_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_sql_firewall_allowed_sql') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_sql_firewall_policy(sql_firewall_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_sql_firewall_policy API.
Deletes the SQL Firewall policy resource.
5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 5998 def delete_sql_firewall_policy(sql_firewall_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_sql_firewall_policy.' if logger raise "Missing the required parameter 'sql_firewall_policy_id' when calling delete_sql_firewall_policy." if sql_firewall_policy_id.nil? raise "Parameter value for 'sql_firewall_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_firewall_policy_id) path = '/sqlFirewallPolicies/{sqlFirewallPolicyId}'.sub('{sqlFirewallPolicyId}', sql_firewall_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_sql_firewall_policy') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_target_alert_policy_association(target_alert_policy_association_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_target_alert_policy_association API.
Deletes the specified target-alert policy Association.
6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6058 def delete_target_alert_policy_association(target_alert_policy_association_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_target_alert_policy_association.' if logger raise "Missing the required parameter 'target_alert_policy_association_id' when calling delete_target_alert_policy_association." if target_alert_policy_association_id.nil? raise "Parameter value for 'target_alert_policy_association_id' must not be blank" if OCI::Internal::Util.blank_string?(target_alert_policy_association_id) path = '/targetAlertPolicyAssociations/{targetAlertPolicyAssociationId}'.sub('{targetAlertPolicyAssociationId}', target_alert_policy_association_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_target_alert_policy_association') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_target_database(target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_target_database API.
Deregisters the specified database from Data Safe and removes the target database from the Data Safe Console.
6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6118 def delete_target_database(target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_target_database.' if logger raise "Missing the required parameter 'target_database_id' when calling delete_target_database." if target_database_id.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_target_database') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_user_assessment(user_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_user_assessment API.
Deletes the specified saved user assessment or schedule. To delete a user assessment schedule, first call the operation ListUserAssessments with filters "type = save_schedule". That call returns the scheduleAssessmentId. Then call DeleteUserAssessment with the scheduleAssessmentId. If the assessment being deleted is the baseline for that compartment, then it will impact all baselines in the compartment.
6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6182 def delete_user_assessment(user_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#delete_user_assessment.' if logger raise "Missing the required parameter 'user_assessment_id' when calling delete_user_assessment." if user_assessment_id.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#delete_user_assessment') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#discover_audit_trails(audit_profile_id, opts = {}) ⇒ Response
Click here to see an example of how to use discover_audit_trails API.
Updates the list of audit trails created under audit profile.The operation can be used to create new audit trails for target database when they become available for audit collection because of change of database version or change of database unified mode or change of data base edition or being deleted previously etc.
6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6251 def discover_audit_trails(audit_profile_id, opts = {}) logger.debug 'Calling operation DataSafeClient#discover_audit_trails.' if logger raise "Missing the required parameter 'audit_profile_id' when calling discover_audit_trails." if audit_profile_id.nil? raise "Parameter value for 'audit_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_profile_id) path = '/auditProfiles/{auditProfileId}/actions/discoverAuditTrails'.sub('{auditProfileId}', audit_profile_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#discover_audit_trails') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#download_discovery_report(sensitive_data_model_id, download_discovery_report_details, opts = {}, &block) ⇒ Response
Click here to see an example of how to use download_discovery_report API.
Downloads an already-generated discovery report. Note that the GenerateDiscoveryReportForDownload operation is a prerequisite for the DownloadDiscoveryReport operation. Use GenerateDiscoveryReportForDownload to generate a discovery report file and then use DownloadDiscoveryReport to download the generated file. By default, it downloads report for all the columns in a sensitive data model. Use the discoveryJobId attribute to download report for a specific discovery job.
6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6314 def download_discovery_report(sensitive_data_model_id, download_discovery_report_details, opts = {}, &block) logger.debug 'Calling operation DataSafeClient#download_discovery_report.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling download_discovery_report." if sensitive_data_model_id.nil? raise "Missing the required parameter 'download_discovery_report_details' when calling download_discovery_report." if download_discovery_report_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/actions/downloadReport'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/json' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(download_discovery_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#download_discovery_report') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#download_masking_log(masking_policy_id, download_masking_log_details, opts = {}, &block) ⇒ Response
Click here to see an example of how to use download_masking_log API.
Downloads the masking log generated by the last masking operation on a target database using the specified masking policy.
6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6416 def download_masking_log(masking_policy_id, download_masking_log_details, opts = {}, &block) logger.debug 'Calling operation DataSafeClient#download_masking_log.' if logger raise "Missing the required parameter 'masking_policy_id' when calling download_masking_log." if masking_policy_id.nil? raise "Missing the required parameter 'download_masking_log_details' when calling download_masking_log." if download_masking_log_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/actions/downloadLog'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/octet-stream' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(download_masking_log_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#download_masking_log') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#download_masking_policy(masking_policy_id, download_masking_policy_details, opts = {}, &block) ⇒ Response
Click here to see an example of how to use download_masking_policy API.
Downloads an already-generated file corresponding to the specified masking policy. Note that the GenerateMaskingPolicyForDownload operation is a prerequisite for the DownloadMaskingPolicy operation. Use GenerateMaskingPolicyForDownload to generate a masking policy file and then use DownloadMaskingPolicy to download the generated file.
6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6522 def download_masking_policy(masking_policy_id, download_masking_policy_details, opts = {}, &block) logger.debug 'Calling operation DataSafeClient#download_masking_policy.' if logger raise "Missing the required parameter 'masking_policy_id' when calling download_masking_policy." if masking_policy_id.nil? raise "Missing the required parameter 'download_masking_policy_details' when calling download_masking_policy." if download_masking_policy_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/actions/download'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/octet-stream' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(download_masking_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#download_masking_policy') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#download_masking_report(masking_policy_id, download_masking_report_details, opts = {}, &block) ⇒ Response
Click here to see an example of how to use download_masking_report API.
Downloads an already-generated masking report. Note that the GenerateMaskingReportForDownload operation is a prerequisite for the DownloadMaskingReport operation. Use GenerateMaskingReportForDownload to generate a masking report file and then use DownloadMaskingReport to download the generated file.
6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6627 def download_masking_report(masking_policy_id, download_masking_report_details, opts = {}, &block) logger.debug 'Calling operation DataSafeClient#download_masking_report.' if logger raise "Missing the required parameter 'masking_policy_id' when calling download_masking_report." if masking_policy_id.nil? raise "Missing the required parameter 'download_masking_report_details' when calling download_masking_report." if download_masking_report_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/actions/downloadReport'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/json' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(download_masking_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#download_masking_report') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#download_privilege_script(opts = {}, &block) ⇒ Response
Click here to see an example of how to use download_privilege_script API.
Downloads the privilege script to grant/revoke required roles from the Data Safe account on the target database.
6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6739 def download_privilege_script(opts = {}, &block) logger.debug 'Calling operation DataSafeClient#download_privilege_script.' if logger path = '/actions/downloadPrivilegeScript' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/octet-stream' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#download_privilege_script') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#download_security_assessment_report(security_assessment_id, download_security_assessment_report_details, opts = {}, &block) ⇒ Response
Click here to see an example of how to use download_security_assessment_report API.
Downloads the report of the specified security assessment. To download the security assessment report, it needs to be generated first. Please use GenerateSecurityAssessmentReport to generate a downloadable report in the preferred format (PDF, XLS).
6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6854 def download_security_assessment_report(security_assessment_id, download_security_assessment_report_details, opts = {}, &block) logger.debug 'Calling operation DataSafeClient#download_security_assessment_report.' if logger raise "Missing the required parameter 'security_assessment_id' when calling download_security_assessment_report." if security_assessment_id.nil? raise "Missing the required parameter 'download_security_assessment_report_details' when calling download_security_assessment_report." if download_security_assessment_report_details.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}/actions/downloadReport'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/json' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(download_security_assessment_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#download_security_assessment_report') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#download_sensitive_data_model(sensitive_data_model_id, download_sensitive_data_model_details, opts = {}, &block) ⇒ Response
Click here to see an example of how to use download_sensitive_data_model API.
Downloads an already-generated file corresponding to the specified sensitive data model. Note that the GenerateSensitiveDataModelForDownload operation is a prerequisite for the DownloadSensitiveDataModel operation. Use GenerateSensitiveDataModelForDownload to generate a data model file and then use DownloadSensitiveDataModel to download the generated file.
6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 6963 def download_sensitive_data_model(sensitive_data_model_id, download_sensitive_data_model_details, opts = {}, &block) logger.debug 'Calling operation DataSafeClient#download_sensitive_data_model.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling download_sensitive_data_model." if sensitive_data_model_id.nil? raise "Missing the required parameter 'download_sensitive_data_model_details' when calling download_sensitive_data_model." if download_sensitive_data_model_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/actions/download'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/octet-stream' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(download_sensitive_data_model_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#download_sensitive_data_model') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#download_sensitive_types_export(sensitive_types_export_id, download_sensitive_types_export_details, opts = {}, &block) ⇒ Response
Click here to see an example of how to use download_sensitive_types_export API.
Downloads an already-generated file corresponding to the specified sensitive types export. Use CreateSensitiveTypesExport to generate an XML file and then use DownloadSensitiveTypesExport to download the generated file.
7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7068 def download_sensitive_types_export(sensitive_types_export_id, download_sensitive_types_export_details, opts = {}, &block) logger.debug 'Calling operation DataSafeClient#download_sensitive_types_export.' if logger raise "Missing the required parameter 'sensitive_types_export_id' when calling download_sensitive_types_export." if sensitive_types_export_id.nil? raise "Missing the required parameter 'download_sensitive_types_export_details' when calling download_sensitive_types_export." if download_sensitive_types_export_details.nil? raise "Parameter value for 'sensitive_types_export_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_types_export_id) path = '/sensitiveTypesExports/{sensitiveTypesExportId}/actions/download'.sub('{sensitiveTypesExportId}', sensitive_types_export_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/octet-stream' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(download_sensitive_types_export_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#download_sensitive_types_export') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#download_user_assessment_report(user_assessment_id, download_user_assessment_report_details, opts = {}, &block) ⇒ Response
Click here to see an example of how to use download_user_assessment_report API.
Downloads the report of the specified user assessment. To download the user assessment report, it needs to be generated first. Please use GenerateUserAssessmentReport to generate a downloadable report in the preferred format (PDF, XLS).
7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7183 def download_user_assessment_report(user_assessment_id, download_user_assessment_report_details, opts = {}, &block) logger.debug 'Calling operation DataSafeClient#download_user_assessment_report.' if logger raise "Missing the required parameter 'user_assessment_id' when calling download_user_assessment_report." if user_assessment_id.nil? raise "Missing the required parameter 'download_user_assessment_report_details' when calling download_user_assessment_report." if download_user_assessment_report_details.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/actions/downloadReport'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/json' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(download_user_assessment_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#download_user_assessment_report') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#enable_data_safe_configuration(enable_data_safe_configuration_details, opts = {}) ⇒ Response
Click here to see an example of how to use enable_data_safe_configuration API.
Enables Data Safe in the tenancy and region.
7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7293 def enable_data_safe_configuration(enable_data_safe_configuration_details, opts = {}) logger.debug 'Calling operation DataSafeClient#enable_data_safe_configuration.' if logger raise "Missing the required parameter 'enable_data_safe_configuration_details' when calling enable_data_safe_configuration." if enable_data_safe_configuration_details.nil? path = '/configuration' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(enable_data_safe_configuration_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#enable_data_safe_configuration') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_discovery_report_for_download(sensitive_data_model_id, generate_discovery_report_for_download_details, opts = {}) ⇒ Response
Click here to see an example of how to use generate_discovery_report_for_download API.
Generates a downloadable discovery report. It's a prerequisite for the DownloadDiscoveryReport operation. Use this endpoint to generate a discovery report file and then use DownloadDiscoveryReport to download the generated file. By default, it generates report for all the columns in a sensitive data model. Use the discoveryJobId attribute to generate report for a specific discovery job.
7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7352 def generate_discovery_report_for_download(sensitive_data_model_id, generate_discovery_report_for_download_details, opts = {}) logger.debug 'Calling operation DataSafeClient#generate_discovery_report_for_download.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling generate_discovery_report_for_download." if sensitive_data_model_id.nil? raise "Missing the required parameter 'generate_discovery_report_for_download_details' when calling generate_discovery_report_for_download." if generate_discovery_report_for_download_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/actions/generateReportForDownload'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(generate_discovery_report_for_download_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#generate_discovery_report_for_download') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_health_report(masking_policy_id, generate_health_report_details, opts = {}) ⇒ Response
Click here to see an example of how to use generate_health_report API.
Performs health check on the masking policy.
7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7412 def generate_health_report(masking_policy_id, generate_health_report_details, opts = {}) logger.debug 'Calling operation DataSafeClient#generate_health_report.' if logger raise "Missing the required parameter 'masking_policy_id' when calling generate_health_report." if masking_policy_id.nil? raise "Missing the required parameter 'generate_health_report_details' when calling generate_health_report." if generate_health_report_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/actions/generateHealthReport'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(generate_health_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#generate_health_report') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_masking_policy_for_download(masking_policy_id, generate_masking_policy_for_download_details, opts = {}) ⇒ Response
Click here to see an example of how to use generate_masking_policy_for_download API.
Generates a downloadable file corresponding to the specified masking policy. It's a prerequisite for the DownloadMaskingPolicy operation. Use this endpoint to generate a masking policy file and then use DownloadMaskingPolicy to download the generated file. Note that file generation and download are serial operations. The download operation can't be invoked while the generate operation is in progress.
7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7474 def generate_masking_policy_for_download(masking_policy_id, generate_masking_policy_for_download_details, opts = {}) logger.debug 'Calling operation DataSafeClient#generate_masking_policy_for_download.' if logger raise "Missing the required parameter 'masking_policy_id' when calling generate_masking_policy_for_download." if masking_policy_id.nil? raise "Missing the required parameter 'generate_masking_policy_for_download_details' when calling generate_masking_policy_for_download." if generate_masking_policy_for_download_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/actions/generatePolicyForDownload'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(generate_masking_policy_for_download_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#generate_masking_policy_for_download') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_masking_report_for_download(masking_policy_id, generate_masking_report_for_download_details, opts = {}) ⇒ Response
Click here to see an example of how to use generate_masking_report_for_download API.
Generates a downloadable masking report. It's a prerequisite for the DownloadMaskingReport operation. Use this endpoint to generate a masking report file and then use DownloadMaskingReport to download the generated file.
7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7533 def generate_masking_report_for_download(masking_policy_id, generate_masking_report_for_download_details, opts = {}) logger.debug 'Calling operation DataSafeClient#generate_masking_report_for_download.' if logger raise "Missing the required parameter 'masking_policy_id' when calling generate_masking_report_for_download." if masking_policy_id.nil? raise "Missing the required parameter 'generate_masking_report_for_download_details' when calling generate_masking_report_for_download." if generate_masking_report_for_download_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/actions/generateReportForDownload'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(generate_masking_report_for_download_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#generate_masking_report_for_download') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_on_prem_connector_configuration(generate_on_prem_connector_configuration_details, on_prem_connector_id, opts = {}, &block) ⇒ Response
Click here to see an example of how to use generate_on_prem_connector_configuration API.
Creates and downloads the configuration of the specified on-premises connector.
7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7602 def generate_on_prem_connector_configuration(generate_on_prem_connector_configuration_details, on_prem_connector_id, opts = {}, &block) logger.debug 'Calling operation DataSafeClient#generate_on_prem_connector_configuration.' if logger raise "Missing the required parameter 'generate_on_prem_connector_configuration_details' when calling generate_on_prem_connector_configuration." if generate_on_prem_connector_configuration_details.nil? raise "Missing the required parameter 'on_prem_connector_id' when calling generate_on_prem_connector_configuration." if on_prem_connector_id.nil? raise "Parameter value for 'on_prem_connector_id' must not be blank" if OCI::Internal::Util.blank_string?(on_prem_connector_id) path = '/onPremConnectors/{onPremConnectorId}/actions/generateConfiguration'.sub('{onPremConnectorId}', on_prem_connector_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/octet-stream' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(generate_on_prem_connector_configuration_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#generate_on_prem_connector_configuration') do if !block.nil? @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#generate_report(report_definition_id, generate_report_details, opts = {}) ⇒ Response
Click here to see an example of how to use generate_report API.
Generates a .xls or .pdf report based on parameters and report definition.
7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7724 def generate_report(report_definition_id, generate_report_details, opts = {}) logger.debug 'Calling operation DataSafeClient#generate_report.' if logger raise "Missing the required parameter 'report_definition_id' when calling generate_report." if report_definition_id.nil? raise "Missing the required parameter 'generate_report_details' when calling generate_report." if generate_report_details.nil? raise "Parameter value for 'report_definition_id' must not be blank" if OCI::Internal::Util.blank_string?(report_definition_id) path = '/reportDefinitions/{reportDefinitionId}/actions/generateReport'.sub('{reportDefinitionId}', report_definition_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(generate_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#generate_report') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_security_assessment_report(security_assessment_id, generate_security_assessment_report_details, opts = {}) ⇒ Response
Click here to see an example of how to use generate_security_assessment_report API.
Generates the report of the specified security assessment. You can get the report in PDF or XLS format. After generating the report, use DownloadSecurityAssessmentReport to download it in the preferred format.
7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7796 def generate_security_assessment_report(security_assessment_id, generate_security_assessment_report_details, opts = {}) logger.debug 'Calling operation DataSafeClient#generate_security_assessment_report.' if logger raise "Missing the required parameter 'security_assessment_id' when calling generate_security_assessment_report." if security_assessment_id.nil? raise "Missing the required parameter 'generate_security_assessment_report_details' when calling generate_security_assessment_report." if generate_security_assessment_report_details.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}/actions/generateReport'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(generate_security_assessment_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#generate_security_assessment_report') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_sensitive_data_model_for_download(sensitive_data_model_id, generate_sensitive_data_model_for_download_details, opts = {}) ⇒ Response
Click here to see an example of how to use generate_sensitive_data_model_for_download API.
Generates a downloadable file corresponding to the specified sensitive data model. It's a prerequisite for the DownloadSensitiveDataModel operation. Use this endpoint to generate a data model file and then use DownloadSensitiveDataModel to download the generated file. Note that file generation and download are serial operations. The download operation can't be invoked while the generate operation is in progress.
7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7858 def generate_sensitive_data_model_for_download(sensitive_data_model_id, generate_sensitive_data_model_for_download_details, opts = {}) logger.debug 'Calling operation DataSafeClient#generate_sensitive_data_model_for_download.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling generate_sensitive_data_model_for_download." if sensitive_data_model_id.nil? raise "Missing the required parameter 'generate_sensitive_data_model_for_download_details' when calling generate_sensitive_data_model_for_download." if generate_sensitive_data_model_for_download_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/actions/generateDataModelForDownload'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(generate_sensitive_data_model_for_download_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#generate_sensitive_data_model_for_download') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_sql_firewall_policy(sql_collection_id, opts = {}) ⇒ Response
Click here to see an example of how to use generate_sql_firewall_policy API.
Generates or appends to the SQL Firewall policy using the specified SQL collection.
7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7923 def generate_sql_firewall_policy(sql_collection_id, opts = {}) logger.debug 'Calling operation DataSafeClient#generate_sql_firewall_policy.' if logger raise "Missing the required parameter 'sql_collection_id' when calling generate_sql_firewall_policy." if sql_collection_id.nil? raise "Parameter value for 'sql_collection_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_collection_id) path = '/sqlCollections/{sqlCollectionId}/actions/generateSqlFirewallPolicy'.sub('{sqlCollectionId}', sql_collection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#generate_sql_firewall_policy') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_user_assessment_report(user_assessment_id, generate_user_assessment_report_details, opts = {}) ⇒ Response
Click here to see an example of how to use generate_user_assessment_report API.
Generates the report of the specified user assessment. The report is available in PDF or XLS format. After generating the report, use DownloadUserAssessmentReport to download it in the preferred format.
7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 7993 def generate_user_assessment_report(user_assessment_id, generate_user_assessment_report_details, opts = {}) logger.debug 'Calling operation DataSafeClient#generate_user_assessment_report.' if logger raise "Missing the required parameter 'user_assessment_id' when calling generate_user_assessment_report." if user_assessment_id.nil? raise "Missing the required parameter 'generate_user_assessment_report_details' when calling generate_user_assessment_report." if generate_user_assessment_report_details.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/actions/generateReport'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(generate_user_assessment_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#generate_user_assessment_report') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#get_alert(alert_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_alert API.
Gets the details of the specified alerts.
8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8050 def get_alert(alert_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_alert.' if logger raise "Missing the required parameter 'alert_id' when calling get_alert." if alert_id.nil? raise "Parameter value for 'alert_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_id) path = '/alerts/{alertId}'.sub('{alertId}', alert_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_alert') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::Alert' ) end # rubocop:enable Metrics/BlockLength end |
#get_alert_policy(alert_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_alert_policy API.
Gets the details of alert policy by its ID.
8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8104 def get_alert_policy(alert_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_alert_policy.' if logger raise "Missing the required parameter 'alert_policy_id' when calling get_alert_policy." if alert_policy_id.nil? raise "Parameter value for 'alert_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_policy_id) path = '/alertPolicies/{alertPolicyId}'.sub('{alertPolicyId}', alert_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_alert_policy') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AlertPolicy' ) end # rubocop:enable Metrics/BlockLength end |
#get_alert_policy_rule(alert_policy_id, rule_key, opts = {}) ⇒ Response
Click here to see an example of how to use get_alert_policy_rule API.
Gets the details of a policy rule by its key.
8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8159 def get_alert_policy_rule(alert_policy_id, rule_key, opts = {}) logger.debug 'Calling operation DataSafeClient#get_alert_policy_rule.' if logger raise "Missing the required parameter 'alert_policy_id' when calling get_alert_policy_rule." if alert_policy_id.nil? raise "Missing the required parameter 'rule_key' when calling get_alert_policy_rule." if rule_key.nil? raise "Parameter value for 'alert_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_policy_id) raise "Parameter value for 'rule_key' must not be blank" if OCI::Internal::Util.blank_string?(rule_key) path = '/alertPolicies/{alertPolicyId}/rules/{ruleKey}'.sub('{alertPolicyId}', alert_policy_id.to_s).sub('{ruleKey}', rule_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_alert_policy_rule') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AlertPolicyRule' ) end # rubocop:enable Metrics/BlockLength end |
#get_audit_archive_retrieval(audit_archive_retrieval_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_audit_archive_retrieval API.
Gets the details of the specified archive retreival.
8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8221 def get_audit_archive_retrieval(audit_archive_retrieval_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_audit_archive_retrieval.' if logger raise "Missing the required parameter 'audit_archive_retrieval_id' when calling get_audit_archive_retrieval." if audit_archive_retrieval_id.nil? raise "Parameter value for 'audit_archive_retrieval_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_archive_retrieval_id) path = '/auditArchiveRetrievals/{auditArchiveRetrievalId}'.sub('{auditArchiveRetrievalId}', audit_archive_retrieval_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_audit_archive_retrieval') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditArchiveRetrieval' ) end # rubocop:enable Metrics/BlockLength end |
#get_audit_policy(audit_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_audit_policy API.
Gets a audit policy by identifier.
8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8276 def get_audit_policy(audit_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_audit_policy.' if logger raise "Missing the required parameter 'audit_policy_id' when calling get_audit_policy." if audit_policy_id.nil? raise "Parameter value for 'audit_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_policy_id) path = '/auditPolicies/{auditPolicyId}'.sub('{auditPolicyId}', audit_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_audit_policy') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditPolicy' ) end # rubocop:enable Metrics/BlockLength end |
#get_audit_profile(audit_profile_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_audit_profile API.
Gets the details of audit profile resource and associated audit trails of the audit profile.
8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8330 def get_audit_profile(audit_profile_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_audit_profile.' if logger raise "Missing the required parameter 'audit_profile_id' when calling get_audit_profile." if audit_profile_id.nil? raise "Parameter value for 'audit_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_profile_id) path = '/auditProfiles/{auditProfileId}'.sub('{auditProfileId}', audit_profile_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_audit_profile') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditProfile' ) end # rubocop:enable Metrics/BlockLength end |
#get_audit_trail(audit_trail_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_audit_trail API.
Gets the details of audit trail.
8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8384 def get_audit_trail(audit_trail_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_audit_trail.' if logger raise "Missing the required parameter 'audit_trail_id' when calling get_audit_trail." if audit_trail_id.nil? raise "Parameter value for 'audit_trail_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_trail_id) path = '/auditTrails/{auditTrailId}'.sub('{auditTrailId}', audit_trail_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_audit_trail') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditTrail' ) end # rubocop:enable Metrics/BlockLength end |
#get_compatible_formats_for_data_types(opts = {}) ⇒ Response
Click here to see an example of how to use get_compatible_formats_for_data_types API.
Gets a list of basic masking formats compatible with the supported data types. The data types are grouped into the following categories - Character - Includes CHAR, NCHAR, VARCHAR2, and NVARCHAR2 Numeric - Includes NUMBER, FLOAT, RAW, BINARY_FLOAT, and BINARY_DOUBLE Date - Includes DATE and TIMESTAMP LOB - Includes BLOB, CLOB, and NCLOB All - Includes all the supported data types
8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8446 def get_compatible_formats_for_data_types(opts = {}) logger.debug 'Calling operation DataSafeClient#get_compatible_formats_for_data_types.' if logger path = '/compatibleFormatsForDataTypes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_compatible_formats_for_data_types') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::CompatibleFormatsForDataTypes' ) end # rubocop:enable Metrics/BlockLength end |
#get_compatible_formats_for_sensitive_types(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_compatible_formats_for_sensitive_types API.
Gets a list of library masking formats compatible with the existing sensitive types. For each sensitive type, it returns the assigned default masking format as well as the other library masking formats that have the sensitiveTypeIds attribute containing the OCID of the sensitive type.
8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8515 def get_compatible_formats_for_sensitive_types(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_compatible_formats_for_sensitive_types.' if logger raise "Missing the required parameter 'compartment_id' when calling get_compatible_formats_for_sensitive_types." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/compatibleFormatsForSensitiveTypes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_compatible_formats_for_sensitive_types') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::CompatibleFormatsForSensitiveTypes' ) end # rubocop:enable Metrics/BlockLength end |
#get_data_safe_configuration(opts = {}) ⇒ Response
Click here to see an example of how to use get_data_safe_configuration API.
Gets the details of the Data Safe configuration.
8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8577 def get_data_safe_configuration(opts = {}) logger.debug 'Calling operation DataSafeClient#get_data_safe_configuration.' if logger path = '/configuration' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_data_safe_configuration') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DataSafeConfiguration' ) end # rubocop:enable Metrics/BlockLength end |
#get_data_safe_private_endpoint(data_safe_private_endpoint_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_data_safe_private_endpoint API.
Gets the details of the specified Data Safe private endpoint.
8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8630 def get_data_safe_private_endpoint(data_safe_private_endpoint_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_data_safe_private_endpoint.' if logger raise "Missing the required parameter 'data_safe_private_endpoint_id' when calling get_data_safe_private_endpoint." if data_safe_private_endpoint_id.nil? raise "Parameter value for 'data_safe_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(data_safe_private_endpoint_id) path = '/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}'.sub('{dataSafePrivateEndpointId}', data_safe_private_endpoint_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_data_safe_private_endpoint') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DataSafePrivateEndpoint' ) end # rubocop:enable Metrics/BlockLength end |
#get_database_security_config(database_security_config_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_database_security_config API.
Gets a database security configuration by identifier.
8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8684 def get_database_security_config(database_security_config_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_database_security_config.' if logger raise "Missing the required parameter 'database_security_config_id' when calling get_database_security_config." if database_security_config_id.nil? raise "Parameter value for 'database_security_config_id' must not be blank" if OCI::Internal::Util.blank_string?(database_security_config_id) path = '/databaseSecurityConfigs/{databaseSecurityConfigId}'.sub('{databaseSecurityConfigId}', database_security_config_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_database_security_config') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DatabaseSecurityConfig' ) end # rubocop:enable Metrics/BlockLength end |
#get_database_table_access_entry(security_policy_report_id, database_table_access_entry_key, opts = {}) ⇒ Response
Click here to see an example of how to use get_database_table_access_entry API.
Gets a database table access entry object by identifier.
8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8739 def get_database_table_access_entry(security_policy_report_id, database_table_access_entry_key, opts = {}) logger.debug 'Calling operation DataSafeClient#get_database_table_access_entry.' if logger raise "Missing the required parameter 'security_policy_report_id' when calling get_database_table_access_entry." if security_policy_report_id.nil? raise "Missing the required parameter 'database_table_access_entry_key' when calling get_database_table_access_entry." if database_table_access_entry_key.nil? raise "Parameter value for 'security_policy_report_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_report_id) raise "Parameter value for 'database_table_access_entry_key' must not be blank" if OCI::Internal::Util.blank_string?(database_table_access_entry_key) path = '/securityPolicyReports/{securityPolicyReportId}/databaseTableAccessEntries/{databaseTableAccessEntryKey}'.sub('{securityPolicyReportId}', security_policy_report_id.to_s).sub('{databaseTableAccessEntryKey}', database_table_access_entry_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_database_table_access_entry') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DatabaseTableAccessEntry' ) end # rubocop:enable Metrics/BlockLength end |
#get_database_view_access_entry(security_policy_report_id, database_view_access_entry_key, opts = {}) ⇒ Response
Click here to see an example of how to use get_database_view_access_entry API.
Gets a database view access object by identifier.
8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8796 def get_database_view_access_entry(security_policy_report_id, database_view_access_entry_key, opts = {}) logger.debug 'Calling operation DataSafeClient#get_database_view_access_entry.' if logger raise "Missing the required parameter 'security_policy_report_id' when calling get_database_view_access_entry." if security_policy_report_id.nil? raise "Missing the required parameter 'database_view_access_entry_key' when calling get_database_view_access_entry." if database_view_access_entry_key.nil? raise "Parameter value for 'security_policy_report_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_report_id) raise "Parameter value for 'database_view_access_entry_key' must not be blank" if OCI::Internal::Util.blank_string?(database_view_access_entry_key) path = '/securityPolicyReports/{securityPolicyReportId}/databaseViewAccessEntries/{databaseViewAccessEntryKey}'.sub('{securityPolicyReportId}', security_policy_report_id.to_s).sub('{databaseViewAccessEntryKey}', database_view_access_entry_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_database_view_access_entry') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DatabaseViewAccessEntry' ) end # rubocop:enable Metrics/BlockLength end |
#get_difference_column(sdm_masking_policy_difference_id, difference_column_key, opts = {}) ⇒ Response
Click here to see an example of how to use get_difference_column API.
Gets the details of the specified SDM Masking policy difference column.
8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8853 def get_difference_column(sdm_masking_policy_difference_id, difference_column_key, opts = {}) logger.debug 'Calling operation DataSafeClient#get_difference_column.' if logger raise "Missing the required parameter 'sdm_masking_policy_difference_id' when calling get_difference_column." if sdm_masking_policy_difference_id.nil? raise "Missing the required parameter 'difference_column_key' when calling get_difference_column." if difference_column_key.nil? raise "Parameter value for 'sdm_masking_policy_difference_id' must not be blank" if OCI::Internal::Util.blank_string?(sdm_masking_policy_difference_id) raise "Parameter value for 'difference_column_key' must not be blank" if OCI::Internal::Util.blank_string?(difference_column_key) path = '/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}/differenceColumns/{differenceColumnKey}'.sub('{sdmMaskingPolicyDifferenceId}', sdm_masking_policy_difference_id.to_s).sub('{differenceColumnKey}', difference_column_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_difference_column') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DifferenceColumn' ) end # rubocop:enable Metrics/BlockLength end |
#get_discovery_job(discovery_job_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_discovery_job API.
Gets the details of the specified discovery job.
8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8909 def get_discovery_job(discovery_job_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_discovery_job.' if logger raise "Missing the required parameter 'discovery_job_id' when calling get_discovery_job." if discovery_job_id.nil? raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id) path = '/discoveryJobs/{discoveryJobId}'.sub('{discoveryJobId}', discovery_job_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_discovery_job') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DiscoveryJob' ) end # rubocop:enable Metrics/BlockLength end |
#get_discovery_job_result(discovery_job_id, result_key, opts = {}) ⇒ Response
Click here to see an example of how to use get_discovery_job_result API.
Gets the details of the specified discovery result.
8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 8964 def get_discovery_job_result(discovery_job_id, result_key, opts = {}) logger.debug 'Calling operation DataSafeClient#get_discovery_job_result.' if logger raise "Missing the required parameter 'discovery_job_id' when calling get_discovery_job_result." if discovery_job_id.nil? raise "Missing the required parameter 'result_key' when calling get_discovery_job_result." if result_key.nil? raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id) raise "Parameter value for 'result_key' must not be blank" if OCI::Internal::Util.blank_string?(result_key) path = '/discoveryJobs/{discoveryJobId}/results/{resultKey}'.sub('{discoveryJobId}', discovery_job_id.to_s).sub('{resultKey}', result_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_discovery_job_result') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DiscoveryJobResult' ) end # rubocop:enable Metrics/BlockLength end |
#get_library_masking_format(library_masking_format_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_library_masking_format API.
Gets the details of the specified library masking format.
9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9020 def get_library_masking_format(library_masking_format_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_library_masking_format.' if logger raise "Missing the required parameter 'library_masking_format_id' when calling get_library_masking_format." if library_masking_format_id.nil? raise "Parameter value for 'library_masking_format_id' must not be blank" if OCI::Internal::Util.blank_string?(library_masking_format_id) path = '/libraryMaskingFormats/{libraryMaskingFormatId}'.sub('{libraryMaskingFormatId}', library_masking_format_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_library_masking_format') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::LibraryMaskingFormat' ) end # rubocop:enable Metrics/BlockLength end |
#get_masking_column(masking_policy_id, masking_column_key, opts = {}) ⇒ Response
Click here to see an example of how to use get_masking_column API.
Gets the details of the specified masking column.
9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9075 def get_masking_column(masking_policy_id, masking_column_key, opts = {}) logger.debug 'Calling operation DataSafeClient#get_masking_column.' if logger raise "Missing the required parameter 'masking_policy_id' when calling get_masking_column." if masking_policy_id.nil? raise "Missing the required parameter 'masking_column_key' when calling get_masking_column." if masking_column_key.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) raise "Parameter value for 'masking_column_key' must not be blank" if OCI::Internal::Util.blank_string?(masking_column_key) path = '/maskingPolicies/{maskingPolicyId}/maskingColumns/{maskingColumnKey}'.sub('{maskingPolicyId}', masking_policy_id.to_s).sub('{maskingColumnKey}', masking_column_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_masking_column') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingColumn' ) end # rubocop:enable Metrics/BlockLength end |
#get_masking_policy(masking_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_masking_policy API.
Gets the details of the specified masking policy.
9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9131 def get_masking_policy(masking_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_masking_policy.' if logger raise "Missing the required parameter 'masking_policy_id' when calling get_masking_policy." if masking_policy_id.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_masking_policy') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingPolicy' ) end # rubocop:enable Metrics/BlockLength end |
#get_masking_policy_health_report(masking_policy_health_report_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_masking_policy_health_report API.
Gets the details of the specified masking policy health report.
9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9185 def get_masking_policy_health_report(masking_policy_health_report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_masking_policy_health_report.' if logger raise "Missing the required parameter 'masking_policy_health_report_id' when calling get_masking_policy_health_report." if masking_policy_health_report_id.nil? raise "Parameter value for 'masking_policy_health_report_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_health_report_id) path = '/maskingPolicyHealthReports/{maskingPolicyHealthReportId}'.sub('{maskingPolicyHealthReportId}', masking_policy_health_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_masking_policy_health_report') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingPolicyHealthReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_masking_report(masking_report_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_masking_report API.
Gets the details of the specified masking report.
9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9239 def get_masking_report(masking_report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_masking_report.' if logger raise "Missing the required parameter 'masking_report_id' when calling get_masking_report." if masking_report_id.nil? raise "Parameter value for 'masking_report_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_report_id) path = '/maskingReports/{maskingReportId}'.sub('{maskingReportId}', masking_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_masking_report') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_on_prem_connector(on_prem_connector_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_on_prem_connector API.
Gets the details of the specified on-premises connector.
9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9293 def get_on_prem_connector(on_prem_connector_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_on_prem_connector.' if logger raise "Missing the required parameter 'on_prem_connector_id' when calling get_on_prem_connector." if on_prem_connector_id.nil? raise "Parameter value for 'on_prem_connector_id' must not be blank" if OCI::Internal::Util.blank_string?(on_prem_connector_id) path = '/onPremConnectors/{onPremConnectorId}'.sub('{onPremConnectorId}', on_prem_connector_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_on_prem_connector') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::OnPremConnector' ) end # rubocop:enable Metrics/BlockLength end |
#get_peer_target_database(target_database_id, peer_target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_peer_target_database API.
Returns the details of the specified Data Safe peer target database.
9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9349 def get_peer_target_database(target_database_id, peer_target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_peer_target_database.' if logger raise "Missing the required parameter 'target_database_id' when calling get_peer_target_database." if target_database_id.nil? raise "Missing the required parameter 'peer_target_database_id' when calling get_peer_target_database." if peer_target_database_id.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) raise "Parameter value for 'peer_target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(peer_target_database_id) path = '/targetDatabases/{targetDatabaseId}/peerTargetDatabases/{peerTargetDatabaseId}'.sub('{targetDatabaseId}', target_database_id.to_s).sub('{peerTargetDatabaseId}', peer_target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_peer_target_database') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::PeerTargetDatabase' ) end # rubocop:enable Metrics/BlockLength end |
#get_profile(user_assessment_id, profile_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_profile API.
Lists the details of given profile available on the target.
The GetProfile operation returns only the profiles in the specified 'userAssessmentId'. This does not include any subcompartments of the current compartment.
9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9410 def get_profile(user_assessment_id, profile_name, opts = {}) logger.debug 'Calling operation DataSafeClient#get_profile.' if logger raise "Missing the required parameter 'user_assessment_id' when calling get_profile." if user_assessment_id.nil? raise "Missing the required parameter 'profile_name' when calling get_profile." if profile_name.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) raise "Parameter value for 'profile_name' must not be blank" if OCI::Internal::Util.blank_string?(profile_name) path = '/userAssessments/{userAssessmentId}/profiles/{profileName}'.sub('{userAssessmentId}', user_assessment_id.to_s).sub('{profileName}', profile_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_profile') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::Profile>' ) end # rubocop:enable Metrics/BlockLength end |
#get_referential_relation(sensitive_data_model_id, referential_relation_key, opts = {}) ⇒ Response
Click here to see an example of how to use get_referential_relation API.
Gets the details of the specified referential relation.
9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9468 def get_referential_relation(sensitive_data_model_id, referential_relation_key, opts = {}) logger.debug 'Calling operation DataSafeClient#get_referential_relation.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling get_referential_relation." if sensitive_data_model_id.nil? raise "Missing the required parameter 'referential_relation_key' when calling get_referential_relation." if referential_relation_key.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) raise "Parameter value for 'referential_relation_key' must not be blank" if OCI::Internal::Util.blank_string?(referential_relation_key) path = '/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations/{referentialRelationKey}'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s).sub('{referentialRelationKey}', referential_relation_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_referential_relation') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::ReferentialRelation' ) end # rubocop:enable Metrics/BlockLength end |
#get_report(report_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_report API.
Gets a report by identifier
9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9524 def get_report(report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_report.' if logger raise "Missing the required parameter 'report_id' when calling get_report." if report_id.nil? raise "Parameter value for 'report_id' must not be blank" if OCI::Internal::Util.blank_string?(report_id) path = '/reports/{reportId}'.sub('{reportId}', report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_report') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::Report' ) end # rubocop:enable Metrics/BlockLength end |
#get_report_content(report_id, opts = {}, &block) ⇒ Response
Click here to see an example of how to use get_report_content API.
Downloads the specified report in the form of .xls or .pdf.
9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9580 def get_report_content(report_id, opts = {}, &block) logger.debug 'Calling operation DataSafeClient#get_report_content.' if logger raise "Missing the required parameter 'report_id' when calling get_report_content." if report_id.nil? raise "Parameter value for 'report_id' must not be blank" if OCI::Internal::Util.blank_string?(report_id) path = '/reports/{reportId}/content'.sub('{reportId}', report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = opts[:accept] if opts[:accept] header_params[:accept] ||= 'application/json' header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding] header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_report_content') do if !block.nil? @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &block ) elsif opts[:response_target] if opts[:response_target].respond_to? :write @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| opts[:response_target].write(chunk) } ) elsif opts[:response_target].is_a?(String) File.open(opts[:response_target], 'wb') do |output| return @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Stream', &proc { |chunk, _response| output.write(chunk) } ) end end else @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'String' ) end end # rubocop:enable Metrics/BlockLength end |
#get_report_definition(report_definition_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_report_definition API.
Gets the details of report definition specified by the identifier
9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9678 def get_report_definition(report_definition_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_report_definition.' if logger raise "Missing the required parameter 'report_definition_id' when calling get_report_definition." if report_definition_id.nil? raise "Parameter value for 'report_definition_id' must not be blank" if OCI::Internal::Util.blank_string?(report_definition_id) path = '/reportDefinitions/{reportDefinitionId}'.sub('{reportDefinitionId}', report_definition_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_report_definition') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::ReportDefinition' ) end # rubocop:enable Metrics/BlockLength end |
#get_sdm_masking_policy_difference(sdm_masking_policy_difference_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_sdm_masking_policy_difference API.
Gets the details of the specified SDM Masking policy difference.
9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9732 def get_sdm_masking_policy_difference(sdm_masking_policy_difference_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_sdm_masking_policy_difference.' if logger raise "Missing the required parameter 'sdm_masking_policy_difference_id' when calling get_sdm_masking_policy_difference." if sdm_masking_policy_difference_id.nil? raise "Parameter value for 'sdm_masking_policy_difference_id' must not be blank" if OCI::Internal::Util.blank_string?(sdm_masking_policy_difference_id) path = '/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}'.sub('{sdmMaskingPolicyDifferenceId}', sdm_masking_policy_difference_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_sdm_masking_policy_difference') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SdmMaskingPolicyDifference' ) end # rubocop:enable Metrics/BlockLength end |
#get_security_assessment(security_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_security_assessment API.
Gets the details of the specified security assessment.
9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9786 def get_security_assessment(security_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_security_assessment.' if logger raise "Missing the required parameter 'security_assessment_id' when calling get_security_assessment." if security_assessment_id.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_security_assessment') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityAssessment' ) end # rubocop:enable Metrics/BlockLength end |
#get_security_assessment_comparison(security_assessment_id, comparison_security_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_security_assessment_comparison API.
Gets the details of the comparison report for the security assessments submitted for comparison.
9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9841 def get_security_assessment_comparison(security_assessment_id, comparison_security_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_security_assessment_comparison.' if logger raise "Missing the required parameter 'security_assessment_id' when calling get_security_assessment_comparison." if security_assessment_id.nil? raise "Missing the required parameter 'comparison_security_assessment_id' when calling get_security_assessment_comparison." if comparison_security_assessment_id.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) raise "Parameter value for 'comparison_security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(comparison_security_assessment_id) path = '/securityAssessments/{securityAssessmentId}/comparison/{comparisonSecurityAssessmentId}'.sub('{securityAssessmentId}', security_assessment_id.to_s).sub('{comparisonSecurityAssessmentId}', comparison_security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_security_assessment_comparison') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityAssessmentComparison' ) end # rubocop:enable Metrics/BlockLength end |
#get_security_policy(security_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_security_policy API.
Gets a security policy by the specified OCID of the security policy resource.
9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9897 def get_security_policy(security_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_security_policy.' if logger raise "Missing the required parameter 'security_policy_id' when calling get_security_policy." if security_policy_id.nil? raise "Parameter value for 'security_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_id) path = '/securityPolicies/{securityPolicyId}'.sub('{securityPolicyId}', security_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_security_policy') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityPolicy' ) end # rubocop:enable Metrics/BlockLength end |
#get_security_policy_deployment(security_policy_deployment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_security_policy_deployment API.
Gets a security policy deployment by identifier.
9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 9951 def get_security_policy_deployment(security_policy_deployment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_security_policy_deployment.' if logger raise "Missing the required parameter 'security_policy_deployment_id' when calling get_security_policy_deployment." if security_policy_deployment_id.nil? raise "Parameter value for 'security_policy_deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_deployment_id) path = '/securityPolicyDeployments/{securityPolicyDeploymentId}'.sub('{securityPolicyDeploymentId}', security_policy_deployment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_security_policy_deployment') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityPolicyDeployment' ) end # rubocop:enable Metrics/BlockLength end |
#get_security_policy_entry_state(security_policy_deployment_id, security_policy_entry_state_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_security_policy_entry_state API.
Gets a security policy entity states by identifier.
10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10010 def get_security_policy_entry_state(security_policy_deployment_id, security_policy_entry_state_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_security_policy_entry_state.' if logger raise "Missing the required parameter 'security_policy_deployment_id' when calling get_security_policy_entry_state." if security_policy_deployment_id.nil? raise "Missing the required parameter 'security_policy_entry_state_id' when calling get_security_policy_entry_state." if security_policy_entry_state_id.nil? raise "Parameter value for 'security_policy_deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_deployment_id) raise "Parameter value for 'security_policy_entry_state_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_entry_state_id) path = '/securityPolicyDeployments/{securityPolicyDeploymentId}/securityPolicyEntryStates/{securityPolicyEntryStateId}'.sub('{securityPolicyDeploymentId}', security_policy_deployment_id.to_s).sub('{securityPolicyEntryStateId}', security_policy_entry_state_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_security_policy_entry_state') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityPolicyEntryState' ) end # rubocop:enable Metrics/BlockLength end |
#get_security_policy_report(security_policy_report_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_security_policy_report API.
Gets a security policy report by the specified OCID of the security policy report resource.
10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10066 def get_security_policy_report(security_policy_report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_security_policy_report.' if logger raise "Missing the required parameter 'security_policy_report_id' when calling get_security_policy_report." if security_policy_report_id.nil? raise "Parameter value for 'security_policy_report_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_report_id) path = '/securityPolicyReports/{securityPolicyReportId}'.sub('{securityPolicyReportId}', security_policy_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_security_policy_report') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityPolicyReport' ) end # rubocop:enable Metrics/BlockLength end |
#get_sensitive_column(sensitive_data_model_id, sensitive_column_key, opts = {}) ⇒ Response
Click here to see an example of how to use get_sensitive_column API.
Gets the details of the specified sensitive column.
10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10121 def get_sensitive_column(sensitive_data_model_id, sensitive_column_key, opts = {}) logger.debug 'Calling operation DataSafeClient#get_sensitive_column.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling get_sensitive_column." if sensitive_data_model_id.nil? raise "Missing the required parameter 'sensitive_column_key' when calling get_sensitive_column." if sensitive_column_key.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) raise "Parameter value for 'sensitive_column_key' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_column_key) path = '/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns/{sensitiveColumnKey}'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s).sub('{sensitiveColumnKey}', sensitive_column_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_sensitive_column') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveColumn' ) end # rubocop:enable Metrics/BlockLength end |
#get_sensitive_data_model(sensitive_data_model_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_sensitive_data_model API.
Gets the details of the specified sensitive data model.
10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10177 def get_sensitive_data_model(sensitive_data_model_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_sensitive_data_model.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling get_sensitive_data_model." if sensitive_data_model_id.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_sensitive_data_model') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveDataModel' ) end # rubocop:enable Metrics/BlockLength end |
#get_sensitive_type(sensitive_type_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_sensitive_type API.
Gets the details of the specified sensitive type.
10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10231 def get_sensitive_type(sensitive_type_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_sensitive_type.' if logger raise "Missing the required parameter 'sensitive_type_id' when calling get_sensitive_type." if sensitive_type_id.nil? raise "Parameter value for 'sensitive_type_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_type_id) path = '/sensitiveTypes/{sensitiveTypeId}'.sub('{sensitiveTypeId}', sensitive_type_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_sensitive_type') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveType' ) end # rubocop:enable Metrics/BlockLength end |
#get_sensitive_type_group(sensitive_type_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_sensitive_type_group API.
Gets the details of the specified sensitive type group.
10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10286 def get_sensitive_type_group(sensitive_type_group_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_sensitive_type_group.' if logger raise "Missing the required parameter 'sensitive_type_group_id' when calling get_sensitive_type_group." if sensitive_type_group_id.nil? raise "Parameter value for 'sensitive_type_group_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_type_group_id) path = '/sensitiveTypeGroups/{sensitiveTypeGroupId}'.sub('{sensitiveTypeGroupId}', sensitive_type_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_sensitive_type_group') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveTypeGroup' ) end # rubocop:enable Metrics/BlockLength end |
#get_sensitive_types_export(sensitive_types_export_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_sensitive_types_export API.
Gets the details of the specified sensitive types export by identifier.
10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10340 def get_sensitive_types_export(sensitive_types_export_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_sensitive_types_export.' if logger raise "Missing the required parameter 'sensitive_types_export_id' when calling get_sensitive_types_export." if sensitive_types_export_id.nil? raise "Parameter value for 'sensitive_types_export_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_types_export_id) path = '/sensitiveTypesExports/{sensitiveTypesExportId}'.sub('{sensitiveTypesExportId}', sensitive_types_export_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_sensitive_types_export') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveTypesExport' ) end # rubocop:enable Metrics/BlockLength end |
#get_sql_collection(sql_collection_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_sql_collection API.
Gets a SQL collection by identifier.
10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10394 def get_sql_collection(sql_collection_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_sql_collection.' if logger raise "Missing the required parameter 'sql_collection_id' when calling get_sql_collection." if sql_collection_id.nil? raise "Parameter value for 'sql_collection_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_collection_id) path = '/sqlCollections/{sqlCollectionId}'.sub('{sqlCollectionId}', sql_collection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_sql_collection') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlCollection' ) end # rubocop:enable Metrics/BlockLength end |
#get_sql_firewall_allowed_sql(sql_firewall_allowed_sql_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_sql_firewall_allowed_sql API.
Gets a SQL firewall allowed SQL by identifier.
10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10448 def get_sql_firewall_allowed_sql(sql_firewall_allowed_sql_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_sql_firewall_allowed_sql.' if logger raise "Missing the required parameter 'sql_firewall_allowed_sql_id' when calling get_sql_firewall_allowed_sql." if sql_firewall_allowed_sql_id.nil? raise "Parameter value for 'sql_firewall_allowed_sql_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_firewall_allowed_sql_id) path = '/sqlFirewallAllowedSqls/{sqlFirewallAllowedSqlId}'.sub('{sqlFirewallAllowedSqlId}', sql_firewall_allowed_sql_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_sql_firewall_allowed_sql') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlFirewallAllowedSql' ) end # rubocop:enable Metrics/BlockLength end |
#get_sql_firewall_policy(sql_firewall_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_sql_firewall_policy API.
Gets a SQL Firewall policy by identifier.
10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10502 def get_sql_firewall_policy(sql_firewall_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_sql_firewall_policy.' if logger raise "Missing the required parameter 'sql_firewall_policy_id' when calling get_sql_firewall_policy." if sql_firewall_policy_id.nil? raise "Parameter value for 'sql_firewall_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_firewall_policy_id) path = '/sqlFirewallPolicies/{sqlFirewallPolicyId}'.sub('{sqlFirewallPolicyId}', sql_firewall_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_sql_firewall_policy') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlFirewallPolicy' ) end # rubocop:enable Metrics/BlockLength end |
#get_target_alert_policy_association(target_alert_policy_association_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_target_alert_policy_association API.
Gets the details of target-alert policy association by its ID.
10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10556 def get_target_alert_policy_association(target_alert_policy_association_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_target_alert_policy_association.' if logger raise "Missing the required parameter 'target_alert_policy_association_id' when calling get_target_alert_policy_association." if target_alert_policy_association_id.nil? raise "Parameter value for 'target_alert_policy_association_id' must not be blank" if OCI::Internal::Util.blank_string?(target_alert_policy_association_id) path = '/targetAlertPolicyAssociations/{targetAlertPolicyAssociationId}'.sub('{targetAlertPolicyAssociationId}', target_alert_policy_association_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_target_alert_policy_association') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::TargetAlertPolicyAssociation' ) end # rubocop:enable Metrics/BlockLength end |
#get_target_database(target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_target_database API.
Returns the details of the specified Data Safe target database.
10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10611 def get_target_database(target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_target_database.' if logger raise "Missing the required parameter 'target_database_id' when calling get_target_database." if target_database_id.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_target_database') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::TargetDatabase' ) end # rubocop:enable Metrics/BlockLength end |
#get_user_assessment(user_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_user_assessment API.
Gets a user assessment by identifier.
10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10665 def get_user_assessment(user_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_user_assessment.' if logger raise "Missing the required parameter 'user_assessment_id' when calling get_user_assessment." if user_assessment_id.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_user_assessment') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::UserAssessment' ) end # rubocop:enable Metrics/BlockLength end |
#get_user_assessment_comparison(user_assessment_id, comparison_user_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_user_assessment_comparison API.
Gets the details of the comparison report for the user assessments submitted for comparison.
10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10720 def get_user_assessment_comparison(user_assessment_id, comparison_user_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_user_assessment_comparison.' if logger raise "Missing the required parameter 'user_assessment_id' when calling get_user_assessment_comparison." if user_assessment_id.nil? raise "Missing the required parameter 'comparison_user_assessment_id' when calling get_user_assessment_comparison." if comparison_user_assessment_id.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) raise "Parameter value for 'comparison_user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(comparison_user_assessment_id) path = '/userAssessments/{userAssessmentId}/comparison/{comparisonUserAssessmentId}'.sub('{userAssessmentId}', user_assessment_id.to_s).sub('{comparisonUserAssessmentId}', comparison_user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_user_assessment_comparison') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::UserAssessmentComparison' ) end # rubocop:enable Metrics/BlockLength end |
#get_work_request(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_work_request API.
Gets the details of the specified work request.
10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10776 def get_work_request(work_request_id, opts = {}) logger.debug 'Calling operation DataSafeClient#get_work_request.' if logger raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#get_work_request') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::WorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#list_alert_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_alert_analytics API.
Returns the aggregation details of the alerts.
Allowed values are: displayName, timeCreated
10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 10895 def list_alert_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_alert_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_alert_analytics." if compartment_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[displayName timeCreated].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of displayName, timeCreated.' end if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end summary_field_allowable_values = %w[alertType targetIds targetNames alertSeverity alertStatus timeCreated policyId open closed critical high medium low alertcount alertPolicyRuleKey alertPolicyRuleName throttled] if opts[:summary_field] && !opts[:summary_field].empty? opts[:summary_field].each do |val_to_check| unless summary_field_allowable_values.include?(val_to_check) raise 'Invalid value for "summary_field", must be one of alertType, targetIds, targetNames, alertSeverity, alertStatus, timeCreated, policyId, open, closed, critical, high, medium, low, alertcount, alertPolicyRuleKey, alertPolicyRuleName, throttled.' end end end group_by_allowable_values = %w[alertType targetIds targetNames alertSeverity alertStatus timeCreated policyId alertPolicyRuleKey alertPolicyRuleName] if opts[:group_by] && !opts[:group_by].empty? opts[:group_by].each do |val_to_check| unless group_by_allowable_values.include?(val_to_check) raise 'Invalid value for "group_by", must be one of alertType, targetIds, targetNames, alertSeverity, alertStatus, timeCreated, policyId, alertPolicyRuleKey, alertPolicyRuleName.' end end end path = '/alertAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:timeStarted] = opts[:time_started] if opts[:time_started] query_params[:timeEnded] = opts[:time_ended] if opts[:time_ended] query_params[:queryTimeZone] = opts[:query_time_zone] if opts[:query_time_zone] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] query_params[:summaryField] = OCI::ApiClient.build_collection_params(opts[:summary_field], :multi) if opts[:summary_field] && !opts[:summary_field].empty? query_params[:groupBy] = OCI::ApiClient.build_collection_params(opts[:group_by], :multi) if opts[:group_by] && !opts[:group_by].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_alert_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AlertAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_alert_policies(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_alert_policies API.
Gets a list of all alert policies.
Allowed values are: displayName, timeCreated
11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 11032 def list_alert_policies(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_alert_policies.' if logger raise "Missing the required parameter 'compartment_id' when calling list_alert_policies." if compartment_id.nil? if opts[:type] && !OCI::DataSafe::Models::ALERT_POLICY_TYPE_ENUM.include?(opts[:type]) raise 'Invalid value for "type", must be one of the values in OCI::DataSafe::Models::ALERT_POLICY_TYPE_ENUM.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::ALERT_POLICY_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::ALERT_POLICY_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[displayName timeCreated].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of displayName, timeCreated.' end if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/alertPolicies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:alertPolicyId] = opts[:alert_policy_id] if opts[:alert_policy_id] query_params[:type] = opts[:type] if opts[:type] query_params[:isUserDefined] = opts[:is_user_defined] if !opts[:is_user_defined].nil? query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_alert_policies') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AlertPolicyCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_alert_policy_rules(alert_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_alert_policy_rules API.
Lists the rules of the specified alert policy. The alert policy is said to be satisfied when all rules in the policy evaulate to true. If there are three rules: rule1,rule2 and rule3, the policy is satisfied if rule1 AND rule2 AND rule3 is True.
11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 11123 def list_alert_policy_rules(alert_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_alert_policy_rules.' if logger raise "Missing the required parameter 'alert_policy_id' when calling list_alert_policy_rules." if alert_policy_id.nil? raise "Parameter value for 'alert_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_policy_id) path = '/alertPolicies/{alertPolicyId}/rules'.sub('{alertPolicyId}', alert_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_alert_policy_rules') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AlertPolicyRuleCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_alerts(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_alerts API.
Gets a list of all alerts.
Allowed values are: displayName, timeCreated
11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 11222 def list_alerts(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_alerts.' if logger raise "Missing the required parameter 'compartment_id' when calling list_alerts." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[displayName timeCreated].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of displayName, timeCreated.' end field_allowable_values = %w[id displayName alertType targetIds targetNames severity status operationTime operation operationStatus timeCreated timeUpdated policyId lifecycleState] if opts[:field] && !opts[:field].empty? opts[:field].each do |val_to_check| unless field_allowable_values.include?(val_to_check) raise 'Invalid value for "field", must be one of id, displayName, alertType, targetIds, targetNames, severity, status, operationTime, operation, operationStatus, timeCreated, timeUpdated, policyId, lifecycleState.' end end end path = '/alerts' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:id] = opts[:id] if opts[:id] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] query_params[:field] = OCI::ApiClient.build_collection_params(opts[:field], :multi) if opts[:field] && !opts[:field].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_alerts') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AlertCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_audit_archive_retrievals(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_audit_archive_retrievals API.
Returns the list of audit archive retrieval.
11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 11332 def list_audit_archive_retrievals(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_audit_archive_retrievals.' if logger raise "Missing the required parameter 'compartment_id' when calling list_audit_archive_retrievals." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::AUDIT_ARCHIVE_RETRIEVAL_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::AUDIT_ARCHIVE_RETRIEVAL_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/auditArchiveRetrievals' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:auditArchiveRetrievalId] = opts[:audit_archive_retrieval_id] if opts[:audit_archive_retrieval_id] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:timeOfExpiry] = opts[:time_of_expiry] if opts[:time_of_expiry] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_audit_archive_retrievals') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditArchiveRetrievalCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_audit_event_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_audit_event_analytics API.
By default the ListAuditEventAnalytics operation will return all of the summary columns. To filter for a specific summary column, specify it in the summaryField
query parameter.
Example: /auditEventAnalytics?summaryField=targetName&summaryField=userName&summaryField=clientHostname &summaryField=dmls&summaryField=privilegeChanges&summaryField=ddls&summaryField=loginFailure&summaryField=loginSuccess &summaryField=allRecord&scimQuery=(auditEventTime ge "2021-06-13T23:49:14")
/auditEventAnalytics?timeStarted=2022-08-18T11:02:26.000Z&timeEnded=2022-08-24T11:02:26.000Z This will give number of events grouped by periods. Period can be 1 day, 1 week, etc.
/auditEventAnalytics?summaryField=targetName&groupBy=targetName This will give the number of events group by targetName. Only targetName summary column would be returned.
11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 11481 def list_audit_event_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_audit_event_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_audit_event_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end summary_field_allowable_values = %w[auditEventTime dbUserName targetId targetName targetClass objectType clientHostname clientProgram clientId auditType eventName allRecord auditSettingsChange dbSchemaChange entitlementChange loginFailure loginSuccess allViolations realmViolations ruleViolations dvconfigActivities ddls dmls privilegeChanges auditSettingsEnables auditSettingsDisables selects creates alters drops grants revokes] if opts[:summary_field] && !opts[:summary_field].empty? opts[:summary_field].each do |val_to_check| unless summary_field_allowable_values.include?(val_to_check) raise 'Invalid value for "summary_field", must be one of auditEventTime, dbUserName, targetId, targetName, targetClass, objectType, clientHostname, clientProgram, clientId, auditType, eventName, allRecord, auditSettingsChange, dbSchemaChange, entitlementChange, loginFailure, loginSuccess, allViolations, realmViolations, ruleViolations, dvconfigActivities, ddls, dmls, privilegeChanges, auditSettingsEnables, auditSettingsDisables, selects, creates, alters, drops, grants, revokes.' end end end group_by_allowable_values = %w[auditEventTime dbUserName targetId targetName targetClass objectType clientHostname clientProgram clientId auditType eventName] if opts[:group_by] && !opts[:group_by].empty? opts[:group_by].each do |val_to_check| unless group_by_allowable_values.include?(val_to_check) raise 'Invalid value for "group_by", must be one of auditEventTime, dbUserName, targetId, targetName, targetClass, objectType, clientHostname, clientProgram, clientId, auditType, eventName.' end end end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[targetId targetClass targetName objectType dbUserName eventName auditEventTime clientHostname clientProgram clientId auditType].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of targetId, targetClass, targetName, objectType, dbUserName, eventName, auditEventTime, clientHostname, clientProgram, clientId, auditType.' end path = '/auditEventAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] query_params[:summaryField] = OCI::ApiClient.build_collection_params(opts[:summary_field], :multi) if opts[:summary_field] && !opts[:summary_field].empty? query_params[:timeStarted] = opts[:time_started] if opts[:time_started] query_params[:timeEnded] = opts[:time_ended] if opts[:time_ended] query_params[:queryTimeZone] = opts[:query_time_zone] if opts[:query_time_zone] query_params[:groupBy] = OCI::ApiClient.build_collection_params(opts[:group_by], :multi) if opts[:group_by] && !opts[:group_by].empty? query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_audit_event_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditEventAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_audit_events(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_audit_events API.
The ListAuditEvents operation returns specified compartmentId
audit Events only. The list does not include any audit Events associated with the subcompartments
of the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListAuditEvents on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
Allowed values are: dbUserName, targetName, databaseType, targetClass, auditEventTime, timeCollected, osUserName, operation, operationStatus, eventName, errorCode, errorMessage, objectType, objectName, objectOwner, clientHostname, clientIp, isAlerted, actionTaken, clientProgram, commandText, commandParam, extendedEventAttributes, auditLocation, osTerminal, clientId, auditPolicies, auditType
11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 11626 def list_audit_events(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_audit_events.' if logger raise "Missing the required parameter 'compartment_id' when calling list_audit_events." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[dbUserName targetName databaseType targetClass auditEventTime timeCollected osUserName operation operationStatus eventName errorCode errorMessage objectType objectName objectOwner clientHostname clientIp isAlerted actionTaken clientProgram commandText commandParam extendedEventAttributes auditLocation osTerminal clientId auditPolicies auditType].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of dbUserName, targetName, databaseType, targetClass, auditEventTime, timeCollected, osUserName, operation, operationStatus, eventName, errorCode, errorMessage, objectType, objectName, objectOwner, clientHostname, clientIp, isAlerted, actionTaken, clientProgram, commandText, commandParam, extendedEventAttributes, auditLocation, osTerminal, clientId, auditPolicies, auditType.' end path = '/auditEvents' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json, application/xml' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_audit_events') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditEventCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_audit_policies(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_audit_policies API.
Retrieves a list of all audited targets with their corresponding provisioned audit policies, and their provisioning conditions.
The ListAuditPolicies operation returns only the audit policies in the specified compartmentId
. The list does not include any subcompartments of the compartmentId passed.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListAuditPolicies on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 11737 def list_audit_policies(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_audit_policies.' if logger raise "Missing the required parameter 'compartment_id' when calling list_audit_policies." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::AUDIT_POLICY_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::AUDIT_POLICY_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/auditPolicies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:auditPolicyId] = opts[:audit_policy_id] if opts[:audit_policy_id] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_audit_policies') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditPolicyCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_audit_policy_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_audit_policy_analytics API.
Gets a list of aggregated audit policy details on the target databases. A audit policy aggregation helps understand the overall state of policies provisioned on targets. It is especially useful to create dashboards or to support analytics.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform SummarizedAuditPolicyInfo on the specified compartmentId
and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
Example: ListAuditPolicyAnalytics?groupBy=auditPolicyCategory
11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 11853 def list_audit_policy_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_audit_policy_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_audit_policy_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end group_by_allowable_values = %w[auditPolicyCategory auditPolicyName targetId] if opts[:group_by] && !opts[:group_by].empty? opts[:group_by].each do |val_to_check| unless group_by_allowable_values.include?(val_to_check) raise 'Invalid value for "group_by", must be one of auditPolicyCategory, auditPolicyName, targetId.' end end end if opts[:audit_policy_category] && !OCI::DataSafe::Models::AUDIT_POLICY_CATEGORY_ENUM.include?(opts[:audit_policy_category]) raise 'Invalid value for "audit_policy_category", must be one of the values in OCI::DataSafe::Models::AUDIT_POLICY_CATEGORY_ENUM.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::AUDIT_POLICY_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::AUDIT_POLICY_LIFECYCLE_STATE_ENUM.' end path = '/auditPolicyAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:groupBy] = OCI::ApiClient.build_collection_params(opts[:group_by], :multi) if opts[:group_by] && !opts[:group_by].empty? query_params[:auditPolicyCategory] = opts[:audit_policy_category] if opts[:audit_policy_category] query_params[:auditPolicyName] = opts[:audit_policy_name] if opts[:audit_policy_name] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_audit_policy_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditPolicyAnalyticCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_audit_profile_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_audit_profile_analytics API.
Gets a list of audit profile aggregated details . A audit profile aggregation helps understand the overall state of audit profile profiles. As an example, it helps understand how many audit profiles have paid usage. It is especially useful to create dashboards or to support analytics.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform AuditProfileAnalytics on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 11964 def list_audit_profile_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_audit_profile_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_audit_profile_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end group_by_allowable_values = %w[isPaidUsageEnabled] if opts[:group_by] && !opts[:group_by].empty? opts[:group_by].each do |val_to_check| unless group_by_allowable_values.include?(val_to_check) raise 'Invalid value for "group_by", must be one of isPaidUsageEnabled.' end end end path = '/auditProfileAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:groupBy] = OCI::ApiClient.build_collection_params(opts[:group_by], :multi) if opts[:group_by] && !opts[:group_by].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_audit_profile_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditProfileAnalyticCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_audit_profiles(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_audit_profiles API.
Gets a list of all audit profiles.
The ListAuditProfiles operation returns only the audit profiles in the specified compartmentId
. The list does not include any subcompartments of the compartmentId passed.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListAuditProfiles on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 12082 def list_audit_profiles(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_audit_profiles.' if logger raise "Missing the required parameter 'compartment_id' when calling list_audit_profiles." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::AUDIT_PROFILE_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::AUDIT_PROFILE_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/auditProfiles' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:auditProfileId] = opts[:audit_profile_id] if opts[:audit_profile_id] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:isOverrideGlobalRetentionSetting] = opts[:is_override_global_retention_setting] if !opts[:is_override_global_retention_setting].nil? query_params[:isPaidUsageEnabled] = opts[:is_paid_usage_enabled] if !opts[:is_paid_usage_enabled].nil? query_params[:auditCollectedVolumeGreaterThanOrEqualTo] = opts[:audit_collected_volume_greater_than_or_equal_to] if opts[:audit_collected_volume_greater_than_or_equal_to] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_audit_profiles') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditProfileCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_audit_trail_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_audit_trail_analytics API.
Gets a list of audit trail aggregated details . A audit trail aggregation helps understand the overall state of trails. As an example, it helps understand how many trails are running or stopped. It is especially useful to create dashboards or to support analytics.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform AuditTrailAnalytics on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 12192 def list_audit_trail_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_audit_trail_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_audit_trail_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end group_by_allowable_values = %w[location lifecycleState status targetId] if opts[:group_by] && !opts[:group_by].empty? opts[:group_by].each do |val_to_check| unless group_by_allowable_values.include?(val_to_check) raise 'Invalid value for "group_by", must be one of location, lifecycleState, status, targetId.' end end end path = '/auditTrailAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:groupBy] = OCI::ApiClient.build_collection_params(opts[:group_by], :multi) if opts[:group_by] && !opts[:group_by].empty? query_params[:targetId] = opts[:target_id] if opts[:target_id] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_audit_trail_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditTrailAnalyticCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_audit_trails(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_audit_trails API.
Gets a list of all audit trails. The ListAuditTrails operation returns only the audit trails in the specified compartmentId
. The list does not include any subcompartments of the compartmentId passed.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListAuditTrails on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 12304 def list_audit_trails(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_audit_trails.' if logger raise "Missing the required parameter 'compartment_id' when calling list_audit_trails." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::AUDIT_TRAIL_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::AUDIT_TRAIL_LIFECYCLE_STATE_ENUM.' end if opts[:status] && !OCI::DataSafe::Models::AUDIT_TRAIL_STATUS_ENUM.include?(opts[:status]) raise 'Invalid value for "status", must be one of the values in OCI::DataSafe::Models::AUDIT_TRAIL_STATUS_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/auditTrails' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:auditTrailId] = opts[:audit_trail_id] if opts[:audit_trail_id] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:status] = opts[:status] if opts[:status] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_audit_trails') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AuditTrailCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_available_audit_volumes(audit_profile_id, work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_available_audit_volumes API.
Retrieves a list of audit trails, and associated audit event volume for each trail up to defined start date. Allowed values are: monthInConsideration, volume, trailLocation
12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 12412 def list_available_audit_volumes(audit_profile_id, work_request_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_available_audit_volumes.' if logger raise "Missing the required parameter 'audit_profile_id' when calling list_available_audit_volumes." if audit_profile_id.nil? raise "Missing the required parameter 'work_request_id' when calling list_available_audit_volumes." if work_request_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[monthInConsideration volume trailLocation].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of monthInConsideration, volume, trailLocation.' end raise "Parameter value for 'audit_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_profile_id) path = '/auditProfiles/{auditProfileId}/availableAuditVolumes'.sub('{auditProfileId}', audit_profile_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:workRequestId] = work_request_id query_params[:trailLocation] = opts[:trail_location] if opts[:trail_location] query_params[:monthInConsiderationGreaterThan] = opts[:month_in_consideration_greater_than] if opts[:month_in_consideration_greater_than] query_params[:monthInConsiderationLessThan] = opts[:month_in_consideration_less_than] if opts[:month_in_consideration_less_than] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_available_audit_volumes') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::AvailableAuditVolumeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_collected_audit_volumes(audit_profile_id, work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_collected_audit_volumes API.
Gets a list of all collected audit volume data points. Allowed values are: monthInConsideration, onlineVolume, archivedVolume
12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 12505 def list_collected_audit_volumes(audit_profile_id, work_request_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_collected_audit_volumes.' if logger raise "Missing the required parameter 'audit_profile_id' when calling list_collected_audit_volumes." if audit_profile_id.nil? raise "Missing the required parameter 'work_request_id' when calling list_collected_audit_volumes." if work_request_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[monthInConsideration onlineVolume archivedVolume].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of monthInConsideration, onlineVolume, archivedVolume.' end raise "Parameter value for 'audit_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_profile_id) path = '/auditProfiles/{auditProfileId}/collectedAuditVolumes'.sub('{auditProfileId}', audit_profile_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:workRequestId] = work_request_id query_params[:monthInConsiderationGreaterThan] = opts[:month_in_consideration_greater_than] if opts[:month_in_consideration_greater_than] query_params[:monthInConsiderationLessThan] = opts[:month_in_consideration_less_than] if opts[:month_in_consideration_less_than] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_collected_audit_volumes') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::CollectedAuditVolumeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_columns(target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_columns API.
Returns a list of column metadata objects.
Allowed values are: SCHEMANAME, TABLENAME, COLUMNNAME, DATATYPE
12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 12590 def list_columns(target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_columns.' if logger raise "Missing the required parameter 'target_database_id' when calling list_columns." if target_database_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[SCHEMANAME TABLENAME COLUMNNAME DATATYPE].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of SCHEMANAME, TABLENAME, COLUMNNAME, DATATYPE.' end raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}/columns'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:tableName] = OCI::ApiClient.build_collection_params(opts[:table_name], :multi) if opts[:table_name] && !opts[:table_name].empty? query_params[:columnName] = OCI::ApiClient.build_collection_params(opts[:column_name], :multi) if opts[:column_name] && !opts[:column_name].empty? query_params[:datatype] = OCI::ApiClient.build_collection_params(opts[:datatype], :multi) if opts[:datatype] && !opts[:datatype].empty? query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:schemaNameContains] = opts[:schema_name_contains] if opts[:schema_name_contains] query_params[:tableNameContains] = opts[:table_name_contains] if opts[:table_name_contains] query_params[:columnNameContains] = opts[:column_name_contains] if opts[:column_name_contains] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_columns') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::ColumnSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_data_safe_private_endpoints(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_data_safe_private_endpoints API.
Gets a list of Data Safe private endpoints.
12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 12686 def list_data_safe_private_endpoints(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_data_safe_private_endpoints.' if logger raise "Missing the required parameter 'compartment_id' when calling list_data_safe_private_endpoints." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::DataSafe::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/dataSafePrivateEndpoints' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:vcnId] = opts[:vcn_id] if opts[:vcn_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_data_safe_private_endpoints') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::DataSafePrivateEndpointSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_database_security_configs(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_database_security_configs API.
Retrieves a list of all database security configurations in Data Safe.
The ListDatabaseSecurityConfigs operation returns only the database security configurations in the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListDatabaseSecurityConfigs on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 12815 def list_database_security_configs(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_database_security_configs.' if logger raise "Missing the required parameter 'compartment_id' when calling list_database_security_configs." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::DATABASE_SECURITY_CONFIG_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::DATABASE_SECURITY_CONFIG_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/databaseSecurityConfigs' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:databaseSecurityConfigId] = opts[:database_security_config_id] if opts[:database_security_config_id] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_database_security_configs') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DatabaseSecurityConfigCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_database_table_access_entries(security_policy_report_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_database_table_access_entries API.
Retrieves a list of all database table access entries in Data Safe.
The ListDatabaseTableAccessEntries operation returns only the database table access reports for the specified security policy report.
Allowed values are: key, grantee, accessType, tableSchema, tableName, privilegeType, privilege, privilegeGrantable, grantFromRole, accessThroughObject, columnName, grantor, areAllTablesAccessible, isAccessConstrainedByView, isAccessConstrainedByLabelSecurity, isAccessConstrainedByDatabaseVault, isAccessConstrainedByVirtualPrivateDatabase, isAccessConstrainedByRedaction, isAccessConstrainedByRealApplicationSecurity, isAccessConstrainedBySqlFirewall, isSensitive
12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 12915 def list_database_table_access_entries(security_policy_report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_database_table_access_entries.' if logger raise "Missing the required parameter 'security_policy_report_id' when calling list_database_table_access_entries." if security_policy_report_id.nil? if opts[:sort_by] && !%w[key grantee accessType tableSchema tableName privilegeType privilege privilegeGrantable grantFromRole accessThroughObject columnName grantor areAllTablesAccessible isAccessConstrainedByView isAccessConstrainedByLabelSecurity isAccessConstrainedByDatabaseVault isAccessConstrainedByVirtualPrivateDatabase isAccessConstrainedByRedaction isAccessConstrainedByRealApplicationSecurity isAccessConstrainedBySqlFirewall isSensitive].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of key, grantee, accessType, tableSchema, tableName, privilegeType, privilege, privilegeGrantable, grantFromRole, accessThroughObject, columnName, grantor, areAllTablesAccessible, isAccessConstrainedByView, isAccessConstrainedByLabelSecurity, isAccessConstrainedByDatabaseVault, isAccessConstrainedByVirtualPrivateDatabase, isAccessConstrainedByRedaction, isAccessConstrainedByRealApplicationSecurity, isAccessConstrainedBySqlFirewall, isSensitive.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'security_policy_report_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_report_id) path = '/securityPolicyReports/{securityPolicyReportId}/databaseTableAccessEntries'.sub('{securityPolicyReportId}', security_policy_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_database_table_access_entries') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DatabaseTableAccessEntryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_database_view_access_entries(security_policy_report_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_database_view_access_entries API.
Retrieves a list of all database view access entries in Data Safe.
The ListDatabaseViewAccessEntries operation returns only the database view access objects for the specified security policy report.
Allowed values are: key, grantee, accessType, tableSchema, tableName, viewSchema, viewName, privilegeType, privilege, privilegeGrantable, grantFromRole, accessThroughObject, columnName, grantor, isAccessConstrainedByDatabaseVault, isAccessConstrainedByVirtualPrivateDatabase, isAccessConstrainedByRedaction, isAccessConstrainedByRealApplicationSecurity, isAccessConstrainedBySqlFirewall
13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 13001 def list_database_view_access_entries(security_policy_report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_database_view_access_entries.' if logger raise "Missing the required parameter 'security_policy_report_id' when calling list_database_view_access_entries." if security_policy_report_id.nil? if opts[:sort_by] && !%w[key grantee accessType tableSchema tableName viewSchema viewName privilegeType privilege privilegeGrantable grantFromRole accessThroughObject columnName grantor isAccessConstrainedByDatabaseVault isAccessConstrainedByVirtualPrivateDatabase isAccessConstrainedByRedaction isAccessConstrainedByRealApplicationSecurity isAccessConstrainedBySqlFirewall].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of key, grantee, accessType, tableSchema, tableName, viewSchema, viewName, privilegeType, privilege, privilegeGrantable, grantFromRole, accessThroughObject, columnName, grantor, isAccessConstrainedByDatabaseVault, isAccessConstrainedByVirtualPrivateDatabase, isAccessConstrainedByRedaction, isAccessConstrainedByRealApplicationSecurity, isAccessConstrainedBySqlFirewall.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'security_policy_report_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_report_id) path = '/securityPolicyReports/{securityPolicyReportId}/databaseViewAccessEntries'.sub('{securityPolicyReportId}', security_policy_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_database_view_access_entries') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DatabaseViewAccessEntryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_difference_columns(sdm_masking_policy_difference_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_difference_columns API.
Gets a list of columns of a SDM masking policy difference resource based on the specified query parameters.
13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 13083 def list_difference_columns(sdm_masking_policy_difference_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_difference_columns.' if logger raise "Missing the required parameter 'sdm_masking_policy_difference_id' when calling list_difference_columns." if sdm_masking_policy_difference_id.nil? if opts[:difference_type] && !OCI::DataSafe::Models::SdmMaskingPolicyDifference::DIFFERENCE_TYPE_ENUM.include?(opts[:difference_type]) raise 'Invalid value for "difference_type", must be one of the values in OCI::DataSafe::Models::SdmMaskingPolicyDifference::DIFFERENCE_TYPE_ENUM.' end if opts[:planned_action] && !OCI::DataSafe::Models::DifferenceColumn::PLANNED_ACTION_ENUM.include?(opts[:planned_action]) raise 'Invalid value for "planned_action", must be one of the values in OCI::DataSafe::Models::DifferenceColumn::PLANNED_ACTION_ENUM.' end if opts[:sync_status] && !OCI::DataSafe::Models::DifferenceColumn::SYNC_STATUS_ENUM.include?(opts[:sync_status]) raise 'Invalid value for "sync_status", must be one of the values in OCI::DataSafe::Models::DifferenceColumn::SYNC_STATUS_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[differenceType schemaName objectName columnName plannedAction].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of differenceType, schemaName, objectName, columnName, plannedAction.' end raise "Parameter value for 'sdm_masking_policy_difference_id' must not be blank" if OCI::Internal::Util.blank_string?(sdm_masking_policy_difference_id) path = '/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}/differenceColumns'.sub('{sdmMaskingPolicyDifferenceId}', sdm_masking_policy_difference_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:differenceType] = opts[:difference_type] if opts[:difference_type] query_params[:plannedAction] = opts[:planned_action] if opts[:planned_action] query_params[:syncStatus] = opts[:sync_status] if opts[:sync_status] query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:objectName] = OCI::ApiClient.build_collection_params(opts[:object_name], :multi) if opts[:object_name] && !opts[:object_name].empty? query_params[:columnName] = OCI::ApiClient.build_collection_params(opts[:column_name], :multi) if opts[:column_name] && !opts[:column_name].empty? query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_difference_columns') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SdmMaskingPolicyDifferenceColumnCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_discovery_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_discovery_analytics API.
Gets consolidated discovery analytics data based on the specified query parameters. If CompartmentIdInSubtreeQueryParam is specified as true, the behaviour is equivalent to accessLevel "ACCESSIBLE" by default.
13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 13183 def list_discovery_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_discovery_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_discovery_analytics." if compartment_id.nil? if opts[:group_by] && !%w[targetId sensitiveDataModelId sensitiveTypeId targetIdAndSensitiveDataModelId sensitiveTypeIdAndTargetId sensitiveTypeIdAndSensitiveDataModelId].include?(opts[:group_by]) raise 'Invalid value for "group_by", must be one of targetId, sensitiveDataModelId, sensitiveTypeId, targetIdAndSensitiveDataModelId, sensitiveTypeIdAndTargetId, sensitiveTypeIdAndSensitiveDataModelId.' end path = '/discoveryAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:groupBy] = opts[:group_by] if opts[:group_by] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:sensitiveDataModelId] = opts[:sensitive_data_model_id] if opts[:sensitive_data_model_id] query_params[:sensitiveTypeId] = opts[:sensitive_type_id] if opts[:sensitive_type_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:isCommon] = opts[:is_common] if !opts[:is_common].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_discovery_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DiscoveryAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_discovery_job_results(discovery_job_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_discovery_job_results API.
Gets a list of discovery results based on the specified query parameters.
13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 13263 def list_discovery_job_results(discovery_job_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_discovery_job_results.' if logger raise "Missing the required parameter 'discovery_job_id' when calling list_discovery_job_results." if discovery_job_id.nil? if opts[:discovery_type] && !OCI::DataSafe::Models::DiscoveryJob::DISCOVERY_TYPE_ENUM.include?(opts[:discovery_type]) raise 'Invalid value for "discovery_type", must be one of the values in OCI::DataSafe::Models::DiscoveryJob::DISCOVERY_TYPE_ENUM.' end if opts[:planned_action] && !OCI::DataSafe::Models::DiscoveryJobResult::PLANNED_ACTION_ENUM.include?(opts[:planned_action]) raise 'Invalid value for "planned_action", must be one of the values in OCI::DataSafe::Models::DiscoveryJobResult::PLANNED_ACTION_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[discoveryType timeFinished schemaName objectName columnName plannedAction].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of discoveryType, timeFinished, schemaName, objectName, columnName, plannedAction.' end raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id) path = '/discoveryJobs/{discoveryJobId}/results'.sub('{discoveryJobId}', discovery_job_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:discoveryType] = opts[:discovery_type] if opts[:discovery_type] query_params[:plannedAction] = opts[:planned_action] if opts[:planned_action] query_params[:isResultApplied] = opts[:is_result_applied] if !opts[:is_result_applied].nil? query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:objectName] = OCI::ApiClient.build_collection_params(opts[:object_name], :multi) if opts[:object_name] && !opts[:object_name].empty? query_params[:columnName] = OCI::ApiClient.build_collection_params(opts[:column_name], :multi) if opts[:column_name] && !opts[:column_name].empty? query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_discovery_job_results') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DiscoveryJobResultCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_discovery_jobs(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_discovery_jobs API.
Gets a list of incremental discovery jobs based on the specified query parameters.
13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 13366 def list_discovery_jobs(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_discovery_jobs.' if logger raise "Missing the required parameter 'compartment_id' when calling list_discovery_jobs." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::DISCOVERY_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::DISCOVERY_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeStarted displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeStarted, displayName.' end path = '/discoveryJobs' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:discoveryJobId] = opts[:discovery_job_id] if opts[:discovery_job_id] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sensitiveDataModelId] = opts[:sensitive_data_model_id] if opts[:sensitive_data_model_id] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_discovery_jobs') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::DiscoveryJobCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_finding_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_finding_analytics API.
Gets a list of findings aggregated details in the specified compartment. This provides information about the overall state of security assessment findings. You can use groupBy to get the count of findings under a certain risk level and with a certain findingKey, and as well as get the list of the targets that match the condition. This data is especially useful content for the statistic chart or to support analytics.
When you perform the ListFindingAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the parameter accessLevel is set to ACCESSIBLE, then the operation returns statistics from the compartments in which the requestor has INSPECT permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by compartmentId, then "Not Authorized" is returned.
13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 13475 def list_finding_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_finding_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_finding_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:group_by] && !%w[findingKeyAndTopFindingStatus findingKeyAndSeverity].include?(opts[:group_by]) raise 'Invalid value for "group_by", must be one of findingKeyAndTopFindingStatus, findingKeyAndSeverity.' end if opts[:top_finding_status] && !OCI::DataSafe::Models::FindingAnalyticsDimensions::TOP_FINDING_STATUS_ENUM.include?(opts[:top_finding_status]) raise 'Invalid value for "top_finding_status", must be one of the values in OCI::DataSafe::Models::FindingAnalyticsDimensions::TOP_FINDING_STATUS_ENUM.' end if opts[:severity] && !%w[HIGH MEDIUM LOW EVALUATE ADVISORY PASS DEFERRED].include?(opts[:severity]) raise 'Invalid value for "severity", must be one of HIGH, MEDIUM, LOW, EVALUATE, ADVISORY, PASS, DEFERRED.' end path = '/securityAssessments/findingAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:isTopFinding] = opts[:is_top_finding] if !opts[:is_top_finding].nil? query_params[:groupBy] = opts[:group_by] if opts[:group_by] query_params[:topFindingStatus] = opts[:top_finding_status] if opts[:top_finding_status] query_params[:severity] = opts[:severity] if opts[:severity] query_params[:findingKey] = opts[:finding_key] if opts[:finding_key] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_finding_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::FindingAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_findings(security_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_findings API.
List all the findings from all the targets in the specified compartment.
Allowed values are: category, findingKey, severity
13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 13604 def list_findings(security_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_findings.' if logger raise "Missing the required parameter 'security_assessment_id' when calling list_findings." if security_assessment_id.nil? if opts[:severity] && !%w[HIGH MEDIUM LOW EVALUATE ADVISORY PASS DEFERRED].include?(opts[:severity]) raise 'Invalid value for "severity", must be one of HIGH, MEDIUM, LOW, EVALUATE, ADVISORY, PASS, DEFERRED.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::FINDING_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::FINDING_LIFECYCLE_STATE_ENUM.' end if opts[:references] && !OCI::DataSafe::Models::SECURITY_ASSESSMENT_REFERENCES_ENUM.include?(opts[:references]) raise 'Invalid value for "references", must be one of the values in OCI::DataSafe::Models::SECURITY_ASSESSMENT_REFERENCES_ENUM.' end if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end field_allowable_values = %w[severity findingKey reference targetId isTopFinding title category remarks details summary isRiskModified] if opts[:field] && !opts[:field].empty? opts[:field].each do |val_to_check| unless field_allowable_values.include?(val_to_check) raise 'Invalid value for "field", must be one of severity, findingKey, reference, targetId, isTopFinding, title, category, remarks, details, summary, isRiskModified.' end end end if opts[:sort_by] && !%w[category findingKey severity].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of category, findingKey, severity.' end raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}/findings'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isTopFinding] = opts[:is_top_finding] if !opts[:is_top_finding].nil? query_params[:severity] = opts[:severity] if opts[:severity] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:references] = opts[:references] if opts[:references] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] query_params[:field] = OCI::ApiClient.build_collection_params(opts[:field], :multi) if opts[:field] && !opts[:field].empty? query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:findingKey] = opts[:finding_key] if opts[:finding_key] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_findings') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::FindingSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_findings_change_audit_logs(security_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_findings_change_audit_logs API.
List all changes made by user to risk level of findings of the specified assessment.
Allowed values are: timeUpdated, modifiedBy, isRiskDeferred, timeValidUntil
13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 13741 def list_findings_change_audit_logs(security_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_findings_change_audit_logs.' if logger raise "Missing the required parameter 'security_assessment_id' when calling list_findings_change_audit_logs." if security_assessment_id.nil? if opts[:severity] && !%w[HIGH MEDIUM LOW EVALUATE ADVISORY PASS DEFERRED].include?(opts[:severity]) raise 'Invalid value for "severity", must be one of HIGH, MEDIUM, LOW, EVALUATE, ADVISORY, PASS, DEFERRED.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeUpdated modifiedBy isRiskDeferred timeValidUntil].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeUpdated, modifiedBy, isRiskDeferred, timeValidUntil.' end raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}/findingsChangeAuditLogs'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:severity] = opts[:severity] if opts[:severity] query_params[:findingKey] = opts[:finding_key] if opts[:finding_key] query_params[:findingTitle] = opts[:finding_title] if opts[:finding_title] query_params[:isRiskDeferred] = opts[:is_risk_deferred] if !opts[:is_risk_deferred].nil? query_params[:modifiedBy] = opts[:modified_by] if opts[:modified_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:timeValidUntilGreaterThanOrEqualTo] = opts[:time_valid_until_greater_than_or_equal_to] if opts[:time_valid_until_greater_than_or_equal_to] query_params[:timeValidUntilLessThan] = opts[:time_valid_until_less_than] if opts[:time_valid_until_less_than] query_params[:timeUpdatedGreaterThanOrEqualTo] = opts[:time_updated_greater_than_or_equal_to] if opts[:time_updated_greater_than_or_equal_to] query_params[:timeUpdatedLessThan] = opts[:time_updated_less_than] if opts[:time_updated_less_than] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_findings_change_audit_logs') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::FindingsChangeAuditLogCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_grants(user_assessment_id, user_key, opts = {}) ⇒ Response
Click here to see an example of how to use list_grants API.
Gets a list of grants for a particular user in the specified user assessment. A user grant contains details such as the privilege name, type, category, and depth level. The depth level indicates how deep in the hierarchy of roles granted to roles a privilege grant is. The userKey in this operation is a system-generated identifier. Perform the operation ListUsers to get the userKey for a particular user.
Allowed values are: grantName, grantType, privilegeCategory, depthLevel, key
13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 13839 def list_grants(user_assessment_id, user_key, opts = {}) logger.debug 'Calling operation DataSafeClient#list_grants.' if logger raise "Missing the required parameter 'user_assessment_id' when calling list_grants." if user_assessment_id.nil? raise "Missing the required parameter 'user_key' when calling list_grants." if user_key.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[grantName grantType privilegeCategory depthLevel key].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of grantName, grantType, privilegeCategory, depthLevel, key.' end raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) raise "Parameter value for 'user_key' must not be blank" if OCI::Internal::Util.blank_string?(user_key) path = '/userAssessments/{userAssessmentId}/users/{userKey}/grants'.sub('{userAssessmentId}', user_assessment_id.to_s).sub('{userKey}', user_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:grantKey] = opts[:grant_key] if opts[:grant_key] query_params[:grantName] = opts[:grant_name] if opts[:grant_name] query_params[:privilegeType] = opts[:privilege_type] if opts[:privilege_type] query_params[:privilegeCategory] = opts[:privilege_category] if opts[:privilege_category] query_params[:depthLevel] = opts[:depth_level] if opts[:depth_level] query_params[:depthLevelGreaterThanOrEqualTo] = opts[:depth_level_greater_than_or_equal_to] if opts[:depth_level_greater_than_or_equal_to] query_params[:depthLevelLessThan] = opts[:depth_level_less_than] if opts[:depth_level_less_than] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_grants') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::GrantSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_grouped_sensitive_types(sensitive_type_group_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_grouped_sensitive_types API.
Gets the list of sensitive type Ids present in the specified sensitive type group.
13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 13918 def list_grouped_sensitive_types(sensitive_type_group_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_grouped_sensitive_types.' if logger raise "Missing the required parameter 'sensitive_type_group_id' when calling list_grouped_sensitive_types." if sensitive_type_group_id.nil? raise "Parameter value for 'sensitive_type_group_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_type_group_id) path = '/sensitiveTypeGroups/{sensitiveTypeGroupId}/groupedSensitiveTypes'.sub('{sensitiveTypeGroupId}', sensitive_type_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:sensitiveTypeId] = opts[:sensitive_type_id] if opts[:sensitive_type_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_grouped_sensitive_types') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::GroupedSensitiveTypeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_library_masking_formats(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_library_masking_formats API.
Gets a list of library masking formats based on the specified query parameters.
14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 14011 def list_library_masking_formats(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_library_masking_formats.' if logger raise "Missing the required parameter 'compartment_id' when calling list_library_masking_formats." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::MASKING_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::MASKING_LIFECYCLE_STATE_ENUM.' end if opts[:library_masking_format_source] && !OCI::DataSafe::Models::LIBRARY_MASKING_FORMAT_SOURCE_ENUM.include?(opts[:library_masking_format_source]) raise 'Invalid value for "library_masking_format_source", must be one of the values in OCI::DataSafe::Models::LIBRARY_MASKING_FORMAT_SOURCE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[displayName timeCreated timeUpdated lifecycleState].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of displayName, timeCreated, timeUpdated, lifecycleState.' end path = '/libraryMaskingFormats' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:libraryMaskingFormatId] = opts[:library_masking_format_id] if opts[:library_masking_format_id] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:libraryMaskingFormatSource] = opts[:library_masking_format_source] if opts[:library_masking_format_source] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_library_masking_formats') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::LibraryMaskingFormatCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masked_columns(masking_report_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masked_columns API.
Gets a list of masked columns present in the specified masking report and based on the specified query parameters.
Allowed values are: schemaName, objectName, sensitiveTypeId, maskingColumnGroupId
14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 14112 def list_masked_columns(masking_report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masked_columns.' if logger raise "Missing the required parameter 'masking_report_id' when calling list_masked_columns." if masking_report_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[schemaName objectName sensitiveTypeId maskingColumnGroupId].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of schemaName, objectName, sensitiveTypeId, maskingColumnGroupId.' end object_type_allowable_values = %w[ALL TABLE EDITIONING_VIEW] if opts[:object_type] && !opts[:object_type].empty? opts[:object_type].each do |val_to_check| unless object_type_allowable_values.include?(val_to_check) raise 'Invalid value for "object_type", must be one of ALL, TABLE, EDITIONING_VIEW.' end end end raise "Parameter value for 'masking_report_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_report_id) path = '/maskingReports/{maskingReportId}/maskedColumns'.sub('{maskingReportId}', masking_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:objectName] = OCI::ApiClient.build_collection_params(opts[:object_name], :multi) if opts[:object_name] && !opts[:object_name].empty? query_params[:columnName] = OCI::ApiClient.build_collection_params(opts[:column_name], :multi) if opts[:column_name] && !opts[:column_name].empty? query_params[:objectType] = OCI::ApiClient.build_collection_params(opts[:object_type], :multi) if opts[:object_type] && !opts[:object_type].empty? query_params[:maskingColumnGroup] = OCI::ApiClient.build_collection_params(opts[:masking_column_group], :multi) if opts[:masking_column_group] && !opts[:masking_column_group].empty? query_params[:sensitiveTypeId] = opts[:sensitive_type_id] if opts[:sensitive_type_id] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masked_columns') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskedColumnCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masking_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masking_analytics API.
Gets consolidated masking analytics data based on the specified query parameters. If CompartmentIdInSubtreeQueryParam is specified as true, the behaviour is equivalent to accessLevel "ACCESSIBLE" by default.
14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 14206 def list_masking_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masking_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_masking_analytics." if compartment_id.nil? if opts[:group_by] && !%w[targetId policyId].include?(opts[:group_by]) raise 'Invalid value for "group_by", must be one of targetId, policyId.' end path = '/maskingAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:groupBy] = opts[:group_by] if opts[:group_by] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:maskingPolicyId] = opts[:masking_policy_id] if opts[:masking_policy_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masking_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masking_columns(masking_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masking_columns API.
Gets a list of masking columns present in the specified masking policy and based on the specified query parameters.
14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 14322 def list_masking_columns(masking_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masking_columns.' if logger raise "Missing the required parameter 'masking_policy_id' when calling list_masking_columns." if masking_policy_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated schemaName objectName dataType].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, schemaName, objectName, dataType.' end if opts[:masking_column_lifecycle_state] && !OCI::DataSafe::Models::MASKING_COLUMN_LIFECYCLE_STATE_ENUM.include?(opts[:masking_column_lifecycle_state]) raise 'Invalid value for "masking_column_lifecycle_state", must be one of the values in OCI::DataSafe::Models::MASKING_COLUMN_LIFECYCLE_STATE_ENUM.' end data_type_allowable_values = %w[CHARACTER DATE LOB NUMERIC] if opts[:data_type] && !opts[:data_type].empty? opts[:data_type].each do |val_to_check| unless data_type_allowable_values.include?(val_to_check) raise 'Invalid value for "data_type", must be one of CHARACTER, DATE, LOB, NUMERIC.' end end end object_type_allowable_values = %w[ALL TABLE EDITIONING_VIEW] if opts[:object_type] && !opts[:object_type].empty? opts[:object_type].each do |val_to_check| unless object_type_allowable_values.include?(val_to_check) raise 'Invalid value for "object_type", must be one of ALL, TABLE, EDITIONING_VIEW.' end end end raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/maskingColumns'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:maskingColumnLifecycleState] = opts[:masking_column_lifecycle_state] if opts[:masking_column_lifecycle_state] query_params[:dataType] = OCI::ApiClient.build_collection_params(opts[:data_type], :multi) if opts[:data_type] && !opts[:data_type].empty? query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:objectName] = OCI::ApiClient.build_collection_params(opts[:object_name], :multi) if opts[:object_name] && !opts[:object_name].empty? query_params[:columnName] = OCI::ApiClient.build_collection_params(opts[:column_name], :multi) if opts[:column_name] && !opts[:column_name].empty? query_params[:objectType] = OCI::ApiClient.build_collection_params(opts[:object_type], :multi) if opts[:object_type] && !opts[:object_type].empty? query_params[:maskingColumnGroup] = OCI::ApiClient.build_collection_params(opts[:masking_column_group], :multi) if opts[:masking_column_group] && !opts[:masking_column_group].empty? query_params[:sensitiveTypeId] = opts[:sensitive_type_id] if opts[:sensitive_type_id] query_params[:isMaskingEnabled] = opts[:is_masking_enabled] if !opts[:is_masking_enabled].nil? query_params[:isSeedRequired] = opts[:is_seed_required] if !opts[:is_seed_required].nil? query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:timeUpdatedGreaterThanOrEqualTo] = opts[:time_updated_greater_than_or_equal_to] if opts[:time_updated_greater_than_or_equal_to] query_params[:timeUpdatedLessThan] = opts[:time_updated_less_than] if opts[:time_updated_less_than] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masking_columns') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingColumnCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masking_errors(masking_report_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masking_errors API.
Gets a list of masking errors in a masking run based on the specified query parameters.
14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 14435 def list_masking_errors(masking_report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masking_errors.' if logger raise "Missing the required parameter 'masking_report_id' when calling list_masking_errors." if masking_report_id.nil? if opts[:step_name] && !%w[EXECUTE_MASKING PRE_MASKING POST_MASKING].include?(opts[:step_name]) raise 'Invalid value for "step_name", must be one of EXECUTE_MASKING, PRE_MASKING, POST_MASKING.' end if opts[:sort_by] && !%w[stepName timeCreated].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of stepName, timeCreated.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'masking_report_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_report_id) path = '/maskingReports/{maskingReportId}/maskingErrors'.sub('{maskingReportId}', masking_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:stepName] = opts[:step_name] if opts[:step_name] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masking_errors') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingErrorCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masking_objects(masking_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masking_objects API.
Gets a list of masking objects present in the specified masking policy and based on the specified query parameters.
14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 14519 def list_masking_objects(masking_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masking_objects.' if logger raise "Missing the required parameter 'masking_policy_id' when calling list_masking_objects." if masking_policy_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[schemaName objectName objectType].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of schemaName, objectName, objectType.' end object_type_allowable_values = %w[ALL TABLE EDITIONING_VIEW] if opts[:object_type] && !opts[:object_type].empty? opts[:object_type].each do |val_to_check| unless object_type_allowable_values.include?(val_to_check) raise 'Invalid value for "object_type", must be one of ALL, TABLE, EDITIONING_VIEW.' end end end raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/maskingObjects'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:objectName] = OCI::ApiClient.build_collection_params(opts[:object_name], :multi) if opts[:object_name] && !opts[:object_name].empty? query_params[:objectType] = OCI::ApiClient.build_collection_params(opts[:object_type], :multi) if opts[:object_type] && !opts[:object_type].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masking_objects') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingObjectCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masking_policies(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masking_policies API.
Gets a list of masking policies based on the specified query parameters.
14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 14634 def list_masking_policies(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masking_policies.' if logger raise "Missing the required parameter 'compartment_id' when calling list_masking_policies." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::DataSafe::Models::MASKING_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::MASKING_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[displayName timeCreated].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of displayName, timeCreated.' end if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/maskingPolicies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:maskingPolicyId] = opts[:masking_policy_id] if opts[:masking_policy_id] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sensitiveDataModelId] = opts[:sensitive_data_model_id] if opts[:sensitive_data_model_id] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masking_policies') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingPolicyCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masking_policy_health_report_logs(masking_policy_health_report_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masking_policy_health_report_logs API.
Gets a list of errors and warnings from a masking policy health check.
14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 14726 def list_masking_policy_health_report_logs(masking_policy_health_report_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masking_policy_health_report_logs.' if logger raise "Missing the required parameter 'masking_policy_health_report_id' when calling list_masking_policy_health_report_logs." if masking_policy_health_report_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[logType].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of logType.' end if opts[:message_type] && !%w[PASS WARNING ERROR].include?(opts[:message_type]) raise 'Invalid value for "message_type", must be one of PASS, WARNING, ERROR.' end raise "Parameter value for 'masking_policy_health_report_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_health_report_id) path = '/maskingPolicyHealthReports/{maskingPolicyHealthReportId}/logs'.sub('{maskingPolicyHealthReportId}', masking_policy_health_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:messageType] = opts[:message_type] if opts[:message_type] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masking_policy_health_report_logs') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingPolicyHealthReportLogCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masking_policy_health_reports(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masking_policy_health_reports API.
Gets a list of masking policy health reports based on the specified query parameters.
14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 14818 def list_masking_policy_health_reports(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masking_policy_health_reports.' if logger raise "Missing the required parameter 'compartment_id' when calling list_masking_policy_health_reports." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_by] && !%w[displayName timeCreated].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of displayName, timeCreated.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::MASKING_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::MASKING_LIFECYCLE_STATE_ENUM.' end path = '/maskingPolicyHealthReports' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:maskingPolicyHealthReportId] = opts[:masking_policy_health_report_id] if opts[:masking_policy_health_report_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:maskingPolicyId] = opts[:masking_policy_id] if opts[:masking_policy_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masking_policy_health_reports') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingPolicyHealthReportCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masking_policy_referential_relations(masking_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masking_policy_referential_relations API.
Gets a list of referential relations present in the specified masking policy based on the specified query parameters.
Allowed values are: relationType, schemaName, tableName, columnName
14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 14917 def list_masking_policy_referential_relations(masking_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masking_policy_referential_relations.' if logger raise "Missing the required parameter 'masking_policy_id' when calling list_masking_policy_referential_relations." if masking_policy_id.nil? relation_type_allowable_values = %w[NONE APP_DEFINED DB_DEFINED] if opts[:relation_type] && !opts[:relation_type].empty? opts[:relation_type].each do |val_to_check| unless relation_type_allowable_values.include?(val_to_check) raise 'Invalid value for "relation_type", must be one of NONE, APP_DEFINED, DB_DEFINED.' end end end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[relationType schemaName tableName columnName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of relationType, schemaName, tableName, columnName.' end raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/referentialRelations'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:objectName] = OCI::ApiClient.build_collection_params(opts[:object_name], :multi) if opts[:object_name] && !opts[:object_name].empty? query_params[:columnName] = OCI::ApiClient.build_collection_params(opts[:column_name], :multi) if opts[:column_name] && !opts[:column_name].empty? query_params[:relationType] = OCI::ApiClient.build_collection_params(opts[:relation_type], :multi) if opts[:relation_type] && !opts[:relation_type].empty? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masking_policy_referential_relations') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingPolicyReferentialRelationCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masking_reports(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masking_reports API.
Gets a list of masking reports based on the specified query parameters. Allowed values are: timeMaskingFinished
15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15015 def list_masking_reports(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masking_reports.' if logger raise "Missing the required parameter 'compartment_id' when calling list_masking_reports." if compartment_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeMaskingFinished].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeMaskingFinished.' end if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/maskingReports' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:maskingPolicyId] = opts[:masking_policy_id] if opts[:masking_policy_id] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masking_reports') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingReportCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_masking_schemas(masking_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_masking_schemas API.
Gets a list of masking schemas present in the specified masking policy and based on the specified query parameters.
15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15099 def list_masking_schemas(masking_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_masking_schemas.' if logger raise "Missing the required parameter 'masking_policy_id' when calling list_masking_schemas." if masking_policy_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[schemaName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of schemaName.' end raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/maskingSchemas'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_masking_schemas') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::MaskingSchemaCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_on_prem_connectors(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_on_prem_connectors API.
Gets a list of on-premises connectors.
15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15189 def list_on_prem_connectors(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_on_prem_connectors.' if logger raise "Missing the required parameter 'compartment_id' when calling list_on_prem_connectors." if compartment_id.nil? if opts[:on_prem_connector_lifecycle_state] && !OCI::DataSafe::Models::ON_PREM_CONNECTOR_LIFECYCLE_STATE_ENUM.include?(opts[:on_prem_connector_lifecycle_state]) raise 'Invalid value for "on_prem_connector_lifecycle_state", must be one of the values in OCI::DataSafe::Models::ON_PREM_CONNECTOR_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/onPremConnectors' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:onPremConnectorId] = opts[:on_prem_connector_id] if opts[:on_prem_connector_id] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:onPremConnectorLifecycleState] = opts[:on_prem_connector_lifecycle_state] if opts[:on_prem_connector_lifecycle_state] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_on_prem_connectors') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::OnPremConnectorSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_password_expiry_date_analytics(user_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_password_expiry_date_analytics API.
Gets a list of count of the users with password expiry dates in next 30 days, between next 30-90 days, and beyond 90 days based on specified user assessment. It internally uses the aforementioned userAnalytics api.
When you perform the ListPasswordExpiryDateAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has READ permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by compartmentId, then "Not Authorized" is returned.
To use ListPasswordExpiryDateAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment, set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.
15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15292 def list_password_expiry_date_analytics(user_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_password_expiry_date_analytics.' if logger raise "Missing the required parameter 'user_assessment_id' when calling list_password_expiry_date_analytics." if user_assessment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/passwordExpiryDateAnalytics'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:userCategory] = opts[:user_category] if opts[:user_category] query_params[:timePasswordExpiryLessThan] = opts[:time_password_expiry_less_than] if opts[:time_password_expiry_less_than] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_password_expiry_date_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::UserAggregation>' ) end # rubocop:enable Metrics/BlockLength end |
#list_peer_target_databases(target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_peer_target_databases API.
Lists all the peer target databases under the primary target database identified by the OCID passed as path parameter.
15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15367 def list_peer_target_databases(target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_peer_target_databases.' if logger raise "Missing the required parameter 'target_database_id' when calling list_peer_target_databases." if target_database_id.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}/peerTargetDatabases'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_peer_target_databases') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::PeerTargetDatabaseCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_profile_analytics(user_assessment_id, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_profile_analytics API.
Gets a list of aggregated user profile details in the specified compartment. This provides information about the overall profiles available. For example, the user profile details include how many users have the profile assigned and do how many use password verification function. This data is especially useful content for dashboards or to support analytics.
When you perform the ListProfileAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has INSPECT permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by compartmentId, then "Not Authorized" is returned.
The parameter compartmentIdInSubtree applies when you perform ListProfileAnalytics on the compartmentId passed and when it is set to true, the entire hierarchy of compartments can be returned.
To use ListProfileAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment, set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.
15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15462 def list_profile_analytics(user_assessment_id, compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_profile_analytics.' if logger raise "Missing the required parameter 'user_assessment_id' when calling list_profile_analytics." if user_assessment_id.nil? raise "Missing the required parameter 'compartment_id' when calling list_profile_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/profileAnalytics'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:profileName] = opts[:profile_name] if opts[:profile_name] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_profile_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::ProfileAggregation>' ) end # rubocop:enable Metrics/BlockLength end |
#list_profile_summaries(user_assessment_id, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_profile_summaries API.
Gets a list of user profiles containing the profile details along with the target id and user counts.
The ListProfiles operation returns only the profiles belonging to a certain target. If compartment type user assessment id is provided, then profile information for all the targets belonging to the pertaining compartment is returned. The list does not include any subcompartments of the compartment under consideration.
The parameter 'accessLevel' specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when 'compartmentIdInSubtree' is set to 'true'.
The parameter 'compartmentIdInSubtree' applies when you perform ListUserProfiles on the 'compartmentId' belonging to the assessmentId passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter 'compartmentIdInSubtree' to true and 'accessLevel' to ACCESSIBLE.
Allowed values are: profileName, targetId, isUserCreated, passwordVerificationFunction, userCount, sessionsPerUser, inactiveAccountTime, passwordLockTime, failedLoginAttempts
15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15602 def list_profile_summaries(user_assessment_id, compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_profile_summaries.' if logger raise "Missing the required parameter 'user_assessment_id' when calling list_profile_summaries." if user_assessment_id.nil? raise "Missing the required parameter 'compartment_id' when calling list_profile_summaries." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_by] && !%w[profileName targetId isUserCreated passwordVerificationFunction userCount sessionsPerUser inactiveAccountTime passwordLockTime failedLoginAttempts].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of profileName, targetId, isUserCreated, passwordVerificationFunction, userCount, sessionsPerUser, inactiveAccountTime, passwordLockTime, failedLoginAttempts.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/profiles'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:profileName] = opts[:profile_name] if opts[:profile_name] query_params[:isUserCreated] = opts[:is_user_created] if !opts[:is_user_created].nil? query_params[:passwordVerificationFunction] = opts[:password_verification_function] if opts[:password_verification_function] query_params[:userCountGreaterThanOrEqual] = opts[:user_count_greater_than_or_equal] if opts[:user_count_greater_than_or_equal] query_params[:userCountLessThan] = opts[:user_count_less_than] if opts[:user_count_less_than] query_params[:failedLoginAttemptsGreaterThanOrEqual] = opts[:failed_login_attempts_greater_than_or_equal] if opts[:failed_login_attempts_greater_than_or_equal] query_params[:failedLoginAttemptsLessThan] = opts[:failed_login_attempts_less_than] if opts[:failed_login_attempts_less_than] query_params[:sessionsPerUserGreaterThanOrEqual] = opts[:sessions_per_user_greater_than_or_equal] if opts[:sessions_per_user_greater_than_or_equal] query_params[:sessionsPerUserLessThan] = opts[:sessions_per_user_less_than] if opts[:sessions_per_user_less_than] query_params[:inactiveAccountTimeGreaterThanOrEqual] = opts[:inactive_account_time_greater_than_or_equal] if opts[:inactive_account_time_greater_than_or_equal] query_params[:inactiveAccountTimeLessThan] = opts[:inactive_account_time_less_than] if opts[:inactive_account_time_less_than] query_params[:passwordLockTimeGreaterThanOrEqual] = opts[:password_lock_time_greater_than_or_equal] if opts[:password_lock_time_greater_than_or_equal] query_params[:passwordLockTimeLessThan] = opts[:password_lock_time_less_than] if opts[:password_lock_time_less_than] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_profile_summaries') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::ProfileSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_referential_relations(sensitive_data_model_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_referential_relations API.
Gets a list of referential relations present in the specified sensitive data model based on the specified query parameters.
Allowed values are: key, relationType, schemaName, tableName
15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15711 def list_referential_relations(sensitive_data_model_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_referential_relations.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling list_referential_relations." if sensitive_data_model_id.nil? relation_type_allowable_values = %w[NONE APP_DEFINED DB_DEFINED] if opts[:relation_type] && !opts[:relation_type].empty? opts[:relation_type].each do |val_to_check| unless relation_type_allowable_values.include?(val_to_check) raise 'Invalid value for "relation_type", must be one of NONE, APP_DEFINED, DB_DEFINED.' end end end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[key relationType schemaName tableName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of key, relationType, schemaName, tableName.' end raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:objectName] = OCI::ApiClient.build_collection_params(opts[:object_name], :multi) if opts[:object_name] && !opts[:object_name].empty? query_params[:columnName] = OCI::ApiClient.build_collection_params(opts[:column_name], :multi) if opts[:column_name] && !opts[:column_name].empty? query_params[:isSensitive] = opts[:is_sensitive] if !opts[:is_sensitive].nil? query_params[:relationType] = OCI::ApiClient.build_collection_params(opts[:relation_type], :multi) if opts[:relation_type] && !opts[:relation_type].empty? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_referential_relations') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::ReferentialRelationCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_report_definitions(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_report_definitions API.
Gets a list of report definitions. The ListReportDefinitions operation returns only the report definitions in the specified compartmentId
. It also returns the seeded report definitions which are available to all the compartments.
15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15819 def list_report_definitions(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_report_definitions.' if logger raise "Missing the required parameter 'compartment_id' when calling list_report_definitions." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME DISPLAYORDER].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME, DISPLAYORDER.' end if opts[:data_source] && !OCI::DataSafe::Models::REPORT_DEFINITION_DATA_SOURCE_ENUM.include?(opts[:data_source]) raise 'Invalid value for "data_source", must be one of the values in OCI::DataSafe::Models::REPORT_DEFINITION_DATA_SOURCE_ENUM.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::REPORT_DEFINITION_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::REPORT_DEFINITION_LIFECYCLE_STATE_ENUM.' end if opts[:category] && !%w[CUSTOM_REPORTS SUMMARY ACTIVITY_AUDITING].include?(opts[:category]) raise 'Invalid value for "category", must be one of CUSTOM_REPORTS, SUMMARY, ACTIVITY_AUDITING.' end path = '/reportDefinitions' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:isSeeded] = opts[:is_seeded] if !opts[:is_seeded].nil? query_params[:dataSource] = opts[:data_source] if opts[:data_source] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:category] = opts[:category] if opts[:category] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_report_definitions') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::ReportDefinitionCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_reports(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_reports API.
Gets a list of all the reports in the compartment. It contains information such as report generation time. Allowed values are: timeGenerated, displayName
15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 15943 def list_reports(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_reports.' if logger raise "Missing the required parameter 'compartment_id' when calling list_reports." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeGenerated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeGenerated, displayName.' end if opts[:mime_type] && !%w[PDF XLS JSON].include?(opts[:mime_type]) raise 'Invalid value for "mime_type", must be one of PDF, XLS, JSON.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::REPORT_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::REPORT_LIFECYCLE_STATE_ENUM.' end if opts[:type] && !OCI::DataSafe::Models::REPORT_TYPE_ENUM.include?(opts[:type]) raise 'Invalid value for "type", must be one of the values in OCI::DataSafe::Models::REPORT_TYPE_ENUM.' end path = '/reports' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:mimeType] = opts[:mime_type] if opts[:mime_type] query_params[:reportDefinitionId] = opts[:report_definition_id] if opts[:report_definition_id] query_params[:timeGeneratedGreaterThanOrEqualTo] = opts[:time_generated_greater_than_or_equal_to] if opts[:time_generated_greater_than_or_equal_to] query_params[:timeGeneratedLessThan] = opts[:time_generated_less_than] if opts[:time_generated_less_than] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:type] = opts[:type] if opts[:type] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_reports') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::ReportCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_role_grant_paths(security_policy_report_id, grantee, granted_role, opts = {}) ⇒ Response
Click here to see an example of how to use list_role_grant_paths API.
Retrieves a list of all role grant paths for a particular user.
The ListRoleGrantPaths operation returns only the role grant paths for the specified security policy report.
16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 16041 def list_role_grant_paths(security_policy_report_id, grantee, granted_role, opts = {}) logger.debug 'Calling operation DataSafeClient#list_role_grant_paths.' if logger raise "Missing the required parameter 'security_policy_report_id' when calling list_role_grant_paths." if security_policy_report_id.nil? raise "Missing the required parameter 'grantee' when calling list_role_grant_paths." if grantee.nil? raise "Missing the required parameter 'granted_role' when calling list_role_grant_paths." if granted_role.nil? raise "Parameter value for 'security_policy_report_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_report_id) path = '/securityPolicyReports/{securityPolicyReportId}/roleGrantPaths'.sub('{securityPolicyReportId}', security_policy_report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:grantee] = grantee query_params[:grantedRole] = granted_role query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_role_grant_paths') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::RoleGrantPathCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_roles(target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_roles API.
Returns a list of role metadata objects.
Allowed values are: ROLENAME
16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 16113 def list_roles(target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_roles.' if logger raise "Missing the required parameter 'target_database_id' when calling list_roles." if target_database_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[ROLENAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of ROLENAME.' end raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}/roles'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:roleName] = OCI::ApiClient.build_collection_params(opts[:role_name], :multi) if opts[:role_name] && !opts[:role_name].empty? query_params[:isOracleMaintained] = opts[:is_oracle_maintained] if !opts[:is_oracle_maintained].nil? query_params[:authenticationType] = opts[:authentication_type] if opts[:authentication_type] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:roleNameContains] = opts[:role_name_contains] if opts[:role_name_contains] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_roles') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::RoleSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_schemas(target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_schemas API.
Returns list of schema.
Allowed values are: SCHEMANAME
16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 16194 def list_schemas(target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_schemas.' if logger raise "Missing the required parameter 'target_database_id' when calling list_schemas." if target_database_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[SCHEMANAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of SCHEMANAME.' end raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}/schemas'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:isOracleMaintained] = opts[:is_oracle_maintained] if !opts[:is_oracle_maintained].nil? query_params[:schemaNameContains] = opts[:schema_name_contains] if opts[:schema_name_contains] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_schemas') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::SchemaSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_sdm_masking_policy_differences(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sdm_masking_policy_differences API.
Gets a list of SDM and masking policy difference resources based on the specified query parameters.
16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 16285 def list_sdm_masking_policy_differences(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sdm_masking_policy_differences.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sdm_masking_policy_differences." if compartment_id.nil? if opts[:difference_access_level] && !%w[ACCESSIBLE].include?(opts[:difference_access_level]) raise 'Invalid value for "difference_access_level", must be one of ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SdmMaskingPolicyDifference::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SdmMaskingPolicyDifference::LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreationStarted displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreationStarted, displayName.' end path = '/sdmMaskingPolicyDifferences' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:differenceAccessLevel] = opts[:difference_access_level] if opts[:difference_access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:sensitiveDataModelId] = opts[:sensitive_data_model_id] if opts[:sensitive_data_model_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:maskingPolicyId] = opts[:masking_policy_id] if opts[:masking_policy_id] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sdm_masking_policy_differences') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SdmMaskingPolicyDifferenceCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_security_assessments(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_security_assessments API.
Gets a list of security assessments.
The ListSecurityAssessments operation returns only the assessments in the specified compartmentId
. The list does not include any subcompartments of the compartmentId passed.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListSecurityAssessments on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
Allowed values are: timeCreated, displayName
16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 16421 def list_security_assessments(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_security_assessments.' if logger raise "Missing the required parameter 'compartment_id' when calling list_security_assessments." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:type] && !%w[LATEST SAVED SAVE_SCHEDULE COMPARTMENT].include?(opts[:type]) raise 'Invalid value for "type", must be one of LATEST, SAVED, SAVE_SCHEDULE, COMPARTMENT.' end if opts[:triggered_by] && !%w[USER SYSTEM].include?(opts[:triggered_by]) raise 'Invalid value for "triggered_by", must be one of USER, SYSTEM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SECURITY_ASSESSMENT_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SECURITY_ASSESSMENT_LIFECYCLE_STATE_ENUM.' end path = '/securityAssessments' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:type] = opts[:type] if opts[:type] query_params[:scheduleAssessmentId] = opts[:schedule_assessment_id] if opts[:schedule_assessment_id] query_params[:isScheduleAssessment] = opts[:is_schedule_assessment] if !opts[:is_schedule_assessment].nil? query_params[:triggeredBy] = opts[:triggered_by] if opts[:triggered_by] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:isBaseline] = opts[:is_baseline] if !opts[:is_baseline].nil? query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_security_assessments') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::SecurityAssessmentSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_security_feature_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_security_feature_analytics API.
Gets a list of Database security feature usage aggregated details in the specified compartment. This provides information about the overall security controls, by returning the counting number of the target databases using the security features.
When you perform the ListSecurityFeatureAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the parameter accessLevel is set to ACCESSIBLE, then the operation returns statistics from the compartments in which the requestor has INSPECT permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by compartmentId, then "Not Authorized" is returned.
16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 16533 def list_security_feature_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_security_feature_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_security_feature_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/securityAssessments/securityFeatureAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:targetId] = opts[:target_id] if opts[:target_id] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_security_feature_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityFeatureAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_security_features(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_security_features API.
Lists the usage of Database security features for a given compartment or a target level, based on the filters provided.
16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 16629 def list_security_features(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_security_features.' if logger raise "Missing the required parameter 'compartment_id' when calling list_security_features." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:targets_with_unified_audit] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_unified_audit]) raise 'Invalid value for "targets_with_unified_audit", must be one of ENABLED, DISABLED, NONE.' end if opts[:targets_with_fine_grained_audit] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_fine_grained_audit]) raise 'Invalid value for "targets_with_fine_grained_audit", must be one of ENABLED, DISABLED, NONE.' end if opts[:targets_with_traditional_audit] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_traditional_audit]) raise 'Invalid value for "targets_with_traditional_audit", must be one of ENABLED, DISABLED, NONE.' end if opts[:targets_with_database_vault] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_database_vault]) raise 'Invalid value for "targets_with_database_vault", must be one of ENABLED, DISABLED, NONE.' end if opts[:targets_with_privilege_analysis] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_privilege_analysis]) raise 'Invalid value for "targets_with_privilege_analysis", must be one of ENABLED, DISABLED, NONE.' end if opts[:targets_with_tablespace_encryption] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_tablespace_encryption]) raise 'Invalid value for "targets_with_tablespace_encryption", must be one of ENABLED, DISABLED, NONE.' end if opts[:targets_with_column_encryption] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_column_encryption]) raise 'Invalid value for "targets_with_column_encryption", must be one of ENABLED, DISABLED, NONE.' end if opts[:targets_with_network_encryption] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_network_encryption]) raise 'Invalid value for "targets_with_network_encryption", must be one of ENABLED, DISABLED, NONE.' end if opts[:targets_with_password_authentication] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_password_authentication]) raise 'Invalid value for "targets_with_password_authentication", must be one of ENABLED, DISABLED, NONE.' end if opts[:targets_with_global_authentication] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_global_authentication]) raise 'Invalid value for "targets_with_global_authentication", must be one of ENABLED, DISABLED, NONE.' end if opts[:targets_with_external_authentication] && !%w[ENABLED DISABLED NONE].include?(opts[:targets_with_external_authentication]) raise 'Invalid value for "targets_with_external_authentication", must be one of ENABLED, DISABLED, NONE.' end path = '/securityAssessments/securityFeatures' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:targetsWithUnifiedAudit] = opts[:targets_with_unified_audit] if opts[:targets_with_unified_audit] query_params[:targetsWithFineGrainedAudit] = opts[:targets_with_fine_grained_audit] if opts[:targets_with_fine_grained_audit] query_params[:targetsWithTraditionalAudit] = opts[:targets_with_traditional_audit] if opts[:targets_with_traditional_audit] query_params[:targetsWithDatabaseVault] = opts[:targets_with_database_vault] if opts[:targets_with_database_vault] query_params[:targetsWithPrivilegeAnalysis] = opts[:targets_with_privilege_analysis] if opts[:targets_with_privilege_analysis] query_params[:targetsWithTablespaceEncryption] = opts[:targets_with_tablespace_encryption] if opts[:targets_with_tablespace_encryption] query_params[:targetsWithColumnEncryption] = opts[:targets_with_column_encryption] if opts[:targets_with_column_encryption] query_params[:targetsWithNetworkEncryption] = opts[:targets_with_network_encryption] if opts[:targets_with_network_encryption] query_params[:targetsWithPasswordAuthentication] = opts[:targets_with_password_authentication] if opts[:targets_with_password_authentication] query_params[:targetsWithGlobalAuthentication] = opts[:targets_with_global_authentication] if opts[:targets_with_global_authentication] query_params[:targetsWithExternalAuthentication] = opts[:targets_with_external_authentication] if opts[:targets_with_external_authentication] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_security_features') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityFeatureCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_security_policies(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_security_policies API.
Retrieves a list of all security policies in Data Safe.
The ListSecurityPolicies operation returns only the security policies in the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListSecurityPolicies on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 16783 def list_security_policies(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_security_policies.' if logger raise "Missing the required parameter 'compartment_id' when calling list_security_policies." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SECURITY_POLICY_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SECURITY_POLICY_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/securityPolicies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:securityPolicyId] = opts[:security_policy_id] if opts[:security_policy_id] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_security_policies') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityPolicyCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_security_policy_deployments(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_security_policy_deployments API.
Retrieves a list of all security policy deployments in Data Safe.
The ListSecurityPolicyDeployments operation returns only the security policy deployments in the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListSecurityPolicyDeployments on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 16900 def list_security_policy_deployments(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_security_policy_deployments.' if logger raise "Missing the required parameter 'compartment_id' when calling list_security_policy_deployments." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SECURITY_POLICY_DEPLOYMENT_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SECURITY_POLICY_DEPLOYMENT_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/securityPolicyDeployments' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:securityPolicyDeploymentId] = opts[:security_policy_deployment_id] if opts[:security_policy_deployment_id] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:securityPolicyId] = opts[:security_policy_id] if opts[:security_policy_id] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_security_policy_deployments') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityPolicyDeploymentCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_security_policy_entry_states(security_policy_deployment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_security_policy_entry_states API.
Retrieves a list of all security policy entry states in Data Safe.
The ListSecurityPolicyEntryStates operation returns only the security policy entry states for the specified security policy entry.
16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 16988 def list_security_policy_entry_states(security_policy_deployment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_security_policy_entry_states.' if logger raise "Missing the required parameter 'security_policy_deployment_id' when calling list_security_policy_entry_states." if security_policy_deployment_id.nil? if opts[:deployment_status] && !OCI::DataSafe::Models::SECURITY_POLICY_ENTRY_STATE_DEPLOYMENT_STATUS_ENUM.include?(opts[:deployment_status]) raise 'Invalid value for "deployment_status", must be one of the values in OCI::DataSafe::Models::SECURITY_POLICY_ENTRY_STATE_DEPLOYMENT_STATUS_ENUM.' end raise "Parameter value for 'security_policy_deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_deployment_id) path = '/securityPolicyDeployments/{securityPolicyDeploymentId}/securityPolicyEntryStates'.sub('{securityPolicyDeploymentId}', security_policy_deployment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:deploymentStatus] = opts[:deployment_status] if opts[:deployment_status] query_params[:securityPolicyEntryId] = opts[:security_policy_entry_id] if opts[:security_policy_entry_id] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_security_policy_entry_states') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityPolicyEntryStateCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_security_policy_reports(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_security_policy_reports API.
Retrieves a list of all security policy reports in Data Safe.
The ListSecurityPolicyReports operation returns only the security policy reports in the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListSecurityPolicyReports on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 17087 def list_security_policy_reports(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_security_policy_reports.' if logger raise "Missing the required parameter 'compartment_id' when calling list_security_policy_reports." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SECURITY_POLICY_REPORT_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SECURITY_POLICY_REPORT_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/securityPolicyReports' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:securityPolicyReportId] = opts[:security_policy_report_id] if opts[:security_policy_report_id] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_security_policy_reports') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SecurityPolicyReportCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sensitive_column_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sensitive_column_analytics API.
Gets consolidated sensitive columns analytics data based on the specified query parameters.
When you perform the ListSensitiveColumnAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has INSPECT permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by compartmentId, then "Not Authorized" is returned.
To use ListSensitiveColumnAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment, set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.
17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 17197 def list_sensitive_column_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sensitive_column_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sensitive_column_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end group_by_allowable_values = %w[targetId sensitiveTypeId sensitiveDataModelId] if opts[:group_by] && !opts[:group_by].empty? opts[:group_by].each do |val_to_check| unless group_by_allowable_values.include?(val_to_check) raise 'Invalid value for "group_by", must be one of targetId, sensitiveTypeId, sensitiveDataModelId.' end end end path = '/sensitiveColumnAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:sensitiveTypeId] = OCI::ApiClient.build_collection_params(opts[:sensitive_type_id], :multi) if opts[:sensitive_type_id] && !opts[:sensitive_type_id].empty? query_params[:sensitiveTypeGroupId] = opts[:sensitive_type_group_id] if opts[:sensitive_type_group_id] query_params[:sensitiveDataModelId] = opts[:sensitive_data_model_id] if opts[:sensitive_data_model_id] query_params[:groupBy] = OCI::ApiClient.build_collection_params(opts[:group_by], :multi) if opts[:group_by] && !opts[:group_by].empty? query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:objectName] = OCI::ApiClient.build_collection_params(opts[:object_name], :multi) if opts[:object_name] && !opts[:object_name].empty? query_params[:columnName] = OCI::ApiClient.build_collection_params(opts[:column_name], :multi) if opts[:column_name] && !opts[:column_name].empty? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sensitive_column_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveColumnAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sensitive_columns(sensitive_data_model_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sensitive_columns API.
Gets a list of sensitive columns present in the specified sensitive data model based on the specified query parameters.
17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 17333 def list_sensitive_columns(sensitive_data_model_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sensitive_columns.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling list_sensitive_columns." if sensitive_data_model_id.nil? if opts[:sensitive_column_lifecycle_state] && !OCI::DataSafe::Models::SENSITIVE_COLUMN_LIFECYCLE_STATE_ENUM.include?(opts[:sensitive_column_lifecycle_state]) raise 'Invalid value for "sensitive_column_lifecycle_state", must be one of the values in OCI::DataSafe::Models::SENSITIVE_COLUMN_LIFECYCLE_STATE_ENUM.' end object_type_allowable_values = %w[ALL TABLE EDITIONING_VIEW] if opts[:object_type] && !opts[:object_type].empty? opts[:object_type].each do |val_to_check| unless object_type_allowable_values.include?(val_to_check) raise 'Invalid value for "object_type", must be one of ALL, TABLE, EDITIONING_VIEW.' end end end status_allowable_values = %w[VALID INVALID] if opts[:status] && !opts[:status].empty? opts[:status].each do |val_to_check| unless status_allowable_values.include?(val_to_check) raise 'Invalid value for "status", must be one of VALID, INVALID.' end end end relation_type_allowable_values = %w[NONE APP_DEFINED DB_DEFINED] if opts[:relation_type] && !opts[:relation_type].empty? opts[:relation_type].each do |val_to_check| unless relation_type_allowable_values.include?(val_to_check) raise 'Invalid value for "relation_type", must be one of NONE, APP_DEFINED, DB_DEFINED.' end end end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated schemaName objectName columnName dataType].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, schemaName, objectName, columnName, dataType.' end raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:timeUpdatedGreaterThanOrEqualTo] = opts[:time_updated_greater_than_or_equal_to] if opts[:time_updated_greater_than_or_equal_to] query_params[:timeUpdatedLessThan] = opts[:time_updated_less_than] if opts[:time_updated_less_than] query_params[:sensitiveColumnLifecycleState] = opts[:sensitive_column_lifecycle_state] if opts[:sensitive_column_lifecycle_state] query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:objectName] = OCI::ApiClient.build_collection_params(opts[:object_name], :multi) if opts[:object_name] && !opts[:object_name].empty? query_params[:columnName] = OCI::ApiClient.build_collection_params(opts[:column_name], :multi) if opts[:column_name] && !opts[:column_name].empty? query_params[:objectType] = OCI::ApiClient.build_collection_params(opts[:object_type], :multi) if opts[:object_type] && !opts[:object_type].empty? query_params[:dataType] = OCI::ApiClient.build_collection_params(opts[:data_type], :multi) if opts[:data_type] && !opts[:data_type].empty? query_params[:status] = OCI::ApiClient.build_collection_params(opts[:status], :multi) if opts[:status] && !opts[:status].empty? query_params[:sensitiveTypeId] = OCI::ApiClient.build_collection_params(opts[:sensitive_type_id], :multi) if opts[:sensitive_type_id] && !opts[:sensitive_type_id].empty? query_params[:parentColumnKey] = OCI::ApiClient.build_collection_params(opts[:parent_column_key], :multi) if opts[:parent_column_key] && !opts[:parent_column_key].empty? query_params[:relationType] = OCI::ApiClient.build_collection_params(opts[:relation_type], :multi) if opts[:relation_type] && !opts[:relation_type].empty? query_params[:columnGroup] = opts[:column_group] if opts[:column_group] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:isCaseInSensitive] = opts[:is_case_in_sensitive] if !opts[:is_case_in_sensitive].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sensitive_columns') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveColumnCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sensitive_data_model_sensitive_types(sensitive_data_model_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sensitive_data_model_sensitive_types API.
Gets a list of sensitive type Ids present in the specified sensitive data model.
17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 17459 def list_sensitive_data_model_sensitive_types(sensitive_data_model_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sensitive_data_model_sensitive_types.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling list_sensitive_data_model_sensitive_types." if sensitive_data_model_id.nil? if opts[:sort_by] && !%w[count].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of count.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/sensitiveTypes'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:sensitiveTypeId] = opts[:sensitive_type_id] if opts[:sensitive_type_id] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sensitive_data_model_sensitive_types') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveDataModelSensitiveTypeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sensitive_data_models(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sensitive_data_models API.
Gets a list of sensitive data models based on the specified query parameters.
17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 17562 def list_sensitive_data_models(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sensitive_data_models.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sensitive_data_models." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::DISCOVERY_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::DISCOVERY_LIFECYCLE_STATE_ENUM.' end path = '/sensitiveDataModels' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:sensitiveDataModelId] = opts[:sensitive_data_model_id] if opts[:sensitive_data_model_id] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sensitive_data_models') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveDataModelCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sensitive_objects(sensitive_data_model_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sensitive_objects API.
Gets a list of sensitive objects present in the specified sensitive data model based on the specified query parameters.
17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 17657 def list_sensitive_objects(sensitive_data_model_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sensitive_objects.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling list_sensitive_objects." if sensitive_data_model_id.nil? object_type_allowable_values = %w[ALL TABLE EDITIONING_VIEW] if opts[:object_type] && !opts[:object_type].empty? opts[:object_type].each do |val_to_check| unless object_type_allowable_values.include?(val_to_check) raise 'Invalid value for "object_type", must be one of ALL, TABLE, EDITIONING_VIEW.' end end end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[schemaName objectName objectType].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of schemaName, objectName, objectType.' end raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/sensitiveObjects'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:objectName] = OCI::ApiClient.build_collection_params(opts[:object_name], :multi) if opts[:object_name] && !opts[:object_name].empty? query_params[:objectType] = OCI::ApiClient.build_collection_params(opts[:object_type], :multi) if opts[:object_type] && !opts[:object_type].empty? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sensitive_objects') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveObjectCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sensitive_schemas(sensitive_data_model_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sensitive_schemas API.
Gets a list of sensitive schemas present in the specified sensitive data model based on the specified query parameters.
17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 17746 def list_sensitive_schemas(sensitive_data_model_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sensitive_schemas.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling list_sensitive_schemas." if sensitive_data_model_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[schemaName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of schemaName.' end raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/sensitiveSchemas'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sensitive_schemas') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveSchemaCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sensitive_type_groups(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sensitive_type_groups API.
Gets a list of sensitive type groups based on the specified query parameters.
17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 17848 def list_sensitive_type_groups(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sensitive_type_groups.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sensitive_type_groups." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SENSITIVE_TYPE_GROUP_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SENSITIVE_TYPE_GROUP_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.' end path = '/sensitiveTypeGroups' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sensitiveTypeGroupId] = opts[:sensitive_type_group_id] if opts[:sensitive_type_group_id] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sensitive_type_groups') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveTypeGroupCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sensitive_types(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sensitive_types API.
Gets a list of sensitive types based on the specified query parameters.
17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 17971 def list_sensitive_types(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sensitive_types.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sensitive_types." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sensitive_type_source] && !OCI::DataSafe::Models::SENSITIVE_TYPE_SOURCE_ENUM.include?(opts[:sensitive_type_source]) raise 'Invalid value for "sensitive_type_source", must be one of the values in OCI::DataSafe::Models::SENSITIVE_TYPE_SOURCE_ENUM.' end if opts[:entity_type] && !OCI::DataSafe::Models::SENSITIVE_TYPE_ENTITY_ENUM.include?(opts[:entity_type]) raise 'Invalid value for "entity_type", must be one of the values in OCI::DataSafe::Models::SENSITIVE_TYPE_ENTITY_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::DISCOVERY_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::DISCOVERY_LIFECYCLE_STATE_ENUM.' end path = '/sensitiveTypes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:sensitiveTypeId] = opts[:sensitive_type_id] if opts[:sensitive_type_id] query_params[:sensitiveTypeSource] = opts[:sensitive_type_source] if opts[:sensitive_type_source] query_params[:entityType] = opts[:entity_type] if opts[:entity_type] query_params[:parentCategoryId] = opts[:parent_category_id] if opts[:parent_category_id] query_params[:defaultMaskingFormatId] = opts[:default_masking_format_id] if opts[:default_masking_format_id] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:isCommon] = opts[:is_common] if !opts[:is_common].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sensitive_types') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveTypeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sensitive_types_exports(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sensitive_types_exports API.
Retrieves a list of all sensitive types export in Data Safe based on the specified query parameters. The ListSensitiveTypesExports operation returns only the sensitive types export in the specified compartmentId
.
18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 18102 def list_sensitive_types_exports(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sensitive_types_exports.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sensitive_types_exports." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SENSITIVE_TYPES_EXPORT_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SENSITIVE_TYPES_EXPORT_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/sensitiveTypesExports' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sensitiveTypesExportId] = opts[:sensitive_types_export_id] if opts[:sensitive_types_export_id] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sensitive_types_exports') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SensitiveTypesExportCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sql_collection_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sql_collection_analytics API.
Retrieves a list of all SQL collection analytics in Data Safe.
The ListSqlCollectionAnalytics operation returns only the analytics for the SQL collections in the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListSqlCollections on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 18218 def list_sql_collection_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sql_collection_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sql_collection_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SQL_COLLECTION_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SQL_COLLECTION_LIFECYCLE_STATE_ENUM.' end group_by_allowable_values = %w[targetId lifecycleState] if opts[:group_by] && !opts[:group_by].empty? opts[:group_by].each do |val_to_check| unless group_by_allowable_values.include?(val_to_check) raise 'Invalid value for "group_by", must be one of targetId, lifecycleState.' end end end path = '/sqlCollectionAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:groupBy] = OCI::ApiClient.build_collection_params(opts[:group_by], :multi) if opts[:group_by] && !opts[:group_by].empty? query_params[:timeStarted] = opts[:time_started] if opts[:time_started] query_params[:timeEnded] = opts[:time_ended] if opts[:time_ended] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sql_collection_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlCollectionAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sql_collection_log_insights(time_started, time_ended, sql_collection_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sql_collection_log_insights API.
Retrieves a list of the SQL collection log analytics.
18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 18310 def list_sql_collection_log_insights(time_started, time_ended, sql_collection_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sql_collection_log_insights.' if logger raise "Missing the required parameter 'time_started' when calling list_sql_collection_log_insights." if time_started.nil? raise "Missing the required parameter 'time_ended' when calling list_sql_collection_log_insights." if time_ended.nil? raise "Missing the required parameter 'sql_collection_id' when calling list_sql_collection_log_insights." if sql_collection_id.nil? if opts[:group_by] && !%w[clientIp clientProgram clientOsUserName].include?(opts[:group_by]) raise 'Invalid value for "group_by", must be one of clientIp, clientProgram, clientOsUserName.' end raise "Parameter value for 'sql_collection_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_collection_id) path = '/sqlCollections/{sqlCollectionId}/logInsights'.sub('{sqlCollectionId}', sql_collection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:timeStarted] = time_started query_params[:timeEnded] = time_ended query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:groupBy] = opts[:group_by] if opts[:group_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sql_collection_log_insights') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlCollectionLogInsightsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sql_collections(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sql_collections API.
Retrieves a list of all SQL collections in Data Safe.
The ListSqlCollections operation returns only the SQL collections in the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListSqlCollections on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 18425 def list_sql_collections(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sql_collections.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sql_collections." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SQL_COLLECTION_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SQL_COLLECTION_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME TIMELASTSTARTED].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME, TIMELASTSTARTED.' end path = '/sqlCollections' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sqlCollectionId] = opts[:sql_collection_id] if opts[:sql_collection_id] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:dbUserName] = opts[:db_user_name] if opts[:db_user_name] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sql_collections') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlCollectionCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sql_firewall_allowed_sql_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sql_firewall_allowed_sql_analytics API.
Returns the aggregation details of all SQL Firewall allowed SQL statements.
The ListSqlFirewallAllowedSqlAnalytics operation returns the aggregates of the SQL Firewall allowed SQL statements in the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListSqlFirewallAllowedSqlAnalytics on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 18543 def list_sql_firewall_allowed_sql_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sql_firewall_allowed_sql_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sql_firewall_allowed_sql_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end group_by_allowable_values = %w[dbUserName sqlLevel sqlFirewallPolicyId lifecycleState] if opts[:group_by] && !opts[:group_by].empty? opts[:group_by].each do |val_to_check| unless group_by_allowable_values.include?(val_to_check) raise 'Invalid value for "group_by", must be one of dbUserName, sqlLevel, sqlFirewallPolicyId, lifecycleState.' end end end path = '/sqlFirewallAllowedSqlAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] query_params[:groupBy] = OCI::ApiClient.build_collection_params(opts[:group_by], :multi) if opts[:group_by] && !opts[:group_by].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sql_firewall_allowed_sql_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlFirewallAllowedSqlAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sql_firewall_allowed_sqls(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sql_firewall_allowed_sqls API.
Retrieves a list of all SQL Firewall allowed SQL statements.
The ListSqlFirewallAllowedSqls operation returns only the SQL Firewall allowed SQL statements in the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListSqlFirewallPolicies on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
Allowed values are: displayName, timeCollected
18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 18655 def list_sql_firewall_allowed_sqls(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sql_firewall_allowed_sqls.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sql_firewall_allowed_sqls." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[displayName timeCollected].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of displayName, timeCollected.' end path = '/sqlFirewallAllowedSqls' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sql_firewall_allowed_sqls') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlFirewallAllowedSqlCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sql_firewall_policies(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sql_firewall_policies API.
Retrieves a list of all SQL Firewall policies.
The ListSqlFirewallPolicies operation returns only the SQL Firewall policies in the specified compartmentId
.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListSqlFirewallPolicies on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 18781 def list_sql_firewall_policies(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sql_firewall_policies.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sql_firewall_policies." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SQL_FIREWALL_POLICY_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SQL_FIREWALL_POLICY_LIFECYCLE_STATE_ENUM.' end if opts[:violation_action] && !%w[block observe].include?(opts[:violation_action]) raise 'Invalid value for "violation_action", must be one of block, observe.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/sqlFirewallPolicies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:securityPolicyId] = opts[:security_policy_id] if opts[:security_policy_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sqlFirewallPolicyId] = opts[:sql_firewall_policy_id] if opts[:sql_firewall_policy_id] query_params[:dbUserName] = opts[:db_user_name] if opts[:db_user_name] query_params[:violationAction] = opts[:violation_action] if opts[:violation_action] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sql_firewall_policies') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlFirewallPolicyCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sql_firewall_policy_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sql_firewall_policy_analytics API.
Gets a list of aggregated SQL Firewall policy details.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform SummarizedSqlFirewallPolicyInfo on the specified compartmentId
and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 18902 def list_sql_firewall_policy_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sql_firewall_policy_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sql_firewall_policy_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end group_by_allowable_values = %w[violationAction enforcementScope securityPolicyId lifecycleState] if opts[:group_by] && !opts[:group_by].empty? opts[:group_by].each do |val_to_check| unless group_by_allowable_values.include?(val_to_check) raise 'Invalid value for "group_by", must be one of violationAction, enforcementScope, securityPolicyId, lifecycleState.' end end end if opts[:lifecycle_state] && !OCI::DataSafe::Models::SQL_FIREWALL_POLICY_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::SQL_FIREWALL_POLICY_LIFECYCLE_STATE_ENUM.' end path = '/sqlFirewallPolicyAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:groupBy] = OCI::ApiClient.build_collection_params(opts[:group_by], :multi) if opts[:group_by] && !opts[:group_by].empty? query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:securityPolicyId] = opts[:security_policy_id] if opts[:security_policy_id] query_params[:timeStarted] = opts[:time_started] if opts[:time_started] query_params[:timeEnded] = opts[:time_ended] if opts[:time_ended] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sql_firewall_policy_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlFirewallPolicyAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sql_firewall_violation_analytics(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sql_firewall_violation_analytics API.
Returns the aggregation details of the SQL Firewall violations.
Allowed values are: dbUserName, targetId, targetName, operationTime, timeCollected, clientOsUserName, operation, currentDbUserName, sqlLevel, clientIp, clientProgram, violationCause, violationAction, violationCount
19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 19027 def list_sql_firewall_violation_analytics(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sql_firewall_violation_analytics.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sql_firewall_violation_analytics." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[dbUserName targetId targetName operationTime timeCollected clientOsUserName operation currentDbUserName sqlLevel clientIp clientProgram violationCause violationAction violationCount].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of dbUserName, targetId, targetName, operationTime, timeCollected, clientOsUserName, operation, currentDbUserName, sqlLevel, clientIp, clientProgram, violationCause, violationAction, violationCount.' end summary_field_allowable_values = %w[dbUserName targetName clientOsUserName operation sqlText currentDbUserName sqlLevel clientIp clientProgram violationCause violationAction selects creates alters drops grants revokes] if opts[:summary_field] && !opts[:summary_field].empty? opts[:summary_field].each do |val_to_check| unless summary_field_allowable_values.include?(val_to_check) raise 'Invalid value for "summary_field", must be one of dbUserName, targetName, clientOsUserName, operation, sqlText, currentDbUserName, sqlLevel, clientIp, clientProgram, violationCause, violationAction, selects, creates, alters, drops, grants, revokes.' end end end group_by_allowable_values = %w[dbUserName targetName operationTime timeCollected clientOsUserName operation sqlText currentDbUserName sqlLevel clientIp clientProgram violationCause violationAction] if opts[:group_by] && !opts[:group_by].empty? opts[:group_by].each do |val_to_check| unless group_by_allowable_values.include?(val_to_check) raise 'Invalid value for "group_by", must be one of dbUserName, targetName, operationTime, timeCollected, clientOsUserName, operation, sqlText, currentDbUserName, sqlLevel, clientIp, clientProgram, violationCause, violationAction.' end end end path = '/sqlFirewallViolationAnalytics' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:timeStarted] = opts[:time_started] if opts[:time_started] query_params[:timeEnded] = opts[:time_ended] if opts[:time_ended] query_params[:queryTimeZone] = opts[:query_time_zone] if opts[:query_time_zone] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] query_params[:summaryField] = OCI::ApiClient.build_collection_params(opts[:summary_field], :multi) if opts[:summary_field] && !opts[:summary_field].empty? query_params[:groupBy] = OCI::ApiClient.build_collection_params(opts[:group_by], :multi) if opts[:group_by] && !opts[:group_by].empty? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sql_firewall_violation_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlFirewallViolationAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_sql_firewall_violations(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_sql_firewall_violations API.
Gets a list of all the SQL Firewall violations captured by the firewall.
Allowed values are: dbUserName, targetId, targetName, operationTime, timeCollected, clientOsUserName, operation, currentDbUserName, sqlLevel, clientIp, clientProgram, violationCause, violationAction
19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 19152 def list_sql_firewall_violations(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_sql_firewall_violations.' if logger raise "Missing the required parameter 'compartment_id' when calling list_sql_firewall_violations." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[dbUserName targetId targetName operationTime timeCollected clientOsUserName operation currentDbUserName sqlLevel clientIp clientProgram violationCause violationAction].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of dbUserName, targetId, targetName, operationTime, timeCollected, clientOsUserName, operation, currentDbUserName, sqlLevel, clientIp, clientProgram, violationCause, violationAction.' end path = '/sqlFirewallViolations' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:scimQuery] = opts[:scim_query] if opts[:scim_query] # Header Params header_params = {} header_params[:accept] = 'application/json, application/xml' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_sql_firewall_violations') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::SqlFirewallViolationsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_tables(target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_tables API.
Returns a list of table metadata objects.
Allowed values are: SCHEMANAME, TABLENAME
19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 19237 def list_tables(target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_tables.' if logger raise "Missing the required parameter 'target_database_id' when calling list_tables." if target_database_id.nil? if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[SCHEMANAME TABLENAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of SCHEMANAME, TABLENAME.' end raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}/tables'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:schemaName] = OCI::ApiClient.build_collection_params(opts[:schema_name], :multi) if opts[:schema_name] && !opts[:schema_name].empty? query_params[:tableName] = OCI::ApiClient.build_collection_params(opts[:table_name], :multi) if opts[:table_name] && !opts[:table_name].empty? query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:tableNameContains] = opts[:table_name_contains] if opts[:table_name_contains] query_params[:schemaNameContains] = opts[:schema_name_contains] if opts[:schema_name_contains] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_tables') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::TableSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_target_alert_policy_associations(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_target_alert_policy_associations API.
Gets a list of all target-alert policy associations.
Allowed values are: DISPLAYNAME, TIMECREATED, TIMEUPDATED
19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 19341 def list_target_alert_policy_associations(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_target_alert_policy_associations.' if logger raise "Missing the required parameter 'compartment_id' when calling list_target_alert_policy_associations." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::DataSafe::Models::ALERT_POLICY_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::ALERT_POLICY_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[DISPLAYNAME TIMECREATED TIMEUPDATED].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of DISPLAYNAME, TIMECREATED, TIMEUPDATED.' end if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/targetAlertPolicyAssociations' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:targetAlertPolicyAssociationId] = opts[:target_alert_policy_association_id] if opts[:target_alert_policy_association_id] query_params[:alertPolicyId] = opts[:alert_policy_id] if opts[:alert_policy_id] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_target_alert_policy_associations') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::TargetAlertPolicyAssociationCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_target_databases(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_target_databases API.
Returns the list of registered target databases in Data Safe.
19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 19449 def list_target_databases(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_target_databases.' if logger raise "Missing the required parameter 'compartment_id' when calling list_target_databases." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::DataSafe::Models::TARGET_DATABASE_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::TARGET_DATABASE_LIFECYCLE_STATE_ENUM.' end if opts[:database_type] && !OCI::DataSafe::Models::DATABASE_TYPE_ENUM.include?(opts[:database_type]) raise 'Invalid value for "database_type", must be one of the values in OCI::DataSafe::Models::DATABASE_TYPE_ENUM.' end if opts[:infrastructure_type] && !OCI::DataSafe::Models::INFRASTRUCTURE_TYPE_ENUM.include?(opts[:infrastructure_type]) raise 'Invalid value for "infrastructure_type", must be one of the values in OCI::DataSafe::Models::INFRASTRUCTURE_TYPE_ENUM.' end if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end path = '/targetDatabases' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:associatedResourceId] = opts[:associated_resource_id] if opts[:associated_resource_id] query_params[:targetDatabaseId] = opts[:target_database_id] if opts[:target_database_id] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:databaseType] = opts[:database_type] if opts[:database_type] query_params[:infrastructureType] = opts[:infrastructure_type] if opts[:infrastructure_type] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_target_databases') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::TargetDatabaseSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_user_access_analytics(user_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_user_access_analytics API.
Gets a list of aggregated user access analytics in the specified target in a compartment.
Allowed values are: USERNAME, COUNT
19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 19547 def list_user_access_analytics(user_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_user_access_analytics.' if logger raise "Missing the required parameter 'user_assessment_id' when calling list_user_access_analytics." if user_assessment_id.nil? if opts[:sort_by] && !%w[USERNAME COUNT].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of USERNAME, COUNT.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/userAccessAnalytics'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_user_access_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::UserAccessAnalyticsCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_user_analytics(user_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_user_analytics API.
Gets a list of aggregated user details from the specified user assessment. This provides information about the overall state. of database user security. For example, the user details include how many users have the DBA role and how many users are in the critical category. This data is especially useful content for dashboards or to support analytics.
When you perform the ListUserAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has READ permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by compartmentId, then "Not Authorized" is returned.
The parameter compartmentIdInSubtree applies when you perform ListUserAnalytics on the compartmentId passed and when it is set to true, the entire hierarchy of compartments can be returned.
To use ListUserAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment, set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.
Allowed values are: userName, userCategory, accountStatus, timeLastLogin, targetId, timeUserCreated, authenticationType, timePasswordChanged
19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 19677 def list_user_analytics(user_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_user_analytics.' if logger raise "Missing the required parameter 'user_assessment_id' when calling list_user_analytics." if user_assessment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[userName userCategory accountStatus timeLastLogin targetId timeUserCreated authenticationType timePasswordChanged].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of userName, userCategory, accountStatus, timeLastLogin, targetId, timeUserCreated, authenticationType, timePasswordChanged.' end raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/userAnalytics'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:userCategory] = opts[:user_category] if opts[:user_category] query_params[:userKey] = opts[:user_key] if opts[:user_key] query_params[:accountStatus] = opts[:account_status] if opts[:account_status] query_params[:authenticationType] = opts[:authentication_type] if opts[:authentication_type] query_params[:userName] = opts[:user_name] if opts[:user_name] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:timeLastLoginGreaterThanOrEqualTo] = opts[:time_last_login_greater_than_or_equal_to] if opts[:time_last_login_greater_than_or_equal_to] query_params[:timeLastLoginLessThan] = opts[:time_last_login_less_than] if opts[:time_last_login_less_than] query_params[:timeUserCreatedGreaterThanOrEqualTo] = opts[:time_user_created_greater_than_or_equal_to] if opts[:time_user_created_greater_than_or_equal_to] query_params[:timeUserCreatedLessThan] = opts[:time_user_created_less_than] if opts[:time_user_created_less_than] query_params[:timePasswordLastChangedGreaterThanOrEqualTo] = opts[:time_password_last_changed_greater_than_or_equal_to] if opts[:time_password_last_changed_greater_than_or_equal_to] query_params[:timePasswordLastChangedLessThan] = opts[:time_password_last_changed_less_than] if opts[:time_password_last_changed_less_than] query_params[:timePasswordExpiryGreaterThanOrEqualTo] = opts[:time_password_expiry_greater_than_or_equal_to] if opts[:time_password_expiry_greater_than_or_equal_to] query_params[:timePasswordExpiryLessThan] = opts[:time_password_expiry_less_than] if opts[:time_password_expiry_less_than] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_user_analytics') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::UserAggregation>' ) end # rubocop:enable Metrics/BlockLength end |
#list_user_assessments(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_user_assessments API.
Gets a list of user assessments.
The ListUserAssessments operation returns only the assessments in the specified compartmentId
. The list does not include any subcompartments of the compartmentId passed.
The parameter accessLevel
specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. This is valid only when compartmentIdInSubtree
is set to true
.
The parameter compartmentIdInSubtree
applies when you perform ListUserAssessments on the compartmentId
passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree
to true and accessLevel
to ACCESSIBLE.
Allowed values are: timeCreated, displayName
19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 19819 def list_user_assessments(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_user_assessments.' if logger raise "Missing the required parameter 'compartment_id' when calling list_user_assessments." if compartment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:type] && !%w[LATEST SAVED COMPARTMENT SAVE_SCHEDULE].include?(opts[:type]) raise 'Invalid value for "type", must be one of LATEST, SAVED, COMPARTMENT, SAVE_SCHEDULE.' end if opts[:triggered_by] && !%w[USER SYSTEM].include?(opts[:triggered_by]) raise 'Invalid value for "triggered_by", must be one of USER, SYSTEM.' end if opts[:lifecycle_state] && !OCI::DataSafe::Models::USER_ASSESSMENT_LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataSafe::Models::USER_ASSESSMENT_LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.' end path = '/userAssessments' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:scheduleUserAssessmentId] = opts[:schedule_user_assessment_id] if opts[:schedule_user_assessment_id] query_params[:isScheduleAssessment] = opts[:is_schedule_assessment] if !opts[:is_schedule_assessment].nil? query_params[:isBaseline] = opts[:is_baseline] if !opts[:is_baseline].nil? query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:type] = opts[:type] if opts[:type] query_params[:triggeredBy] = opts[:triggered_by] if opts[:triggered_by] query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to] query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_user_assessments') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::UserAssessmentSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_users(user_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_users API.
Gets a list of users of the specified user assessment. The result contains the database user details for each user, such as user type, account status, last login time, user creation time, authentication type, user profile, and the date and time of the latest password change. It also contains the user category derived from these user details as well as privileges granted to each user.
as specified by '#/definitions/userTypes'.
Allowed values are: userName, userCategory, accountStatus, timeLastLogin, targetId, timeUserCreated, authenticationType, timePasswordChanged
19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 19978 def list_users(user_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_users.' if logger raise "Missing the required parameter 'user_assessment_id' when calling list_users." if user_assessment_id.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:sort_by] && !%w[userName userCategory accountStatus timeLastLogin targetId timeUserCreated authenticationType timePasswordChanged].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of userName, userCategory, accountStatus, timeLastLogin, targetId, timeUserCreated, authenticationType, timePasswordChanged.' end raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/users'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] query_params[:userCategory] = opts[:user_category] if opts[:user_category] query_params[:userRole] = opts[:user_role] if opts[:user_role] query_params[:userProfile] = opts[:user_profile] if opts[:user_profile] query_params[:userType] = opts[:user_type] if opts[:user_type] query_params[:userKey] = opts[:user_key] if opts[:user_key] query_params[:accountStatus] = opts[:account_status] if opts[:account_status] query_params[:authenticationType] = opts[:authentication_type] if opts[:authentication_type] query_params[:userName] = opts[:user_name] if opts[:user_name] query_params[:targetId] = opts[:target_id] if opts[:target_id] query_params[:timeLastLoginGreaterThanOrEqualTo] = opts[:time_last_login_greater_than_or_equal_to] if opts[:time_last_login_greater_than_or_equal_to] query_params[:timeLastLoginLessThan] = opts[:time_last_login_less_than] if opts[:time_last_login_less_than] query_params[:timeUserCreatedGreaterThanOrEqualTo] = opts[:time_user_created_greater_than_or_equal_to] if opts[:time_user_created_greater_than_or_equal_to] query_params[:timeUserCreatedLessThan] = opts[:time_user_created_less_than] if opts[:time_user_created_less_than] query_params[:timePasswordLastChangedGreaterThanOrEqualTo] = opts[:time_password_last_changed_greater_than_or_equal_to] if opts[:time_password_last_changed_greater_than_or_equal_to] query_params[:timePasswordLastChangedLessThan] = opts[:time_password_last_changed_less_than] if opts[:time_password_last_changed_less_than] query_params[:timePasswordExpiryGreaterThanOrEqualTo] = opts[:time_password_expiry_greater_than_or_equal_to] if opts[:time_password_expiry_greater_than_or_equal_to] query_params[:timePasswordExpiryLessThan] = opts[:time_password_expiry_less_than] if opts[:time_password_expiry_less_than] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:schemaList] = OCI::ApiClient.build_collection_params(opts[:schema_list], :multi) if opts[:schema_list] && !opts[:schema_list].empty? query_params[:areAllSchemasAccessible] = opts[:are_all_schemas_accessible] if !opts[:are_all_schemas_accessible].nil? # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_users') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::UserSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_request_errors(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_request_errors API.
Gets a list of errors for the specified work request.
20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20072 def list_work_request_errors(work_request_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_work_request_errors.' if logger raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_work_request_errors') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::WorkRequestError>' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_request_logs(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_request_logs API.
Gets a list of log entries for the specified work request.
20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 20159 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20131 def list_work_request_logs(work_request_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_work_request_logs.' if logger raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_work_request_logs') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::WorkRequestLogEntry>' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_requests(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_requests API.
Gets a list of work requests.
20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20208 def list_work_requests(compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#list_work_requests.' if logger raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil? if opts[:sort_by] && !%w[STARTTIME FINISHTIME ACCEPTEDTIME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of STARTTIME, FINISHTIME, ACCEPTEDTIME.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/workRequests' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:operationType] = opts[:operation_type] if opts[:operation_type] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:resourceId] = opts[:resource_id] if opts[:resource_id] query_params[:targetDatabaseId] = opts[:target_database_id] if opts[:target_database_id] query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#list_work_requests') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::DataSafe::Models::WorkRequestSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
94 95 96 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 94 def logger @api_client.config.logger end |
#mask_data(masking_policy_id, mask_data_details, opts = {}) ⇒ Response
Click here to see an example of how to use mask_data API.
Masks data using the specified masking policy.
20289 20290 20291 20292 20293 20294 20295 20296 20297 20298 20299 20300 20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20289 def mask_data(masking_policy_id, mask_data_details, opts = {}) logger.debug 'Calling operation DataSafeClient#mask_data.' if logger raise "Missing the required parameter 'masking_policy_id' when calling mask_data." if masking_policy_id.nil? raise "Missing the required parameter 'mask_data_details' when calling mask_data." if mask_data_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/actions/mask'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(mask_data_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#mask_data') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#modify_global_settings(modify_global_settings_details, compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use modify_global_settings API.
Modifies Global Settings in Data Safe in the tenancy and region.
20358 20359 20360 20361 20362 20363 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20358 def modify_global_settings(modify_global_settings_details, compartment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#modify_global_settings.' if logger raise "Missing the required parameter 'modify_global_settings_details' when calling modify_global_settings." if modify_global_settings_details.nil? raise "Missing the required parameter 'compartment_id' when calling modify_global_settings." if compartment_id.nil? raise "Parameter value for 'compartment_id' must not be blank" if OCI::Internal::Util.blank_string?(compartment_id) path = '/configuration/{compartmentId}/actions/modifyGlobalSettings'.sub('{compartmentId}', compartment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(modify_global_settings_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#modify_global_settings') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#patch_alerts(patch_alerts_details, opts = {}) ⇒ Response
Click here to see an example of how to use patch_alerts API.
Updates the status of one or more alert specified by the alert IDs.
20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20430 def patch_alerts(patch_alerts_details, opts = {}) logger.debug 'Calling operation DataSafeClient#patch_alerts.' if logger raise "Missing the required parameter 'patch_alerts_details' when calling patch_alerts." if patch_alerts_details.nil? if opts[:access_level] && !%w[RESTRICTED ACCESSIBLE].include?(opts[:access_level]) raise 'Invalid value for "access_level", must be one of RESTRICTED, ACCESSIBLE.' end path = '/alerts' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentIdInSubtree] = opts[:compartment_id_in_subtree] if !opts[:compartment_id_in_subtree].nil? query_params[:accessLevel] = opts[:access_level] if opts[:access_level] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(patch_alerts_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#patch_alerts') do @api_client.call_api( :PATCH, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#patch_discovery_job_results(discovery_job_id, patch_discovery_job_result_details, opts = {}) ⇒ Response
Click here to see an example of how to use patch_discovery_job_results API.
Patches one or more discovery results. You can use this operation to set the plannedAction attribute before using ApplyDiscoveryJobResults to process the results based on this attribute.
20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508 20509 20510 20511 20512 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20498 def patch_discovery_job_results(discovery_job_id, patch_discovery_job_result_details, opts = {}) logger.debug 'Calling operation DataSafeClient#patch_discovery_job_results.' if logger raise "Missing the required parameter 'discovery_job_id' when calling patch_discovery_job_results." if discovery_job_id.nil? raise "Missing the required parameter 'patch_discovery_job_result_details' when calling patch_discovery_job_results." if patch_discovery_job_result_details.nil? raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id) path = '/discoveryJobs/{discoveryJobId}/results'.sub('{discoveryJobId}', discovery_job_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(patch_discovery_job_result_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#patch_discovery_job_results') do @api_client.call_api( :PATCH, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#patch_grouped_sensitive_types(sensitive_type_group_id, patch_grouped_sensitive_types_details, opts = {}) ⇒ Response
Click here to see an example of how to use patch_grouped_sensitive_types API.
Patches one or more sensitive types in a sensitive type group. You can use this operation to add or remove sensitive type ids in a sensitive type group.
20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20562 def patch_grouped_sensitive_types(sensitive_type_group_id, patch_grouped_sensitive_types_details, opts = {}) logger.debug 'Calling operation DataSafeClient#patch_grouped_sensitive_types.' if logger raise "Missing the required parameter 'sensitive_type_group_id' when calling patch_grouped_sensitive_types." if sensitive_type_group_id.nil? raise "Missing the required parameter 'patch_grouped_sensitive_types_details' when calling patch_grouped_sensitive_types." if patch_grouped_sensitive_types_details.nil? raise "Parameter value for 'sensitive_type_group_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_type_group_id) path = '/sensitiveTypeGroups/{sensitiveTypeGroupId}/groupedSensitiveTypes'.sub('{sensitiveTypeGroupId}', sensitive_type_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(patch_grouped_sensitive_types_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#patch_grouped_sensitive_types') do @api_client.call_api( :PATCH, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#patch_masking_columns(masking_policy_id, patch_masking_columns_details, opts = {}) ⇒ Response
Click here to see an example of how to use patch_masking_columns API.
Patches one or more columns in the specified masking policy. Use it to create, or update masking columns. To create masking columns, use CreateMaskingColumnDetails as the patch value. And to update masking columns, use UpdateMaskingColumnDetails as the patch value.
20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20627 def patch_masking_columns(masking_policy_id, patch_masking_columns_details, opts = {}) logger.debug 'Calling operation DataSafeClient#patch_masking_columns.' if logger raise "Missing the required parameter 'masking_policy_id' when calling patch_masking_columns." if masking_policy_id.nil? raise "Missing the required parameter 'patch_masking_columns_details' when calling patch_masking_columns." if patch_masking_columns_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/maskingColumns'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(patch_masking_columns_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#patch_masking_columns') do @api_client.call_api( :PATCH, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#patch_sdm_masking_policy_difference_columns(sdm_masking_policy_difference_id, patch_sdm_masking_policy_difference_columns_details, opts = {}) ⇒ Response
Click here to see an example of how to use patch_sdm_masking_policy_difference_columns API.
Patches one or more SDM masking policy difference columns. You can use this operation to set the plannedAction attribute before using ApplySdmMaskingPolicyDifference to process the difference based on this attribute.
20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 20728 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20691 def patch_sdm_masking_policy_difference_columns(sdm_masking_policy_difference_id, patch_sdm_masking_policy_difference_columns_details, opts = {}) logger.debug 'Calling operation DataSafeClient#patch_sdm_masking_policy_difference_columns.' if logger raise "Missing the required parameter 'sdm_masking_policy_difference_id' when calling patch_sdm_masking_policy_difference_columns." if sdm_masking_policy_difference_id.nil? raise "Missing the required parameter 'patch_sdm_masking_policy_difference_columns_details' when calling patch_sdm_masking_policy_difference_columns." if patch_sdm_masking_policy_difference_columns_details.nil? raise "Parameter value for 'sdm_masking_policy_difference_id' must not be blank" if OCI::Internal::Util.blank_string?(sdm_masking_policy_difference_id) path = '/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}/differenceColumns'.sub('{sdmMaskingPolicyDifferenceId}', sdm_masking_policy_difference_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(patch_sdm_masking_policy_difference_columns_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#patch_sdm_masking_policy_difference_columns') do @api_client.call_api( :PATCH, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#patch_sensitive_columns(sensitive_data_model_id, patch_sensitive_column_details, opts = {}) ⇒ Response
Click here to see an example of how to use patch_sensitive_columns API.
Patches one or more columns in the specified sensitive data model. Use it to create, update, or delete sensitive columns. To create sensitive columns, use CreateSensitiveColumnDetails as the patch value. And to update sensitive columns, use UpdateSensitiveColumnDetails as the patch value.
20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20756 def patch_sensitive_columns(sensitive_data_model_id, patch_sensitive_column_details, opts = {}) logger.debug 'Calling operation DataSafeClient#patch_sensitive_columns.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling patch_sensitive_columns." if sensitive_data_model_id.nil? raise "Missing the required parameter 'patch_sensitive_column_details' when calling patch_sensitive_columns." if patch_sensitive_column_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(patch_sensitive_column_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#patch_sensitive_columns') do @api_client.call_api( :PATCH, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#patch_sql_firewall_allowed_sql(patch_sql_firewall_allowed_sql_details, opts = {}) ⇒ Response
Click here to see an example of how to use patch_sql_firewall_allowed_sql API.
Delete multiple allowed sqls. You can use this operation to delete one or more allowed sqls. Create and update of multiple allowed sqls is not supported.
20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20819 def patch_sql_firewall_allowed_sql(patch_sql_firewall_allowed_sql_details, opts = {}) logger.debug 'Calling operation DataSafeClient#patch_sql_firewall_allowed_sql.' if logger raise "Missing the required parameter 'patch_sql_firewall_allowed_sql_details' when calling patch_sql_firewall_allowed_sql." if patch_sql_firewall_allowed_sql_details.nil? path = '/sqlFirewallAllowedSqls' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(patch_sql_firewall_allowed_sql_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#patch_sql_firewall_allowed_sql') do @api_client.call_api( :PATCH, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#patch_target_alert_policy_association(patch_target_alert_policy_association_details, opts = {}) ⇒ Response
Click here to see an example of how to use patch_target_alert_policy_association API.
Creates new target-alert policy associations that will be applied on the target database.
20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20879 def patch_target_alert_policy_association(patch_target_alert_policy_association_details, opts = {}) logger.debug 'Calling operation DataSafeClient#patch_target_alert_policy_association.' if logger raise "Missing the required parameter 'patch_target_alert_policy_association_details' when calling patch_target_alert_policy_association." if patch_target_alert_policy_association_details.nil? path = '/targetAlertPolicyAssociations' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(patch_target_alert_policy_association_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#patch_target_alert_policy_association') do @api_client.call_api( :PATCH, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#provision_audit_policy(provision_audit_policy_details, audit_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use provision_audit_policy API.
Provision audit policy.
20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 20944 def provision_audit_policy(provision_audit_policy_details, audit_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#provision_audit_policy.' if logger raise "Missing the required parameter 'provision_audit_policy_details' when calling provision_audit_policy." if provision_audit_policy_details.nil? raise "Missing the required parameter 'audit_policy_id' when calling provision_audit_policy." if audit_policy_id.nil? raise "Parameter value for 'audit_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_policy_id) path = '/auditPolicies/{auditPolicyId}/actions/provision'.sub('{auditPolicyId}', audit_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(provision_audit_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#provision_audit_policy') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#purge_sql_collection_logs(sql_collection_id, opts = {}) ⇒ Response
Click here to see an example of how to use purge_sql_collection_logs API.
Purge the SQL collection logs for the specified SqlCollection.
21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21012 def purge_sql_collection_logs(sql_collection_id, opts = {}) logger.debug 'Calling operation DataSafeClient#purge_sql_collection_logs.' if logger raise "Missing the required parameter 'sql_collection_id' when calling purge_sql_collection_logs." if sql_collection_id.nil? raise "Parameter value for 'sql_collection_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_collection_id) path = '/sqlCollections/{sqlCollectionId}/actions/purgeLogs'.sub('{sqlCollectionId}', sql_collection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#purge_sql_collection_logs') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#refresh_database_security_configuration(database_security_config_id, opts = {}) ⇒ Response
Click here to see an example of how to use refresh_database_security_configuration API.
Refreshes the specified database security configuration.
21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21079 def refresh_database_security_configuration(database_security_config_id, opts = {}) logger.debug 'Calling operation DataSafeClient#refresh_database_security_configuration.' if logger raise "Missing the required parameter 'database_security_config_id' when calling refresh_database_security_configuration." if database_security_config_id.nil? raise "Parameter value for 'database_security_config_id' must not be blank" if OCI::Internal::Util.blank_string?(database_security_config_id) path = '/databaseSecurityConfigs/{databaseSecurityConfigId}/actions/refresh'.sub('{databaseSecurityConfigId}', database_security_config_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#refresh_database_security_configuration') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#refresh_security_assessment(security_assessment_id, run_security_assessment_details, opts = {}) ⇒ Response
Click here to see an example of how to use refresh_security_assessment API.
Runs a security assessment, refreshes the latest assessment, and saves it for future reference. The assessment runs with a securityAssessmentId of type LATEST. Before you start, first call the ListSecurityAssessments operation with filter "type = latest" to get the security assessment id for the target's latest assessment.
21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21149 def refresh_security_assessment(security_assessment_id, run_security_assessment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#refresh_security_assessment.' if logger raise "Missing the required parameter 'security_assessment_id' when calling refresh_security_assessment." if security_assessment_id.nil? raise "Missing the required parameter 'run_security_assessment_details' when calling refresh_security_assessment." if run_security_assessment_details.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}/actions/refresh'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(run_security_assessment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#refresh_security_assessment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#refresh_sql_collection_log_insights(sql_collection_id, opts = {}) ⇒ Response
Click here to see an example of how to use refresh_sql_collection_log_insights API.
Refresh the specified SQL collection Log Insights.
21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21217 def refresh_sql_collection_log_insights(sql_collection_id, opts = {}) logger.debug 'Calling operation DataSafeClient#refresh_sql_collection_log_insights.' if logger raise "Missing the required parameter 'sql_collection_id' when calling refresh_sql_collection_log_insights." if sql_collection_id.nil? raise "Parameter value for 'sql_collection_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_collection_id) path = '/sqlCollections/{sqlCollectionId}/actions/refreshLogInsights'.sub('{sqlCollectionId}', sql_collection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#refresh_sql_collection_log_insights') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#refresh_target_database(target_database_id, opts = {}) ⇒ Response
Click here to see an example of how to use refresh_target_database API.
Refreshes the Data Safe target database to update it's state.
21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21285 def refresh_target_database(target_database_id, opts = {}) logger.debug 'Calling operation DataSafeClient#refresh_target_database.' if logger raise "Missing the required parameter 'target_database_id' when calling refresh_target_database." if target_database_id.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}/actions/refresh'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#refresh_target_database') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#refresh_user_assessment(user_assessment_id, run_user_assessment_details, opts = {}) ⇒ Response
Click here to see an example of how to use refresh_user_assessment API.
Refreshes the latest assessment and saves it for future reference. This operation runs with a userAssessmentId of type LATEST. Before you start, first call the ListUserAssessments operation with filter "type = latest" to get the user assessment ID for the target's latest assessment.
21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 21392 21393 21394 21395 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21356 def refresh_user_assessment(user_assessment_id, run_user_assessment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#refresh_user_assessment.' if logger raise "Missing the required parameter 'user_assessment_id' when calling refresh_user_assessment." if user_assessment_id.nil? raise "Missing the required parameter 'run_user_assessment_details' when calling refresh_user_assessment." if run_user_assessment_details.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/actions/refresh'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(run_user_assessment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#refresh_user_assessment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#remove_schedule_report(report_definition_id, opts = {}) ⇒ Response
Click here to see an example of how to use remove_schedule_report API.
Deletes the schedule of a .xls or .pdf report.
21424 21425 21426 21427 21428 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 21461 21462 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21424 def remove_schedule_report(report_definition_id, opts = {}) logger.debug 'Calling operation DataSafeClient#remove_schedule_report.' if logger raise "Missing the required parameter 'report_definition_id' when calling remove_schedule_report." if report_definition_id.nil? raise "Parameter value for 'report_definition_id' must not be blank" if OCI::Internal::Util.blank_string?(report_definition_id) path = '/reportDefinitions/{reportDefinitionId}/actions/removeScheduleReport'.sub('{reportDefinitionId}', report_definition_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#remove_schedule_report') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#resume_audit_trail(audit_trail_id, opts = {}) ⇒ Response
Click here to see an example of how to use resume_audit_trail API.
Resumes the specified audit trail once it got stopped.
21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21486 def resume_audit_trail(audit_trail_id, opts = {}) logger.debug 'Calling operation DataSafeClient#resume_audit_trail.' if logger raise "Missing the required parameter 'audit_trail_id' when calling resume_audit_trail." if audit_trail_id.nil? raise "Parameter value for 'audit_trail_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_trail_id) path = '/auditTrails/{auditTrailId}/actions/resume'.sub('{auditTrailId}', audit_trail_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#resume_audit_trail') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#resume_work_request(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use resume_work_request API.
Resume the given work request. Issuing a resume does not guarantee of immediate resume of the work request.
21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21552 def resume_work_request(work_request_id, opts = {}) logger.debug 'Calling operation DataSafeClient#resume_work_request.' if logger raise "Missing the required parameter 'work_request_id' when calling resume_work_request." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}/actions/resume'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#resume_work_request') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#retrieve_audit_policies(audit_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use retrieve_audit_policies API.
Retrieves the audit policy details from the source target database.
21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21619 def retrieve_audit_policies(audit_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#retrieve_audit_policies.' if logger raise "Missing the required parameter 'audit_policy_id' when calling retrieve_audit_policies." if audit_policy_id.nil? raise "Parameter value for 'audit_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_policy_id) path = '/auditPolicies/{auditPolicyId}/actions/retrieveFromTarget'.sub('{auditPolicyId}', audit_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#retrieve_audit_policies') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#schedule_report(report_definition_id, schedule_report_details, opts = {}) ⇒ Response
Click here to see an example of how to use schedule_report API.
Schedules a .xls or .pdf report based on parameters and report definition.
21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21687 def schedule_report(report_definition_id, schedule_report_details, opts = {}) logger.debug 'Calling operation DataSafeClient#schedule_report.' if logger raise "Missing the required parameter 'report_definition_id' when calling schedule_report." if report_definition_id.nil? raise "Missing the required parameter 'schedule_report_details' when calling schedule_report." if schedule_report_details.nil? raise "Parameter value for 'report_definition_id' must not be blank" if OCI::Internal::Util.blank_string?(report_definition_id) path = '/reportDefinitions/{reportDefinitionId}/actions/scheduleReport'.sub('{reportDefinitionId}', report_definition_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(schedule_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#schedule_report') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#set_security_assessment_baseline(security_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use set_security_assessment_baseline API.
Sets the saved security assessment as the baseline in the compartment where the the specified assessment resides. The security assessment needs to be of type 'SAVED'.
21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21756 def set_security_assessment_baseline(security_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#set_security_assessment_baseline.' if logger raise "Missing the required parameter 'security_assessment_id' when calling set_security_assessment_baseline." if security_assessment_id.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}/actions/setBaseline'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(opts[:base_line_details]) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#set_security_assessment_baseline') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#set_user_assessment_baseline(user_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use set_user_assessment_baseline API.
Sets the saved user assessment as the baseline in the compartment where the specified assessment resides. The user assessment needs to be of type 'SAVED'.
21824 21825 21826 21827 21828 21829 21830 21831 21832 21833 21834 21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21824 def set_user_assessment_baseline(user_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#set_user_assessment_baseline.' if logger raise "Missing the required parameter 'user_assessment_id' when calling set_user_assessment_baseline." if user_assessment_id.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/actions/setBaseline'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(opts[:base_line_details]) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#set_user_assessment_baseline') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#start_audit_trail(start_audit_trail_details, audit_trail_id, opts = {}) ⇒ Response
Click here to see an example of how to use start_audit_trail API.
Starts collection of audit records on the specified audit trail.
21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21892 def start_audit_trail(start_audit_trail_details, audit_trail_id, opts = {}) logger.debug 'Calling operation DataSafeClient#start_audit_trail.' if logger raise "Missing the required parameter 'start_audit_trail_details' when calling start_audit_trail." if start_audit_trail_details.nil? raise "Missing the required parameter 'audit_trail_id' when calling start_audit_trail." if audit_trail_id.nil? raise "Parameter value for 'audit_trail_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_trail_id) path = '/auditTrails/{auditTrailId}/actions/start'.sub('{auditTrailId}', audit_trail_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(start_audit_trail_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#start_audit_trail') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#start_sql_collection(sql_collection_id, opts = {}) ⇒ Response
Click here to see an example of how to use start_sql_collection API.
Start the specified SQL collection.
21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971 21972 21973 21974 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 21960 def start_sql_collection(sql_collection_id, opts = {}) logger.debug 'Calling operation DataSafeClient#start_sql_collection.' if logger raise "Missing the required parameter 'sql_collection_id' when calling start_sql_collection." if sql_collection_id.nil? raise "Parameter value for 'sql_collection_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_collection_id) path = '/sqlCollections/{sqlCollectionId}/actions/start'.sub('{sqlCollectionId}', sql_collection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#start_sql_collection') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#stop_audit_trail(audit_trail_id, opts = {}) ⇒ Response
Click here to see an example of how to use stop_audit_trail API.
Stops the specified audit trail.
22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22022 def stop_audit_trail(audit_trail_id, opts = {}) logger.debug 'Calling operation DataSafeClient#stop_audit_trail.' if logger raise "Missing the required parameter 'audit_trail_id' when calling stop_audit_trail." if audit_trail_id.nil? raise "Parameter value for 'audit_trail_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_trail_id) path = '/auditTrails/{auditTrailId}/actions/stop'.sub('{auditTrailId}', audit_trail_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#stop_audit_trail') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#stop_sql_collection(sql_collection_id, opts = {}) ⇒ Response
Click here to see an example of how to use stop_sql_collection API.
Stops the specified SQL collection.
22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22087 def stop_sql_collection(sql_collection_id, opts = {}) logger.debug 'Calling operation DataSafeClient#stop_sql_collection.' if logger raise "Missing the required parameter 'sql_collection_id' when calling stop_sql_collection." if sql_collection_id.nil? raise "Parameter value for 'sql_collection_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_collection_id) path = '/sqlCollections/{sqlCollectionId}/actions/stop'.sub('{sqlCollectionId}', sql_collection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#stop_sql_collection') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#suspend_work_request(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use suspend_work_request API.
Suspend the given work request. Issuing a suspend does not guarantee of a immediate suspend of the work request.
22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22155 def suspend_work_request(work_request_id, opts = {}) logger.debug 'Calling operation DataSafeClient#suspend_work_request.' if logger raise "Missing the required parameter 'work_request_id' when calling suspend_work_request." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}/actions/suspend'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#suspend_work_request') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#unset_security_assessment_baseline(security_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use unset_security_assessment_baseline API.
Removes the baseline setting for the saved security assessment associated with the targetId passed via body. If no body or empty body is passed then the baseline settings of all the saved security assessments pertaining to the baseline assessment OCID provided in the path will be removed. Sets the if-match parameter to the value of the etag from a previous GET or POST response for that resource.
22226 22227 22228 22229 22230 22231 22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22226 def unset_security_assessment_baseline(security_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#unset_security_assessment_baseline.' if logger raise "Missing the required parameter 'security_assessment_id' when calling unset_security_assessment_baseline." if security_assessment_id.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}/actions/unsetBaseline'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(opts[:unset_security_assessment_baseline_details]) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#unset_security_assessment_baseline') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#unset_user_assessment_baseline(user_assessment_id, opts = {}) ⇒ Response
Click here to see an example of how to use unset_user_assessment_baseline API.
Removes the baseline setting for the saved user assessment associated with the targetId passed via body. If no body or empty body is passed then the baseline settings of all the saved user assessments pertaining to the baseline assessment OCID provided in the path will be removed. Sets the if-match parameter to the value of the etag from a previous GET or POST response for that resource.
22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 22335 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22297 def unset_user_assessment_baseline(user_assessment_id, opts = {}) logger.debug 'Calling operation DataSafeClient#unset_user_assessment_baseline.' if logger raise "Missing the required parameter 'user_assessment_id' when calling unset_user_assessment_baseline." if user_assessment_id.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}/actions/unsetBaseline'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(opts[:unset_user_assessment_baseline_details]) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#unset_user_assessment_baseline') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_alert(alert_id, update_alert_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_alert API.
Updates the status of the specified alert.
22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 22386 22387 22388 22389 22390 22391 22392 22393 22394 22395 22396 22397 22398 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22360 def update_alert(alert_id, update_alert_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_alert.' if logger raise "Missing the required parameter 'alert_id' when calling update_alert." if alert_id.nil? raise "Missing the required parameter 'update_alert_details' when calling update_alert." if update_alert_details.nil? raise "Parameter value for 'alert_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_id) path = '/alerts/{alertId}'.sub('{alertId}', alert_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_alert_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_alert') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::DataSafe::Models::Alert' ) end # rubocop:enable Metrics/BlockLength end |
#update_alert_policy(alert_policy_id, update_alert_policy_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_alert_policy API.
Updates the specified alert policy .
22423 22424 22425 22426 22427 22428 22429 22430 22431 22432 22433 22434 22435 22436 22437 22438 22439 22440 22441 22442 22443 22444 22445 22446 22447 22448 22449 22450 22451 22452 22453 22454 22455 22456 22457 22458 22459 22460 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22423 def update_alert_policy(alert_policy_id, update_alert_policy_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_alert_policy.' if logger raise "Missing the required parameter 'alert_policy_id' when calling update_alert_policy." if alert_policy_id.nil? raise "Missing the required parameter 'update_alert_policy_details' when calling update_alert_policy." if update_alert_policy_details.nil? raise "Parameter value for 'alert_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_policy_id) path = '/alertPolicies/{alertPolicyId}'.sub('{alertPolicyId}', alert_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_alert_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_alert_policy') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_alert_policy_rule(alert_policy_id, rule_key, update_alert_policy_rule_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_alert_policy_rule API.
Updates the specified alert policy rule.
22486 22487 22488 22489 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 22501 22502 22503 22504 22505 22506 22507 22508 22509 22510 22511 22512 22513 22514 22515 22516 22517 22518 22519 22520 22521 22522 22523 22524 22525 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22486 def update_alert_policy_rule(alert_policy_id, rule_key, update_alert_policy_rule_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_alert_policy_rule.' if logger raise "Missing the required parameter 'alert_policy_id' when calling update_alert_policy_rule." if alert_policy_id.nil? raise "Missing the required parameter 'rule_key' when calling update_alert_policy_rule." if rule_key.nil? raise "Missing the required parameter 'update_alert_policy_rule_details' when calling update_alert_policy_rule." if update_alert_policy_rule_details.nil? raise "Parameter value for 'alert_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(alert_policy_id) raise "Parameter value for 'rule_key' must not be blank" if OCI::Internal::Util.blank_string?(rule_key) path = '/alertPolicies/{alertPolicyId}/rules/{ruleKey}'.sub('{alertPolicyId}', alert_policy_id.to_s).sub('{ruleKey}', rule_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_alert_policy_rule_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_alert_policy_rule') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_audit_archive_retrieval(audit_archive_retrieval_id, update_audit_archive_retrieval_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_audit_archive_retrieval API.
Updates the audit archive retrieval.
22550 22551 22552 22553 22554 22555 22556 22557 22558 22559 22560 22561 22562 22563 22564 22565 22566 22567 22568 22569 22570 22571 22572 22573 22574 22575 22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22550 def update_audit_archive_retrieval(audit_archive_retrieval_id, update_audit_archive_retrieval_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_audit_archive_retrieval.' if logger raise "Missing the required parameter 'audit_archive_retrieval_id' when calling update_audit_archive_retrieval." if audit_archive_retrieval_id.nil? raise "Missing the required parameter 'update_audit_archive_retrieval_details' when calling update_audit_archive_retrieval." if update_audit_archive_retrieval_details.nil? raise "Parameter value for 'audit_archive_retrieval_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_archive_retrieval_id) path = '/auditArchiveRetrievals/{auditArchiveRetrievalId}'.sub('{auditArchiveRetrievalId}', audit_archive_retrieval_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_audit_archive_retrieval_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_audit_archive_retrieval') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_audit_policy(audit_policy_id, update_audit_policy_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_audit_policy API.
Updates the audit policy.
22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22612 def update_audit_policy(audit_policy_id, update_audit_policy_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_audit_policy.' if logger raise "Missing the required parameter 'audit_policy_id' when calling update_audit_policy." if audit_policy_id.nil? raise "Missing the required parameter 'update_audit_policy_details' when calling update_audit_policy." if update_audit_policy_details.nil? raise "Parameter value for 'audit_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_policy_id) path = '/auditPolicies/{auditPolicyId}'.sub('{auditPolicyId}', audit_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_audit_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_audit_policy') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_audit_profile(audit_profile_id, update_audit_profile_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_audit_profile API.
Updates one or more attributes of the specified audit profile.
22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 22692 22693 22694 22695 22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22674 def update_audit_profile(audit_profile_id, update_audit_profile_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_audit_profile.' if logger raise "Missing the required parameter 'audit_profile_id' when calling update_audit_profile." if audit_profile_id.nil? raise "Missing the required parameter 'update_audit_profile_details' when calling update_audit_profile." if update_audit_profile_details.nil? raise "Parameter value for 'audit_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_profile_id) path = '/auditProfiles/{auditProfileId}'.sub('{auditProfileId}', audit_profile_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_audit_profile_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_audit_profile') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_audit_trail(audit_trail_id, update_audit_trail_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_audit_trail API.
Updates one or more attributes of the specified audit trail.
22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 22768 22769 22770 22771 22772 22773 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22736 def update_audit_trail(audit_trail_id, update_audit_trail_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_audit_trail.' if logger raise "Missing the required parameter 'audit_trail_id' when calling update_audit_trail." if audit_trail_id.nil? raise "Missing the required parameter 'update_audit_trail_details' when calling update_audit_trail." if update_audit_trail_details.nil? raise "Parameter value for 'audit_trail_id' must not be blank" if OCI::Internal::Util.blank_string?(audit_trail_id) path = '/auditTrails/{auditTrailId}'.sub('{auditTrailId}', audit_trail_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_audit_trail_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_audit_trail') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_data_safe_private_endpoint(data_safe_private_endpoint_id, update_data_safe_private_endpoint_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_data_safe_private_endpoint API.
Updates one or more attributes of the specified Data Safe private endpoint.
22798 22799 22800 22801 22802 22803 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 22819 22820 22821 22822 22823 22824 22825 22826 22827 22828 22829 22830 22831 22832 22833 22834 22835 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22798 def update_data_safe_private_endpoint(data_safe_private_endpoint_id, update_data_safe_private_endpoint_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_data_safe_private_endpoint.' if logger raise "Missing the required parameter 'data_safe_private_endpoint_id' when calling update_data_safe_private_endpoint." if data_safe_private_endpoint_id.nil? raise "Missing the required parameter 'update_data_safe_private_endpoint_details' when calling update_data_safe_private_endpoint." if update_data_safe_private_endpoint_details.nil? raise "Parameter value for 'data_safe_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(data_safe_private_endpoint_id) path = '/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}'.sub('{dataSafePrivateEndpointId}', data_safe_private_endpoint_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_data_safe_private_endpoint_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_data_safe_private_endpoint') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_database_security_config(database_security_config_id, update_database_security_config_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_database_security_config API.
Updates the database security configuration.
22860 22861 22862 22863 22864 22865 22866 22867 22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22860 def update_database_security_config(database_security_config_id, update_database_security_config_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_database_security_config.' if logger raise "Missing the required parameter 'database_security_config_id' when calling update_database_security_config." if database_security_config_id.nil? raise "Missing the required parameter 'update_database_security_config_details' when calling update_database_security_config." if update_database_security_config_details.nil? raise "Parameter value for 'database_security_config_id' must not be blank" if OCI::Internal::Util.blank_string?(database_security_config_id) path = '/databaseSecurityConfigs/{databaseSecurityConfigId}'.sub('{databaseSecurityConfigId}', database_security_config_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_database_security_config_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_database_security_config') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_finding(security_assessment_id, finding_key, update_finding_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_finding API.
Updates one or more attributes of the specified finding.
22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22928 def update_finding(security_assessment_id, finding_key, update_finding_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_finding.' if logger raise "Missing the required parameter 'security_assessment_id' when calling update_finding." if security_assessment_id.nil? raise "Missing the required parameter 'finding_key' when calling update_finding." if finding_key.nil? raise "Missing the required parameter 'update_finding_details' when calling update_finding." if update_finding_details.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) raise "Parameter value for 'finding_key' must not be blank" if OCI::Internal::Util.blank_string?(finding_key) path = '/securityAssessments/{securityAssessmentId}/findings/{findingKey}'.sub('{securityAssessmentId}', security_assessment_id.to_s).sub('{findingKey}', finding_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_finding_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_finding') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_library_masking_format(library_masking_format_id, update_library_masking_format_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_library_masking_format API.
Updates one or more attributes of the specified library masking format. Note that updating the formatEntries attribute replaces all the existing masking format entries with the specified format entries.
22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 22994 def update_library_masking_format(library_masking_format_id, update_library_masking_format_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_library_masking_format.' if logger raise "Missing the required parameter 'library_masking_format_id' when calling update_library_masking_format." if library_masking_format_id.nil? raise "Missing the required parameter 'update_library_masking_format_details' when calling update_library_masking_format." if update_library_masking_format_details.nil? raise "Parameter value for 'library_masking_format_id' must not be blank" if OCI::Internal::Util.blank_string?(library_masking_format_id) path = '/libraryMaskingFormats/{libraryMaskingFormatId}'.sub('{libraryMaskingFormatId}', library_masking_format_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_library_masking_format_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_library_masking_format') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_masking_column(masking_column_key, masking_policy_id, update_masking_column_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_masking_column API.
Updates one or more attributes of the specified masking column. Note that updating the maskingFormats attribute replaces the currently assigned masking formats with the specified masking formats.
23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23059 def update_masking_column(masking_column_key, masking_policy_id, update_masking_column_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_masking_column.' if logger raise "Missing the required parameter 'masking_column_key' when calling update_masking_column." if masking_column_key.nil? raise "Missing the required parameter 'masking_policy_id' when calling update_masking_column." if masking_policy_id.nil? raise "Missing the required parameter 'update_masking_column_details' when calling update_masking_column." if update_masking_column_details.nil? raise "Parameter value for 'masking_column_key' must not be blank" if OCI::Internal::Util.blank_string?(masking_column_key) raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/maskingColumns/{maskingColumnKey}'.sub('{maskingColumnKey}', masking_column_key.to_s).sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_masking_column_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_masking_column') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_masking_policy(masking_policy_id, update_masking_policy_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_masking_policy API.
Updates one or more attributes of the specified masking policy.
23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23123 def update_masking_policy(masking_policy_id, update_masking_policy_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_masking_policy.' if logger raise "Missing the required parameter 'masking_policy_id' when calling update_masking_policy." if masking_policy_id.nil? raise "Missing the required parameter 'update_masking_policy_details' when calling update_masking_policy." if update_masking_policy_details.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_masking_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_masking_policy') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_on_prem_connector(on_prem_connector_id, update_on_prem_connector_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_on_prem_connector API.
Updates one or more attributes of the specified on-premises connector.
23185 23186 23187 23188 23189 23190 23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23185 def update_on_prem_connector(on_prem_connector_id, update_on_prem_connector_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_on_prem_connector.' if logger raise "Missing the required parameter 'on_prem_connector_id' when calling update_on_prem_connector." if on_prem_connector_id.nil? raise "Missing the required parameter 'update_on_prem_connector_details' when calling update_on_prem_connector." if update_on_prem_connector_details.nil? raise "Parameter value for 'on_prem_connector_id' must not be blank" if OCI::Internal::Util.blank_string?(on_prem_connector_id) path = '/onPremConnectors/{onPremConnectorId}'.sub('{onPremConnectorId}', on_prem_connector_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_on_prem_connector_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_on_prem_connector') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_on_prem_connector_wallet(update_on_prem_connector_wallet_details, on_prem_connector_id, opts = {}) ⇒ Response
Click here to see an example of how to use update_on_prem_connector_wallet API.
Updates the wallet for the specified on-premises connector to a new version.
23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 23266 23267 23268 23269 23270 23271 23272 23273 23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23253 def update_on_prem_connector_wallet(update_on_prem_connector_wallet_details, on_prem_connector_id, opts = {}) logger.debug 'Calling operation DataSafeClient#update_on_prem_connector_wallet.' if logger raise "Missing the required parameter 'update_on_prem_connector_wallet_details' when calling update_on_prem_connector_wallet." if update_on_prem_connector_wallet_details.nil? raise "Missing the required parameter 'on_prem_connector_id' when calling update_on_prem_connector_wallet." if on_prem_connector_id.nil? raise "Parameter value for 'on_prem_connector_id' must not be blank" if OCI::Internal::Util.blank_string?(on_prem_connector_id) path = '/onPremConnectors/{onPremConnectorId}/wallet'.sub('{onPremConnectorId}', on_prem_connector_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_on_prem_connector_wallet_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_on_prem_connector_wallet') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_peer_target_database(target_database_id, peer_target_database_id, update_peer_target_database_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_peer_target_database API.
Updates one or more attributes of the specified Data Safe peer target database.
23323 23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 23335 23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23323 def update_peer_target_database(target_database_id, peer_target_database_id, update_peer_target_database_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_peer_target_database.' if logger raise "Missing the required parameter 'target_database_id' when calling update_peer_target_database." if target_database_id.nil? raise "Missing the required parameter 'peer_target_database_id' when calling update_peer_target_database." if peer_target_database_id.nil? raise "Missing the required parameter 'update_peer_target_database_details' when calling update_peer_target_database." if update_peer_target_database_details.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) raise "Parameter value for 'peer_target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(peer_target_database_id) path = '/targetDatabases/{targetDatabaseId}/peerTargetDatabases/{peerTargetDatabaseId}'.sub('{targetDatabaseId}', target_database_id.to_s).sub('{peerTargetDatabaseId}', peer_target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_peer_target_database_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_peer_target_database') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_report(report_id, update_report_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_report API.
Updates the specified report. Only tags can be updated.
23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 23416 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23394 def update_report(report_id, update_report_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_report.' if logger raise "Missing the required parameter 'report_id' when calling update_report." if report_id.nil? raise "Missing the required parameter 'update_report_details' when calling update_report." if update_report_details.nil? raise "Parameter value for 'report_id' must not be blank" if OCI::Internal::Util.blank_string?(report_id) path = '/reports/{reportId}'.sub('{reportId}', report_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_report_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_report') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_report_definition(report_definition_id, update_report_definition_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_report_definition API.
Updates the specified report definition. Only user created report definition can be updated. Seeded report definitions need to be saved as new report definition first.
23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 23502 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23463 def update_report_definition(report_definition_id, update_report_definition_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_report_definition.' if logger raise "Missing the required parameter 'report_definition_id' when calling update_report_definition." if report_definition_id.nil? raise "Missing the required parameter 'update_report_definition_details' when calling update_report_definition." if update_report_definition_details.nil? raise "Parameter value for 'report_definition_id' must not be blank" if OCI::Internal::Util.blank_string?(report_definition_id) path = '/reportDefinitions/{reportDefinitionId}'.sub('{reportDefinitionId}', report_definition_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_report_definition_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_report_definition') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_sdm_masking_policy_difference(sdm_masking_policy_difference_id, update_sdm_masking_policy_difference_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_sdm_masking_policy_difference API.
Updates one or more attributes of the specified sdm masking policy difference.
23527 23528 23529 23530 23531 23532 23533 23534 23535 23536 23537 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23527 def update_sdm_masking_policy_difference(sdm_masking_policy_difference_id, update_sdm_masking_policy_difference_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_sdm_masking_policy_difference.' if logger raise "Missing the required parameter 'sdm_masking_policy_difference_id' when calling update_sdm_masking_policy_difference." if sdm_masking_policy_difference_id.nil? raise "Missing the required parameter 'update_sdm_masking_policy_difference_details' when calling update_sdm_masking_policy_difference." if update_sdm_masking_policy_difference_details.nil? raise "Parameter value for 'sdm_masking_policy_difference_id' must not be blank" if OCI::Internal::Util.blank_string?(sdm_masking_policy_difference_id) path = '/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}'.sub('{sdmMaskingPolicyDifferenceId}', sdm_masking_policy_difference_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_sdm_masking_policy_difference_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_sdm_masking_policy_difference') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_security_assessment(security_assessment_id, update_security_assessment_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_security_assessment API.
Updates one or more attributes of the specified security assessment. This operation allows to update the security assessment displayName, description, or schedule.
23590 23591 23592 23593 23594 23595 23596 23597 23598 23599 23600 23601 23602 23603 23604 23605 23606 23607 23608 23609 23610 23611 23612 23613 23614 23615 23616 23617 23618 23619 23620 23621 23622 23623 23624 23625 23626 23627 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23590 def update_security_assessment(security_assessment_id, update_security_assessment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_security_assessment.' if logger raise "Missing the required parameter 'security_assessment_id' when calling update_security_assessment." if security_assessment_id.nil? raise "Missing the required parameter 'update_security_assessment_details' when calling update_security_assessment." if update_security_assessment_details.nil? raise "Parameter value for 'security_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_assessment_id) path = '/securityAssessments/{securityAssessmentId}'.sub('{securityAssessmentId}', security_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_security_assessment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_security_assessment') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_security_policy(security_policy_id, update_security_policy_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_security_policy API.
Updates the security policy.
23652 23653 23654 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 23667 23668 23669 23670 23671 23672 23673 23674 23675 23676 23677 23678 23679 23680 23681 23682 23683 23684 23685 23686 23687 23688 23689 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23652 def update_security_policy(security_policy_id, update_security_policy_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_security_policy.' if logger raise "Missing the required parameter 'security_policy_id' when calling update_security_policy." if security_policy_id.nil? raise "Missing the required parameter 'update_security_policy_details' when calling update_security_policy." if update_security_policy_details.nil? raise "Parameter value for 'security_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_id) path = '/securityPolicies/{securityPolicyId}'.sub('{securityPolicyId}', security_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_security_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_security_policy') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_security_policy_deployment(security_policy_deployment_id, update_security_policy_deployment_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_security_policy_deployment API.
Updates the security policy deployment.
23714 23715 23716 23717 23718 23719 23720 23721 23722 23723 23724 23725 23726 23727 23728 23729 23730 23731 23732 23733 23734 23735 23736 23737 23738 23739 23740 23741 23742 23743 23744 23745 23746 23747 23748 23749 23750 23751 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23714 def update_security_policy_deployment(security_policy_deployment_id, update_security_policy_deployment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_security_policy_deployment.' if logger raise "Missing the required parameter 'security_policy_deployment_id' when calling update_security_policy_deployment." if security_policy_deployment_id.nil? raise "Missing the required parameter 'update_security_policy_deployment_details' when calling update_security_policy_deployment." if update_security_policy_deployment_details.nil? raise "Parameter value for 'security_policy_deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(security_policy_deployment_id) path = '/securityPolicyDeployments/{securityPolicyDeploymentId}'.sub('{securityPolicyDeploymentId}', security_policy_deployment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_security_policy_deployment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_security_policy_deployment') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_sensitive_column(sensitive_data_model_id, sensitive_column_key, update_sensitive_column_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_sensitive_column API.
Updates one or more attributes of the specified sensitive column.
23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23777 def update_sensitive_column(sensitive_data_model_id, sensitive_column_key, update_sensitive_column_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_sensitive_column.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling update_sensitive_column." if sensitive_data_model_id.nil? raise "Missing the required parameter 'sensitive_column_key' when calling update_sensitive_column." if sensitive_column_key.nil? raise "Missing the required parameter 'update_sensitive_column_details' when calling update_sensitive_column." if update_sensitive_column_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) raise "Parameter value for 'sensitive_column_key' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_column_key) path = '/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns/{sensitiveColumnKey}'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s).sub('{sensitiveColumnKey}', sensitive_column_key.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_sensitive_column_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_sensitive_column') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_sensitive_data_model(sensitive_data_model_id, update_sensitive_data_model_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_sensitive_data_model API.
Updates one or more attributes of the specified sensitive data model. Note that updating any attribute of a sensitive data model does not perform data discovery.
23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23843 def update_sensitive_data_model(sensitive_data_model_id, update_sensitive_data_model_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_sensitive_data_model.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling update_sensitive_data_model." if sensitive_data_model_id.nil? raise "Missing the required parameter 'update_sensitive_data_model_details' when calling update_sensitive_data_model." if update_sensitive_data_model_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_sensitive_data_model_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_sensitive_data_model') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_sensitive_type(sensitive_type_id, update_sensitive_type_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_sensitive_type API.
Updates one or more attributes of the specified sensitive type.
23905 23906 23907 23908 23909 23910 23911 23912 23913 23914 23915 23916 23917 23918 23919 23920 23921 23922 23923 23924 23925 23926 23927 23928 23929 23930 23931 23932 23933 23934 23935 23936 23937 23938 23939 23940 23941 23942 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23905 def update_sensitive_type(sensitive_type_id, update_sensitive_type_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_sensitive_type.' if logger raise "Missing the required parameter 'sensitive_type_id' when calling update_sensitive_type." if sensitive_type_id.nil? raise "Missing the required parameter 'update_sensitive_type_details' when calling update_sensitive_type." if update_sensitive_type_details.nil? raise "Parameter value for 'sensitive_type_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_type_id) path = '/sensitiveTypes/{sensitiveTypeId}'.sub('{sensitiveTypeId}', sensitive_type_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_sensitive_type_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_sensitive_type') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_sensitive_type_group(sensitive_type_group_id, update_sensitive_type_group_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_sensitive_type_group API.
Updates one or more attributes of the specified sensitive type group.
23967 23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 23981 23982 23983 23984 23985 23986 23987 23988 23989 23990 23991 23992 23993 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 23967 def update_sensitive_type_group(sensitive_type_group_id, update_sensitive_type_group_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_sensitive_type_group.' if logger raise "Missing the required parameter 'sensitive_type_group_id' when calling update_sensitive_type_group." if sensitive_type_group_id.nil? raise "Missing the required parameter 'update_sensitive_type_group_details' when calling update_sensitive_type_group." if update_sensitive_type_group_details.nil? raise "Parameter value for 'sensitive_type_group_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_type_group_id) path = '/sensitiveTypeGroups/{sensitiveTypeGroupId}'.sub('{sensitiveTypeGroupId}', sensitive_type_group_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_sensitive_type_group_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_sensitive_type_group') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_sensitive_types_export(sensitive_types_export_id, update_sensitive_types_export_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_sensitive_types_export API.
Updates one or more attributes of the specified sensitive types export.
24029 24030 24031 24032 24033 24034 24035 24036 24037 24038 24039 24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 24052 24053 24054 24055 24056 24057 24058 24059 24060 24061 24062 24063 24064 24065 24066 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 24029 def update_sensitive_types_export(sensitive_types_export_id, update_sensitive_types_export_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_sensitive_types_export.' if logger raise "Missing the required parameter 'sensitive_types_export_id' when calling update_sensitive_types_export." if sensitive_types_export_id.nil? raise "Missing the required parameter 'update_sensitive_types_export_details' when calling update_sensitive_types_export." if update_sensitive_types_export_details.nil? raise "Parameter value for 'sensitive_types_export_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_types_export_id) path = '/sensitiveTypesExports/{sensitiveTypesExportId}'.sub('{sensitiveTypesExportId}', sensitive_types_export_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_sensitive_types_export_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_sensitive_types_export') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_sql_collection(sql_collection_id, update_sql_collection_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_sql_collection API.
Updates the SQL collection.
24091 24092 24093 24094 24095 24096 24097 24098 24099 24100 24101 24102 24103 24104 24105 24106 24107 24108 24109 24110 24111 24112 24113 24114 24115 24116 24117 24118 24119 24120 24121 24122 24123 24124 24125 24126 24127 24128 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 24091 def update_sql_collection(sql_collection_id, update_sql_collection_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_sql_collection.' if logger raise "Missing the required parameter 'sql_collection_id' when calling update_sql_collection." if sql_collection_id.nil? raise "Missing the required parameter 'update_sql_collection_details' when calling update_sql_collection." if update_sql_collection_details.nil? raise "Parameter value for 'sql_collection_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_collection_id) path = '/sqlCollections/{sqlCollectionId}'.sub('{sqlCollectionId}', sql_collection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_sql_collection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_sql_collection') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_sql_firewall_policy(sql_firewall_policy_id, update_sql_firewall_policy_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_sql_firewall_policy API.
Updates the SQL Firewall policy.
24153 24154 24155 24156 24157 24158 24159 24160 24161 24162 24163 24164 24165 24166 24167 24168 24169 24170 24171 24172 24173 24174 24175 24176 24177 24178 24179 24180 24181 24182 24183 24184 24185 24186 24187 24188 24189 24190 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 24153 def update_sql_firewall_policy(sql_firewall_policy_id, update_sql_firewall_policy_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_sql_firewall_policy.' if logger raise "Missing the required parameter 'sql_firewall_policy_id' when calling update_sql_firewall_policy." if sql_firewall_policy_id.nil? raise "Missing the required parameter 'update_sql_firewall_policy_details' when calling update_sql_firewall_policy." if update_sql_firewall_policy_details.nil? raise "Parameter value for 'sql_firewall_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(sql_firewall_policy_id) path = '/sqlFirewallPolicies/{sqlFirewallPolicyId}'.sub('{sqlFirewallPolicyId}', sql_firewall_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_sql_firewall_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_sql_firewall_policy') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_target_alert_policy_association(target_alert_policy_association_id, update_target_alert_policy_association_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_target_alert_policy_association API.
Updates the specified target-alert policy association.
24215 24216 24217 24218 24219 24220 24221 24222 24223 24224 24225 24226 24227 24228 24229 24230 24231 24232 24233 24234 24235 24236 24237 24238 24239 24240 24241 24242 24243 24244 24245 24246 24247 24248 24249 24250 24251 24252 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 24215 def update_target_alert_policy_association(target_alert_policy_association_id, update_target_alert_policy_association_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_target_alert_policy_association.' if logger raise "Missing the required parameter 'target_alert_policy_association_id' when calling update_target_alert_policy_association." if target_alert_policy_association_id.nil? raise "Missing the required parameter 'update_target_alert_policy_association_details' when calling update_target_alert_policy_association." if update_target_alert_policy_association_details.nil? raise "Parameter value for 'target_alert_policy_association_id' must not be blank" if OCI::Internal::Util.blank_string?(target_alert_policy_association_id) path = '/targetAlertPolicyAssociations/{targetAlertPolicyAssociationId}'.sub('{targetAlertPolicyAssociationId}', target_alert_policy_association_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_target_alert_policy_association_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_target_alert_policy_association') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_target_database(target_database_id, update_target_database_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_target_database API.
Updates one or more attributes of the specified Data Safe target database.
24282 24283 24284 24285 24286 24287 24288 24289 24290 24291 24292 24293 24294 24295 24296 24297 24298 24299 24300 24301 24302 24303 24304 24305 24306 24307 24308 24309 24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 24282 def update_target_database(target_database_id, update_target_database_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_target_database.' if logger raise "Missing the required parameter 'target_database_id' when calling update_target_database." if target_database_id.nil? raise "Missing the required parameter 'update_target_database_details' when calling update_target_database." if update_target_database_details.nil? raise "Parameter value for 'target_database_id' must not be blank" if OCI::Internal::Util.blank_string?(target_database_id) path = '/targetDatabases/{targetDatabaseId}'.sub('{targetDatabaseId}', target_database_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_target_database_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_target_database') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_user_assessment(user_assessment_id, update_user_assessment_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_user_assessment API.
Updates one or more attributes of the specified user assessment. This operation allows to update the user assessment displayName, description, or schedule.
24347 24348 24349 24350 24351 24352 24353 24354 24355 24356 24357 24358 24359 24360 24361 24362 24363 24364 24365 24366 24367 24368 24369 24370 24371 24372 24373 24374 24375 24376 24377 24378 24379 24380 24381 24382 24383 24384 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 24347 def update_user_assessment(user_assessment_id, update_user_assessment_details, opts = {}) logger.debug 'Calling operation DataSafeClient#update_user_assessment.' if logger raise "Missing the required parameter 'user_assessment_id' when calling update_user_assessment." if user_assessment_id.nil? raise "Missing the required parameter 'update_user_assessment_details' when calling update_user_assessment." if update_user_assessment_details.nil? raise "Parameter value for 'user_assessment_id' must not be blank" if OCI::Internal::Util.blank_string?(user_assessment_id) path = '/userAssessments/{userAssessmentId}'.sub('{userAssessmentId}', user_assessment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_user_assessment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#update_user_assessment') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#upload_masking_policy(upload_masking_policy_details, masking_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use upload_masking_policy API.
Uploads a masking policy file (also called template) to update the specified masking policy. To create a new masking policy using a file, first use the CreateMaskingPolicy operation to create an empty masking policy and then use this endpoint to upload the masking policy file. Note that the upload operation replaces the content of the specified masking policy, including all the existing columns and masking formats, with the content of the file.
24414 24415 24416 24417 24418 24419 24420 24421 24422 24423 24424 24425 24426 24427 24428 24429 24430 24431 24432 24433 24434 24435 24436 24437 24438 24439 24440 24441 24442 24443 24444 24445 24446 24447 24448 24449 24450 24451 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 24414 def upload_masking_policy(upload_masking_policy_details, masking_policy_id, opts = {}) logger.debug 'Calling operation DataSafeClient#upload_masking_policy.' if logger raise "Missing the required parameter 'upload_masking_policy_details' when calling upload_masking_policy." if upload_masking_policy_details.nil? raise "Missing the required parameter 'masking_policy_id' when calling upload_masking_policy." if masking_policy_id.nil? raise "Parameter value for 'masking_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(masking_policy_id) path = '/maskingPolicies/{maskingPolicyId}/actions/upload'.sub('{maskingPolicyId}', masking_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'content-type'] ||= 'application/octet-stream' post_body = @api_client.object_to_http_body(upload_masking_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#upload_masking_policy') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#upload_sensitive_data_model(sensitive_data_model_id, upload_sensitive_data_model_details, opts = {}) ⇒ Response
Click here to see an example of how to use upload_sensitive_data_model API.
Uploads a sensitive data model file (also called template) to update the specified sensitive data model. To create a new sensitive data model using a file, first use the CreateSensitiveDataModel operation to create an empty data model and then use this endpoint to upload the data model file. Note that the upload operation replaces the content of the specified sensitive data model, including all the existing columns and their relationships, with the content of the file.
24480 24481 24482 24483 24484 24485 24486 24487 24488 24489 24490 24491 24492 24493 24494 24495 24496 24497 24498 24499 24500 24501 24502 24503 24504 24505 24506 24507 24508 24509 24510 24511 24512 24513 24514 24515 24516 24517 |
# File 'lib/oci/data_safe/data_safe_client.rb', line 24480 def upload_sensitive_data_model(sensitive_data_model_id, upload_sensitive_data_model_details, opts = {}) logger.debug 'Calling operation DataSafeClient#upload_sensitive_data_model.' if logger raise "Missing the required parameter 'sensitive_data_model_id' when calling upload_sensitive_data_model." if sensitive_data_model_id.nil? raise "Missing the required parameter 'upload_sensitive_data_model_details' when calling upload_sensitive_data_model." if upload_sensitive_data_model_details.nil? raise "Parameter value for 'sensitive_data_model_id' must not be blank" if OCI::Internal::Util.blank_string?(sensitive_data_model_id) path = '/sensitiveDataModels/{sensitiveDataModelId}/actions/upload'.sub('{sensitiveDataModelId}', sensitive_data_model_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'content-type'] ||= 'application/octet-stream' post_body = @api_client.object_to_http_body(upload_sensitive_data_model_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DataSafeClient#upload_sensitive_data_model') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |