oci 2.16.0 → 2.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -2
- data/lib/oci/ai_vision/ai_service_vision_client.rb +1677 -0
- data/lib/oci/ai_vision/ai_service_vision_client_composite_operations.rb +399 -0
- data/lib/oci/ai_vision/ai_vision.rb +105 -0
- data/lib/oci/ai_vision/models/action_type.rb +15 -0
- data/lib/oci/ai_vision/models/analyze_document_details.rb +268 -0
- data/lib/oci/ai_vision/models/analyze_document_result.rb +286 -0
- data/lib/oci/ai_vision/models/analyze_image_details.rb +174 -0
- data/lib/oci/ai_vision/models/analyze_image_result.rb +243 -0
- data/lib/oci/ai_vision/models/bounding_polygon.rb +156 -0
- data/lib/oci/ai_vision/models/cell.rb +216 -0
- data/lib/oci/ai_vision/models/change_model_compartment_details.rb +156 -0
- data/lib/oci/ai_vision/models/change_project_compartment_details.rb +156 -0
- data/lib/oci/ai_vision/models/create_document_job_details.rb +304 -0
- data/lib/oci/ai_vision/models/create_image_job_details.rb +222 -0
- data/lib/oci/ai_vision/models/create_model_details.rb +325 -0
- data/lib/oci/ai_vision/models/create_project_details.rb +213 -0
- data/lib/oci/ai_vision/models/data_science_labeling_dataset.rb +162 -0
- data/lib/oci/ai_vision/models/dataset.rb +191 -0
- data/lib/oci/ai_vision/models/detected_document_type.rb +164 -0
- data/lib/oci/ai_vision/models/detected_language.rb +207 -0
- data/lib/oci/ai_vision/models/dimensions.rb +190 -0
- data/lib/oci/ai_vision/models/document_classification_feature.rb +176 -0
- data/lib/oci/ai_vision/models/document_details.rb +184 -0
- data/lib/oci/ai_vision/models/document_feature.rb +204 -0
- data/lib/oci/ai_vision/models/document_field.rb +216 -0
- data/lib/oci/ai_vision/models/document_job.rb +451 -0
- data/lib/oci/ai_vision/models/document_key_value_detection_feature.rb +145 -0
- data/lib/oci/ai_vision/models/document_language.rb +34 -0
- data/lib/oci/ai_vision/models/document_language_classification_feature.rb +162 -0
- data/lib/oci/ai_vision/models/document_metadata.rb +168 -0
- data/lib/oci/ai_vision/models/document_table_detection_feature.rb +145 -0
- data/lib/oci/ai_vision/models/document_text_detection_feature.rb +164 -0
- data/lib/oci/ai_vision/models/document_type.rb +19 -0
- data/lib/oci/ai_vision/models/field_label.rb +160 -0
- data/lib/oci/ai_vision/models/field_name.rb +187 -0
- data/lib/oci/ai_vision/models/field_value.rb +250 -0
- data/lib/oci/ai_vision/models/image_classification_feature.rb +176 -0
- data/lib/oci/ai_vision/models/image_details.rb +184 -0
- data/lib/oci/ai_vision/models/image_feature.rb +198 -0
- data/lib/oci/ai_vision/models/image_job.rb +358 -0
- data/lib/oci/ai_vision/models/image_object.rb +174 -0
- data/lib/oci/ai_vision/models/image_object_detection_feature.rb +176 -0
- data/lib/oci/ai_vision/models/image_text.rb +160 -0
- data/lib/oci/ai_vision/models/image_text_detection_feature.rb +201 -0
- data/lib/oci/ai_vision/models/inline_document_details.rb +158 -0
- data/lib/oci/ai_vision/models/inline_image_details.rb +158 -0
- data/lib/oci/ai_vision/models/input_location.rb +192 -0
- data/lib/oci/ai_vision/models/label.rb +160 -0
- data/lib/oci/ai_vision/models/line.rb +188 -0
- data/lib/oci/ai_vision/models/model.rb +547 -0
- data/lib/oci/ai_vision/models/model_collection.rb +150 -0
- data/lib/oci/ai_vision/models/model_summary.rb +384 -0
- data/lib/oci/ai_vision/models/normalized_vertex.rb +163 -0
- data/lib/oci/ai_vision/models/object_list_inline_input_location.rb +162 -0
- data/lib/oci/ai_vision/models/object_location.rb +182 -0
- data/lib/oci/ai_vision/models/object_storage_dataset.rb +190 -0
- data/lib/oci/ai_vision/models/object_storage_document_details.rb +190 -0
- data/lib/oci/ai_vision/models/object_storage_image_details.rb +190 -0
- data/lib/oci/ai_vision/models/ontology_class.rb +178 -0
- data/lib/oci/ai_vision/models/operation_status.rb +16 -0
- data/lib/oci/ai_vision/models/operation_type.rb +17 -0
- data/lib/oci/ai_vision/models/output_location.rb +178 -0
- data/lib/oci/ai_vision/models/page.rb +235 -0
- data/lib/oci/ai_vision/models/processing_error.rb +160 -0
- data/lib/oci/ai_vision/models/project.rb +316 -0
- data/lib/oci/ai_vision/models/project_collection.rb +150 -0
- data/lib/oci/ai_vision/models/project_summary.rb +283 -0
- data/lib/oci/ai_vision/models/sort_order.rb +11 -0
- data/lib/oci/ai_vision/models/table.rb +235 -0
- data/lib/oci/ai_vision/models/table_row.rb +150 -0
- data/lib/oci/ai_vision/models/update_model_details.rb +196 -0
- data/lib/oci/ai_vision/models/update_project_details.rb +196 -0
- data/lib/oci/ai_vision/models/value_array.rb +174 -0
- data/lib/oci/ai_vision/models/value_date.rb +174 -0
- data/lib/oci/ai_vision/models/value_integer.rb +174 -0
- data/lib/oci/ai_vision/models/value_number.rb +174 -0
- data/lib/oci/ai_vision/models/value_phone_number.rb +174 -0
- data/lib/oci/ai_vision/models/value_string.rb +174 -0
- data/lib/oci/ai_vision/models/value_time.rb +174 -0
- data/lib/oci/ai_vision/models/word.rb +174 -0
- data/lib/oci/ai_vision/models/work_request.rb +311 -0
- data/lib/oci/ai_vision/models/work_request_error.rb +173 -0
- data/lib/oci/ai_vision/models/work_request_error_collection.rb +150 -0
- data/lib/oci/ai_vision/models/work_request_log_entry.rb +160 -0
- data/lib/oci/ai_vision/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/ai_vision/models/work_request_resource.rb +220 -0
- data/lib/oci/ai_vision/models/work_request_summary.rb +313 -0
- data/lib/oci/ai_vision/models/work_request_summary_collection.rb +150 -0
- data/lib/oci/ai_vision/util.rb +3 -0
- data/lib/oci/announcements_service/announcement_client.rb +26 -5
- data/lib/oci/announcements_service/announcement_subscription_client.rb +703 -0
- data/lib/oci/announcements_service/announcement_subscription_client_composite_operations.rb +144 -0
- data/lib/oci/announcements_service/announcements_preferences_client.rb +10 -3
- data/lib/oci/announcements_service/announcements_service.rb +14 -0
- data/lib/oci/announcements_service/models/announcement.rb +9 -1
- data/lib/oci/announcements_service/models/announcement_subscription.rb +348 -0
- data/lib/oci/announcements_service/models/announcement_subscription_collection.rb +150 -0
- data/lib/oci/announcements_service/models/announcement_subscription_summary.rb +299 -0
- data/lib/oci/announcements_service/models/announcement_summary.rb +12 -4
- data/lib/oci/announcements_service/models/base_announcement.rb +47 -4
- data/lib/oci/announcements_service/models/change_announcement_subscription_compartment_details.rb +156 -0
- data/lib/oci/announcements_service/models/create_announcement_subscription_details.rb +241 -0
- data/lib/oci/announcements_service/models/create_filter_group_details.rb +160 -0
- data/lib/oci/announcements_service/models/filter.rb +184 -0
- data/lib/oci/announcements_service/models/filter_group.rb +160 -0
- data/lib/oci/announcements_service/models/filter_group_details.rb +150 -0
- data/lib/oci/announcements_service/models/sort_order.rb +11 -0
- data/lib/oci/announcements_service/models/update_announcement_subscription_details.rb +211 -0
- data/lib/oci/announcements_service/models/update_filter_group_details.rb +150 -0
- data/lib/oci/apm_config/config_client.rb +31 -29
- data/lib/oci/apm_config/models/apdex.rb +20 -20
- data/lib/oci/apm_config/models/apdex_rules.rb +2 -2
- data/lib/oci/apm_config/models/apdex_rules_summary.rb +2 -2
- data/lib/oci/apm_config/models/config.rb +3 -3
- data/lib/oci/apm_config/models/config_collection.rb +1 -1
- data/lib/oci/apm_config/models/config_summary.rb +3 -3
- data/lib/oci/apm_config/models/create_apdex_rules_details.rb +2 -3
- data/lib/oci/apm_config/models/create_config_details.rb +3 -3
- data/lib/oci/apm_config/models/create_metric_group_details.rb +9 -6
- data/lib/oci/apm_config/models/create_span_filter_details.rb +2 -2
- data/lib/oci/apm_config/models/dimension.rb +3 -3
- data/lib/oci/apm_config/models/metric.rb +5 -5
- data/lib/oci/apm_config/models/metric_group.rb +9 -5
- data/lib/oci/apm_config/models/metric_group_summary.rb +9 -5
- data/lib/oci/apm_config/models/span_filter.rb +3 -3
- data/lib/oci/apm_config/models/span_filter_summary.rb +2 -2
- data/lib/oci/apm_config/models/update_apdex_rules_details.rb +1 -1
- data/lib/oci/apm_config/models/update_config_details.rb +2 -2
- data/lib/oci/apm_config/models/update_metric_group_details.rb +9 -5
- data/lib/oci/apm_config/models/update_span_filter_details.rb +2 -2
- data/lib/oci/apm_traces/apm_traces.rb +7 -0
- data/lib/oci/apm_traces/models/aggregated_snapshot.rb +167 -0
- data/lib/oci/apm_traces/models/aggregated_stack_trace.rb +165 -0
- data/lib/oci/apm_traces/models/query_details.rb +2 -2
- data/lib/oci/apm_traces/models/query_result_metadata_summary.rb +2 -2
- data/lib/oci/apm_traces/models/query_result_row.rb +6 -7
- data/lib/oci/apm_traces/models/query_result_row_type_summary.rb +1 -1
- data/lib/oci/apm_traces/models/query_results_grouped_by_summary.rb +2 -2
- data/lib/oci/apm_traces/models/query_results_ordered_by_summary.rb +2 -2
- data/lib/oci/apm_traces/models/quick_pick_summary.rb +3 -3
- data/lib/oci/apm_traces/models/snapshot_detail.rb +163 -0
- data/lib/oci/apm_traces/models/span.rb +4 -4
- data/lib/oci/apm_traces/models/span_log.rb +1 -1
- data/lib/oci/apm_traces/models/span_snapshot.rb +238 -0
- data/lib/oci/apm_traces/models/stack_trace_element.rb +212 -0
- data/lib/oci/apm_traces/models/tag.rb +1 -1
- data/lib/oci/apm_traces/models/thread_snapshot.rb +186 -0
- data/lib/oci/apm_traces/models/trace.rb +15 -16
- data/lib/oci/apm_traces/models/trace_service_summary.rb +3 -3
- data/lib/oci/apm_traces/models/trace_snapshot.rb +214 -0
- data/lib/oci/apm_traces/models/trace_span_summary.rb +16 -18
- data/lib/oci/apm_traces/query_client.rb +9 -89
- data/lib/oci/apm_traces/trace_client.rb +141 -8
- data/lib/oci/common.rb +33 -0
- data/lib/oci/container_engine/container_engine.rb +2 -0
- data/lib/oci/container_engine/models/cluster.rb +51 -1
- data/lib/oci/container_engine/models/cluster_create_options.rb +30 -4
- data/lib/oci/container_engine/models/cluster_summary.rb +51 -1
- data/lib/oci/container_engine/models/create_cluster_details.rb +35 -1
- data/lib/oci/container_engine/models/create_node_pool_details.rb +38 -4
- data/lib/oci/container_engine/models/create_node_pool_node_config_details.rb +35 -1
- data/lib/oci/container_engine/models/node.rb +51 -1
- data/lib/oci/container_engine/models/node_pool.rb +54 -4
- data/lib/oci/container_engine/models/node_pool_node_config_details.rb +35 -1
- data/lib/oci/container_engine/models/node_pool_placement_config_details.rb +18 -4
- data/lib/oci/container_engine/models/node_pool_summary.rb +54 -4
- data/lib/oci/container_engine/models/persistent_volume_config_details.rb +174 -0
- data/lib/oci/container_engine/models/service_lb_config_details.rb +174 -0
- data/lib/oci/container_engine/models/update_cluster_details.rb +35 -1
- data/lib/oci/container_engine/models/update_cluster_options_details.rb +30 -4
- data/lib/oci/container_engine/models/update_node_pool_details.rb +38 -4
- data/lib/oci/container_engine/models/update_node_pool_node_config_details.rb +35 -1
- data/lib/oci/dashboard_service/dashboard_client.rb +477 -0
- data/lib/oci/dashboard_service/dashboard_client_composite_operations.rb +144 -0
- data/lib/oci/dashboard_service/dashboard_group_client.rb +477 -0
- data/lib/oci/dashboard_service/dashboard_group_client_composite_operations.rb +144 -0
- data/lib/oci/dashboard_service/dashboard_service.rb +36 -0
- data/lib/oci/dashboard_service/models/create_dashboard_details.rb +247 -0
- data/lib/oci/dashboard_service/models/create_dashboard_group_details.rb +214 -0
- data/lib/oci/dashboard_service/models/create_v1_dashboard_details.rb +191 -0
- data/lib/oci/dashboard_service/models/dashboard.rb +377 -0
- data/lib/oci/dashboard_service/models/dashboard_collection.rb +150 -0
- data/lib/oci/dashboard_service/models/dashboard_group.rb +312 -0
- data/lib/oci/dashboard_service/models/dashboard_group_collection.rb +150 -0
- data/lib/oci/dashboard_service/models/dashboard_group_summary.rb +288 -0
- data/lib/oci/dashboard_service/models/dashboard_summary.rb +302 -0
- data/lib/oci/dashboard_service/models/sort_order.rb +11 -0
- data/lib/oci/dashboard_service/models/update_dashboard_details.rb +233 -0
- data/lib/oci/dashboard_service/models/update_dashboard_group_details.rb +200 -0
- data/lib/oci/dashboard_service/models/update_v1_dashboard_details.rb +187 -0
- data/lib/oci/dashboard_service/models/v1_dashboard.rb +215 -0
- data/lib/oci/dashboard_service/util.rb +3 -0
- data/lib/oci/data_integration/models/filter.rb +1 -0
- data/lib/oci/data_safe/data_safe.rb +239 -0
- data/lib/oci/data_safe/data_safe_client.rb +11900 -1705
- data/lib/oci/data_safe/data_safe_client_composite_operations.rb +3157 -156
- data/lib/oci/data_safe/models/alert.rb +535 -0
- data/lib/oci/data_safe/models/alert_aggregation_items.rb +201 -0
- data/lib/oci/data_safe/models/alert_analytics_collection.rb +150 -0
- data/lib/oci/data_safe/models/alert_collection.rb +150 -0
- data/lib/oci/data_safe/models/alert_lifecycle_state.rb +12 -0
- data/lib/oci/data_safe/models/alert_policy.rb +387 -0
- data/lib/oci/data_safe/models/alert_policy_collection.rb +150 -0
- data/lib/oci/data_safe/models/alert_policy_lifecycle_state.rb +15 -0
- data/lib/oci/data_safe/models/alert_policy_rule.rb +170 -0
- data/lib/oci/data_safe/models/alert_policy_rule_collection.rb +150 -0
- data/lib/oci/data_safe/models/alert_policy_rule_summary.rb +170 -0
- data/lib/oci/data_safe/models/alert_policy_summary.rb +368 -0
- data/lib/oci/data_safe/models/alert_policy_type.rb +12 -0
- data/lib/oci/data_safe/models/alert_severity.rb +14 -0
- data/lib/oci/data_safe/models/alert_status.rb +11 -0
- data/lib/oci/data_safe/models/alert_summary.rb +495 -0
- data/lib/oci/data_safe/models/alert_type.rb +12 -0
- data/lib/oci/data_safe/models/alerts_aggregation_dimension.rb +154 -0
- data/lib/oci/data_safe/models/apply_discovery_job_results_details.rb +154 -0
- data/lib/oci/data_safe/models/audit_archive_retrieval.rb +404 -0
- data/lib/oci/data_safe/models/audit_archive_retrieval_collection.rb +150 -0
- data/lib/oci/data_safe/models/audit_archive_retrieval_lifecycle_state.rb +15 -0
- data/lib/oci/data_safe/models/audit_archive_retrieval_summary.rb +386 -0
- data/lib/oci/data_safe/models/audit_conditions.rb +197 -0
- data/lib/oci/data_safe/models/audit_event_aggregation_dimensions.rb +352 -0
- data/lib/oci/data_safe/models/audit_event_aggregation_items.rb +215 -0
- data/lib/oci/data_safe/models/audit_event_analytics_collection.rb +150 -0
- data/lib/oci/data_safe/models/audit_event_collection.rb +150 -0
- data/lib/oci/data_safe/models/audit_event_summary.rb +719 -0
- data/lib/oci/data_safe/models/audit_policy.rb +410 -0
- data/lib/oci/data_safe/models/audit_policy_aggregation_items.rb +159 -0
- data/lib/oci/data_safe/models/audit_policy_analytic_collection.rb +150 -0
- data/lib/oci/data_safe/models/audit_policy_category.rb +15 -0
- data/lib/oci/data_safe/models/audit_policy_collection.rb +150 -0
- data/lib/oci/data_safe/models/audit_policy_dimensions.rb +186 -0
- data/lib/oci/data_safe/models/audit_policy_lifecycle_state.rb +16 -0
- data/lib/oci/data_safe/models/audit_policy_summary.rb +380 -0
- data/lib/oci/data_safe/models/audit_profile.rb +429 -0
- data/lib/oci/data_safe/models/audit_profile_aggregation_items.rb +159 -0
- data/lib/oci/data_safe/models/audit_profile_analytic_collection.rb +151 -0
- data/lib/oci/data_safe/models/audit_profile_collection.rb +150 -0
- data/lib/oci/data_safe/models/audit_profile_dimensions.rb +157 -0
- data/lib/oci/data_safe/models/audit_profile_lifecycle_state.rb +16 -0
- data/lib/oci/data_safe/models/audit_profile_summary.rb +400 -0
- data/lib/oci/data_safe/models/audit_specification.rb +367 -0
- data/lib/oci/data_safe/models/audit_trail.rb +447 -0
- data/lib/oci/data_safe/models/audit_trail_aggregation_items.rb +159 -0
- data/lib/oci/data_safe/models/audit_trail_analytic_collection.rb +151 -0
- data/lib/oci/data_safe/models/audit_trail_collection.rb +150 -0
- data/lib/oci/data_safe/models/audit_trail_dimensions.rb +212 -0
- data/lib/oci/data_safe/models/audit_trail_lifecycle_state.rb +15 -0
- data/lib/oci/data_safe/models/audit_trail_status.rb +17 -0
- data/lib/oci/data_safe/models/audit_trail_summary.rb +411 -0
- data/lib/oci/data_safe/models/available_audit_volume_collection.rb +150 -0
- data/lib/oci/data_safe/models/available_audit_volume_summary.rb +197 -0
- data/lib/oci/data_safe/models/calculate_audit_volume_available_details.rb +168 -0
- data/lib/oci/data_safe/models/calculate_audit_volume_collected_details.rb +168 -0
- data/lib/oci/data_safe/models/change_alert_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/change_alert_policy_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/change_audit_archive_retrieval_compartment_details.rb +156 -0
- data/lib/oci/data_safe/models/change_audit_policy_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/change_audit_profile_compartment_details.rb +155 -0
- data/lib/oci/data_safe/models/change_discovery_job_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/change_library_masking_format_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/change_masking_policy_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/change_report_compartment_details.rb +156 -0
- data/lib/oci/data_safe/models/change_report_definition_compartment_details.rb +156 -0
- data/lib/oci/data_safe/models/change_retention_details.rb +189 -0
- data/lib/oci/data_safe/models/change_sensitive_data_model_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/change_sensitive_type_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/change_target_alert_policy_association_compartment_details.rb +154 -0
- data/lib/oci/data_safe/models/collected_audit_volume_collection.rb +150 -0
- data/lib/oci/data_safe/models/collected_audit_volume_summary.rb +199 -0
- data/lib/oci/data_safe/models/column.rb +212 -0
- data/lib/oci/data_safe/models/column_filter.rb +234 -0
- data/lib/oci/data_safe/models/column_sorting.rb +182 -0
- data/lib/oci/data_safe/models/column_source_details.rb +191 -0
- data/lib/oci/data_safe/models/column_source_from_sdm_details.rb +162 -0
- data/lib/oci/data_safe/models/column_source_from_target_details.rb +162 -0
- data/lib/oci/data_safe/models/column_summary.rb +240 -0
- data/lib/oci/data_safe/models/compatible_formats_for_data_types.rb +161 -0
- data/lib/oci/data_safe/models/compatible_formats_for_sensitive_types.rb +154 -0
- data/lib/oci/data_safe/models/create_alert_policy_details.rb +267 -0
- data/lib/oci/data_safe/models/create_alert_policy_rule_details.rb +161 -0
- data/lib/oci/data_safe/models/create_audit_archive_retrieval_details.rb +254 -0
- data/lib/oci/data_safe/models/create_audit_policy_details.rb +226 -0
- data/lib/oci/data_safe/models/create_audit_profile_details.rb +243 -0
- data/lib/oci/data_safe/models/create_column_source_details.rb +184 -0
- data/lib/oci/data_safe/models/create_column_source_from_sdm_details.rb +162 -0
- data/lib/oci/data_safe/models/create_column_source_from_target_details.rb +162 -0
- data/lib/oci/data_safe/models/create_discovery_job_details.rb +350 -0
- data/lib/oci/data_safe/models/create_library_masking_format_details.rb +247 -0
- data/lib/oci/data_safe/models/create_masking_column_details.rb +312 -0
- data/lib/oci/data_safe/models/create_masking_policy_details.rb +371 -0
- data/lib/oci/data_safe/models/create_report_definition_details.rb +278 -0
- data/lib/oci/data_safe/models/create_sensitive_category_details.rb +173 -0
- data/lib/oci/data_safe/models/create_sensitive_column_details.rb +371 -0
- data/lib/oci/data_safe/models/create_sensitive_data_model_details.rb +359 -0
- data/lib/oci/data_safe/models/create_sensitive_type_details.rb +286 -0
- data/lib/oci/data_safe/models/create_sensitive_type_pattern_details.rb +250 -0
- data/lib/oci/data_safe/models/create_target_alert_policy_association_details.rb +257 -0
- data/lib/oci/data_safe/models/data_model_format.rb +10 -0
- data/lib/oci/data_safe/models/data_safe_configuration.rb +29 -1
- data/lib/oci/data_safe/models/delete_rows_format_entry.rb +157 -0
- data/lib/oci/data_safe/models/deterministic_encryption_date_format_entry.rb +201 -0
- data/lib/oci/data_safe/models/deterministic_encryption_format_entry.rb +193 -0
- data/lib/oci/data_safe/models/deterministic_substitution_format_entry.rb +205 -0
- data/lib/oci/data_safe/models/dimensions.rb +168 -0
- data/lib/oci/data_safe/models/discovery_analytics_collection.rb +150 -0
- data/lib/oci/data_safe/models/discovery_analytics_summary.rb +197 -0
- data/lib/oci/data_safe/models/discovery_job.rb +544 -0
- data/lib/oci/data_safe/models/discovery_job_collection.rb +150 -0
- data/lib/oci/data_safe/models/discovery_job_result.rb +506 -0
- data/lib/oci/data_safe/models/discovery_job_result_collection.rb +150 -0
- data/lib/oci/data_safe/models/discovery_job_result_summary.rb +406 -0
- data/lib/oci/data_safe/models/discovery_job_summary.rb +320 -0
- data/lib/oci/data_safe/models/discovery_lifecycle_state.rb +15 -0
- data/lib/oci/data_safe/models/download_discovery_report_details.rb +183 -0
- data/lib/oci/data_safe/models/download_masking_log_details.rb +154 -0
- data/lib/oci/data_safe/models/download_masking_policy_details.rb +168 -0
- data/lib/oci/data_safe/models/download_masking_report_details.rb +183 -0
- data/lib/oci/data_safe/models/download_security_assessment_report_details.rb +1 -0
- data/lib/oci/data_safe/models/download_sensitive_data_model_details.rb +168 -0
- data/lib/oci/data_safe/models/download_user_assessment_report_details.rb +1 -0
- data/lib/oci/data_safe/models/enable_conditions.rb +256 -0
- data/lib/oci/data_safe/models/fixed_number_format_entry.rb +168 -0
- data/lib/oci/data_safe/models/fixed_string_format_entry.rb +168 -0
- data/lib/oci/data_safe/models/format_entry.rb +243 -0
- data/lib/oci/data_safe/models/format_entry_type.rb +32 -0
- data/lib/oci/data_safe/models/format_summary.rb +170 -0
- data/lib/oci/data_safe/models/formats_for_data_type.rb +174 -0
- data/lib/oci/data_safe/models/formats_for_sensitive_type.rb +168 -0
- data/lib/oci/data_safe/models/generate_discovery_report_for_download_details.rb +183 -0
- data/lib/oci/data_safe/models/generate_masking_policy_for_download_details.rb +168 -0
- data/lib/oci/data_safe/models/generate_masking_report_for_download_details.rb +183 -0
- data/lib/oci/data_safe/models/generate_report_details.rb +263 -0
- data/lib/oci/data_safe/models/generate_security_assessment_report_details.rb +1 -0
- data/lib/oci/data_safe/models/generate_sensitive_data_model_for_download_details.rb +168 -0
- data/lib/oci/data_safe/models/generate_user_assessment_report_details.rb +1 -0
- data/lib/oci/data_safe/models/global_settings.rb +185 -0
- data/lib/oci/data_safe/models/library_masking_format.rb +354 -0
- data/lib/oci/data_safe/models/library_masking_format_collection.rb +150 -0
- data/lib/oci/data_safe/models/library_masking_format_entry.rb +171 -0
- data/lib/oci/data_safe/models/library_masking_format_source.rb +11 -0
- data/lib/oci/data_safe/models/library_masking_format_summary.rb +332 -0
- data/lib/oci/data_safe/models/mask_data_details.rb +274 -0
- data/lib/oci/data_safe/models/masked_column_collection.rb +150 -0
- data/lib/oci/data_safe/models/masked_column_summary.rb +296 -0
- data/lib/oci/data_safe/models/masking_analytics_collection.rb +150 -0
- data/lib/oci/data_safe/models/masking_analytics_dimensions.rb +168 -0
- data/lib/oci/data_safe/models/masking_analytics_summary.rb +199 -0
- data/lib/oci/data_safe/models/masking_column.rb +414 -0
- data/lib/oci/data_safe/models/masking_column_collection.rb +150 -0
- data/lib/oci/data_safe/models/masking_column_lifecycle_state.rb +15 -0
- data/lib/oci/data_safe/models/masking_column_summary.rb +410 -0
- data/lib/oci/data_safe/models/masking_format.rb +190 -0
- data/lib/oci/data_safe/models/masking_lifecycle_state.rb +16 -0
- data/lib/oci/data_safe/models/masking_policy.rb +448 -0
- data/lib/oci/data_safe/models/masking_policy_collection.rb +150 -0
- data/lib/oci/data_safe/models/masking_policy_summary.rb +304 -0
- data/lib/oci/data_safe/models/masking_report.rb +306 -0
- data/lib/oci/data_safe/models/masking_report_collection.rb +150 -0
- data/lib/oci/data_safe/models/masking_report_summary.rb +304 -0
- data/lib/oci/data_safe/models/modified_attributes.rb +170 -0
- data/lib/oci/data_safe/models/modify_global_settings_details.rb +184 -0
- data/lib/oci/data_safe/models/null_value_format_entry.rb +152 -0
- data/lib/oci/data_safe/models/object_type.rb +11 -0
- data/lib/oci/data_safe/models/patch_alert_policy_rule_details.rb +150 -0
- data/lib/oci/data_safe/models/patch_alerts_details.rb +150 -0
- data/lib/oci/data_safe/models/patch_discovery_job_result_details.rb +150 -0
- data/lib/oci/data_safe/models/patch_insert_instruction.rb +162 -0
- data/lib/oci/data_safe/models/patch_instruction.rb +192 -0
- data/lib/oci/data_safe/models/patch_masking_columns_details.rb +150 -0
- data/lib/oci/data_safe/models/patch_merge_instruction.rb +162 -0
- data/lib/oci/data_safe/models/patch_remove_instruction.rb +149 -0
- data/lib/oci/data_safe/models/patch_sensitive_column_details.rb +150 -0
- data/lib/oci/data_safe/models/policy_format.rb +10 -0
- data/lib/oci/data_safe/models/ppf_format_entry.rb +179 -0
- data/lib/oci/data_safe/models/preserve_original_data_format_entry.rb +153 -0
- data/lib/oci/data_safe/models/provision_audit_conditions.rb +199 -0
- data/lib/oci/data_safe/models/provision_audit_policy_details.rb +170 -0
- data/lib/oci/data_safe/models/random_date_format_entry.rb +189 -0
- data/lib/oci/data_safe/models/random_decimal_number_format_entry.rb +190 -0
- data/lib/oci/data_safe/models/random_digits_format_entry.rb +193 -0
- data/lib/oci/data_safe/models/random_list_format_entry.rb +173 -0
- data/lib/oci/data_safe/models/random_number_format_entry.rb +192 -0
- data/lib/oci/data_safe/models/random_string_format_entry.rb +192 -0
- data/lib/oci/data_safe/models/random_substitution_format_entry.rb +204 -0
- data/lib/oci/data_safe/models/regular_expression_format_entry.rb +189 -0
- data/lib/oci/data_safe/models/report.rb +333 -0
- data/lib/oci/data_safe/models/report_collection.rb +150 -0
- data/lib/oci/data_safe/models/report_definition.rb +474 -0
- data/lib/oci/data_safe/models/report_definition_collection.rb +150 -0
- data/lib/oci/data_safe/models/report_definition_data_source.rb +11 -0
- data/lib/oci/data_safe/models/report_definition_lifecycle_state.rb +14 -0
- data/lib/oci/data_safe/models/report_definition_summary.rb +378 -0
- data/lib/oci/data_safe/models/report_lifecycle_state.rb +11 -0
- data/lib/oci/data_safe/models/report_summary.rb +317 -0
- data/lib/oci/data_safe/models/role_summary.rb +238 -0
- data/lib/oci/data_safe/models/schema_summary.rb +168 -0
- data/lib/oci/data_safe/models/sensitive_category.rb +197 -0
- data/lib/oci/data_safe/models/sensitive_column.rb +559 -0
- data/lib/oci/data_safe/models/sensitive_column_collection.rb +150 -0
- data/lib/oci/data_safe/models/sensitive_column_lifecycle_state.rb +14 -0
- data/lib/oci/data_safe/models/sensitive_column_summary.rb +512 -0
- data/lib/oci/data_safe/models/sensitive_data_model.rb +438 -0
- data/lib/oci/data_safe/models/sensitive_data_model_collection.rb +150 -0
- data/lib/oci/data_safe/models/sensitive_data_model_summary.rb +320 -0
- data/lib/oci/data_safe/models/sensitive_type.rb +416 -0
- data/lib/oci/data_safe/models/sensitive_type_collection.rb +150 -0
- data/lib/oci/data_safe/models/sensitive_type_entity.rb +11 -0
- data/lib/oci/data_safe/models/sensitive_type_pattern.rb +292 -0
- data/lib/oci/data_safe/models/sensitive_type_source.rb +11 -0
- data/lib/oci/data_safe/models/sensitive_type_summary.rb +394 -0
- data/lib/oci/data_safe/models/service_list.rb +1 -0
- data/lib/oci/data_safe/models/shuffle_format_entry.rb +177 -0
- data/lib/oci/data_safe/models/sql_expression_format_entry.rb +176 -0
- data/lib/oci/data_safe/models/start_audit_trail_details.rb +172 -0
- data/lib/oci/data_safe/models/substring_format_entry.rb +187 -0
- data/lib/oci/data_safe/models/summary.rb +222 -0
- data/lib/oci/data_safe/models/table_summary.rb +168 -0
- data/lib/oci/data_safe/models/target_alert_policy_association.rb +348 -0
- data/lib/oci/data_safe/models/target_alert_policy_association_collection.rb +150 -0
- data/lib/oci/data_safe/models/target_alert_policy_association_summary.rb +332 -0
- data/lib/oci/data_safe/models/target_database.rb +15 -1
- data/lib/oci/data_safe/models/target_database_summary.rb +15 -1
- data/lib/oci/data_safe/models/truncate_table_format_entry.rb +154 -0
- data/lib/oci/data_safe/models/udf_format_entry.rb +173 -0
- data/lib/oci/data_safe/models/update_alert_details.rb +207 -0
- data/lib/oci/data_safe/models/update_alert_policy_rule_details.rb +160 -0
- data/lib/oci/data_safe/models/update_audit_archive_retrieval_details.rb +198 -0
- data/lib/oci/data_safe/models/update_audit_policy_details.rb +198 -0
- data/lib/oci/data_safe/models/update_audit_profile_details.rb +215 -0
- data/lib/oci/data_safe/models/update_audit_trail_details.rb +216 -0
- data/lib/oci/data_safe/models/update_column_source_details.rb +184 -0
- data/lib/oci/data_safe/models/update_column_source_sdm_details.rb +162 -0
- data/lib/oci/data_safe/models/update_column_source_target_details.rb +162 -0
- data/lib/oci/data_safe/models/update_library_masking_format_details.rb +228 -0
- data/lib/oci/data_safe/models/update_masking_column_details.rb +239 -0
- data/lib/oci/data_safe/models/update_masking_policy_details.rb +329 -0
- data/lib/oci/data_safe/models/update_report_definition_details.rb +250 -0
- data/lib/oci/data_safe/models/update_sensitive_category_details.rb +169 -0
- data/lib/oci/data_safe/models/update_sensitive_column_details.rb +280 -0
- data/lib/oci/data_safe/models/update_sensitive_data_model_details.rb +299 -0
- data/lib/oci/data_safe/models/update_sensitive_type_details.rb +272 -0
- data/lib/oci/data_safe/models/update_sensitive_type_pattern_details.rb +244 -0
- data/lib/oci/data_safe/models/update_target_alert_policy_association_details.rb +213 -0
- data/lib/oci/data_safe/models/work_request.rb +57 -0
- data/lib/oci/data_safe/models/work_request_summary.rb +56 -0
- data/lib/oci/data_science/data_science.rb +1 -0
- data/lib/oci/data_science/data_science_client.rb +71 -2
- data/lib/oci/data_science/data_science_client_composite_operations.rb +1 -1
- data/lib/oci/data_science/models/fast_launch_job_config_summary.rb +272 -0
- data/lib/oci/database/models/autonomous_database.rb +2 -1
- data/lib/oci/database/models/autonomous_database_summary.rb +2 -1
- data/lib/oci/database_management/database_management.rb +14 -0
- data/lib/oci/database_management/db_management_client.rb +544 -8
- data/lib/oci/database_management/models/add_data_files_details.rb +303 -0
- data/lib/oci/database_management/models/asm_property.rb +151 -0
- data/lib/oci/database_management/models/asm_property_collection.rb +150 -0
- data/lib/oci/database_management/models/asm_property_summary.rb +154 -0
- data/lib/oci/database_management/models/clone_sql_tuning_task_details.rb +4 -4
- data/lib/oci/database_management/models/consumer_group_privilege_collection.rb +2 -2
- data/lib/oci/database_management/models/consumer_group_privilege_summary.rb +4 -4
- data/lib/oci/database_management/models/create_tablespace_details.rb +508 -0
- data/lib/oci/database_management/models/data_access_container_collection.rb +2 -2
- data/lib/oci/database_management/models/data_access_container_summary.rb +2 -2
- data/lib/oci/database_management/models/drop_sql_tuning_task_details.rb +3 -3
- data/lib/oci/database_management/models/drop_tablespace_details.rb +199 -0
- data/lib/oci/database_management/models/execution_plan_stats_comparision.rb +1 -1
- data/lib/oci/database_management/models/object_privilege_collection.rb +2 -2
- data/lib/oci/database_management/models/object_privilege_summary.rb +9 -9
- data/lib/oci/database_management/models/proxied_for_user_collection.rb +2 -2
- data/lib/oci/database_management/models/proxied_for_user_summary.rb +4 -4
- data/lib/oci/database_management/models/proxy_user_collection.rb +2 -2
- data/lib/oci/database_management/models/proxy_user_summary.rb +4 -4
- data/lib/oci/database_management/models/remove_data_file_details.rb +197 -0
- data/lib/oci/database_management/models/resize_data_file_details.rb +272 -0
- data/lib/oci/database_management/models/role_collection.rb +2 -2
- data/lib/oci/database_management/models/role_summary.rb +9 -9
- data/lib/oci/database_management/models/sql_tuning_advisor_task_finding_collection.rb +1 -1
- data/lib/oci/database_management/models/sql_tuning_advisor_task_finding_summary.rb +19 -19
- data/lib/oci/database_management/models/sql_tuning_advisor_task_recommendation_summary.rb +6 -6
- data/lib/oci/database_management/models/sql_tuning_advisor_task_sql_execution_plan.rb +1 -1
- data/lib/oci/database_management/models/sql_tuning_advisor_task_summary.rb +13 -13
- data/lib/oci/database_management/models/sql_tuning_advisor_task_summary_finding_benefits.rb +21 -21
- data/lib/oci/database_management/models/sql_tuning_advisor_task_summary_finding_counts.rb +7 -7
- data/lib/oci/database_management/models/sql_tuning_advisor_task_summary_report_statement_counts.rb +5 -5
- data/lib/oci/database_management/models/sql_tuning_advisor_task_summary_report_statistics.rb +1 -1
- data/lib/oci/database_management/models/sql_tuning_advisor_task_summary_report_task_info.rb +9 -9
- data/lib/oci/database_management/models/sql_tuning_task_credential_details.rb +3 -3
- data/lib/oci/database_management/models/sql_tuning_task_password_credential_details.rb +1 -1
- data/lib/oci/database_management/models/sql_tuning_task_plan_stats.rb +2 -2
- data/lib/oci/database_management/models/sql_tuning_task_return.rb +3 -3
- data/lib/oci/database_management/models/sql_tuning_task_secret_credential_details.rb +1 -1
- data/lib/oci/database_management/models/sql_tuning_task_sql_detail.rb +1 -1
- data/lib/oci/database_management/models/sql_tuning_task_sql_execution_plan_step.rb +30 -30
- data/lib/oci/database_management/models/start_sql_tuning_task_details.rb +8 -8
- data/lib/oci/database_management/models/system_privilege_collection.rb +2 -2
- data/lib/oci/database_management/models/system_privilege_summary.rb +7 -7
- data/lib/oci/database_management/models/tablespace.rb +217 -81
- data/lib/oci/database_management/models/tablespace_admin_credential_details.rb +217 -0
- data/lib/oci/database_management/models/tablespace_admin_password_credential_details.rb +166 -0
- data/lib/oci/database_management/models/tablespace_admin_secret_credential_details.rb +173 -0
- data/lib/oci/database_management/models/tablespace_admin_status.rb +201 -0
- data/lib/oci/database_management/models/tablespace_storage_size.rb +178 -0
- data/lib/oci/database_management/models/tablespace_summary.rb +16 -1
- data/lib/oci/database_management/models/update_tablespace_details.rb +303 -0
- data/lib/oci/database_management/models/user.rb +15 -15
- data/lib/oci/database_management/models/user_collection.rb +1 -1
- data/lib/oci/database_management/models/user_summary.rb +3 -3
- data/lib/oci/database_management/sql_tuning_client.rb +24 -21
- data/lib/oci/loggingsearch/log_search_client.rb +4 -1
- data/lib/oci/marketplace/account_client.rb +1 -1
- data/lib/oci/marketplace/marketplace_client.rb +7 -4
- data/lib/oci/marketplace/models/free_text_search_details.rb +2 -1
- data/lib/oci/marketplace/models/listing_summary.rb +17 -1
- data/lib/oci/marketplace/models/search_listings_details.rb +4 -2
- data/lib/oci/marketplace/models/structured_search_details.rb +3 -1
- data/lib/oci/nosql/models/table_collection.rb +32 -4
- data/lib/oci/nosql/models/table_limits.rb +41 -4
- data/lib/oci/osp_gateway/invoice_service_client.rb +1 -1
- data/lib/oci/osp_gateway/models/authorize_subscription_payment_details.rb +174 -0
- data/lib/oci/osp_gateway/models/authorize_subscription_payment_receipt.rb +182 -0
- data/lib/oci/osp_gateway/models/{address.rb → bill_to_address.rb} +1 -1
- data/lib/oci/osp_gateway/models/billing_address.rb +274 -0
- data/lib/oci/osp_gateway/models/credit_card_payment_option.rb +153 -0
- data/lib/oci/osp_gateway/models/credit_card_type.rb +16 -0
- data/lib/oci/osp_gateway/models/invoice.rb +3 -3
- data/lib/oci/osp_gateway/models/merchant_defined_data.rb +168 -0
- data/lib/oci/osp_gateway/models/pay_subscription_details.rb +174 -0
- data/lib/oci/osp_gateway/models/pay_subscription_receipt.rb +182 -0
- data/lib/oci/osp_gateway/models/payment_detail.rb +1 -1
- data/lib/oci/osp_gateway/models/payment_gateway.rb +153 -0
- data/lib/oci/osp_gateway/models/payment_method.rb +11 -0
- data/lib/oci/osp_gateway/models/payment_option.rb +219 -0
- data/lib/oci/osp_gateway/models/paypal_payment_option.rb +153 -0
- data/lib/oci/osp_gateway/models/subscription.rb +456 -0
- data/lib/oci/osp_gateway/models/subscription_collection.rb +150 -0
- data/lib/oci/osp_gateway/models/subscription_summary.rb +459 -0
- data/lib/oci/osp_gateway/models/tax_info.rb +210 -0
- data/lib/oci/osp_gateway/models/update_subscription_details.rb +160 -0
- data/lib/oci/osp_gateway/osp_gateway.rb +19 -1
- data/lib/oci/osp_gateway/subscription_service_client.rb +481 -0
- data/lib/oci/osp_gateway/subscription_service_client_composite_operations.rb +25 -0
- data/lib/oci/regions_definitions.rb +9 -4
- data/lib/oci/threat_intelligence/models/data_attribution.rb +198 -0
- data/lib/oci/threat_intelligence/models/data_visibility.rb +187 -0
- data/lib/oci/threat_intelligence/models/entity_reference.rb +185 -0
- data/lib/oci/threat_intelligence/models/indicator.rb +320 -0
- data/lib/oci/threat_intelligence/models/indicator_attribute.rb +170 -0
- data/lib/oci/threat_intelligence/models/indicator_count_collection.rb +150 -0
- data/lib/oci/threat_intelligence/models/indicator_count_dimensions.rb +189 -0
- data/lib/oci/threat_intelligence/models/indicator_count_summary.rb +160 -0
- data/lib/oci/threat_intelligence/models/indicator_reference.rb +162 -0
- data/lib/oci/threat_intelligence/models/indicator_relationship.rb +174 -0
- data/lib/oci/threat_intelligence/models/indicator_source_summary.rb +150 -0
- data/lib/oci/threat_intelligence/models/indicator_summary.rb +294 -0
- data/lib/oci/threat_intelligence/models/indicator_summary_collection.rb +150 -0
- data/lib/oci/threat_intelligence/models/indicator_type.rb +16 -0
- data/lib/oci/threat_intelligence/models/lifecycle_state.rb +11 -0
- data/lib/oci/threat_intelligence/models/sort_order.rb +11 -0
- data/lib/oci/threat_intelligence/models/threat_type.rb +170 -0
- data/lib/oci/threat_intelligence/models/threat_type_summary.rb +160 -0
- data/lib/oci/threat_intelligence/models/threat_types_collection.rb +150 -0
- data/lib/oci/threat_intelligence/threat_intelligence.rb +38 -0
- data/lib/oci/threat_intelligence/threatintel_client.rb +375 -0
- data/lib/oci/threat_intelligence/threatintel_client_composite_operations.rb +25 -0
- data/lib/oci/threat_intelligence/util.rb +3 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci.rb +6 -23
- metadata +432 -3
@@ -75,20 +75,19 @@ module OCI
|
|
75
75
|
# rubocop:disable Layout/EmptyLines
|
76
76
|
|
77
77
|
|
78
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
78
|
+
# Calls {OCI::DataSafe::DataSafeClient#add_masking_columns_from_sdm} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
79
79
|
# to enter the given state(s).
|
80
80
|
#
|
81
|
-
# @param [String]
|
82
|
-
# @param [OCI::DataSafe::Models::ChangeDataSafePrivateEndpointCompartmentDetails] change_data_safe_private_endpoint_compartment_details The details used to change the compartment of a Data Safe private endpoint.
|
81
|
+
# @param [String] masking_policy_id The OCID of the masking policy.
|
83
82
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
84
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
83
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#add_masking_columns_from_sdm}
|
85
84
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
86
85
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
87
86
|
# * max_wait_seconds The maximum time to wait, in seconds
|
88
87
|
#
|
89
88
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
90
|
-
def
|
91
|
-
operation_result = @service_client.
|
89
|
+
def add_masking_columns_from_sdm_and_wait_for_state(masking_policy_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
90
|
+
operation_result = @service_client.add_masking_columns_from_sdm(masking_policy_id, base_operation_opts)
|
92
91
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
93
92
|
|
94
93
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -125,20 +124,20 @@ module OCI
|
|
125
124
|
# rubocop:disable Layout/EmptyLines
|
126
125
|
|
127
126
|
|
128
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
127
|
+
# Calls {OCI::DataSafe::DataSafeClient#apply_discovery_job_results} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
129
128
|
# to enter the given state(s).
|
130
129
|
#
|
131
|
-
# @param [String]
|
132
|
-
# @param [OCI::DataSafe::Models::
|
130
|
+
# @param [String] sensitive_data_model_id The OCID of the sensitive data model.
|
131
|
+
# @param [OCI::DataSafe::Models::ApplyDiscoveryJobResultsDetails] apply_discovery_job_results_details Details to apply the discovery results to a sensitive data model.
|
133
132
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
134
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
133
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#apply_discovery_job_results}
|
135
134
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
136
135
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
137
136
|
# * max_wait_seconds The maximum time to wait, in seconds
|
138
137
|
#
|
139
138
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
140
|
-
def
|
141
|
-
operation_result = @service_client.
|
139
|
+
def apply_discovery_job_results_and_wait_for_state(sensitive_data_model_id, apply_discovery_job_results_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
140
|
+
operation_result = @service_client.apply_discovery_job_results(sensitive_data_model_id, apply_discovery_job_results_details, base_operation_opts)
|
142
141
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
143
142
|
|
144
143
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -175,20 +174,20 @@ module OCI
|
|
175
174
|
# rubocop:disable Layout/EmptyLines
|
176
175
|
|
177
176
|
|
178
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
177
|
+
# Calls {OCI::DataSafe::DataSafeClient#calculate_audit_volume_available} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
179
178
|
# to enter the given state(s).
|
180
179
|
#
|
181
|
-
# @param [String]
|
182
|
-
# @param [OCI::DataSafe::Models::
|
180
|
+
# @param [String] audit_profile_id The OCID of the audit.
|
181
|
+
# @param [OCI::DataSafe::Models::CalculateAuditVolumeAvailableDetails] calculate_audit_volume_available_details Details for the calculation of audit volume available on target database.
|
183
182
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
184
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
183
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#calculate_audit_volume_available}
|
185
184
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
186
185
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
187
186
|
# * max_wait_seconds The maximum time to wait, in seconds
|
188
187
|
#
|
189
188
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
190
|
-
def
|
191
|
-
operation_result = @service_client.
|
189
|
+
def calculate_audit_volume_available_and_wait_for_state(audit_profile_id, calculate_audit_volume_available_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
190
|
+
operation_result = @service_client.calculate_audit_volume_available(audit_profile_id, calculate_audit_volume_available_details, base_operation_opts)
|
192
191
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
193
192
|
|
194
193
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -225,19 +224,20 @@ module OCI
|
|
225
224
|
# rubocop:disable Layout/EmptyLines
|
226
225
|
|
227
226
|
|
228
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
227
|
+
# Calls {OCI::DataSafe::DataSafeClient#calculate_audit_volume_collected} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
229
228
|
# to enter the given state(s).
|
230
229
|
#
|
231
|
-
# @param [
|
230
|
+
# @param [String] audit_profile_id The OCID of the audit.
|
231
|
+
# @param [OCI::DataSafe::Models::CalculateAuditVolumeCollectedDetails] calculate_audit_volume_collected_details Details for the calculation of audit volume collected by data safe.
|
232
232
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
233
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
233
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#calculate_audit_volume_collected}
|
234
234
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
235
235
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
236
236
|
# * max_wait_seconds The maximum time to wait, in seconds
|
237
237
|
#
|
238
238
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
239
|
-
def
|
240
|
-
operation_result = @service_client.
|
239
|
+
def calculate_audit_volume_collected_and_wait_for_state(audit_profile_id, calculate_audit_volume_collected_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
240
|
+
operation_result = @service_client.calculate_audit_volume_collected(audit_profile_id, calculate_audit_volume_collected_details, base_operation_opts)
|
241
241
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
242
242
|
|
243
243
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -274,19 +274,20 @@ module OCI
|
|
274
274
|
# rubocop:disable Layout/EmptyLines
|
275
275
|
|
276
276
|
|
277
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
277
|
+
# Calls {OCI::DataSafe::DataSafeClient#change_audit_archive_retrieval_compartment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
278
278
|
# to enter the given state(s).
|
279
279
|
#
|
280
|
-
# @param [
|
280
|
+
# @param [String] audit_archive_retrieval_id OCID of the archive retrieval.
|
281
|
+
# @param [OCI::DataSafe::Models::ChangeAuditArchiveRetrievalCompartmentDetails] change_audit_archive_retrieval_compartment_details The details used to change the compartment of a archive retrieval.
|
281
282
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
282
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
283
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#change_audit_archive_retrieval_compartment}
|
283
284
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
284
285
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
285
286
|
# * max_wait_seconds The maximum time to wait, in seconds
|
286
287
|
#
|
287
288
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
288
|
-
def
|
289
|
-
operation_result = @service_client.
|
289
|
+
def change_audit_archive_retrieval_compartment_and_wait_for_state(audit_archive_retrieval_id, change_audit_archive_retrieval_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
290
|
+
operation_result = @service_client.change_audit_archive_retrieval_compartment(audit_archive_retrieval_id, change_audit_archive_retrieval_compartment_details, base_operation_opts)
|
290
291
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
291
292
|
|
292
293
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -323,19 +324,20 @@ module OCI
|
|
323
324
|
# rubocop:disable Layout/EmptyLines
|
324
325
|
|
325
326
|
|
326
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
327
|
+
# Calls {OCI::DataSafe::DataSafeClient#change_audit_policy_compartment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
327
328
|
# to enter the given state(s).
|
328
329
|
#
|
329
|
-
# @param [
|
330
|
+
# @param [String] audit_policy_id Unique audit policy identifier.
|
331
|
+
# @param [OCI::DataSafe::Models::ChangeAuditPolicyCompartmentDetails] change_audit_policy_compartment_details Details for the compartment move.
|
330
332
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
331
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
333
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#change_audit_policy_compartment}
|
332
334
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
333
335
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
334
336
|
# * max_wait_seconds The maximum time to wait, in seconds
|
335
337
|
#
|
336
338
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
337
|
-
def
|
338
|
-
operation_result = @service_client.
|
339
|
+
def change_audit_policy_compartment_and_wait_for_state(audit_policy_id, change_audit_policy_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
340
|
+
operation_result = @service_client.change_audit_policy_compartment(audit_policy_id, change_audit_policy_compartment_details, base_operation_opts)
|
339
341
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
340
342
|
|
341
343
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -372,19 +374,20 @@ module OCI
|
|
372
374
|
# rubocop:disable Layout/EmptyLines
|
373
375
|
|
374
376
|
|
375
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
377
|
+
# Calls {OCI::DataSafe::DataSafeClient#change_audit_profile_compartment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
376
378
|
# to enter the given state(s).
|
377
379
|
#
|
378
|
-
# @param [
|
380
|
+
# @param [String] audit_profile_id The OCID of the audit.
|
381
|
+
# @param [OCI::DataSafe::Models::ChangeAuditProfileCompartmentDetails] change_audit_profile_compartment_details Details for the compartment move.
|
379
382
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
380
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
383
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#change_audit_profile_compartment}
|
381
384
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
382
385
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
383
386
|
# * max_wait_seconds The maximum time to wait, in seconds
|
384
387
|
#
|
385
388
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
386
|
-
def
|
387
|
-
operation_result = @service_client.
|
389
|
+
def change_audit_profile_compartment_and_wait_for_state(audit_profile_id, change_audit_profile_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
390
|
+
operation_result = @service_client.change_audit_profile_compartment(audit_profile_id, change_audit_profile_compartment_details, base_operation_opts)
|
388
391
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
389
392
|
|
390
393
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -421,19 +424,20 @@ module OCI
|
|
421
424
|
# rubocop:disable Layout/EmptyLines
|
422
425
|
|
423
426
|
|
424
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
427
|
+
# Calls {OCI::DataSafe::DataSafeClient#change_data_safe_private_endpoint_compartment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
425
428
|
# to enter the given state(s).
|
426
429
|
#
|
427
|
-
# @param [
|
430
|
+
# @param [String] data_safe_private_endpoint_id The OCID of the private endpoint.
|
431
|
+
# @param [OCI::DataSafe::Models::ChangeDataSafePrivateEndpointCompartmentDetails] change_data_safe_private_endpoint_compartment_details The details used to change the compartment of a Data Safe private endpoint.
|
428
432
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
429
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
433
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#change_data_safe_private_endpoint_compartment}
|
430
434
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
431
435
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
432
436
|
# * max_wait_seconds The maximum time to wait, in seconds
|
433
437
|
#
|
434
438
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
435
|
-
def
|
436
|
-
operation_result = @service_client.
|
439
|
+
def change_data_safe_private_endpoint_compartment_and_wait_for_state(data_safe_private_endpoint_id, change_data_safe_private_endpoint_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
440
|
+
operation_result = @service_client.change_data_safe_private_endpoint_compartment(data_safe_private_endpoint_id, change_data_safe_private_endpoint_compartment_details, base_operation_opts)
|
437
441
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
438
442
|
|
439
443
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -470,19 +474,20 @@ module OCI
|
|
470
474
|
# rubocop:disable Layout/EmptyLines
|
471
475
|
|
472
476
|
|
473
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
477
|
+
# Calls {OCI::DataSafe::DataSafeClient#change_report_compartment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
474
478
|
# to enter the given state(s).
|
475
479
|
#
|
476
|
-
# @param [String]
|
480
|
+
# @param [String] report_id Unique report identifier
|
481
|
+
# @param [OCI::DataSafe::Models::ChangeReportCompartmentDetails] change_report_compartment_details Details for the different Report.
|
477
482
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
478
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
483
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#change_report_compartment}
|
479
484
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
480
485
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
481
486
|
# * max_wait_seconds The maximum time to wait, in seconds
|
482
487
|
#
|
483
488
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
484
|
-
def
|
485
|
-
operation_result = @service_client.
|
489
|
+
def change_report_compartment_and_wait_for_state(report_id, change_report_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
490
|
+
operation_result = @service_client.change_report_compartment(report_id, change_report_compartment_details, base_operation_opts)
|
486
491
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
487
492
|
|
488
493
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -519,19 +524,20 @@ module OCI
|
|
519
524
|
# rubocop:disable Layout/EmptyLines
|
520
525
|
|
521
526
|
|
522
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
527
|
+
# Calls {OCI::DataSafe::DataSafeClient#change_report_definition_compartment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
523
528
|
# to enter the given state(s).
|
524
529
|
#
|
525
|
-
# @param [String]
|
530
|
+
# @param [String] report_definition_id Unique report definition identifier
|
531
|
+
# @param [OCI::DataSafe::Models::ChangeReportDefinitionCompartmentDetails] change_report_definition_compartment_details Details for the different ReportDefinition.
|
526
532
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
527
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
533
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#change_report_definition_compartment}
|
528
534
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
529
535
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
530
536
|
# * max_wait_seconds The maximum time to wait, in seconds
|
531
537
|
#
|
532
538
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
533
|
-
def
|
534
|
-
operation_result = @service_client.
|
539
|
+
def change_report_definition_compartment_and_wait_for_state(report_definition_id, change_report_definition_compartment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
540
|
+
operation_result = @service_client.change_report_definition_compartment(report_definition_id, change_report_definition_compartment_details, base_operation_opts)
|
535
541
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
536
542
|
|
537
543
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -568,19 +574,20 @@ module OCI
|
|
568
574
|
# rubocop:disable Layout/EmptyLines
|
569
575
|
|
570
576
|
|
571
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
577
|
+
# Calls {OCI::DataSafe::DataSafeClient#change_retention} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
572
578
|
# to enter the given state(s).
|
573
579
|
#
|
574
|
-
# @param [String]
|
580
|
+
# @param [String] audit_profile_id The OCID of the audit.
|
581
|
+
# @param [OCI::DataSafe::Models::ChangeRetentionDetails] change_retention_details Details for the audit retention months to be modified.
|
575
582
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
576
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
583
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#change_retention}
|
577
584
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
578
585
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
579
586
|
# * max_wait_seconds The maximum time to wait, in seconds
|
580
587
|
#
|
581
588
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
582
|
-
def
|
583
|
-
operation_result = @service_client.
|
589
|
+
def change_retention_and_wait_for_state(audit_profile_id, change_retention_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
590
|
+
operation_result = @service_client.change_retention(audit_profile_id, change_retention_details, base_operation_opts)
|
584
591
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
585
592
|
|
586
593
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -617,19 +624,20 @@ module OCI
|
|
617
624
|
# rubocop:disable Layout/EmptyLines
|
618
625
|
|
619
626
|
|
620
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
627
|
+
# Calls {OCI::DataSafe::DataSafeClient#compare_security_assessment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
621
628
|
# to enter the given state(s).
|
622
629
|
#
|
623
630
|
# @param [String] security_assessment_id The OCID of the security assessment.
|
631
|
+
# @param [OCI::DataSafe::Models::CompareSecurityAssessmentDetails] compare_security_assessment_details Details of the security assessment comparison.
|
624
632
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
625
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
633
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#compare_security_assessment}
|
626
634
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
627
635
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
628
636
|
# * max_wait_seconds The maximum time to wait, in seconds
|
629
637
|
#
|
630
638
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
631
|
-
def
|
632
|
-
operation_result = @service_client.
|
639
|
+
def compare_security_assessment_and_wait_for_state(security_assessment_id, compare_security_assessment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
640
|
+
operation_result = @service_client.compare_security_assessment(security_assessment_id, compare_security_assessment_details, base_operation_opts)
|
633
641
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
634
642
|
|
635
643
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -666,19 +674,20 @@ module OCI
|
|
666
674
|
# rubocop:disable Layout/EmptyLines
|
667
675
|
|
668
676
|
|
669
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
677
|
+
# Calls {OCI::DataSafe::DataSafeClient#compare_user_assessment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
670
678
|
# to enter the given state(s).
|
671
679
|
#
|
672
|
-
# @param [String]
|
680
|
+
# @param [String] user_assessment_id The OCID of the user assessment.
|
681
|
+
# @param [OCI::DataSafe::Models::CompareUserAssessmentDetails] compare_user_assessment_details Details of the user assessment comparison.
|
673
682
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
674
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
683
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#compare_user_assessment}
|
675
684
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
676
685
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
677
686
|
# * max_wait_seconds The maximum time to wait, in seconds
|
678
687
|
#
|
679
688
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
680
|
-
def
|
681
|
-
operation_result = @service_client.
|
689
|
+
def compare_user_assessment_and_wait_for_state(user_assessment_id, compare_user_assessment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
690
|
+
operation_result = @service_client.compare_user_assessment(user_assessment_id, compare_user_assessment_details, base_operation_opts)
|
682
691
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
683
692
|
|
684
693
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -715,19 +724,19 @@ module OCI
|
|
715
724
|
# rubocop:disable Layout/EmptyLines
|
716
725
|
|
717
726
|
|
718
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
727
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_audit_archive_retrieval} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
719
728
|
# to enter the given state(s).
|
720
729
|
#
|
721
|
-
# @param [
|
730
|
+
# @param [OCI::DataSafe::Models::CreateAuditArchiveRetrievalDetails] create_audit_archive_retrieval_details Details for creating retrieving archived audit data.
|
722
731
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
723
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
732
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_audit_archive_retrieval}
|
724
733
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
725
734
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
726
735
|
# * max_wait_seconds The maximum time to wait, in seconds
|
727
736
|
#
|
728
737
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
729
|
-
def
|
730
|
-
operation_result = @service_client.
|
738
|
+
def create_audit_archive_retrieval_and_wait_for_state(create_audit_archive_retrieval_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
739
|
+
operation_result = @service_client.create_audit_archive_retrieval(create_audit_archive_retrieval_details, base_operation_opts)
|
731
740
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
732
741
|
|
733
742
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -764,19 +773,19 @@ module OCI
|
|
764
773
|
# rubocop:disable Layout/EmptyLines
|
765
774
|
|
766
775
|
|
767
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
776
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_data_safe_private_endpoint} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
768
777
|
# to enter the given state(s).
|
769
778
|
#
|
770
|
-
# @param [OCI::DataSafe::Models::
|
779
|
+
# @param [OCI::DataSafe::Models::CreateDataSafePrivateEndpointDetails] create_data_safe_private_endpoint_details Details to create a new private endpoint.
|
771
780
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
772
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
781
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_data_safe_private_endpoint}
|
773
782
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
774
783
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
775
784
|
# * max_wait_seconds The maximum time to wait, in seconds
|
776
785
|
#
|
777
786
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
778
|
-
def
|
779
|
-
operation_result = @service_client.
|
787
|
+
def create_data_safe_private_endpoint_and_wait_for_state(create_data_safe_private_endpoint_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
788
|
+
operation_result = @service_client.create_data_safe_private_endpoint(create_data_safe_private_endpoint_details, base_operation_opts)
|
780
789
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
781
790
|
|
782
791
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -813,20 +822,19 @@ module OCI
|
|
813
822
|
# rubocop:disable Layout/EmptyLines
|
814
823
|
|
815
824
|
|
816
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
825
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_discovery_job} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
817
826
|
# to enter the given state(s).
|
818
827
|
#
|
819
|
-
# @param [
|
820
|
-
# @param [OCI::DataSafe::Models::GenerateSecurityAssessmentReportDetails] generate_security_assessment_report_details Details of the report.
|
828
|
+
# @param [OCI::DataSafe::Models::CreateDiscoveryJobDetails] create_discovery_job_details The details used to run an incremental data discovery job
|
821
829
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
822
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
830
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_discovery_job}
|
823
831
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
824
832
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
825
833
|
# * max_wait_seconds The maximum time to wait, in seconds
|
826
834
|
#
|
827
835
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
828
|
-
def
|
829
|
-
operation_result = @service_client.
|
836
|
+
def create_discovery_job_and_wait_for_state(create_discovery_job_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
837
|
+
operation_result = @service_client.create_discovery_job(create_discovery_job_details, base_operation_opts)
|
830
838
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
831
839
|
|
832
840
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -863,20 +871,19 @@ module OCI
|
|
863
871
|
# rubocop:disable Layout/EmptyLines
|
864
872
|
|
865
873
|
|
866
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
874
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_library_masking_format} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
867
875
|
# to enter the given state(s).
|
868
876
|
#
|
869
|
-
# @param [
|
870
|
-
# @param [OCI::DataSafe::Models::GenerateUserAssessmentReportDetails] generate_user_assessment_report_details Details of the report.
|
877
|
+
# @param [OCI::DataSafe::Models::CreateLibraryMaskingFormatDetails] create_library_masking_format_details Details to create a new library masking format.
|
871
878
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
872
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
879
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_library_masking_format}
|
873
880
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
874
881
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
875
882
|
# * max_wait_seconds The maximum time to wait, in seconds
|
876
883
|
#
|
877
884
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
878
|
-
def
|
879
|
-
operation_result = @service_client.
|
885
|
+
def create_library_masking_format_and_wait_for_state(create_library_masking_format_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
886
|
+
operation_result = @service_client.create_library_masking_format(create_library_masking_format_details, base_operation_opts)
|
880
887
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
881
888
|
|
882
889
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -913,20 +920,20 @@ module OCI
|
|
913
920
|
# rubocop:disable Layout/EmptyLines
|
914
921
|
|
915
922
|
|
916
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
923
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_masking_column} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
917
924
|
# to enter the given state(s).
|
918
925
|
#
|
919
|
-
# @param [
|
920
|
-
# @param [
|
926
|
+
# @param [OCI::DataSafe::Models::CreateMaskingColumnDetails] create_masking_column_details Details to create a new masking column.
|
927
|
+
# @param [String] masking_policy_id The OCID of the masking policy.
|
921
928
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
922
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
929
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_masking_column}
|
923
930
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
924
931
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
925
932
|
# * max_wait_seconds The maximum time to wait, in seconds
|
926
933
|
#
|
927
934
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
928
|
-
def
|
929
|
-
operation_result = @service_client.
|
935
|
+
def create_masking_column_and_wait_for_state(create_masking_column_details, masking_policy_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
936
|
+
operation_result = @service_client.create_masking_column(create_masking_column_details, masking_policy_id, base_operation_opts)
|
930
937
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
931
938
|
|
932
939
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -963,20 +970,19 @@ module OCI
|
|
963
970
|
# rubocop:disable Layout/EmptyLines
|
964
971
|
|
965
972
|
|
966
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
973
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_masking_policy} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
967
974
|
# to enter the given state(s).
|
968
975
|
#
|
969
|
-
# @param [
|
970
|
-
# @param [OCI::DataSafe::Models::RunUserAssessmentDetails] run_user_assessment_details The details required to create an on-demand saved user assessment.
|
976
|
+
# @param [OCI::DataSafe::Models::CreateMaskingPolicyDetails] create_masking_policy_details Details to create a new masking policy.
|
971
977
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
972
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
978
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_masking_policy}
|
973
979
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
974
980
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
975
981
|
# * max_wait_seconds The maximum time to wait, in seconds
|
976
982
|
#
|
977
983
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
978
|
-
def
|
979
|
-
operation_result = @service_client.
|
984
|
+
def create_masking_policy_and_wait_for_state(create_masking_policy_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
985
|
+
operation_result = @service_client.create_masking_policy(create_masking_policy_details, base_operation_opts)
|
980
986
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
981
987
|
|
982
988
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -1013,19 +1019,19 @@ module OCI
|
|
1013
1019
|
# rubocop:disable Layout/EmptyLines
|
1014
1020
|
|
1015
1021
|
|
1016
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
1022
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_on_prem_connector} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1017
1023
|
# to enter the given state(s).
|
1018
1024
|
#
|
1019
|
-
# @param [
|
1025
|
+
# @param [OCI::DataSafe::Models::CreateOnPremConnectorDetails] create_on_prem_connector_details The details used to create a new on-premises connector.
|
1020
1026
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1021
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
1027
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_on_prem_connector}
|
1022
1028
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1023
1029
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1024
1030
|
# * max_wait_seconds The maximum time to wait, in seconds
|
1025
1031
|
#
|
1026
1032
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1027
|
-
def
|
1028
|
-
operation_result = @service_client.
|
1033
|
+
def create_on_prem_connector_and_wait_for_state(create_on_prem_connector_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1034
|
+
operation_result = @service_client.create_on_prem_connector(create_on_prem_connector_details, base_operation_opts)
|
1029
1035
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1030
1036
|
|
1031
1037
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -1062,19 +1068,19 @@ module OCI
|
|
1062
1068
|
# rubocop:disable Layout/EmptyLines
|
1063
1069
|
|
1064
1070
|
|
1065
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
1071
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_report_definition} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1066
1072
|
# to enter the given state(s).
|
1067
1073
|
#
|
1068
|
-
# @param [
|
1074
|
+
# @param [OCI::DataSafe::Models::CreateReportDefinitionDetails] create_report_definition_details Details for the new report definition.
|
1069
1075
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1070
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
1076
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_report_definition}
|
1071
1077
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1072
1078
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1073
1079
|
# * max_wait_seconds The maximum time to wait, in seconds
|
1074
1080
|
#
|
1075
1081
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1076
|
-
def
|
1077
|
-
operation_result = @service_client.
|
1082
|
+
def create_report_definition_and_wait_for_state(create_report_definition_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1083
|
+
operation_result = @service_client.create_report_definition(create_report_definition_details, base_operation_opts)
|
1078
1084
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1079
1085
|
|
1080
1086
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -1111,19 +1117,19 @@ module OCI
|
|
1111
1117
|
# rubocop:disable Layout/EmptyLines
|
1112
1118
|
|
1113
1119
|
|
1114
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
1120
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_security_assessment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1115
1121
|
# to enter the given state(s).
|
1116
1122
|
#
|
1117
|
-
# @param [
|
1123
|
+
# @param [OCI::DataSafe::Models::CreateSecurityAssessmentDetails] create_security_assessment_details The details used to create a new saved security assessment.
|
1118
1124
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1119
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
1125
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_security_assessment}
|
1120
1126
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1121
1127
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1122
1128
|
# * max_wait_seconds The maximum time to wait, in seconds
|
1123
1129
|
#
|
1124
1130
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1125
|
-
def
|
1126
|
-
operation_result = @service_client.
|
1131
|
+
def create_security_assessment_and_wait_for_state(create_security_assessment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1132
|
+
operation_result = @service_client.create_security_assessment(create_security_assessment_details, base_operation_opts)
|
1127
1133
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1128
1134
|
|
1129
1135
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -1160,19 +1166,20 @@ module OCI
|
|
1160
1166
|
# rubocop:disable Layout/EmptyLines
|
1161
1167
|
|
1162
1168
|
|
1163
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
1169
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_sensitive_column} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1164
1170
|
# to enter the given state(s).
|
1165
1171
|
#
|
1166
|
-
# @param [String]
|
1172
|
+
# @param [String] sensitive_data_model_id The OCID of the sensitive data model.
|
1173
|
+
# @param [OCI::DataSafe::Models::CreateSensitiveColumnDetails] create_sensitive_column_details Details to create a new sensitive column.
|
1167
1174
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1168
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
1175
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_sensitive_column}
|
1169
1176
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1170
1177
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1171
1178
|
# * max_wait_seconds The maximum time to wait, in seconds
|
1172
1179
|
#
|
1173
1180
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1174
|
-
def
|
1175
|
-
operation_result = @service_client.
|
1181
|
+
def create_sensitive_column_and_wait_for_state(sensitive_data_model_id, create_sensitive_column_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1182
|
+
operation_result = @service_client.create_sensitive_column(sensitive_data_model_id, create_sensitive_column_details, base_operation_opts)
|
1176
1183
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1177
1184
|
|
1178
1185
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -1209,20 +1216,19 @@ module OCI
|
|
1209
1216
|
# rubocop:disable Layout/EmptyLines
|
1210
1217
|
|
1211
1218
|
|
1212
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
1219
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_sensitive_data_model} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1213
1220
|
# to enter the given state(s).
|
1214
1221
|
#
|
1215
|
-
# @param [
|
1216
|
-
# @param [OCI::DataSafe::Models::UpdateDataSafePrivateEndpointDetails] update_data_safe_private_endpoint_details The details used to update a Data Safe private endpoint.
|
1222
|
+
# @param [OCI::DataSafe::Models::CreateSensitiveDataModelDetails] create_sensitive_data_model_details Details to create a new sensitive data model.
|
1217
1223
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1218
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
1224
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_sensitive_data_model}
|
1219
1225
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1220
1226
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1221
1227
|
# * max_wait_seconds The maximum time to wait, in seconds
|
1222
1228
|
#
|
1223
1229
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1224
|
-
def
|
1225
|
-
operation_result = @service_client.
|
1230
|
+
def create_sensitive_data_model_and_wait_for_state(create_sensitive_data_model_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1231
|
+
operation_result = @service_client.create_sensitive_data_model(create_sensitive_data_model_details, base_operation_opts)
|
1226
1232
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1227
1233
|
|
1228
1234
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -1259,20 +1265,19 @@ module OCI
|
|
1259
1265
|
# rubocop:disable Layout/EmptyLines
|
1260
1266
|
|
1261
1267
|
|
1262
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
1268
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_sensitive_type} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1263
1269
|
# to enter the given state(s).
|
1264
1270
|
#
|
1265
|
-
# @param [
|
1266
|
-
# @param [OCI::DataSafe::Models::UpdateOnPremConnectorDetails] update_on_prem_connector_details The details used to update a on-premises connector.
|
1271
|
+
# @param [OCI::DataSafe::Models::CreateSensitiveTypeDetails] create_sensitive_type_details Details to create a new sensitive type.
|
1267
1272
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1268
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
1273
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_sensitive_type}
|
1269
1274
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1270
1275
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1271
1276
|
# * max_wait_seconds The maximum time to wait, in seconds
|
1272
1277
|
#
|
1273
1278
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1274
|
-
def
|
1275
|
-
operation_result = @service_client.
|
1279
|
+
def create_sensitive_type_and_wait_for_state(create_sensitive_type_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1280
|
+
operation_result = @service_client.create_sensitive_type(create_sensitive_type_details, base_operation_opts)
|
1276
1281
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1277
1282
|
|
1278
1283
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -1309,20 +1314,19 @@ module OCI
|
|
1309
1314
|
# rubocop:disable Layout/EmptyLines
|
1310
1315
|
|
1311
1316
|
|
1312
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
1317
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_target_alert_policy_association} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1313
1318
|
# to enter the given state(s).
|
1314
1319
|
#
|
1315
|
-
# @param [OCI::DataSafe::Models::
|
1316
|
-
# @param [String] on_prem_connector_id The OCID of the on-premises connector.
|
1320
|
+
# @param [OCI::DataSafe::Models::CreateTargetAlertPolicyAssociationDetails] create_target_alert_policy_association_details The details used to create a new target-alert policy association.
|
1317
1321
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1318
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
1322
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_target_alert_policy_association}
|
1319
1323
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1320
1324
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1321
1325
|
# * max_wait_seconds The maximum time to wait, in seconds
|
1322
1326
|
#
|
1323
1327
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1324
|
-
def
|
1325
|
-
operation_result = @service_client.
|
1328
|
+
def create_target_alert_policy_association_and_wait_for_state(create_target_alert_policy_association_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1329
|
+
operation_result = @service_client.create_target_alert_policy_association(create_target_alert_policy_association_details, base_operation_opts)
|
1326
1330
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1327
1331
|
|
1328
1332
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -1359,20 +1363,19 @@ module OCI
|
|
1359
1363
|
# rubocop:disable Layout/EmptyLines
|
1360
1364
|
|
1361
1365
|
|
1362
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
1366
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_target_database} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1363
1367
|
# to enter the given state(s).
|
1364
1368
|
#
|
1365
|
-
# @param [
|
1366
|
-
# @param [OCI::DataSafe::Models::UpdateSecurityAssessmentDetails] update_security_assessment_details The information to be updated.
|
1369
|
+
# @param [OCI::DataSafe::Models::CreateTargetDatabaseDetails] create_target_database_details Details of the target database.
|
1367
1370
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1368
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
1371
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_target_database}
|
1369
1372
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1370
1373
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1371
1374
|
# * max_wait_seconds The maximum time to wait, in seconds
|
1372
1375
|
#
|
1373
1376
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1374
|
-
def
|
1375
|
-
operation_result = @service_client.
|
1377
|
+
def create_target_database_and_wait_for_state(create_target_database_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1378
|
+
operation_result = @service_client.create_target_database(create_target_database_details, base_operation_opts)
|
1376
1379
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1377
1380
|
|
1378
1381
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -1409,20 +1412,68 @@ module OCI
|
|
1409
1412
|
# rubocop:disable Layout/EmptyLines
|
1410
1413
|
|
1411
1414
|
|
1412
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
1415
|
+
# Calls {OCI::DataSafe::DataSafeClient#create_user_assessment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1416
|
+
# to enter the given state(s).
|
1417
|
+
#
|
1418
|
+
# @param [OCI::DataSafe::Models::CreateUserAssessmentDetails] create_user_assessment_details The details used to create a new saved user assessment.
|
1419
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1420
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#create_user_assessment}
|
1421
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1422
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1423
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1424
|
+
#
|
1425
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1426
|
+
def create_user_assessment_and_wait_for_state(create_user_assessment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1427
|
+
operation_result = @service_client.create_user_assessment(create_user_assessment_details, base_operation_opts)
|
1428
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1429
|
+
|
1430
|
+
return operation_result if wait_for_states.empty? && !use_util
|
1431
|
+
|
1432
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1433
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1434
|
+
|
1435
|
+
begin
|
1436
|
+
if use_util
|
1437
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
1438
|
+
@service_client,
|
1439
|
+
wait_for_resource_id,
|
1440
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1441
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1442
|
+
)
|
1443
|
+
else
|
1444
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
1445
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
1446
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1447
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1448
|
+
)
|
1449
|
+
end
|
1450
|
+
result_to_return = waiter_result
|
1451
|
+
|
1452
|
+
return result_to_return
|
1453
|
+
rescue StandardError
|
1454
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1455
|
+
end
|
1456
|
+
end
|
1457
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1458
|
+
# rubocop:enable Layout/EmptyLines
|
1459
|
+
|
1460
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1461
|
+
# rubocop:disable Layout/EmptyLines
|
1462
|
+
|
1463
|
+
|
1464
|
+
# Calls {OCI::DataSafe::DataSafeClient#deactivate_target_database} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1413
1465
|
# to enter the given state(s).
|
1414
1466
|
#
|
1415
1467
|
# @param [String] target_database_id The OCID of the Data Safe target database.
|
1416
|
-
# @param [OCI::DataSafe::Models::UpdateTargetDatabaseDetails] update_target_database_details Details used to update the target database in Data Safe.
|
1417
1468
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1418
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
1469
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#deactivate_target_database}
|
1419
1470
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1420
1471
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1421
1472
|
# * max_wait_seconds The maximum time to wait, in seconds
|
1422
1473
|
#
|
1423
1474
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1424
|
-
def
|
1425
|
-
operation_result = @service_client.
|
1475
|
+
def deactivate_target_database_and_wait_for_state(target_database_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1476
|
+
operation_result = @service_client.deactivate_target_database(target_database_id, base_operation_opts)
|
1426
1477
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1427
1478
|
|
1428
1479
|
return operation_result if wait_for_states.empty? && !use_util
|
@@ -1459,20 +1510,2970 @@ module OCI
|
|
1459
1510
|
# rubocop:disable Layout/EmptyLines
|
1460
1511
|
|
1461
1512
|
|
1462
|
-
# Calls {OCI::DataSafe::DataSafeClient#
|
1513
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_audit_archive_retrieval} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1463
1514
|
# to enter the given state(s).
|
1464
1515
|
#
|
1465
|
-
# @param [String]
|
1466
|
-
# @param [OCI::DataSafe::Models::UpdateUserAssessmentDetails] update_user_assessment_details The information to be updated.
|
1516
|
+
# @param [String] audit_archive_retrieval_id OCID of the archive retrieval.
|
1467
1517
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1468
|
-
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#
|
1518
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_audit_archive_retrieval}
|
1469
1519
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1470
1520
|
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1471
1521
|
# * max_wait_seconds The maximum time to wait, in seconds
|
1472
1522
|
#
|
1473
1523
|
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1474
|
-
def
|
1475
|
-
operation_result = @service_client.
|
1524
|
+
def delete_audit_archive_retrieval_and_wait_for_state(audit_archive_retrieval_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1525
|
+
operation_result = @service_client.delete_audit_archive_retrieval(audit_archive_retrieval_id, base_operation_opts)
|
1526
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1527
|
+
|
1528
|
+
return operation_result if wait_for_states.empty? && !use_util
|
1529
|
+
|
1530
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1531
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1532
|
+
|
1533
|
+
begin
|
1534
|
+
if use_util
|
1535
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
1536
|
+
@service_client,
|
1537
|
+
wait_for_resource_id,
|
1538
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1539
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1540
|
+
)
|
1541
|
+
else
|
1542
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
1543
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
1544
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1545
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1546
|
+
)
|
1547
|
+
end
|
1548
|
+
result_to_return = waiter_result
|
1549
|
+
|
1550
|
+
return result_to_return
|
1551
|
+
rescue StandardError
|
1552
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1553
|
+
end
|
1554
|
+
end
|
1555
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1556
|
+
# rubocop:enable Layout/EmptyLines
|
1557
|
+
|
1558
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1559
|
+
# rubocop:disable Layout/EmptyLines
|
1560
|
+
|
1561
|
+
|
1562
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_audit_trail} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1563
|
+
# to enter the given state(s).
|
1564
|
+
#
|
1565
|
+
# @param [String] audit_trail_id The OCID of the audit trail.
|
1566
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1567
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_audit_trail}
|
1568
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1569
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1570
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1571
|
+
#
|
1572
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1573
|
+
def delete_audit_trail_and_wait_for_state(audit_trail_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1574
|
+
operation_result = @service_client.delete_audit_trail(audit_trail_id, base_operation_opts)
|
1575
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1576
|
+
|
1577
|
+
return operation_result if wait_for_states.empty? && !use_util
|
1578
|
+
|
1579
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1580
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1581
|
+
|
1582
|
+
begin
|
1583
|
+
if use_util
|
1584
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
1585
|
+
@service_client,
|
1586
|
+
wait_for_resource_id,
|
1587
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1588
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1589
|
+
)
|
1590
|
+
else
|
1591
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
1592
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
1593
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1594
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1595
|
+
)
|
1596
|
+
end
|
1597
|
+
result_to_return = waiter_result
|
1598
|
+
|
1599
|
+
return result_to_return
|
1600
|
+
rescue StandardError
|
1601
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1602
|
+
end
|
1603
|
+
end
|
1604
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1605
|
+
# rubocop:enable Layout/EmptyLines
|
1606
|
+
|
1607
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1608
|
+
# rubocop:disable Layout/EmptyLines
|
1609
|
+
|
1610
|
+
|
1611
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_data_safe_private_endpoint} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1612
|
+
# to enter the given state(s).
|
1613
|
+
#
|
1614
|
+
# @param [String] data_safe_private_endpoint_id The OCID of the private endpoint.
|
1615
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1616
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_data_safe_private_endpoint}
|
1617
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1618
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1619
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1620
|
+
#
|
1621
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1622
|
+
def delete_data_safe_private_endpoint_and_wait_for_state(data_safe_private_endpoint_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1623
|
+
operation_result = @service_client.delete_data_safe_private_endpoint(data_safe_private_endpoint_id, base_operation_opts)
|
1624
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1625
|
+
|
1626
|
+
return operation_result if wait_for_states.empty? && !use_util
|
1627
|
+
|
1628
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1629
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1630
|
+
|
1631
|
+
begin
|
1632
|
+
if use_util
|
1633
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
1634
|
+
@service_client,
|
1635
|
+
wait_for_resource_id,
|
1636
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1637
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1638
|
+
)
|
1639
|
+
else
|
1640
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
1641
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
1642
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1643
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1644
|
+
)
|
1645
|
+
end
|
1646
|
+
result_to_return = waiter_result
|
1647
|
+
|
1648
|
+
return result_to_return
|
1649
|
+
rescue StandardError
|
1650
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1651
|
+
end
|
1652
|
+
end
|
1653
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1654
|
+
# rubocop:enable Layout/EmptyLines
|
1655
|
+
|
1656
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1657
|
+
# rubocop:disable Layout/EmptyLines
|
1658
|
+
|
1659
|
+
|
1660
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_discovery_job} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1661
|
+
# to enter the given state(s).
|
1662
|
+
#
|
1663
|
+
# @param [String] discovery_job_id The OCID of the discovery job.
|
1664
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1665
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_discovery_job}
|
1666
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1667
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1668
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1669
|
+
#
|
1670
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1671
|
+
def delete_discovery_job_and_wait_for_state(discovery_job_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1672
|
+
operation_result = @service_client.delete_discovery_job(discovery_job_id, base_operation_opts)
|
1673
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1674
|
+
|
1675
|
+
return operation_result if wait_for_states.empty? && !use_util
|
1676
|
+
|
1677
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1678
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1679
|
+
|
1680
|
+
begin
|
1681
|
+
if use_util
|
1682
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
1683
|
+
@service_client,
|
1684
|
+
wait_for_resource_id,
|
1685
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1686
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1687
|
+
)
|
1688
|
+
else
|
1689
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
1690
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
1691
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1692
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1693
|
+
)
|
1694
|
+
end
|
1695
|
+
result_to_return = waiter_result
|
1696
|
+
|
1697
|
+
return result_to_return
|
1698
|
+
rescue StandardError
|
1699
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1700
|
+
end
|
1701
|
+
end
|
1702
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1703
|
+
# rubocop:enable Layout/EmptyLines
|
1704
|
+
|
1705
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1706
|
+
# rubocop:disable Layout/EmptyLines
|
1707
|
+
|
1708
|
+
|
1709
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_library_masking_format} and then waits for the {OCI::DataSafe::Models::LibraryMaskingFormat} acted upon
|
1710
|
+
# to enter the given state(s).
|
1711
|
+
#
|
1712
|
+
# @param [String] library_masking_format_id The OCID of the library masking format.
|
1713
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::LibraryMaskingFormat#lifecycle_state}
|
1714
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_library_masking_format}
|
1715
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1716
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1717
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1718
|
+
#
|
1719
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type nil
|
1720
|
+
def delete_library_masking_format_and_wait_for_state(library_masking_format_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1721
|
+
initial_get_result = @service_client.get_library_masking_format(library_masking_format_id)
|
1722
|
+
operation_result = @service_client.delete_library_masking_format(library_masking_format_id, base_operation_opts)
|
1723
|
+
|
1724
|
+
return operation_result if wait_for_states.empty?
|
1725
|
+
|
1726
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1727
|
+
|
1728
|
+
begin
|
1729
|
+
waiter_result = initial_get_result.wait_until(
|
1730
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
1731
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1732
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200,
|
1733
|
+
succeed_on_not_found: true
|
1734
|
+
)
|
1735
|
+
result_to_return = waiter_result
|
1736
|
+
|
1737
|
+
return result_to_return
|
1738
|
+
rescue StandardError
|
1739
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1740
|
+
end
|
1741
|
+
end
|
1742
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1743
|
+
# rubocop:enable Layout/EmptyLines
|
1744
|
+
|
1745
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1746
|
+
# rubocop:disable Layout/EmptyLines
|
1747
|
+
|
1748
|
+
|
1749
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_masking_policy} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1750
|
+
# to enter the given state(s).
|
1751
|
+
#
|
1752
|
+
# @param [String] masking_policy_id The OCID of the masking policy.
|
1753
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1754
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_masking_policy}
|
1755
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1756
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1757
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1758
|
+
#
|
1759
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1760
|
+
def delete_masking_policy_and_wait_for_state(masking_policy_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1761
|
+
operation_result = @service_client.delete_masking_policy(masking_policy_id, base_operation_opts)
|
1762
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1763
|
+
|
1764
|
+
return operation_result if wait_for_states.empty? && !use_util
|
1765
|
+
|
1766
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1767
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1768
|
+
|
1769
|
+
begin
|
1770
|
+
if use_util
|
1771
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
1772
|
+
@service_client,
|
1773
|
+
wait_for_resource_id,
|
1774
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1775
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1776
|
+
)
|
1777
|
+
else
|
1778
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
1779
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
1780
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1781
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1782
|
+
)
|
1783
|
+
end
|
1784
|
+
result_to_return = waiter_result
|
1785
|
+
|
1786
|
+
return result_to_return
|
1787
|
+
rescue StandardError
|
1788
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1789
|
+
end
|
1790
|
+
end
|
1791
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1792
|
+
# rubocop:enable Layout/EmptyLines
|
1793
|
+
|
1794
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1795
|
+
# rubocop:disable Layout/EmptyLines
|
1796
|
+
|
1797
|
+
|
1798
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_on_prem_connector} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1799
|
+
# to enter the given state(s).
|
1800
|
+
#
|
1801
|
+
# @param [String] on_prem_connector_id The OCID of the on-premises connector.
|
1802
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1803
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_on_prem_connector}
|
1804
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1805
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1806
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1807
|
+
#
|
1808
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1809
|
+
def delete_on_prem_connector_and_wait_for_state(on_prem_connector_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1810
|
+
operation_result = @service_client.delete_on_prem_connector(on_prem_connector_id, base_operation_opts)
|
1811
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1812
|
+
|
1813
|
+
return operation_result if wait_for_states.empty? && !use_util
|
1814
|
+
|
1815
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1816
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1817
|
+
|
1818
|
+
begin
|
1819
|
+
if use_util
|
1820
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
1821
|
+
@service_client,
|
1822
|
+
wait_for_resource_id,
|
1823
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1824
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1825
|
+
)
|
1826
|
+
else
|
1827
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
1828
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
1829
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1830
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1831
|
+
)
|
1832
|
+
end
|
1833
|
+
result_to_return = waiter_result
|
1834
|
+
|
1835
|
+
return result_to_return
|
1836
|
+
rescue StandardError
|
1837
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1838
|
+
end
|
1839
|
+
end
|
1840
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1841
|
+
# rubocop:enable Layout/EmptyLines
|
1842
|
+
|
1843
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1844
|
+
# rubocop:disable Layout/EmptyLines
|
1845
|
+
|
1846
|
+
|
1847
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_report_definition} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1848
|
+
# to enter the given state(s).
|
1849
|
+
#
|
1850
|
+
# @param [String] report_definition_id Unique report definition identifier
|
1851
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1852
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_report_definition}
|
1853
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1854
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1855
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1856
|
+
#
|
1857
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1858
|
+
def delete_report_definition_and_wait_for_state(report_definition_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1859
|
+
operation_result = @service_client.delete_report_definition(report_definition_id, base_operation_opts)
|
1860
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1861
|
+
|
1862
|
+
return operation_result if wait_for_states.empty? && !use_util
|
1863
|
+
|
1864
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1865
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1866
|
+
|
1867
|
+
begin
|
1868
|
+
if use_util
|
1869
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
1870
|
+
@service_client,
|
1871
|
+
wait_for_resource_id,
|
1872
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1873
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1874
|
+
)
|
1875
|
+
else
|
1876
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
1877
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
1878
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1879
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1880
|
+
)
|
1881
|
+
end
|
1882
|
+
result_to_return = waiter_result
|
1883
|
+
|
1884
|
+
return result_to_return
|
1885
|
+
rescue StandardError
|
1886
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1887
|
+
end
|
1888
|
+
end
|
1889
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1890
|
+
# rubocop:enable Layout/EmptyLines
|
1891
|
+
|
1892
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1893
|
+
# rubocop:disable Layout/EmptyLines
|
1894
|
+
|
1895
|
+
|
1896
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_security_assessment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1897
|
+
# to enter the given state(s).
|
1898
|
+
#
|
1899
|
+
# @param [String] security_assessment_id The OCID of the security assessment.
|
1900
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1901
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_security_assessment}
|
1902
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1903
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1904
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1905
|
+
#
|
1906
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1907
|
+
def delete_security_assessment_and_wait_for_state(security_assessment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1908
|
+
operation_result = @service_client.delete_security_assessment(security_assessment_id, base_operation_opts)
|
1909
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1910
|
+
|
1911
|
+
return operation_result if wait_for_states.empty? && !use_util
|
1912
|
+
|
1913
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1914
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1915
|
+
|
1916
|
+
begin
|
1917
|
+
if use_util
|
1918
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
1919
|
+
@service_client,
|
1920
|
+
wait_for_resource_id,
|
1921
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1922
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1923
|
+
)
|
1924
|
+
else
|
1925
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
1926
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
1927
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1928
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1929
|
+
)
|
1930
|
+
end
|
1931
|
+
result_to_return = waiter_result
|
1932
|
+
|
1933
|
+
return result_to_return
|
1934
|
+
rescue StandardError
|
1935
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1936
|
+
end
|
1937
|
+
end
|
1938
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1939
|
+
# rubocop:enable Layout/EmptyLines
|
1940
|
+
|
1941
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1942
|
+
# rubocop:disable Layout/EmptyLines
|
1943
|
+
|
1944
|
+
|
1945
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_sensitive_data_model} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
1946
|
+
# to enter the given state(s).
|
1947
|
+
#
|
1948
|
+
# @param [String] sensitive_data_model_id The OCID of the sensitive data model.
|
1949
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
1950
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_sensitive_data_model}
|
1951
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1952
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1953
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1954
|
+
#
|
1955
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
1956
|
+
def delete_sensitive_data_model_and_wait_for_state(sensitive_data_model_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1957
|
+
operation_result = @service_client.delete_sensitive_data_model(sensitive_data_model_id, base_operation_opts)
|
1958
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1959
|
+
|
1960
|
+
return operation_result if wait_for_states.empty? && !use_util
|
1961
|
+
|
1962
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1963
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1964
|
+
|
1965
|
+
begin
|
1966
|
+
if use_util
|
1967
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
1968
|
+
@service_client,
|
1969
|
+
wait_for_resource_id,
|
1970
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1971
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1972
|
+
)
|
1973
|
+
else
|
1974
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
1975
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
1976
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1977
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1978
|
+
)
|
1979
|
+
end
|
1980
|
+
result_to_return = waiter_result
|
1981
|
+
|
1982
|
+
return result_to_return
|
1983
|
+
rescue StandardError
|
1984
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1985
|
+
end
|
1986
|
+
end
|
1987
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1988
|
+
# rubocop:enable Layout/EmptyLines
|
1989
|
+
|
1990
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1991
|
+
# rubocop:disable Layout/EmptyLines
|
1992
|
+
|
1993
|
+
|
1994
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_sensitive_type} and then waits for the {OCI::DataSafe::Models::SensitiveType} acted upon
|
1995
|
+
# to enter the given state(s).
|
1996
|
+
#
|
1997
|
+
# @param [String] sensitive_type_id The OCID of the sensitive type.
|
1998
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::SensitiveType#lifecycle_state}
|
1999
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_sensitive_type}
|
2000
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2001
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2002
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2003
|
+
#
|
2004
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type nil
|
2005
|
+
def delete_sensitive_type_and_wait_for_state(sensitive_type_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2006
|
+
initial_get_result = @service_client.get_sensitive_type(sensitive_type_id)
|
2007
|
+
operation_result = @service_client.delete_sensitive_type(sensitive_type_id, base_operation_opts)
|
2008
|
+
|
2009
|
+
return operation_result if wait_for_states.empty?
|
2010
|
+
|
2011
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2012
|
+
|
2013
|
+
begin
|
2014
|
+
waiter_result = initial_get_result.wait_until(
|
2015
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
2016
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2017
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200,
|
2018
|
+
succeed_on_not_found: true
|
2019
|
+
)
|
2020
|
+
result_to_return = waiter_result
|
2021
|
+
|
2022
|
+
return result_to_return
|
2023
|
+
rescue StandardError
|
2024
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2025
|
+
end
|
2026
|
+
end
|
2027
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2028
|
+
# rubocop:enable Layout/EmptyLines
|
2029
|
+
|
2030
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2031
|
+
# rubocop:disable Layout/EmptyLines
|
2032
|
+
|
2033
|
+
|
2034
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_target_alert_policy_association} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2035
|
+
# to enter the given state(s).
|
2036
|
+
#
|
2037
|
+
# @param [String] target_alert_policy_association_id The OCID of the target-alert policy association.
|
2038
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2039
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_target_alert_policy_association}
|
2040
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2041
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2042
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2043
|
+
#
|
2044
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2045
|
+
def delete_target_alert_policy_association_and_wait_for_state(target_alert_policy_association_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2046
|
+
operation_result = @service_client.delete_target_alert_policy_association(target_alert_policy_association_id, base_operation_opts)
|
2047
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2048
|
+
|
2049
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2050
|
+
|
2051
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2052
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2053
|
+
|
2054
|
+
begin
|
2055
|
+
if use_util
|
2056
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2057
|
+
@service_client,
|
2058
|
+
wait_for_resource_id,
|
2059
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2060
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2061
|
+
)
|
2062
|
+
else
|
2063
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2064
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2065
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2066
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2067
|
+
)
|
2068
|
+
end
|
2069
|
+
result_to_return = waiter_result
|
2070
|
+
|
2071
|
+
return result_to_return
|
2072
|
+
rescue StandardError
|
2073
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2074
|
+
end
|
2075
|
+
end
|
2076
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2077
|
+
# rubocop:enable Layout/EmptyLines
|
2078
|
+
|
2079
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2080
|
+
# rubocop:disable Layout/EmptyLines
|
2081
|
+
|
2082
|
+
|
2083
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_target_database} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2084
|
+
# to enter the given state(s).
|
2085
|
+
#
|
2086
|
+
# @param [String] target_database_id The OCID of the Data Safe target database.
|
2087
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2088
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_target_database}
|
2089
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2090
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2091
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2092
|
+
#
|
2093
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2094
|
+
def delete_target_database_and_wait_for_state(target_database_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2095
|
+
operation_result = @service_client.delete_target_database(target_database_id, base_operation_opts)
|
2096
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2097
|
+
|
2098
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2099
|
+
|
2100
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2101
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2102
|
+
|
2103
|
+
begin
|
2104
|
+
if use_util
|
2105
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2106
|
+
@service_client,
|
2107
|
+
wait_for_resource_id,
|
2108
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2109
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2110
|
+
)
|
2111
|
+
else
|
2112
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2113
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2114
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2115
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2116
|
+
)
|
2117
|
+
end
|
2118
|
+
result_to_return = waiter_result
|
2119
|
+
|
2120
|
+
return result_to_return
|
2121
|
+
rescue StandardError
|
2122
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2123
|
+
end
|
2124
|
+
end
|
2125
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2126
|
+
# rubocop:enable Layout/EmptyLines
|
2127
|
+
|
2128
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2129
|
+
# rubocop:disable Layout/EmptyLines
|
2130
|
+
|
2131
|
+
|
2132
|
+
# Calls {OCI::DataSafe::DataSafeClient#delete_user_assessment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2133
|
+
# to enter the given state(s).
|
2134
|
+
#
|
2135
|
+
# @param [String] user_assessment_id The OCID of the user assessment.
|
2136
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2137
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#delete_user_assessment}
|
2138
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2139
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2140
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2141
|
+
#
|
2142
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2143
|
+
def delete_user_assessment_and_wait_for_state(user_assessment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2144
|
+
operation_result = @service_client.delete_user_assessment(user_assessment_id, base_operation_opts)
|
2145
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2146
|
+
|
2147
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2148
|
+
|
2149
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2150
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2151
|
+
|
2152
|
+
begin
|
2153
|
+
if use_util
|
2154
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2155
|
+
@service_client,
|
2156
|
+
wait_for_resource_id,
|
2157
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2158
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2159
|
+
)
|
2160
|
+
else
|
2161
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2162
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2163
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2164
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2165
|
+
)
|
2166
|
+
end
|
2167
|
+
result_to_return = waiter_result
|
2168
|
+
|
2169
|
+
return result_to_return
|
2170
|
+
rescue StandardError
|
2171
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2172
|
+
end
|
2173
|
+
end
|
2174
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2175
|
+
# rubocop:enable Layout/EmptyLines
|
2176
|
+
|
2177
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2178
|
+
# rubocop:disable Layout/EmptyLines
|
2179
|
+
|
2180
|
+
|
2181
|
+
# Calls {OCI::DataSafe::DataSafeClient#discover_audit_trails} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2182
|
+
# to enter the given state(s).
|
2183
|
+
#
|
2184
|
+
# @param [String] audit_profile_id The OCID of the audit.
|
2185
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2186
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#discover_audit_trails}
|
2187
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2188
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2189
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2190
|
+
#
|
2191
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2192
|
+
def discover_audit_trails_and_wait_for_state(audit_profile_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2193
|
+
operation_result = @service_client.discover_audit_trails(audit_profile_id, base_operation_opts)
|
2194
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2195
|
+
|
2196
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2197
|
+
|
2198
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2199
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2200
|
+
|
2201
|
+
begin
|
2202
|
+
if use_util
|
2203
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2204
|
+
@service_client,
|
2205
|
+
wait_for_resource_id,
|
2206
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2207
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2208
|
+
)
|
2209
|
+
else
|
2210
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2211
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2212
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2213
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2214
|
+
)
|
2215
|
+
end
|
2216
|
+
result_to_return = waiter_result
|
2217
|
+
|
2218
|
+
return result_to_return
|
2219
|
+
rescue StandardError
|
2220
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2221
|
+
end
|
2222
|
+
end
|
2223
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2224
|
+
# rubocop:enable Layout/EmptyLines
|
2225
|
+
|
2226
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2227
|
+
# rubocop:disable Layout/EmptyLines
|
2228
|
+
|
2229
|
+
|
2230
|
+
# Calls {OCI::DataSafe::DataSafeClient#enable_data_safe_configuration} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2231
|
+
# to enter the given state(s).
|
2232
|
+
#
|
2233
|
+
# @param [OCI::DataSafe::Models::EnableDataSafeConfigurationDetails] enable_data_safe_configuration_details The details used to enable Data Safe.
|
2234
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2235
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#enable_data_safe_configuration}
|
2236
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2237
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2238
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2239
|
+
#
|
2240
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2241
|
+
def enable_data_safe_configuration_and_wait_for_state(enable_data_safe_configuration_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2242
|
+
operation_result = @service_client.enable_data_safe_configuration(enable_data_safe_configuration_details, base_operation_opts)
|
2243
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2244
|
+
|
2245
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2246
|
+
|
2247
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2248
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2249
|
+
|
2250
|
+
begin
|
2251
|
+
if use_util
|
2252
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2253
|
+
@service_client,
|
2254
|
+
wait_for_resource_id,
|
2255
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2256
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2257
|
+
)
|
2258
|
+
else
|
2259
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2260
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2261
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2262
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2263
|
+
)
|
2264
|
+
end
|
2265
|
+
result_to_return = waiter_result
|
2266
|
+
|
2267
|
+
return result_to_return
|
2268
|
+
rescue StandardError
|
2269
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2270
|
+
end
|
2271
|
+
end
|
2272
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2273
|
+
# rubocop:enable Layout/EmptyLines
|
2274
|
+
|
2275
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2276
|
+
# rubocop:disable Layout/EmptyLines
|
2277
|
+
|
2278
|
+
|
2279
|
+
# Calls {OCI::DataSafe::DataSafeClient#generate_discovery_report_for_download} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2280
|
+
# to enter the given state(s).
|
2281
|
+
#
|
2282
|
+
# @param [String] sensitive_data_model_id The OCID of the sensitive data model.
|
2283
|
+
# @param [OCI::DataSafe::Models::GenerateDiscoveryReportForDownloadDetails] generate_discovery_report_for_download_details Details to generate a downloadable discovery report.
|
2284
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2285
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#generate_discovery_report_for_download}
|
2286
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2287
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2288
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2289
|
+
#
|
2290
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2291
|
+
def generate_discovery_report_for_download_and_wait_for_state(sensitive_data_model_id, generate_discovery_report_for_download_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2292
|
+
operation_result = @service_client.generate_discovery_report_for_download(sensitive_data_model_id, generate_discovery_report_for_download_details, base_operation_opts)
|
2293
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2294
|
+
|
2295
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2296
|
+
|
2297
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2298
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2299
|
+
|
2300
|
+
begin
|
2301
|
+
if use_util
|
2302
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2303
|
+
@service_client,
|
2304
|
+
wait_for_resource_id,
|
2305
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2306
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2307
|
+
)
|
2308
|
+
else
|
2309
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2310
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2311
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2312
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2313
|
+
)
|
2314
|
+
end
|
2315
|
+
result_to_return = waiter_result
|
2316
|
+
|
2317
|
+
return result_to_return
|
2318
|
+
rescue StandardError
|
2319
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2320
|
+
end
|
2321
|
+
end
|
2322
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2323
|
+
# rubocop:enable Layout/EmptyLines
|
2324
|
+
|
2325
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2326
|
+
# rubocop:disable Layout/EmptyLines
|
2327
|
+
|
2328
|
+
|
2329
|
+
# Calls {OCI::DataSafe::DataSafeClient#generate_masking_policy_for_download} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2330
|
+
# to enter the given state(s).
|
2331
|
+
#
|
2332
|
+
# @param [String] masking_policy_id The OCID of the masking policy.
|
2333
|
+
# @param [OCI::DataSafe::Models::GenerateMaskingPolicyForDownloadDetails] generate_masking_policy_for_download_details Details to generate a masking policy file.
|
2334
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2335
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#generate_masking_policy_for_download}
|
2336
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2337
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2338
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2339
|
+
#
|
2340
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2341
|
+
def generate_masking_policy_for_download_and_wait_for_state(masking_policy_id, generate_masking_policy_for_download_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2342
|
+
operation_result = @service_client.generate_masking_policy_for_download(masking_policy_id, generate_masking_policy_for_download_details, base_operation_opts)
|
2343
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2344
|
+
|
2345
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2346
|
+
|
2347
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2348
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2349
|
+
|
2350
|
+
begin
|
2351
|
+
if use_util
|
2352
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2353
|
+
@service_client,
|
2354
|
+
wait_for_resource_id,
|
2355
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2356
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2357
|
+
)
|
2358
|
+
else
|
2359
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2360
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2361
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2362
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2363
|
+
)
|
2364
|
+
end
|
2365
|
+
result_to_return = waiter_result
|
2366
|
+
|
2367
|
+
return result_to_return
|
2368
|
+
rescue StandardError
|
2369
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2370
|
+
end
|
2371
|
+
end
|
2372
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2373
|
+
# rubocop:enable Layout/EmptyLines
|
2374
|
+
|
2375
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2376
|
+
# rubocop:disable Layout/EmptyLines
|
2377
|
+
|
2378
|
+
|
2379
|
+
# Calls {OCI::DataSafe::DataSafeClient#generate_masking_report_for_download} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2380
|
+
# to enter the given state(s).
|
2381
|
+
#
|
2382
|
+
# @param [String] masking_policy_id The OCID of the masking policy.
|
2383
|
+
# @param [OCI::DataSafe::Models::GenerateMaskingReportForDownloadDetails] generate_masking_report_for_download_details Details to generate a downloadable masking report.
|
2384
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2385
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#generate_masking_report_for_download}
|
2386
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2387
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2388
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2389
|
+
#
|
2390
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2391
|
+
def generate_masking_report_for_download_and_wait_for_state(masking_policy_id, generate_masking_report_for_download_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2392
|
+
operation_result = @service_client.generate_masking_report_for_download(masking_policy_id, generate_masking_report_for_download_details, base_operation_opts)
|
2393
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2394
|
+
|
2395
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2396
|
+
|
2397
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2398
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2399
|
+
|
2400
|
+
begin
|
2401
|
+
if use_util
|
2402
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2403
|
+
@service_client,
|
2404
|
+
wait_for_resource_id,
|
2405
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2406
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2407
|
+
)
|
2408
|
+
else
|
2409
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2410
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2411
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2412
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2413
|
+
)
|
2414
|
+
end
|
2415
|
+
result_to_return = waiter_result
|
2416
|
+
|
2417
|
+
return result_to_return
|
2418
|
+
rescue StandardError
|
2419
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2420
|
+
end
|
2421
|
+
end
|
2422
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2423
|
+
# rubocop:enable Layout/EmptyLines
|
2424
|
+
|
2425
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2426
|
+
# rubocop:disable Layout/EmptyLines
|
2427
|
+
|
2428
|
+
|
2429
|
+
# Calls {OCI::DataSafe::DataSafeClient#generate_report} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2430
|
+
# to enter the given state(s).
|
2431
|
+
#
|
2432
|
+
# @param [String] report_definition_id Unique report definition identifier
|
2433
|
+
# @param [OCI::DataSafe::Models::GenerateReportDetails] generate_report_details Details for report generation. It contains details such as PDF/XLS and filter parameters like audit event time limits, number of rows and target databases etc
|
2434
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2435
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#generate_report}
|
2436
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2437
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2438
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2439
|
+
#
|
2440
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2441
|
+
def generate_report_and_wait_for_state(report_definition_id, generate_report_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2442
|
+
operation_result = @service_client.generate_report(report_definition_id, generate_report_details, base_operation_opts)
|
2443
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2444
|
+
|
2445
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2446
|
+
|
2447
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2448
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2449
|
+
|
2450
|
+
begin
|
2451
|
+
if use_util
|
2452
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2453
|
+
@service_client,
|
2454
|
+
wait_for_resource_id,
|
2455
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2456
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2457
|
+
)
|
2458
|
+
else
|
2459
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2460
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2461
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2462
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2463
|
+
)
|
2464
|
+
end
|
2465
|
+
result_to_return = waiter_result
|
2466
|
+
|
2467
|
+
return result_to_return
|
2468
|
+
rescue StandardError
|
2469
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2470
|
+
end
|
2471
|
+
end
|
2472
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2473
|
+
# rubocop:enable Layout/EmptyLines
|
2474
|
+
|
2475
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2476
|
+
# rubocop:disable Layout/EmptyLines
|
2477
|
+
|
2478
|
+
|
2479
|
+
# Calls {OCI::DataSafe::DataSafeClient#generate_security_assessment_report} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2480
|
+
# to enter the given state(s).
|
2481
|
+
#
|
2482
|
+
# @param [String] security_assessment_id The OCID of the security assessment.
|
2483
|
+
# @param [OCI::DataSafe::Models::GenerateSecurityAssessmentReportDetails] generate_security_assessment_report_details Details of the report.
|
2484
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2485
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#generate_security_assessment_report}
|
2486
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2487
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2488
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2489
|
+
#
|
2490
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2491
|
+
def generate_security_assessment_report_and_wait_for_state(security_assessment_id, generate_security_assessment_report_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2492
|
+
operation_result = @service_client.generate_security_assessment_report(security_assessment_id, generate_security_assessment_report_details, base_operation_opts)
|
2493
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2494
|
+
|
2495
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2496
|
+
|
2497
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2498
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2499
|
+
|
2500
|
+
begin
|
2501
|
+
if use_util
|
2502
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2503
|
+
@service_client,
|
2504
|
+
wait_for_resource_id,
|
2505
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2506
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2507
|
+
)
|
2508
|
+
else
|
2509
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2510
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2511
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2512
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2513
|
+
)
|
2514
|
+
end
|
2515
|
+
result_to_return = waiter_result
|
2516
|
+
|
2517
|
+
return result_to_return
|
2518
|
+
rescue StandardError
|
2519
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2520
|
+
end
|
2521
|
+
end
|
2522
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2523
|
+
# rubocop:enable Layout/EmptyLines
|
2524
|
+
|
2525
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2526
|
+
# rubocop:disable Layout/EmptyLines
|
2527
|
+
|
2528
|
+
|
2529
|
+
# Calls {OCI::DataSafe::DataSafeClient#generate_sensitive_data_model_for_download} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2530
|
+
# to enter the given state(s).
|
2531
|
+
#
|
2532
|
+
# @param [String] sensitive_data_model_id The OCID of the sensitive data model.
|
2533
|
+
# @param [OCI::DataSafe::Models::GenerateSensitiveDataModelForDownloadDetails] generate_sensitive_data_model_for_download_details Details to generate a sensitive data model file.
|
2534
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2535
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#generate_sensitive_data_model_for_download}
|
2536
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2537
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2538
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2539
|
+
#
|
2540
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2541
|
+
def generate_sensitive_data_model_for_download_and_wait_for_state(sensitive_data_model_id, generate_sensitive_data_model_for_download_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2542
|
+
operation_result = @service_client.generate_sensitive_data_model_for_download(sensitive_data_model_id, generate_sensitive_data_model_for_download_details, base_operation_opts)
|
2543
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2544
|
+
|
2545
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2546
|
+
|
2547
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2548
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2549
|
+
|
2550
|
+
begin
|
2551
|
+
if use_util
|
2552
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2553
|
+
@service_client,
|
2554
|
+
wait_for_resource_id,
|
2555
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2556
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2557
|
+
)
|
2558
|
+
else
|
2559
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2560
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2561
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2562
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2563
|
+
)
|
2564
|
+
end
|
2565
|
+
result_to_return = waiter_result
|
2566
|
+
|
2567
|
+
return result_to_return
|
2568
|
+
rescue StandardError
|
2569
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2570
|
+
end
|
2571
|
+
end
|
2572
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2573
|
+
# rubocop:enable Layout/EmptyLines
|
2574
|
+
|
2575
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2576
|
+
# rubocop:disable Layout/EmptyLines
|
2577
|
+
|
2578
|
+
|
2579
|
+
# Calls {OCI::DataSafe::DataSafeClient#generate_user_assessment_report} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2580
|
+
# to enter the given state(s).
|
2581
|
+
#
|
2582
|
+
# @param [String] user_assessment_id The OCID of the user assessment.
|
2583
|
+
# @param [OCI::DataSafe::Models::GenerateUserAssessmentReportDetails] generate_user_assessment_report_details Details of the report.
|
2584
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2585
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#generate_user_assessment_report}
|
2586
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2587
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2588
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2589
|
+
#
|
2590
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2591
|
+
def generate_user_assessment_report_and_wait_for_state(user_assessment_id, generate_user_assessment_report_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2592
|
+
operation_result = @service_client.generate_user_assessment_report(user_assessment_id, generate_user_assessment_report_details, base_operation_opts)
|
2593
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2594
|
+
|
2595
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2596
|
+
|
2597
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2598
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2599
|
+
|
2600
|
+
begin
|
2601
|
+
if use_util
|
2602
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2603
|
+
@service_client,
|
2604
|
+
wait_for_resource_id,
|
2605
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2606
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2607
|
+
)
|
2608
|
+
else
|
2609
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2610
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2611
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2612
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2613
|
+
)
|
2614
|
+
end
|
2615
|
+
result_to_return = waiter_result
|
2616
|
+
|
2617
|
+
return result_to_return
|
2618
|
+
rescue StandardError
|
2619
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2620
|
+
end
|
2621
|
+
end
|
2622
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2623
|
+
# rubocop:enable Layout/EmptyLines
|
2624
|
+
|
2625
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2626
|
+
# rubocop:disable Layout/EmptyLines
|
2627
|
+
|
2628
|
+
|
2629
|
+
# Calls {OCI::DataSafe::DataSafeClient#mask_data} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2630
|
+
# to enter the given state(s).
|
2631
|
+
#
|
2632
|
+
# @param [String] masking_policy_id The OCID of the masking policy.
|
2633
|
+
# @param [OCI::DataSafe::Models::MaskDataDetails] mask_data_details Details to mask data.
|
2634
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2635
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#mask_data}
|
2636
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2637
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2638
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2639
|
+
#
|
2640
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2641
|
+
def mask_data_and_wait_for_state(masking_policy_id, mask_data_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2642
|
+
operation_result = @service_client.mask_data(masking_policy_id, mask_data_details, base_operation_opts)
|
2643
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2644
|
+
|
2645
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2646
|
+
|
2647
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2648
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2649
|
+
|
2650
|
+
begin
|
2651
|
+
if use_util
|
2652
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2653
|
+
@service_client,
|
2654
|
+
wait_for_resource_id,
|
2655
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2656
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2657
|
+
)
|
2658
|
+
else
|
2659
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2660
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2661
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2662
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2663
|
+
)
|
2664
|
+
end
|
2665
|
+
result_to_return = waiter_result
|
2666
|
+
|
2667
|
+
return result_to_return
|
2668
|
+
rescue StandardError
|
2669
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2670
|
+
end
|
2671
|
+
end
|
2672
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2673
|
+
# rubocop:enable Layout/EmptyLines
|
2674
|
+
|
2675
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2676
|
+
# rubocop:disable Layout/EmptyLines
|
2677
|
+
|
2678
|
+
|
2679
|
+
# Calls {OCI::DataSafe::DataSafeClient#modify_global_settings} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2680
|
+
# to enter the given state(s).
|
2681
|
+
#
|
2682
|
+
# @param [OCI::DataSafe::Models::ModifyGlobalSettingsDetails] modify_global_settings_details The details used to update global settings in Data Safe.
|
2683
|
+
# @param [String] compartment_id The OCID of the compartment.
|
2684
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2685
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#modify_global_settings}
|
2686
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2687
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2688
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2689
|
+
#
|
2690
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2691
|
+
def modify_global_settings_and_wait_for_state(modify_global_settings_details, compartment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2692
|
+
operation_result = @service_client.modify_global_settings(modify_global_settings_details, compartment_id, base_operation_opts)
|
2693
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2694
|
+
|
2695
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2696
|
+
|
2697
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2698
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2699
|
+
|
2700
|
+
begin
|
2701
|
+
if use_util
|
2702
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2703
|
+
@service_client,
|
2704
|
+
wait_for_resource_id,
|
2705
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2706
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2707
|
+
)
|
2708
|
+
else
|
2709
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2710
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2711
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2712
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2713
|
+
)
|
2714
|
+
end
|
2715
|
+
result_to_return = waiter_result
|
2716
|
+
|
2717
|
+
return result_to_return
|
2718
|
+
rescue StandardError
|
2719
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2720
|
+
end
|
2721
|
+
end
|
2722
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2723
|
+
# rubocop:enable Layout/EmptyLines
|
2724
|
+
|
2725
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2726
|
+
# rubocop:disable Layout/EmptyLines
|
2727
|
+
|
2728
|
+
|
2729
|
+
# Calls {OCI::DataSafe::DataSafeClient#patch_alerts} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2730
|
+
# to enter the given state(s).
|
2731
|
+
#
|
2732
|
+
# @param [OCI::DataSafe::Models::PatchAlertsDetails] patch_alerts_details Details to patch alerts.
|
2733
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2734
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#patch_alerts}
|
2735
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2736
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2737
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2738
|
+
#
|
2739
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2740
|
+
def patch_alerts_and_wait_for_state(patch_alerts_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2741
|
+
operation_result = @service_client.patch_alerts(patch_alerts_details, base_operation_opts)
|
2742
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2743
|
+
|
2744
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2745
|
+
|
2746
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2747
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2748
|
+
|
2749
|
+
begin
|
2750
|
+
if use_util
|
2751
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2752
|
+
@service_client,
|
2753
|
+
wait_for_resource_id,
|
2754
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2755
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2756
|
+
)
|
2757
|
+
else
|
2758
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2759
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2760
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2761
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2762
|
+
)
|
2763
|
+
end
|
2764
|
+
result_to_return = waiter_result
|
2765
|
+
|
2766
|
+
return result_to_return
|
2767
|
+
rescue StandardError
|
2768
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2769
|
+
end
|
2770
|
+
end
|
2771
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2772
|
+
# rubocop:enable Layout/EmptyLines
|
2773
|
+
|
2774
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2775
|
+
# rubocop:disable Layout/EmptyLines
|
2776
|
+
|
2777
|
+
|
2778
|
+
# Calls {OCI::DataSafe::DataSafeClient#patch_discovery_job_results} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2779
|
+
# to enter the given state(s).
|
2780
|
+
#
|
2781
|
+
# @param [String] discovery_job_id The OCID of the discovery job.
|
2782
|
+
# @param [OCI::DataSafe::Models::PatchDiscoveryJobResultDetails] patch_discovery_job_result_details Details to patch discovery results.
|
2783
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2784
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#patch_discovery_job_results}
|
2785
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2786
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2787
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2788
|
+
#
|
2789
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2790
|
+
def patch_discovery_job_results_and_wait_for_state(discovery_job_id, patch_discovery_job_result_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2791
|
+
operation_result = @service_client.patch_discovery_job_results(discovery_job_id, patch_discovery_job_result_details, base_operation_opts)
|
2792
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2793
|
+
|
2794
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2795
|
+
|
2796
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2797
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2798
|
+
|
2799
|
+
begin
|
2800
|
+
if use_util
|
2801
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2802
|
+
@service_client,
|
2803
|
+
wait_for_resource_id,
|
2804
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2805
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2806
|
+
)
|
2807
|
+
else
|
2808
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2809
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2810
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2811
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2812
|
+
)
|
2813
|
+
end
|
2814
|
+
result_to_return = waiter_result
|
2815
|
+
|
2816
|
+
return result_to_return
|
2817
|
+
rescue StandardError
|
2818
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2819
|
+
end
|
2820
|
+
end
|
2821
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2822
|
+
# rubocop:enable Layout/EmptyLines
|
2823
|
+
|
2824
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2825
|
+
# rubocop:disable Layout/EmptyLines
|
2826
|
+
|
2827
|
+
|
2828
|
+
# Calls {OCI::DataSafe::DataSafeClient#patch_masking_columns} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2829
|
+
# to enter the given state(s).
|
2830
|
+
#
|
2831
|
+
# @param [String] masking_policy_id The OCID of the masking policy.
|
2832
|
+
# @param [OCI::DataSafe::Models::PatchMaskingColumnsDetails] patch_masking_columns_details Details to patch masking columns.
|
2833
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2834
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#patch_masking_columns}
|
2835
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2836
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2837
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2838
|
+
#
|
2839
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2840
|
+
def patch_masking_columns_and_wait_for_state(masking_policy_id, patch_masking_columns_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2841
|
+
operation_result = @service_client.patch_masking_columns(masking_policy_id, patch_masking_columns_details, base_operation_opts)
|
2842
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2843
|
+
|
2844
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2845
|
+
|
2846
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2847
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2848
|
+
|
2849
|
+
begin
|
2850
|
+
if use_util
|
2851
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2852
|
+
@service_client,
|
2853
|
+
wait_for_resource_id,
|
2854
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2855
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2856
|
+
)
|
2857
|
+
else
|
2858
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2859
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2860
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2861
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2862
|
+
)
|
2863
|
+
end
|
2864
|
+
result_to_return = waiter_result
|
2865
|
+
|
2866
|
+
return result_to_return
|
2867
|
+
rescue StandardError
|
2868
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2869
|
+
end
|
2870
|
+
end
|
2871
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2872
|
+
# rubocop:enable Layout/EmptyLines
|
2873
|
+
|
2874
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2875
|
+
# rubocop:disable Layout/EmptyLines
|
2876
|
+
|
2877
|
+
|
2878
|
+
# Calls {OCI::DataSafe::DataSafeClient#patch_sensitive_columns} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2879
|
+
# to enter the given state(s).
|
2880
|
+
#
|
2881
|
+
# @param [String] sensitive_data_model_id The OCID of the sensitive data model.
|
2882
|
+
# @param [OCI::DataSafe::Models::PatchSensitiveColumnDetails] patch_sensitive_column_details Details to patch sensitive columns.
|
2883
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2884
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#patch_sensitive_columns}
|
2885
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2886
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2887
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2888
|
+
#
|
2889
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2890
|
+
def patch_sensitive_columns_and_wait_for_state(sensitive_data_model_id, patch_sensitive_column_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2891
|
+
operation_result = @service_client.patch_sensitive_columns(sensitive_data_model_id, patch_sensitive_column_details, base_operation_opts)
|
2892
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2893
|
+
|
2894
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2895
|
+
|
2896
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2897
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2898
|
+
|
2899
|
+
begin
|
2900
|
+
if use_util
|
2901
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2902
|
+
@service_client,
|
2903
|
+
wait_for_resource_id,
|
2904
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2905
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2906
|
+
)
|
2907
|
+
else
|
2908
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2909
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2910
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2911
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2912
|
+
)
|
2913
|
+
end
|
2914
|
+
result_to_return = waiter_result
|
2915
|
+
|
2916
|
+
return result_to_return
|
2917
|
+
rescue StandardError
|
2918
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2919
|
+
end
|
2920
|
+
end
|
2921
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2922
|
+
# rubocop:enable Layout/EmptyLines
|
2923
|
+
|
2924
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2925
|
+
# rubocop:disable Layout/EmptyLines
|
2926
|
+
|
2927
|
+
|
2928
|
+
# Calls {OCI::DataSafe::DataSafeClient#provision_audit_policy} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2929
|
+
# to enter the given state(s).
|
2930
|
+
#
|
2931
|
+
# @param [OCI::DataSafe::Models::ProvisionAuditPolicyDetails] provision_audit_policy_details Details for provisioning the given policies on the source target database.
|
2932
|
+
# @param [String] audit_policy_id Unique audit policy identifier.
|
2933
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2934
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#provision_audit_policy}
|
2935
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2936
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2937
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2938
|
+
#
|
2939
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2940
|
+
def provision_audit_policy_and_wait_for_state(provision_audit_policy_details, audit_policy_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2941
|
+
operation_result = @service_client.provision_audit_policy(provision_audit_policy_details, audit_policy_id, base_operation_opts)
|
2942
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2943
|
+
|
2944
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2945
|
+
|
2946
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2947
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2948
|
+
|
2949
|
+
begin
|
2950
|
+
if use_util
|
2951
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
2952
|
+
@service_client,
|
2953
|
+
wait_for_resource_id,
|
2954
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2955
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2956
|
+
)
|
2957
|
+
else
|
2958
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
2959
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
2960
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
2961
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
2962
|
+
)
|
2963
|
+
end
|
2964
|
+
result_to_return = waiter_result
|
2965
|
+
|
2966
|
+
return result_to_return
|
2967
|
+
rescue StandardError
|
2968
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
2969
|
+
end
|
2970
|
+
end
|
2971
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2972
|
+
# rubocop:enable Layout/EmptyLines
|
2973
|
+
|
2974
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
2975
|
+
# rubocop:disable Layout/EmptyLines
|
2976
|
+
|
2977
|
+
|
2978
|
+
# Calls {OCI::DataSafe::DataSafeClient#refresh_security_assessment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
2979
|
+
# to enter the given state(s).
|
2980
|
+
#
|
2981
|
+
# @param [String] security_assessment_id The OCID of the security assessment.
|
2982
|
+
# @param [OCI::DataSafe::Models::RunSecurityAssessmentDetails] run_security_assessment_details Details to create an on-demand saved security assessment.
|
2983
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
2984
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#refresh_security_assessment}
|
2985
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
2986
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
2987
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
2988
|
+
#
|
2989
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
2990
|
+
def refresh_security_assessment_and_wait_for_state(security_assessment_id, run_security_assessment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
2991
|
+
operation_result = @service_client.refresh_security_assessment(security_assessment_id, run_security_assessment_details, base_operation_opts)
|
2992
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
2993
|
+
|
2994
|
+
return operation_result if wait_for_states.empty? && !use_util
|
2995
|
+
|
2996
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
2997
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2998
|
+
|
2999
|
+
begin
|
3000
|
+
if use_util
|
3001
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3002
|
+
@service_client,
|
3003
|
+
wait_for_resource_id,
|
3004
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3005
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3006
|
+
)
|
3007
|
+
else
|
3008
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3009
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3010
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3011
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3012
|
+
)
|
3013
|
+
end
|
3014
|
+
result_to_return = waiter_result
|
3015
|
+
|
3016
|
+
return result_to_return
|
3017
|
+
rescue StandardError
|
3018
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3019
|
+
end
|
3020
|
+
end
|
3021
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3022
|
+
# rubocop:enable Layout/EmptyLines
|
3023
|
+
|
3024
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3025
|
+
# rubocop:disable Layout/EmptyLines
|
3026
|
+
|
3027
|
+
|
3028
|
+
# Calls {OCI::DataSafe::DataSafeClient#refresh_user_assessment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3029
|
+
# to enter the given state(s).
|
3030
|
+
#
|
3031
|
+
# @param [String] user_assessment_id The OCID of the user assessment.
|
3032
|
+
# @param [OCI::DataSafe::Models::RunUserAssessmentDetails] run_user_assessment_details The details required to create an on-demand saved user assessment.
|
3033
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3034
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#refresh_user_assessment}
|
3035
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3036
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3037
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3038
|
+
#
|
3039
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3040
|
+
def refresh_user_assessment_and_wait_for_state(user_assessment_id, run_user_assessment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3041
|
+
operation_result = @service_client.refresh_user_assessment(user_assessment_id, run_user_assessment_details, base_operation_opts)
|
3042
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3043
|
+
|
3044
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3045
|
+
|
3046
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3047
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3048
|
+
|
3049
|
+
begin
|
3050
|
+
if use_util
|
3051
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3052
|
+
@service_client,
|
3053
|
+
wait_for_resource_id,
|
3054
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3055
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3056
|
+
)
|
3057
|
+
else
|
3058
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3059
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3060
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3061
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3062
|
+
)
|
3063
|
+
end
|
3064
|
+
result_to_return = waiter_result
|
3065
|
+
|
3066
|
+
return result_to_return
|
3067
|
+
rescue StandardError
|
3068
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3069
|
+
end
|
3070
|
+
end
|
3071
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3072
|
+
# rubocop:enable Layout/EmptyLines
|
3073
|
+
|
3074
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3075
|
+
# rubocop:disable Layout/EmptyLines
|
3076
|
+
|
3077
|
+
|
3078
|
+
# Calls {OCI::DataSafe::DataSafeClient#resume_audit_trail} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3079
|
+
# to enter the given state(s).
|
3080
|
+
#
|
3081
|
+
# @param [String] audit_trail_id The OCID of the audit trail.
|
3082
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3083
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#resume_audit_trail}
|
3084
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3085
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3086
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3087
|
+
#
|
3088
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3089
|
+
def resume_audit_trail_and_wait_for_state(audit_trail_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3090
|
+
operation_result = @service_client.resume_audit_trail(audit_trail_id, base_operation_opts)
|
3091
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3092
|
+
|
3093
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3094
|
+
|
3095
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3096
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3097
|
+
|
3098
|
+
begin
|
3099
|
+
if use_util
|
3100
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3101
|
+
@service_client,
|
3102
|
+
wait_for_resource_id,
|
3103
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3104
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3105
|
+
)
|
3106
|
+
else
|
3107
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3108
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3109
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3110
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3111
|
+
)
|
3112
|
+
end
|
3113
|
+
result_to_return = waiter_result
|
3114
|
+
|
3115
|
+
return result_to_return
|
3116
|
+
rescue StandardError
|
3117
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3118
|
+
end
|
3119
|
+
end
|
3120
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3121
|
+
# rubocop:enable Layout/EmptyLines
|
3122
|
+
|
3123
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3124
|
+
# rubocop:disable Layout/EmptyLines
|
3125
|
+
|
3126
|
+
|
3127
|
+
# Calls {OCI::DataSafe::DataSafeClient#retrieve_audit_policies} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3128
|
+
# to enter the given state(s).
|
3129
|
+
#
|
3130
|
+
# @param [String] audit_policy_id Unique audit policy identifier.
|
3131
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3132
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#retrieve_audit_policies}
|
3133
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3134
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3135
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3136
|
+
#
|
3137
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3138
|
+
def retrieve_audit_policies_and_wait_for_state(audit_policy_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3139
|
+
operation_result = @service_client.retrieve_audit_policies(audit_policy_id, base_operation_opts)
|
3140
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3141
|
+
|
3142
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3143
|
+
|
3144
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3145
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3146
|
+
|
3147
|
+
begin
|
3148
|
+
if use_util
|
3149
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3150
|
+
@service_client,
|
3151
|
+
wait_for_resource_id,
|
3152
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3153
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3154
|
+
)
|
3155
|
+
else
|
3156
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3157
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3158
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3159
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3160
|
+
)
|
3161
|
+
end
|
3162
|
+
result_to_return = waiter_result
|
3163
|
+
|
3164
|
+
return result_to_return
|
3165
|
+
rescue StandardError
|
3166
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3167
|
+
end
|
3168
|
+
end
|
3169
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3170
|
+
# rubocop:enable Layout/EmptyLines
|
3171
|
+
|
3172
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3173
|
+
# rubocop:disable Layout/EmptyLines
|
3174
|
+
|
3175
|
+
|
3176
|
+
# Calls {OCI::DataSafe::DataSafeClient#set_security_assessment_baseline} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3177
|
+
# to enter the given state(s).
|
3178
|
+
#
|
3179
|
+
# @param [String] security_assessment_id The OCID of the security assessment.
|
3180
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3181
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#set_security_assessment_baseline}
|
3182
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3183
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3184
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3185
|
+
#
|
3186
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3187
|
+
def set_security_assessment_baseline_and_wait_for_state(security_assessment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3188
|
+
operation_result = @service_client.set_security_assessment_baseline(security_assessment_id, base_operation_opts)
|
3189
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3190
|
+
|
3191
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3192
|
+
|
3193
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3194
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3195
|
+
|
3196
|
+
begin
|
3197
|
+
if use_util
|
3198
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3199
|
+
@service_client,
|
3200
|
+
wait_for_resource_id,
|
3201
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3202
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3203
|
+
)
|
3204
|
+
else
|
3205
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3206
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3207
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3208
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3209
|
+
)
|
3210
|
+
end
|
3211
|
+
result_to_return = waiter_result
|
3212
|
+
|
3213
|
+
return result_to_return
|
3214
|
+
rescue StandardError
|
3215
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3216
|
+
end
|
3217
|
+
end
|
3218
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3219
|
+
# rubocop:enable Layout/EmptyLines
|
3220
|
+
|
3221
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3222
|
+
# rubocop:disable Layout/EmptyLines
|
3223
|
+
|
3224
|
+
|
3225
|
+
# Calls {OCI::DataSafe::DataSafeClient#set_user_assessment_baseline} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3226
|
+
# to enter the given state(s).
|
3227
|
+
#
|
3228
|
+
# @param [String] user_assessment_id The OCID of the user assessment.
|
3229
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3230
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#set_user_assessment_baseline}
|
3231
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3232
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3233
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3234
|
+
#
|
3235
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3236
|
+
def set_user_assessment_baseline_and_wait_for_state(user_assessment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3237
|
+
operation_result = @service_client.set_user_assessment_baseline(user_assessment_id, base_operation_opts)
|
3238
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3239
|
+
|
3240
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3241
|
+
|
3242
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3243
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3244
|
+
|
3245
|
+
begin
|
3246
|
+
if use_util
|
3247
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3248
|
+
@service_client,
|
3249
|
+
wait_for_resource_id,
|
3250
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3251
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3252
|
+
)
|
3253
|
+
else
|
3254
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3255
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3256
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3257
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3258
|
+
)
|
3259
|
+
end
|
3260
|
+
result_to_return = waiter_result
|
3261
|
+
|
3262
|
+
return result_to_return
|
3263
|
+
rescue StandardError
|
3264
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3265
|
+
end
|
3266
|
+
end
|
3267
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3268
|
+
# rubocop:enable Layout/EmptyLines
|
3269
|
+
|
3270
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3271
|
+
# rubocop:disable Layout/EmptyLines
|
3272
|
+
|
3273
|
+
|
3274
|
+
# Calls {OCI::DataSafe::DataSafeClient#start_audit_trail} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3275
|
+
# to enter the given state(s).
|
3276
|
+
#
|
3277
|
+
# @param [OCI::DataSafe::Models::StartAuditTrailDetails] start_audit_trail_details Details for the starting audit.
|
3278
|
+
# @param [String] audit_trail_id The OCID of the audit trail.
|
3279
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3280
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#start_audit_trail}
|
3281
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3282
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3283
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3284
|
+
#
|
3285
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3286
|
+
def start_audit_trail_and_wait_for_state(start_audit_trail_details, audit_trail_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3287
|
+
operation_result = @service_client.start_audit_trail(start_audit_trail_details, audit_trail_id, base_operation_opts)
|
3288
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3289
|
+
|
3290
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3291
|
+
|
3292
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3293
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3294
|
+
|
3295
|
+
begin
|
3296
|
+
if use_util
|
3297
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3298
|
+
@service_client,
|
3299
|
+
wait_for_resource_id,
|
3300
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3301
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3302
|
+
)
|
3303
|
+
else
|
3304
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3305
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3306
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3307
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3308
|
+
)
|
3309
|
+
end
|
3310
|
+
result_to_return = waiter_result
|
3311
|
+
|
3312
|
+
return result_to_return
|
3313
|
+
rescue StandardError
|
3314
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3315
|
+
end
|
3316
|
+
end
|
3317
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3318
|
+
# rubocop:enable Layout/EmptyLines
|
3319
|
+
|
3320
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3321
|
+
# rubocop:disable Layout/EmptyLines
|
3322
|
+
|
3323
|
+
|
3324
|
+
# Calls {OCI::DataSafe::DataSafeClient#stop_audit_trail} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3325
|
+
# to enter the given state(s).
|
3326
|
+
#
|
3327
|
+
# @param [String] audit_trail_id The OCID of the audit trail.
|
3328
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3329
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#stop_audit_trail}
|
3330
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3331
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3332
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3333
|
+
#
|
3334
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3335
|
+
def stop_audit_trail_and_wait_for_state(audit_trail_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3336
|
+
operation_result = @service_client.stop_audit_trail(audit_trail_id, base_operation_opts)
|
3337
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3338
|
+
|
3339
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3340
|
+
|
3341
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3342
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3343
|
+
|
3344
|
+
begin
|
3345
|
+
if use_util
|
3346
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3347
|
+
@service_client,
|
3348
|
+
wait_for_resource_id,
|
3349
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3350
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3351
|
+
)
|
3352
|
+
else
|
3353
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3354
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3355
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3356
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3357
|
+
)
|
3358
|
+
end
|
3359
|
+
result_to_return = waiter_result
|
3360
|
+
|
3361
|
+
return result_to_return
|
3362
|
+
rescue StandardError
|
3363
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3364
|
+
end
|
3365
|
+
end
|
3366
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3367
|
+
# rubocop:enable Layout/EmptyLines
|
3368
|
+
|
3369
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3370
|
+
# rubocop:disable Layout/EmptyLines
|
3371
|
+
|
3372
|
+
|
3373
|
+
# Calls {OCI::DataSafe::DataSafeClient#unset_security_assessment_baseline} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3374
|
+
# to enter the given state(s).
|
3375
|
+
#
|
3376
|
+
# @param [String] security_assessment_id The OCID of the security assessment.
|
3377
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3378
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#unset_security_assessment_baseline}
|
3379
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3380
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3381
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3382
|
+
#
|
3383
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3384
|
+
def unset_security_assessment_baseline_and_wait_for_state(security_assessment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3385
|
+
operation_result = @service_client.unset_security_assessment_baseline(security_assessment_id, base_operation_opts)
|
3386
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3387
|
+
|
3388
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3389
|
+
|
3390
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3391
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3392
|
+
|
3393
|
+
begin
|
3394
|
+
if use_util
|
3395
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3396
|
+
@service_client,
|
3397
|
+
wait_for_resource_id,
|
3398
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3399
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3400
|
+
)
|
3401
|
+
else
|
3402
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3403
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3404
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3405
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3406
|
+
)
|
3407
|
+
end
|
3408
|
+
result_to_return = waiter_result
|
3409
|
+
|
3410
|
+
return result_to_return
|
3411
|
+
rescue StandardError
|
3412
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3413
|
+
end
|
3414
|
+
end
|
3415
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3416
|
+
# rubocop:enable Layout/EmptyLines
|
3417
|
+
|
3418
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3419
|
+
# rubocop:disable Layout/EmptyLines
|
3420
|
+
|
3421
|
+
|
3422
|
+
# Calls {OCI::DataSafe::DataSafeClient#unset_user_assessment_baseline} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3423
|
+
# to enter the given state(s).
|
3424
|
+
#
|
3425
|
+
# @param [String] user_assessment_id The OCID of the user assessment.
|
3426
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3427
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#unset_user_assessment_baseline}
|
3428
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3429
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3430
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3431
|
+
#
|
3432
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3433
|
+
def unset_user_assessment_baseline_and_wait_for_state(user_assessment_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3434
|
+
operation_result = @service_client.unset_user_assessment_baseline(user_assessment_id, base_operation_opts)
|
3435
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3436
|
+
|
3437
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3438
|
+
|
3439
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3440
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3441
|
+
|
3442
|
+
begin
|
3443
|
+
if use_util
|
3444
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3445
|
+
@service_client,
|
3446
|
+
wait_for_resource_id,
|
3447
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3448
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3449
|
+
)
|
3450
|
+
else
|
3451
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3452
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3453
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3454
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3455
|
+
)
|
3456
|
+
end
|
3457
|
+
result_to_return = waiter_result
|
3458
|
+
|
3459
|
+
return result_to_return
|
3460
|
+
rescue StandardError
|
3461
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3462
|
+
end
|
3463
|
+
end
|
3464
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3465
|
+
# rubocop:enable Layout/EmptyLines
|
3466
|
+
|
3467
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3468
|
+
# rubocop:disable Layout/EmptyLines
|
3469
|
+
|
3470
|
+
|
3471
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_alert} and then waits for the {OCI::DataSafe::Models::Alert} acted upon
|
3472
|
+
# to enter the given state(s).
|
3473
|
+
#
|
3474
|
+
# @param [String] alert_id The OCID of alert.
|
3475
|
+
# @param [OCI::DataSafe::Models::UpdateAlertDetails] update_alert_details The details used to update alert status.
|
3476
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::Alert#lifecycle_state}
|
3477
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_alert}
|
3478
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3479
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3480
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3481
|
+
#
|
3482
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::DataSafe::Models::Alert}
|
3483
|
+
def update_alert_and_wait_for_state(alert_id, update_alert_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3484
|
+
operation_result = @service_client.update_alert(alert_id, update_alert_details, base_operation_opts)
|
3485
|
+
|
3486
|
+
return operation_result if wait_for_states.empty?
|
3487
|
+
|
3488
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3489
|
+
wait_for_resource_id = operation_result.data.id
|
3490
|
+
|
3491
|
+
begin
|
3492
|
+
waiter_result = @service_client.get_alert(wait_for_resource_id).wait_until(
|
3493
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
3494
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3495
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3496
|
+
)
|
3497
|
+
result_to_return = waiter_result
|
3498
|
+
|
3499
|
+
return result_to_return
|
3500
|
+
rescue StandardError
|
3501
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3502
|
+
end
|
3503
|
+
end
|
3504
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3505
|
+
# rubocop:enable Layout/EmptyLines
|
3506
|
+
|
3507
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3508
|
+
# rubocop:disable Layout/EmptyLines
|
3509
|
+
|
3510
|
+
|
3511
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_audit_archive_retrieval} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3512
|
+
# to enter the given state(s).
|
3513
|
+
#
|
3514
|
+
# @param [String] audit_archive_retrieval_id OCID of the archive retrieval.
|
3515
|
+
# @param [OCI::DataSafe::Models::UpdateAuditArchiveRetrievalDetails] update_audit_archive_retrieval_details Details to update the audit archive retrieval.
|
3516
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3517
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_audit_archive_retrieval}
|
3518
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3519
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3520
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3521
|
+
#
|
3522
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3523
|
+
def update_audit_archive_retrieval_and_wait_for_state(audit_archive_retrieval_id, update_audit_archive_retrieval_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3524
|
+
operation_result = @service_client.update_audit_archive_retrieval(audit_archive_retrieval_id, update_audit_archive_retrieval_details, base_operation_opts)
|
3525
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3526
|
+
|
3527
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3528
|
+
|
3529
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3530
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3531
|
+
|
3532
|
+
begin
|
3533
|
+
if use_util
|
3534
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3535
|
+
@service_client,
|
3536
|
+
wait_for_resource_id,
|
3537
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3538
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3539
|
+
)
|
3540
|
+
else
|
3541
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3542
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3543
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3544
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3545
|
+
)
|
3546
|
+
end
|
3547
|
+
result_to_return = waiter_result
|
3548
|
+
|
3549
|
+
return result_to_return
|
3550
|
+
rescue StandardError
|
3551
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3552
|
+
end
|
3553
|
+
end
|
3554
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3555
|
+
# rubocop:enable Layout/EmptyLines
|
3556
|
+
|
3557
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3558
|
+
# rubocop:disable Layout/EmptyLines
|
3559
|
+
|
3560
|
+
|
3561
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_audit_policy} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3562
|
+
# to enter the given state(s).
|
3563
|
+
#
|
3564
|
+
# @param [String] audit_policy_id Unique audit policy identifier.
|
3565
|
+
# @param [OCI::DataSafe::Models::UpdateAuditPolicyDetails] update_audit_policy_details Details to update the audit policy.
|
3566
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3567
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_audit_policy}
|
3568
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3569
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3570
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3571
|
+
#
|
3572
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3573
|
+
def update_audit_policy_and_wait_for_state(audit_policy_id, update_audit_policy_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3574
|
+
operation_result = @service_client.update_audit_policy(audit_policy_id, update_audit_policy_details, base_operation_opts)
|
3575
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3576
|
+
|
3577
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3578
|
+
|
3579
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3580
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3581
|
+
|
3582
|
+
begin
|
3583
|
+
if use_util
|
3584
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3585
|
+
@service_client,
|
3586
|
+
wait_for_resource_id,
|
3587
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3588
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3589
|
+
)
|
3590
|
+
else
|
3591
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3592
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3593
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3594
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3595
|
+
)
|
3596
|
+
end
|
3597
|
+
result_to_return = waiter_result
|
3598
|
+
|
3599
|
+
return result_to_return
|
3600
|
+
rescue StandardError
|
3601
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3602
|
+
end
|
3603
|
+
end
|
3604
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3605
|
+
# rubocop:enable Layout/EmptyLines
|
3606
|
+
|
3607
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3608
|
+
# rubocop:disable Layout/EmptyLines
|
3609
|
+
|
3610
|
+
|
3611
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_audit_profile} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3612
|
+
# to enter the given state(s).
|
3613
|
+
#
|
3614
|
+
# @param [String] audit_profile_id The OCID of the audit.
|
3615
|
+
# @param [OCI::DataSafe::Models::UpdateAuditProfileDetails] update_audit_profile_details The information to be updated.
|
3616
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3617
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_audit_profile}
|
3618
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3619
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3620
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3621
|
+
#
|
3622
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3623
|
+
def update_audit_profile_and_wait_for_state(audit_profile_id, update_audit_profile_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3624
|
+
operation_result = @service_client.update_audit_profile(audit_profile_id, update_audit_profile_details, base_operation_opts)
|
3625
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3626
|
+
|
3627
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3628
|
+
|
3629
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3630
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3631
|
+
|
3632
|
+
begin
|
3633
|
+
if use_util
|
3634
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3635
|
+
@service_client,
|
3636
|
+
wait_for_resource_id,
|
3637
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3638
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3639
|
+
)
|
3640
|
+
else
|
3641
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3642
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3643
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3644
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3645
|
+
)
|
3646
|
+
end
|
3647
|
+
result_to_return = waiter_result
|
3648
|
+
|
3649
|
+
return result_to_return
|
3650
|
+
rescue StandardError
|
3651
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3652
|
+
end
|
3653
|
+
end
|
3654
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3655
|
+
# rubocop:enable Layout/EmptyLines
|
3656
|
+
|
3657
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3658
|
+
# rubocop:disable Layout/EmptyLines
|
3659
|
+
|
3660
|
+
|
3661
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_audit_trail} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3662
|
+
# to enter the given state(s).
|
3663
|
+
#
|
3664
|
+
# @param [String] audit_trail_id The OCID of the audit trail.
|
3665
|
+
# @param [OCI::DataSafe::Models::UpdateAuditTrailDetails] update_audit_trail_details The information to be updated.
|
3666
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3667
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_audit_trail}
|
3668
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3669
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3670
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3671
|
+
#
|
3672
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3673
|
+
def update_audit_trail_and_wait_for_state(audit_trail_id, update_audit_trail_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3674
|
+
operation_result = @service_client.update_audit_trail(audit_trail_id, update_audit_trail_details, base_operation_opts)
|
3675
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3676
|
+
|
3677
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3678
|
+
|
3679
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3680
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3681
|
+
|
3682
|
+
begin
|
3683
|
+
if use_util
|
3684
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3685
|
+
@service_client,
|
3686
|
+
wait_for_resource_id,
|
3687
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3688
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3689
|
+
)
|
3690
|
+
else
|
3691
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3692
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3693
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3694
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3695
|
+
)
|
3696
|
+
end
|
3697
|
+
result_to_return = waiter_result
|
3698
|
+
|
3699
|
+
return result_to_return
|
3700
|
+
rescue StandardError
|
3701
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3702
|
+
end
|
3703
|
+
end
|
3704
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3705
|
+
# rubocop:enable Layout/EmptyLines
|
3706
|
+
|
3707
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3708
|
+
# rubocop:disable Layout/EmptyLines
|
3709
|
+
|
3710
|
+
|
3711
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_data_safe_private_endpoint} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3712
|
+
# to enter the given state(s).
|
3713
|
+
#
|
3714
|
+
# @param [String] data_safe_private_endpoint_id The OCID of the private endpoint.
|
3715
|
+
# @param [OCI::DataSafe::Models::UpdateDataSafePrivateEndpointDetails] update_data_safe_private_endpoint_details The details used to update a Data Safe private endpoint.
|
3716
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3717
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_data_safe_private_endpoint}
|
3718
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3719
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3720
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3721
|
+
#
|
3722
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3723
|
+
def update_data_safe_private_endpoint_and_wait_for_state(data_safe_private_endpoint_id, update_data_safe_private_endpoint_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3724
|
+
operation_result = @service_client.update_data_safe_private_endpoint(data_safe_private_endpoint_id, update_data_safe_private_endpoint_details, base_operation_opts)
|
3725
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3726
|
+
|
3727
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3728
|
+
|
3729
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3730
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3731
|
+
|
3732
|
+
begin
|
3733
|
+
if use_util
|
3734
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3735
|
+
@service_client,
|
3736
|
+
wait_for_resource_id,
|
3737
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3738
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3739
|
+
)
|
3740
|
+
else
|
3741
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3742
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3743
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3744
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3745
|
+
)
|
3746
|
+
end
|
3747
|
+
result_to_return = waiter_result
|
3748
|
+
|
3749
|
+
return result_to_return
|
3750
|
+
rescue StandardError
|
3751
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3752
|
+
end
|
3753
|
+
end
|
3754
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3755
|
+
# rubocop:enable Layout/EmptyLines
|
3756
|
+
|
3757
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3758
|
+
# rubocop:disable Layout/EmptyLines
|
3759
|
+
|
3760
|
+
|
3761
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_library_masking_format} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3762
|
+
# to enter the given state(s).
|
3763
|
+
#
|
3764
|
+
# @param [String] library_masking_format_id The OCID of the library masking format.
|
3765
|
+
# @param [OCI::DataSafe::Models::UpdateLibraryMaskingFormatDetails] update_library_masking_format_details Details to update a library masking format.
|
3766
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3767
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_library_masking_format}
|
3768
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3769
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3770
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3771
|
+
#
|
3772
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3773
|
+
def update_library_masking_format_and_wait_for_state(library_masking_format_id, update_library_masking_format_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3774
|
+
operation_result = @service_client.update_library_masking_format(library_masking_format_id, update_library_masking_format_details, base_operation_opts)
|
3775
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3776
|
+
|
3777
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3778
|
+
|
3779
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3780
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3781
|
+
|
3782
|
+
begin
|
3783
|
+
if use_util
|
3784
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3785
|
+
@service_client,
|
3786
|
+
wait_for_resource_id,
|
3787
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3788
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3789
|
+
)
|
3790
|
+
else
|
3791
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3792
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3793
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3794
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3795
|
+
)
|
3796
|
+
end
|
3797
|
+
result_to_return = waiter_result
|
3798
|
+
|
3799
|
+
return result_to_return
|
3800
|
+
rescue StandardError
|
3801
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3802
|
+
end
|
3803
|
+
end
|
3804
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3805
|
+
# rubocop:enable Layout/EmptyLines
|
3806
|
+
|
3807
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3808
|
+
# rubocop:disable Layout/EmptyLines
|
3809
|
+
|
3810
|
+
|
3811
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_masking_column} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3812
|
+
# to enter the given state(s).
|
3813
|
+
#
|
3814
|
+
# @param [String] masking_column_key The unique key that identifies the masking column. It's numeric and unique within a masking policy.
|
3815
|
+
# @param [String] masking_policy_id The OCID of the masking policy.
|
3816
|
+
# @param [OCI::DataSafe::Models::UpdateMaskingColumnDetails] update_masking_column_details Details to update a masking column.
|
3817
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3818
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_masking_column}
|
3819
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3820
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3821
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3822
|
+
#
|
3823
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3824
|
+
def update_masking_column_and_wait_for_state(masking_column_key, masking_policy_id, update_masking_column_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3825
|
+
operation_result = @service_client.update_masking_column(masking_column_key, masking_policy_id, update_masking_column_details, base_operation_opts)
|
3826
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3827
|
+
|
3828
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3829
|
+
|
3830
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3831
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3832
|
+
|
3833
|
+
begin
|
3834
|
+
if use_util
|
3835
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3836
|
+
@service_client,
|
3837
|
+
wait_for_resource_id,
|
3838
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3839
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3840
|
+
)
|
3841
|
+
else
|
3842
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3843
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3844
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3845
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3846
|
+
)
|
3847
|
+
end
|
3848
|
+
result_to_return = waiter_result
|
3849
|
+
|
3850
|
+
return result_to_return
|
3851
|
+
rescue StandardError
|
3852
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3853
|
+
end
|
3854
|
+
end
|
3855
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3856
|
+
# rubocop:enable Layout/EmptyLines
|
3857
|
+
|
3858
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3859
|
+
# rubocop:disable Layout/EmptyLines
|
3860
|
+
|
3861
|
+
|
3862
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_masking_policy} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3863
|
+
# to enter the given state(s).
|
3864
|
+
#
|
3865
|
+
# @param [String] masking_policy_id The OCID of the masking policy.
|
3866
|
+
# @param [OCI::DataSafe::Models::UpdateMaskingPolicyDetails] update_masking_policy_details Details to update a masking policy.
|
3867
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3868
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_masking_policy}
|
3869
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3870
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3871
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3872
|
+
#
|
3873
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3874
|
+
def update_masking_policy_and_wait_for_state(masking_policy_id, update_masking_policy_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3875
|
+
operation_result = @service_client.update_masking_policy(masking_policy_id, update_masking_policy_details, base_operation_opts)
|
3876
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3877
|
+
|
3878
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3879
|
+
|
3880
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3881
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3882
|
+
|
3883
|
+
begin
|
3884
|
+
if use_util
|
3885
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3886
|
+
@service_client,
|
3887
|
+
wait_for_resource_id,
|
3888
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3889
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3890
|
+
)
|
3891
|
+
else
|
3892
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3893
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3894
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3895
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3896
|
+
)
|
3897
|
+
end
|
3898
|
+
result_to_return = waiter_result
|
3899
|
+
|
3900
|
+
return result_to_return
|
3901
|
+
rescue StandardError
|
3902
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3903
|
+
end
|
3904
|
+
end
|
3905
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3906
|
+
# rubocop:enable Layout/EmptyLines
|
3907
|
+
|
3908
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3909
|
+
# rubocop:disable Layout/EmptyLines
|
3910
|
+
|
3911
|
+
|
3912
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_on_prem_connector} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3913
|
+
# to enter the given state(s).
|
3914
|
+
#
|
3915
|
+
# @param [String] on_prem_connector_id The OCID of the on-premises connector.
|
3916
|
+
# @param [OCI::DataSafe::Models::UpdateOnPremConnectorDetails] update_on_prem_connector_details The details used to update a on-premises connector.
|
3917
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3918
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_on_prem_connector}
|
3919
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3920
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3921
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3922
|
+
#
|
3923
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3924
|
+
def update_on_prem_connector_and_wait_for_state(on_prem_connector_id, update_on_prem_connector_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3925
|
+
operation_result = @service_client.update_on_prem_connector(on_prem_connector_id, update_on_prem_connector_details, base_operation_opts)
|
3926
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3927
|
+
|
3928
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3929
|
+
|
3930
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3931
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3932
|
+
|
3933
|
+
begin
|
3934
|
+
if use_util
|
3935
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3936
|
+
@service_client,
|
3937
|
+
wait_for_resource_id,
|
3938
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3939
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3940
|
+
)
|
3941
|
+
else
|
3942
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3943
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3944
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3945
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3946
|
+
)
|
3947
|
+
end
|
3948
|
+
result_to_return = waiter_result
|
3949
|
+
|
3950
|
+
return result_to_return
|
3951
|
+
rescue StandardError
|
3952
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
3953
|
+
end
|
3954
|
+
end
|
3955
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3956
|
+
# rubocop:enable Layout/EmptyLines
|
3957
|
+
|
3958
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
3959
|
+
# rubocop:disable Layout/EmptyLines
|
3960
|
+
|
3961
|
+
|
3962
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_on_prem_connector_wallet} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
3963
|
+
# to enter the given state(s).
|
3964
|
+
#
|
3965
|
+
# @param [OCI::DataSafe::Models::UpdateOnPremConnectorWalletDetails] update_on_prem_connector_wallet_details The details used to update an on-premises connector's wallet.
|
3966
|
+
# @param [String] on_prem_connector_id The OCID of the on-premises connector.
|
3967
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
3968
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_on_prem_connector_wallet}
|
3969
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
3970
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
3971
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
3972
|
+
#
|
3973
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
3974
|
+
def update_on_prem_connector_wallet_and_wait_for_state(update_on_prem_connector_wallet_details, on_prem_connector_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
3975
|
+
operation_result = @service_client.update_on_prem_connector_wallet(update_on_prem_connector_wallet_details, on_prem_connector_id, base_operation_opts)
|
3976
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
3977
|
+
|
3978
|
+
return operation_result if wait_for_states.empty? && !use_util
|
3979
|
+
|
3980
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
3981
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
3982
|
+
|
3983
|
+
begin
|
3984
|
+
if use_util
|
3985
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
3986
|
+
@service_client,
|
3987
|
+
wait_for_resource_id,
|
3988
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3989
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3990
|
+
)
|
3991
|
+
else
|
3992
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
3993
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
3994
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
3995
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
3996
|
+
)
|
3997
|
+
end
|
3998
|
+
result_to_return = waiter_result
|
3999
|
+
|
4000
|
+
return result_to_return
|
4001
|
+
rescue StandardError
|
4002
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
4003
|
+
end
|
4004
|
+
end
|
4005
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4006
|
+
# rubocop:enable Layout/EmptyLines
|
4007
|
+
|
4008
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4009
|
+
# rubocop:disable Layout/EmptyLines
|
4010
|
+
|
4011
|
+
|
4012
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_report_definition} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
4013
|
+
# to enter the given state(s).
|
4014
|
+
#
|
4015
|
+
# @param [String] report_definition_id Unique report definition identifier
|
4016
|
+
# @param [OCI::DataSafe::Models::UpdateReportDefinitionDetails] update_report_definition_details Details for the modified report definition.
|
4017
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
4018
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_report_definition}
|
4019
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
4020
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
4021
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
4022
|
+
#
|
4023
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
4024
|
+
def update_report_definition_and_wait_for_state(report_definition_id, update_report_definition_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
4025
|
+
operation_result = @service_client.update_report_definition(report_definition_id, update_report_definition_details, base_operation_opts)
|
4026
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
4027
|
+
|
4028
|
+
return operation_result if wait_for_states.empty? && !use_util
|
4029
|
+
|
4030
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
4031
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4032
|
+
|
4033
|
+
begin
|
4034
|
+
if use_util
|
4035
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
4036
|
+
@service_client,
|
4037
|
+
wait_for_resource_id,
|
4038
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4039
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4040
|
+
)
|
4041
|
+
else
|
4042
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
4043
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
4044
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4045
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4046
|
+
)
|
4047
|
+
end
|
4048
|
+
result_to_return = waiter_result
|
4049
|
+
|
4050
|
+
return result_to_return
|
4051
|
+
rescue StandardError
|
4052
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
4053
|
+
end
|
4054
|
+
end
|
4055
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4056
|
+
# rubocop:enable Layout/EmptyLines
|
4057
|
+
|
4058
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4059
|
+
# rubocop:disable Layout/EmptyLines
|
4060
|
+
|
4061
|
+
|
4062
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_security_assessment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
4063
|
+
# to enter the given state(s).
|
4064
|
+
#
|
4065
|
+
# @param [String] security_assessment_id The OCID of the security assessment.
|
4066
|
+
# @param [OCI::DataSafe::Models::UpdateSecurityAssessmentDetails] update_security_assessment_details The information to be updated.
|
4067
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
4068
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_security_assessment}
|
4069
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
4070
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
4071
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
4072
|
+
#
|
4073
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
4074
|
+
def update_security_assessment_and_wait_for_state(security_assessment_id, update_security_assessment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
4075
|
+
operation_result = @service_client.update_security_assessment(security_assessment_id, update_security_assessment_details, base_operation_opts)
|
4076
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
4077
|
+
|
4078
|
+
return operation_result if wait_for_states.empty? && !use_util
|
4079
|
+
|
4080
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
4081
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4082
|
+
|
4083
|
+
begin
|
4084
|
+
if use_util
|
4085
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
4086
|
+
@service_client,
|
4087
|
+
wait_for_resource_id,
|
4088
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4089
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4090
|
+
)
|
4091
|
+
else
|
4092
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
4093
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
4094
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4095
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4096
|
+
)
|
4097
|
+
end
|
4098
|
+
result_to_return = waiter_result
|
4099
|
+
|
4100
|
+
return result_to_return
|
4101
|
+
rescue StandardError
|
4102
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
4103
|
+
end
|
4104
|
+
end
|
4105
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4106
|
+
# rubocop:enable Layout/EmptyLines
|
4107
|
+
|
4108
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4109
|
+
# rubocop:disable Layout/EmptyLines
|
4110
|
+
|
4111
|
+
|
4112
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_sensitive_column} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
4113
|
+
# to enter the given state(s).
|
4114
|
+
#
|
4115
|
+
# @param [String] sensitive_data_model_id The OCID of the sensitive data model.
|
4116
|
+
# @param [String] sensitive_column_key The unique key that identifies the sensitive column. It's numeric and unique within a sensitive data model.
|
4117
|
+
# @param [OCI::DataSafe::Models::UpdateSensitiveColumnDetails] update_sensitive_column_details Details to update a sensitive column.
|
4118
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
4119
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_sensitive_column}
|
4120
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
4121
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
4122
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
4123
|
+
#
|
4124
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
4125
|
+
def update_sensitive_column_and_wait_for_state(sensitive_data_model_id, sensitive_column_key, update_sensitive_column_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
4126
|
+
operation_result = @service_client.update_sensitive_column(sensitive_data_model_id, sensitive_column_key, update_sensitive_column_details, base_operation_opts)
|
4127
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
4128
|
+
|
4129
|
+
return operation_result if wait_for_states.empty? && !use_util
|
4130
|
+
|
4131
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
4132
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4133
|
+
|
4134
|
+
begin
|
4135
|
+
if use_util
|
4136
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
4137
|
+
@service_client,
|
4138
|
+
wait_for_resource_id,
|
4139
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4140
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4141
|
+
)
|
4142
|
+
else
|
4143
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
4144
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
4145
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4146
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4147
|
+
)
|
4148
|
+
end
|
4149
|
+
result_to_return = waiter_result
|
4150
|
+
|
4151
|
+
return result_to_return
|
4152
|
+
rescue StandardError
|
4153
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
4154
|
+
end
|
4155
|
+
end
|
4156
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4157
|
+
# rubocop:enable Layout/EmptyLines
|
4158
|
+
|
4159
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4160
|
+
# rubocop:disable Layout/EmptyLines
|
4161
|
+
|
4162
|
+
|
4163
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_sensitive_data_model} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
4164
|
+
# to enter the given state(s).
|
4165
|
+
#
|
4166
|
+
# @param [String] sensitive_data_model_id The OCID of the sensitive data model.
|
4167
|
+
# @param [OCI::DataSafe::Models::UpdateSensitiveDataModelDetails] update_sensitive_data_model_details Details to update a sensitive data model.
|
4168
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
4169
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_sensitive_data_model}
|
4170
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
4171
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
4172
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
4173
|
+
#
|
4174
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
4175
|
+
def update_sensitive_data_model_and_wait_for_state(sensitive_data_model_id, update_sensitive_data_model_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
4176
|
+
operation_result = @service_client.update_sensitive_data_model(sensitive_data_model_id, update_sensitive_data_model_details, base_operation_opts)
|
4177
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
4178
|
+
|
4179
|
+
return operation_result if wait_for_states.empty? && !use_util
|
4180
|
+
|
4181
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
4182
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4183
|
+
|
4184
|
+
begin
|
4185
|
+
if use_util
|
4186
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
4187
|
+
@service_client,
|
4188
|
+
wait_for_resource_id,
|
4189
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4190
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4191
|
+
)
|
4192
|
+
else
|
4193
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
4194
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
4195
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4196
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4197
|
+
)
|
4198
|
+
end
|
4199
|
+
result_to_return = waiter_result
|
4200
|
+
|
4201
|
+
return result_to_return
|
4202
|
+
rescue StandardError
|
4203
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
4204
|
+
end
|
4205
|
+
end
|
4206
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4207
|
+
# rubocop:enable Layout/EmptyLines
|
4208
|
+
|
4209
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4210
|
+
# rubocop:disable Layout/EmptyLines
|
4211
|
+
|
4212
|
+
|
4213
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_sensitive_type} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
4214
|
+
# to enter the given state(s).
|
4215
|
+
#
|
4216
|
+
# @param [String] sensitive_type_id The OCID of the sensitive type.
|
4217
|
+
# @param [OCI::DataSafe::Models::UpdateSensitiveTypeDetails] update_sensitive_type_details Details to update a sensitive type.
|
4218
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
4219
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_sensitive_type}
|
4220
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
4221
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
4222
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
4223
|
+
#
|
4224
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
4225
|
+
def update_sensitive_type_and_wait_for_state(sensitive_type_id, update_sensitive_type_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
4226
|
+
operation_result = @service_client.update_sensitive_type(sensitive_type_id, update_sensitive_type_details, base_operation_opts)
|
4227
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
4228
|
+
|
4229
|
+
return operation_result if wait_for_states.empty? && !use_util
|
4230
|
+
|
4231
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
4232
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4233
|
+
|
4234
|
+
begin
|
4235
|
+
if use_util
|
4236
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
4237
|
+
@service_client,
|
4238
|
+
wait_for_resource_id,
|
4239
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4240
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4241
|
+
)
|
4242
|
+
else
|
4243
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
4244
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
4245
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4246
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4247
|
+
)
|
4248
|
+
end
|
4249
|
+
result_to_return = waiter_result
|
4250
|
+
|
4251
|
+
return result_to_return
|
4252
|
+
rescue StandardError
|
4253
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
4254
|
+
end
|
4255
|
+
end
|
4256
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4257
|
+
# rubocop:enable Layout/EmptyLines
|
4258
|
+
|
4259
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4260
|
+
# rubocop:disable Layout/EmptyLines
|
4261
|
+
|
4262
|
+
|
4263
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_target_alert_policy_association} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
4264
|
+
# to enter the given state(s).
|
4265
|
+
#
|
4266
|
+
# @param [String] target_alert_policy_association_id The OCID of the target-alert policy association.
|
4267
|
+
# @param [OCI::DataSafe::Models::UpdateTargetAlertPolicyAssociationDetails] update_target_alert_policy_association_details The details used to update the target-alert policy association.
|
4268
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
4269
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_target_alert_policy_association}
|
4270
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
4271
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
4272
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
4273
|
+
#
|
4274
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
4275
|
+
def update_target_alert_policy_association_and_wait_for_state(target_alert_policy_association_id, update_target_alert_policy_association_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
4276
|
+
operation_result = @service_client.update_target_alert_policy_association(target_alert_policy_association_id, update_target_alert_policy_association_details, base_operation_opts)
|
4277
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
4278
|
+
|
4279
|
+
return operation_result if wait_for_states.empty? && !use_util
|
4280
|
+
|
4281
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
4282
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4283
|
+
|
4284
|
+
begin
|
4285
|
+
if use_util
|
4286
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
4287
|
+
@service_client,
|
4288
|
+
wait_for_resource_id,
|
4289
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4290
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4291
|
+
)
|
4292
|
+
else
|
4293
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
4294
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
4295
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4296
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4297
|
+
)
|
4298
|
+
end
|
4299
|
+
result_to_return = waiter_result
|
4300
|
+
|
4301
|
+
return result_to_return
|
4302
|
+
rescue StandardError
|
4303
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
4304
|
+
end
|
4305
|
+
end
|
4306
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4307
|
+
# rubocop:enable Layout/EmptyLines
|
4308
|
+
|
4309
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4310
|
+
# rubocop:disable Layout/EmptyLines
|
4311
|
+
|
4312
|
+
|
4313
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_target_database} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
4314
|
+
# to enter the given state(s).
|
4315
|
+
#
|
4316
|
+
# @param [String] target_database_id The OCID of the Data Safe target database.
|
4317
|
+
# @param [OCI::DataSafe::Models::UpdateTargetDatabaseDetails] update_target_database_details Details used to update the target database in Data Safe.
|
4318
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
4319
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_target_database}
|
4320
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
4321
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
4322
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
4323
|
+
#
|
4324
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
4325
|
+
def update_target_database_and_wait_for_state(target_database_id, update_target_database_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
4326
|
+
operation_result = @service_client.update_target_database(target_database_id, update_target_database_details, base_operation_opts)
|
4327
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
4328
|
+
|
4329
|
+
return operation_result if wait_for_states.empty? && !use_util
|
4330
|
+
|
4331
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
4332
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4333
|
+
|
4334
|
+
begin
|
4335
|
+
if use_util
|
4336
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
4337
|
+
@service_client,
|
4338
|
+
wait_for_resource_id,
|
4339
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4340
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4341
|
+
)
|
4342
|
+
else
|
4343
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
4344
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
4345
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4346
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4347
|
+
)
|
4348
|
+
end
|
4349
|
+
result_to_return = waiter_result
|
4350
|
+
|
4351
|
+
return result_to_return
|
4352
|
+
rescue StandardError
|
4353
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
4354
|
+
end
|
4355
|
+
end
|
4356
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4357
|
+
# rubocop:enable Layout/EmptyLines
|
4358
|
+
|
4359
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4360
|
+
# rubocop:disable Layout/EmptyLines
|
4361
|
+
|
4362
|
+
|
4363
|
+
# Calls {OCI::DataSafe::DataSafeClient#update_user_assessment} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
4364
|
+
# to enter the given state(s).
|
4365
|
+
#
|
4366
|
+
# @param [String] user_assessment_id The OCID of the user assessment.
|
4367
|
+
# @param [OCI::DataSafe::Models::UpdateUserAssessmentDetails] update_user_assessment_details The information to be updated.
|
4368
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
4369
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#update_user_assessment}
|
4370
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
4371
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
4372
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
4373
|
+
#
|
4374
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
4375
|
+
def update_user_assessment_and_wait_for_state(user_assessment_id, update_user_assessment_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
4376
|
+
operation_result = @service_client.update_user_assessment(user_assessment_id, update_user_assessment_details, base_operation_opts)
|
4377
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
4378
|
+
|
4379
|
+
return operation_result if wait_for_states.empty? && !use_util
|
4380
|
+
|
4381
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
4382
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4383
|
+
|
4384
|
+
begin
|
4385
|
+
if use_util
|
4386
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
4387
|
+
@service_client,
|
4388
|
+
wait_for_resource_id,
|
4389
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4390
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4391
|
+
)
|
4392
|
+
else
|
4393
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
4394
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
4395
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4396
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4397
|
+
)
|
4398
|
+
end
|
4399
|
+
result_to_return = waiter_result
|
4400
|
+
|
4401
|
+
return result_to_return
|
4402
|
+
rescue StandardError
|
4403
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
4404
|
+
end
|
4405
|
+
end
|
4406
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4407
|
+
# rubocop:enable Layout/EmptyLines
|
4408
|
+
|
4409
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4410
|
+
# rubocop:disable Layout/EmptyLines
|
4411
|
+
|
4412
|
+
|
4413
|
+
# Calls {OCI::DataSafe::DataSafeClient#upload_masking_policy} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
4414
|
+
# to enter the given state(s).
|
4415
|
+
#
|
4416
|
+
# @param [String, IO] upload_masking_policy_details Details to upload a masking policy file.
|
4417
|
+
# @param [String] masking_policy_id The OCID of the masking policy.
|
4418
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
4419
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#upload_masking_policy}
|
4420
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
4421
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
4422
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
4423
|
+
#
|
4424
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
4425
|
+
def upload_masking_policy_and_wait_for_state(upload_masking_policy_details, masking_policy_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
4426
|
+
operation_result = @service_client.upload_masking_policy(upload_masking_policy_details, masking_policy_id, base_operation_opts)
|
4427
|
+
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
4428
|
+
|
4429
|
+
return operation_result if wait_for_states.empty? && !use_util
|
4430
|
+
|
4431
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
4432
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4433
|
+
|
4434
|
+
begin
|
4435
|
+
if use_util
|
4436
|
+
waiter_result = OCI::DataSafe::Util.wait_on_work_request(
|
4437
|
+
@service_client,
|
4438
|
+
wait_for_resource_id,
|
4439
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4440
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4441
|
+
)
|
4442
|
+
else
|
4443
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
4444
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
4445
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
4446
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
4447
|
+
)
|
4448
|
+
end
|
4449
|
+
result_to_return = waiter_result
|
4450
|
+
|
4451
|
+
return result_to_return
|
4452
|
+
rescue StandardError
|
4453
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
4454
|
+
end
|
4455
|
+
end
|
4456
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4457
|
+
# rubocop:enable Layout/EmptyLines
|
4458
|
+
|
4459
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
4460
|
+
# rubocop:disable Layout/EmptyLines
|
4461
|
+
|
4462
|
+
|
4463
|
+
# Calls {OCI::DataSafe::DataSafeClient#upload_sensitive_data_model} and then waits for the {OCI::DataSafe::Models::WorkRequest}
|
4464
|
+
# to enter the given state(s).
|
4465
|
+
#
|
4466
|
+
# @param [String] sensitive_data_model_id The OCID of the sensitive data model.
|
4467
|
+
# @param [String, IO] upload_sensitive_data_model_details Details to upload a sensitive data model file.
|
4468
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::DataSafe::Models::WorkRequest#status}
|
4469
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::DataSafe::DataSafeClient#upload_sensitive_data_model}
|
4470
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
4471
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
4472
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
4473
|
+
#
|
4474
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::DataSafe::Models::WorkRequest}
|
4475
|
+
def upload_sensitive_data_model_and_wait_for_state(sensitive_data_model_id, upload_sensitive_data_model_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
4476
|
+
operation_result = @service_client.upload_sensitive_data_model(sensitive_data_model_id, upload_sensitive_data_model_details, base_operation_opts)
|
1476
4477
|
use_util = OCI::DataSafe::Util.respond_to?(:wait_on_work_request)
|
1477
4478
|
|
1478
4479
|
return operation_result if wait_for_states.empty? && !use_util
|