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
@@ -0,0 +1,399 @@
|
|
1
|
+
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
3
|
+
|
4
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
5
|
+
module OCI
|
6
|
+
# This class provides a wrapper around {OCI::AiVision::AIServiceVisionClient} and offers convenience methods
|
7
|
+
# for operations that would otherwise need to be chained together. For example, instead of performing an action
|
8
|
+
# on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
|
9
|
+
# to enter a given state, you can call a single method in this class to accomplish the same functionality
|
10
|
+
class AiVision::AIServiceVisionClientCompositeOperations
|
11
|
+
# The {OCI::AiVision::AIServiceVisionClient} used to communicate with the service_client
|
12
|
+
#
|
13
|
+
# @return [OCI::AiVision::AIServiceVisionClient]
|
14
|
+
attr_reader :service_client
|
15
|
+
|
16
|
+
# Initializes a new AIServiceVisionClientCompositeOperations
|
17
|
+
#
|
18
|
+
# @param [OCI::AiVision::AIServiceVisionClient] service_client The client used to communicate with the service.
|
19
|
+
# Defaults to a new service client created via {OCI::AiVision::AIServiceVisionClient#initialize} with no arguments
|
20
|
+
def initialize(service_client = OCI::AiVision::AIServiceVisionClient.new)
|
21
|
+
@service_client = service_client
|
22
|
+
end
|
23
|
+
|
24
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
25
|
+
# rubocop:disable Layout/EmptyLines
|
26
|
+
|
27
|
+
|
28
|
+
# Calls {OCI::AiVision::AIServiceVisionClient#create_document_job} and then waits for the {OCI::AiVision::Models::DocumentJob} acted upon
|
29
|
+
# to enter the given state(s).
|
30
|
+
#
|
31
|
+
# @param [OCI::AiVision::Models::CreateDocumentJobDetails] create_document_job_details Details about the batch document analysis.
|
32
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::AiVision::Models::DocumentJob#lifecycle_state}
|
33
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::AiVision::AIServiceVisionClient#create_document_job}
|
34
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
35
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
36
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
37
|
+
#
|
38
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::AiVision::Models::DocumentJob}
|
39
|
+
def create_document_job_and_wait_for_state(create_document_job_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
40
|
+
operation_result = @service_client.create_document_job(create_document_job_details, base_operation_opts)
|
41
|
+
|
42
|
+
return operation_result if wait_for_states.empty?
|
43
|
+
|
44
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
45
|
+
wait_for_resource_id = operation_result.data.id
|
46
|
+
|
47
|
+
begin
|
48
|
+
waiter_result = @service_client.get_document_job(wait_for_resource_id).wait_until(
|
49
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
50
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
51
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
52
|
+
)
|
53
|
+
result_to_return = waiter_result
|
54
|
+
|
55
|
+
return result_to_return
|
56
|
+
rescue StandardError
|
57
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
58
|
+
end
|
59
|
+
end
|
60
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
61
|
+
# rubocop:enable Layout/EmptyLines
|
62
|
+
|
63
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
64
|
+
# rubocop:disable Layout/EmptyLines
|
65
|
+
|
66
|
+
|
67
|
+
# Calls {OCI::AiVision::AIServiceVisionClient#create_image_job} and then waits for the {OCI::AiVision::Models::ImageJob} acted upon
|
68
|
+
# to enter the given state(s).
|
69
|
+
#
|
70
|
+
# @param [OCI::AiVision::Models::CreateImageJobDetails] create_image_job_details Details about the batch image analysis.
|
71
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::AiVision::Models::ImageJob#lifecycle_state}
|
72
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::AiVision::AIServiceVisionClient#create_image_job}
|
73
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
74
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
75
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
76
|
+
#
|
77
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::AiVision::Models::ImageJob}
|
78
|
+
def create_image_job_and_wait_for_state(create_image_job_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
79
|
+
operation_result = @service_client.create_image_job(create_image_job_details, base_operation_opts)
|
80
|
+
|
81
|
+
return operation_result if wait_for_states.empty?
|
82
|
+
|
83
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
84
|
+
wait_for_resource_id = operation_result.data.id
|
85
|
+
|
86
|
+
begin
|
87
|
+
waiter_result = @service_client.get_image_job(wait_for_resource_id).wait_until(
|
88
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
89
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
90
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
91
|
+
)
|
92
|
+
result_to_return = waiter_result
|
93
|
+
|
94
|
+
return result_to_return
|
95
|
+
rescue StandardError
|
96
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
97
|
+
end
|
98
|
+
end
|
99
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
100
|
+
# rubocop:enable Layout/EmptyLines
|
101
|
+
|
102
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
103
|
+
# rubocop:disable Layout/EmptyLines
|
104
|
+
|
105
|
+
|
106
|
+
# Calls {OCI::AiVision::AIServiceVisionClient#create_model} and then waits for the {OCI::AiVision::Models::WorkRequest}
|
107
|
+
# to enter the given state(s).
|
108
|
+
#
|
109
|
+
# @param [OCI::AiVision::Models::CreateModelDetails] create_model_details Metadata about the new model.
|
110
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::AiVision::Models::WorkRequest#status}
|
111
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::AiVision::AIServiceVisionClient#create_model}
|
112
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
113
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
114
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
115
|
+
#
|
116
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::AiVision::Models::WorkRequest}
|
117
|
+
def create_model_and_wait_for_state(create_model_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
118
|
+
operation_result = @service_client.create_model(create_model_details, base_operation_opts)
|
119
|
+
use_util = OCI::AiVision::Util.respond_to?(:wait_on_work_request)
|
120
|
+
|
121
|
+
return operation_result if wait_for_states.empty? && !use_util
|
122
|
+
|
123
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
124
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
125
|
+
|
126
|
+
begin
|
127
|
+
if use_util
|
128
|
+
waiter_result = OCI::AiVision::Util.wait_on_work_request(
|
129
|
+
@service_client,
|
130
|
+
wait_for_resource_id,
|
131
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
132
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
133
|
+
)
|
134
|
+
else
|
135
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
136
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
137
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
138
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
139
|
+
)
|
140
|
+
end
|
141
|
+
result_to_return = waiter_result
|
142
|
+
|
143
|
+
return result_to_return
|
144
|
+
rescue StandardError
|
145
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
146
|
+
end
|
147
|
+
end
|
148
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
149
|
+
# rubocop:enable Layout/EmptyLines
|
150
|
+
|
151
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
152
|
+
# rubocop:disable Layout/EmptyLines
|
153
|
+
|
154
|
+
|
155
|
+
# Calls {OCI::AiVision::AIServiceVisionClient#create_project} and then waits for the {OCI::AiVision::Models::WorkRequest}
|
156
|
+
# to enter the given state(s).
|
157
|
+
#
|
158
|
+
# @param [OCI::AiVision::Models::CreateProjectDetails] create_project_details Details for the new Project.
|
159
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::AiVision::Models::WorkRequest#status}
|
160
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::AiVision::AIServiceVisionClient#create_project}
|
161
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
162
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
163
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
164
|
+
#
|
165
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::AiVision::Models::WorkRequest}
|
166
|
+
def create_project_and_wait_for_state(create_project_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
167
|
+
operation_result = @service_client.create_project(create_project_details, base_operation_opts)
|
168
|
+
use_util = OCI::AiVision::Util.respond_to?(:wait_on_work_request)
|
169
|
+
|
170
|
+
return operation_result if wait_for_states.empty? && !use_util
|
171
|
+
|
172
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
173
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
174
|
+
|
175
|
+
begin
|
176
|
+
if use_util
|
177
|
+
waiter_result = OCI::AiVision::Util.wait_on_work_request(
|
178
|
+
@service_client,
|
179
|
+
wait_for_resource_id,
|
180
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
181
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
182
|
+
)
|
183
|
+
else
|
184
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
185
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
186
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
187
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
188
|
+
)
|
189
|
+
end
|
190
|
+
result_to_return = waiter_result
|
191
|
+
|
192
|
+
return result_to_return
|
193
|
+
rescue StandardError
|
194
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
195
|
+
end
|
196
|
+
end
|
197
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
198
|
+
# rubocop:enable Layout/EmptyLines
|
199
|
+
|
200
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
201
|
+
# rubocop:disable Layout/EmptyLines
|
202
|
+
|
203
|
+
|
204
|
+
# Calls {OCI::AiVision::AIServiceVisionClient#delete_model} and then waits for the {OCI::AiVision::Models::WorkRequest}
|
205
|
+
# to enter the given state(s).
|
206
|
+
#
|
207
|
+
# @param [String] model_id unique model identifier.
|
208
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::AiVision::Models::WorkRequest#status}
|
209
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::AiVision::AIServiceVisionClient#delete_model}
|
210
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
211
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
212
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
213
|
+
#
|
214
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::AiVision::Models::WorkRequest}
|
215
|
+
def delete_model_and_wait_for_state(model_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
216
|
+
operation_result = @service_client.delete_model(model_id, base_operation_opts)
|
217
|
+
use_util = OCI::AiVision::Util.respond_to?(:wait_on_work_request)
|
218
|
+
|
219
|
+
return operation_result if wait_for_states.empty? && !use_util
|
220
|
+
|
221
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
222
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
223
|
+
|
224
|
+
begin
|
225
|
+
if use_util
|
226
|
+
waiter_result = OCI::AiVision::Util.wait_on_work_request(
|
227
|
+
@service_client,
|
228
|
+
wait_for_resource_id,
|
229
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
230
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
231
|
+
)
|
232
|
+
else
|
233
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
234
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
235
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
236
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
237
|
+
)
|
238
|
+
end
|
239
|
+
result_to_return = waiter_result
|
240
|
+
|
241
|
+
return result_to_return
|
242
|
+
rescue StandardError
|
243
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
244
|
+
end
|
245
|
+
end
|
246
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
247
|
+
# rubocop:enable Layout/EmptyLines
|
248
|
+
|
249
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
250
|
+
# rubocop:disable Layout/EmptyLines
|
251
|
+
|
252
|
+
|
253
|
+
# Calls {OCI::AiVision::AIServiceVisionClient#delete_project} and then waits for the {OCI::AiVision::Models::WorkRequest}
|
254
|
+
# to enter the given state(s).
|
255
|
+
#
|
256
|
+
# @param [String] project_id unique project identifier.
|
257
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::AiVision::Models::WorkRequest#status}
|
258
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::AiVision::AIServiceVisionClient#delete_project}
|
259
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
260
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
261
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
262
|
+
#
|
263
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::AiVision::Models::WorkRequest}
|
264
|
+
def delete_project_and_wait_for_state(project_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
265
|
+
operation_result = @service_client.delete_project(project_id, base_operation_opts)
|
266
|
+
use_util = OCI::AiVision::Util.respond_to?(:wait_on_work_request)
|
267
|
+
|
268
|
+
return operation_result if wait_for_states.empty? && !use_util
|
269
|
+
|
270
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
271
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
272
|
+
|
273
|
+
begin
|
274
|
+
if use_util
|
275
|
+
waiter_result = OCI::AiVision::Util.wait_on_work_request(
|
276
|
+
@service_client,
|
277
|
+
wait_for_resource_id,
|
278
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
279
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
280
|
+
)
|
281
|
+
else
|
282
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
283
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
284
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
285
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
286
|
+
)
|
287
|
+
end
|
288
|
+
result_to_return = waiter_result
|
289
|
+
|
290
|
+
return result_to_return
|
291
|
+
rescue StandardError
|
292
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
293
|
+
end
|
294
|
+
end
|
295
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
296
|
+
# rubocop:enable Layout/EmptyLines
|
297
|
+
|
298
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
299
|
+
# rubocop:disable Layout/EmptyLines
|
300
|
+
|
301
|
+
|
302
|
+
# Calls {OCI::AiVision::AIServiceVisionClient#update_model} and then waits for the {OCI::AiVision::Models::WorkRequest}
|
303
|
+
# to enter the given state(s).
|
304
|
+
#
|
305
|
+
# @param [String] model_id unique model identifier.
|
306
|
+
# @param [OCI::AiVision::Models::UpdateModelDetails] update_model_details Model metadata to be updated.
|
307
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::AiVision::Models::WorkRequest#status}
|
308
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::AiVision::AIServiceVisionClient#update_model}
|
309
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
310
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
311
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
312
|
+
#
|
313
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::AiVision::Models::WorkRequest}
|
314
|
+
def update_model_and_wait_for_state(model_id, update_model_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
315
|
+
operation_result = @service_client.update_model(model_id, update_model_details, base_operation_opts)
|
316
|
+
use_util = OCI::AiVision::Util.respond_to?(:wait_on_work_request)
|
317
|
+
|
318
|
+
return operation_result if wait_for_states.empty? && !use_util
|
319
|
+
|
320
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
321
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
322
|
+
|
323
|
+
begin
|
324
|
+
if use_util
|
325
|
+
waiter_result = OCI::AiVision::Util.wait_on_work_request(
|
326
|
+
@service_client,
|
327
|
+
wait_for_resource_id,
|
328
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
329
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
330
|
+
)
|
331
|
+
else
|
332
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
333
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
334
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
335
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
336
|
+
)
|
337
|
+
end
|
338
|
+
result_to_return = waiter_result
|
339
|
+
|
340
|
+
return result_to_return
|
341
|
+
rescue StandardError
|
342
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
343
|
+
end
|
344
|
+
end
|
345
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
346
|
+
# rubocop:enable Layout/EmptyLines
|
347
|
+
|
348
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
349
|
+
# rubocop:disable Layout/EmptyLines
|
350
|
+
|
351
|
+
|
352
|
+
# Calls {OCI::AiVision::AIServiceVisionClient#update_project} and then waits for the {OCI::AiVision::Models::WorkRequest}
|
353
|
+
# to enter the given state(s).
|
354
|
+
#
|
355
|
+
# @param [String] project_id unique project identifier.
|
356
|
+
# @param [OCI::AiVision::Models::UpdateProjectDetails] update_project_details Project metadata to be updated.
|
357
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::AiVision::Models::WorkRequest#status}
|
358
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::AiVision::AIServiceVisionClient#update_project}
|
359
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
360
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
361
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
362
|
+
#
|
363
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::AiVision::Models::WorkRequest}
|
364
|
+
def update_project_and_wait_for_state(project_id, update_project_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
365
|
+
operation_result = @service_client.update_project(project_id, update_project_details, base_operation_opts)
|
366
|
+
use_util = OCI::AiVision::Util.respond_to?(:wait_on_work_request)
|
367
|
+
|
368
|
+
return operation_result if wait_for_states.empty? && !use_util
|
369
|
+
|
370
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
371
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
372
|
+
|
373
|
+
begin
|
374
|
+
if use_util
|
375
|
+
waiter_result = OCI::AiVision::Util.wait_on_work_request(
|
376
|
+
@service_client,
|
377
|
+
wait_for_resource_id,
|
378
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
379
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
380
|
+
)
|
381
|
+
else
|
382
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
383
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
384
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
385
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
386
|
+
)
|
387
|
+
end
|
388
|
+
result_to_return = waiter_result
|
389
|
+
|
390
|
+
return result_to_return
|
391
|
+
rescue StandardError
|
392
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
393
|
+
end
|
394
|
+
end
|
395
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
396
|
+
# rubocop:enable Layout/EmptyLines
|
397
|
+
end
|
398
|
+
end
|
399
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,105 @@
|
|
1
|
+
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
3
|
+
|
4
|
+
module OCI
|
5
|
+
module AiVision
|
6
|
+
# Module containing models for requests made to, and responses received from,
|
7
|
+
# OCI AiVision services
|
8
|
+
module Models
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
# Require models
|
14
|
+
require 'oci/ai_vision/models/action_type'
|
15
|
+
require 'oci/ai_vision/models/analyze_document_details'
|
16
|
+
require 'oci/ai_vision/models/analyze_document_result'
|
17
|
+
require 'oci/ai_vision/models/analyze_image_details'
|
18
|
+
require 'oci/ai_vision/models/analyze_image_result'
|
19
|
+
require 'oci/ai_vision/models/bounding_polygon'
|
20
|
+
require 'oci/ai_vision/models/cell'
|
21
|
+
require 'oci/ai_vision/models/change_model_compartment_details'
|
22
|
+
require 'oci/ai_vision/models/change_project_compartment_details'
|
23
|
+
require 'oci/ai_vision/models/create_document_job_details'
|
24
|
+
require 'oci/ai_vision/models/create_image_job_details'
|
25
|
+
require 'oci/ai_vision/models/create_model_details'
|
26
|
+
require 'oci/ai_vision/models/create_project_details'
|
27
|
+
require 'oci/ai_vision/models/data_science_labeling_dataset'
|
28
|
+
require 'oci/ai_vision/models/dataset'
|
29
|
+
require 'oci/ai_vision/models/detected_document_type'
|
30
|
+
require 'oci/ai_vision/models/detected_language'
|
31
|
+
require 'oci/ai_vision/models/dimensions'
|
32
|
+
require 'oci/ai_vision/models/document_classification_feature'
|
33
|
+
require 'oci/ai_vision/models/document_details'
|
34
|
+
require 'oci/ai_vision/models/document_feature'
|
35
|
+
require 'oci/ai_vision/models/document_field'
|
36
|
+
require 'oci/ai_vision/models/document_job'
|
37
|
+
require 'oci/ai_vision/models/document_key_value_detection_feature'
|
38
|
+
require 'oci/ai_vision/models/document_language'
|
39
|
+
require 'oci/ai_vision/models/document_language_classification_feature'
|
40
|
+
require 'oci/ai_vision/models/document_metadata'
|
41
|
+
require 'oci/ai_vision/models/document_table_detection_feature'
|
42
|
+
require 'oci/ai_vision/models/document_text_detection_feature'
|
43
|
+
require 'oci/ai_vision/models/document_type'
|
44
|
+
require 'oci/ai_vision/models/field_label'
|
45
|
+
require 'oci/ai_vision/models/field_name'
|
46
|
+
require 'oci/ai_vision/models/field_value'
|
47
|
+
require 'oci/ai_vision/models/image_classification_feature'
|
48
|
+
require 'oci/ai_vision/models/image_details'
|
49
|
+
require 'oci/ai_vision/models/image_feature'
|
50
|
+
require 'oci/ai_vision/models/image_job'
|
51
|
+
require 'oci/ai_vision/models/image_object'
|
52
|
+
require 'oci/ai_vision/models/image_object_detection_feature'
|
53
|
+
require 'oci/ai_vision/models/image_text'
|
54
|
+
require 'oci/ai_vision/models/image_text_detection_feature'
|
55
|
+
require 'oci/ai_vision/models/inline_document_details'
|
56
|
+
require 'oci/ai_vision/models/inline_image_details'
|
57
|
+
require 'oci/ai_vision/models/input_location'
|
58
|
+
require 'oci/ai_vision/models/label'
|
59
|
+
require 'oci/ai_vision/models/line'
|
60
|
+
require 'oci/ai_vision/models/model'
|
61
|
+
require 'oci/ai_vision/models/model_collection'
|
62
|
+
require 'oci/ai_vision/models/model_summary'
|
63
|
+
require 'oci/ai_vision/models/normalized_vertex'
|
64
|
+
require 'oci/ai_vision/models/object_list_inline_input_location'
|
65
|
+
require 'oci/ai_vision/models/object_location'
|
66
|
+
require 'oci/ai_vision/models/object_storage_dataset'
|
67
|
+
require 'oci/ai_vision/models/object_storage_document_details'
|
68
|
+
require 'oci/ai_vision/models/object_storage_image_details'
|
69
|
+
require 'oci/ai_vision/models/ontology_class'
|
70
|
+
require 'oci/ai_vision/models/operation_status'
|
71
|
+
require 'oci/ai_vision/models/operation_type'
|
72
|
+
require 'oci/ai_vision/models/output_location'
|
73
|
+
require 'oci/ai_vision/models/page'
|
74
|
+
require 'oci/ai_vision/models/processing_error'
|
75
|
+
require 'oci/ai_vision/models/project'
|
76
|
+
require 'oci/ai_vision/models/project_collection'
|
77
|
+
require 'oci/ai_vision/models/project_summary'
|
78
|
+
require 'oci/ai_vision/models/sort_order'
|
79
|
+
require 'oci/ai_vision/models/table'
|
80
|
+
require 'oci/ai_vision/models/table_row'
|
81
|
+
require 'oci/ai_vision/models/update_model_details'
|
82
|
+
require 'oci/ai_vision/models/update_project_details'
|
83
|
+
require 'oci/ai_vision/models/value_array'
|
84
|
+
require 'oci/ai_vision/models/value_date'
|
85
|
+
require 'oci/ai_vision/models/value_integer'
|
86
|
+
require 'oci/ai_vision/models/value_number'
|
87
|
+
require 'oci/ai_vision/models/value_phone_number'
|
88
|
+
require 'oci/ai_vision/models/value_string'
|
89
|
+
require 'oci/ai_vision/models/value_time'
|
90
|
+
require 'oci/ai_vision/models/word'
|
91
|
+
require 'oci/ai_vision/models/work_request'
|
92
|
+
require 'oci/ai_vision/models/work_request_error'
|
93
|
+
require 'oci/ai_vision/models/work_request_error_collection'
|
94
|
+
require 'oci/ai_vision/models/work_request_log_entry'
|
95
|
+
require 'oci/ai_vision/models/work_request_log_entry_collection'
|
96
|
+
require 'oci/ai_vision/models/work_request_resource'
|
97
|
+
require 'oci/ai_vision/models/work_request_summary'
|
98
|
+
require 'oci/ai_vision/models/work_request_summary_collection'
|
99
|
+
|
100
|
+
# Require generated clients
|
101
|
+
require 'oci/ai_vision/ai_service_vision_client'
|
102
|
+
require 'oci/ai_vision/ai_service_vision_client_composite_operations'
|
103
|
+
|
104
|
+
# Require service utilities
|
105
|
+
require 'oci/ai_vision/util'
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
3
|
+
|
4
|
+
module OCI
|
5
|
+
module AiVision::Models
|
6
|
+
ACTION_TYPE_ENUM = [
|
7
|
+
ACTION_TYPE_CREATED = 'CREATED'.freeze,
|
8
|
+
ACTION_TYPE_UPDATED = 'UPDATED'.freeze,
|
9
|
+
ACTION_TYPE_DELETED = 'DELETED'.freeze,
|
10
|
+
ACTION_TYPE_IN_PROGRESS = 'IN_PROGRESS'.freeze,
|
11
|
+
ACTION_TYPE_RELATED = 'RELATED'.freeze,
|
12
|
+
ACTION_TYPE_FAILED = 'FAILED'.freeze
|
13
|
+
].freeze
|
14
|
+
end
|
15
|
+
end
|