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,547 @@
|
|
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
|
+
require 'date'
|
5
|
+
require 'logger'
|
6
|
+
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
8
|
+
module OCI
|
9
|
+
# Machine-learned Model.
|
10
|
+
class AiVision::Models::Model
|
11
|
+
MODEL_TYPE_ENUM = [
|
12
|
+
MODEL_TYPE_IMAGE_CLASSIFICATION = 'IMAGE_CLASSIFICATION'.freeze,
|
13
|
+
MODEL_TYPE_OBJECT_DETECTION = 'OBJECT_DETECTION'.freeze,
|
14
|
+
MODEL_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
15
|
+
].freeze
|
16
|
+
|
17
|
+
LIFECYCLE_STATE_ENUM = [
|
18
|
+
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
19
|
+
LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
|
20
|
+
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
|
21
|
+
LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
|
22
|
+
LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
|
23
|
+
LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
|
24
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
25
|
+
].freeze
|
26
|
+
|
27
|
+
# **[Required]** Unique identifier that is immutable after creation.
|
28
|
+
# @return [String]
|
29
|
+
attr_accessor :id
|
30
|
+
|
31
|
+
# Human-friendly name for the model, which can be changed.
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :display_name
|
34
|
+
|
35
|
+
# Optional description of the model.
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :description
|
38
|
+
|
39
|
+
# **[Required]** Compartment identifier.
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :compartment_id
|
42
|
+
|
43
|
+
# **[Required]** What type of Vision model this is.
|
44
|
+
# @return [String]
|
45
|
+
attr_reader :model_type
|
46
|
+
|
47
|
+
# Set to true when experimenting with a new model type or dataset so model training is quick, with a predefined low number of passes through the training data.
|
48
|
+
# @return [BOOLEAN]
|
49
|
+
attr_accessor :is_quick_mode
|
50
|
+
|
51
|
+
# Maximum model training duration in hours, expressed as a decimal fraction.
|
52
|
+
# @return [Float]
|
53
|
+
attr_accessor :max_training_duration_in_hours
|
54
|
+
|
55
|
+
# Total hours actually used for model training.
|
56
|
+
# @return [Float]
|
57
|
+
attr_accessor :trained_duration_in_hours
|
58
|
+
|
59
|
+
# This attribute is required.
|
60
|
+
# @return [OCI::AiVision::Models::Dataset]
|
61
|
+
attr_accessor :training_dataset
|
62
|
+
|
63
|
+
# @return [OCI::AiVision::Models::Dataset]
|
64
|
+
attr_accessor :testing_dataset
|
65
|
+
|
66
|
+
# @return [OCI::AiVision::Models::Dataset]
|
67
|
+
attr_accessor :validation_dataset
|
68
|
+
|
69
|
+
# **[Required]** The version of the model.
|
70
|
+
# @return [String]
|
71
|
+
attr_accessor :model_version
|
72
|
+
|
73
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project which contains the model.
|
74
|
+
# @return [String]
|
75
|
+
attr_accessor :project_id
|
76
|
+
|
77
|
+
# **[Required]** When the model was created, as an RFC3339 datetime string.
|
78
|
+
# @return [DateTime]
|
79
|
+
attr_accessor :time_created
|
80
|
+
|
81
|
+
# When the model was updated, as an RFC3339 datetime string.
|
82
|
+
# @return [DateTime]
|
83
|
+
attr_accessor :time_updated
|
84
|
+
|
85
|
+
# **[Required]** Current state of the model.
|
86
|
+
# @return [String]
|
87
|
+
attr_reader :lifecycle_state
|
88
|
+
|
89
|
+
# A message describing the current state in more detail which can provide actionable information if training failed.
|
90
|
+
# @return [String]
|
91
|
+
attr_accessor :lifecycle_details
|
92
|
+
|
93
|
+
# Precision of the trained model.
|
94
|
+
# @return [Float]
|
95
|
+
attr_accessor :precision
|
96
|
+
|
97
|
+
# Recall of the trained model.
|
98
|
+
# @return [Float]
|
99
|
+
attr_accessor :recall
|
100
|
+
|
101
|
+
# Mean average precision of the trained model.
|
102
|
+
# @return [Float]
|
103
|
+
attr_accessor :average_precision
|
104
|
+
|
105
|
+
# Intersection over union threshold used for calculating precision and recall.
|
106
|
+
# @return [Float]
|
107
|
+
attr_accessor :confidence_threshold
|
108
|
+
|
109
|
+
# Number of images in the dataset used to train, validate, and test the model.
|
110
|
+
# @return [Integer]
|
111
|
+
attr_accessor :total_image_count
|
112
|
+
|
113
|
+
# Number of images set aside for evaluating model performance metrics after training.
|
114
|
+
# @return [Integer]
|
115
|
+
attr_accessor :test_image_count
|
116
|
+
|
117
|
+
# Complete set of per-label metrics for successfully trained model.
|
118
|
+
# @return [String]
|
119
|
+
attr_accessor :metrics
|
120
|
+
|
121
|
+
# Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
|
122
|
+
# Example: `{\"bar-key\": \"value\"}`
|
123
|
+
#
|
124
|
+
# @return [Hash<String, String>]
|
125
|
+
attr_accessor :freeform_tags
|
126
|
+
|
127
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
128
|
+
# Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
|
129
|
+
#
|
130
|
+
# @return [Hash<String, Hash<String, Object>>]
|
131
|
+
attr_accessor :defined_tags
|
132
|
+
|
133
|
+
# Usage of system tag keys. These predefined keys are scoped to namespaces.
|
134
|
+
# Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
|
135
|
+
#
|
136
|
+
# @return [Hash<String, Hash<String, Object>>]
|
137
|
+
attr_accessor :system_tags
|
138
|
+
|
139
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
140
|
+
def self.attribute_map
|
141
|
+
{
|
142
|
+
# rubocop:disable Style/SymbolLiteral
|
143
|
+
'id': :'id',
|
144
|
+
'display_name': :'displayName',
|
145
|
+
'description': :'description',
|
146
|
+
'compartment_id': :'compartmentId',
|
147
|
+
'model_type': :'modelType',
|
148
|
+
'is_quick_mode': :'isQuickMode',
|
149
|
+
'max_training_duration_in_hours': :'maxTrainingDurationInHours',
|
150
|
+
'trained_duration_in_hours': :'trainedDurationInHours',
|
151
|
+
'training_dataset': :'trainingDataset',
|
152
|
+
'testing_dataset': :'testingDataset',
|
153
|
+
'validation_dataset': :'validationDataset',
|
154
|
+
'model_version': :'modelVersion',
|
155
|
+
'project_id': :'projectId',
|
156
|
+
'time_created': :'timeCreated',
|
157
|
+
'time_updated': :'timeUpdated',
|
158
|
+
'lifecycle_state': :'lifecycleState',
|
159
|
+
'lifecycle_details': :'lifecycleDetails',
|
160
|
+
'precision': :'precision',
|
161
|
+
'recall': :'recall',
|
162
|
+
'average_precision': :'averagePrecision',
|
163
|
+
'confidence_threshold': :'confidenceThreshold',
|
164
|
+
'total_image_count': :'totalImageCount',
|
165
|
+
'test_image_count': :'testImageCount',
|
166
|
+
'metrics': :'metrics',
|
167
|
+
'freeform_tags': :'freeformTags',
|
168
|
+
'defined_tags': :'definedTags',
|
169
|
+
'system_tags': :'systemTags'
|
170
|
+
# rubocop:enable Style/SymbolLiteral
|
171
|
+
}
|
172
|
+
end
|
173
|
+
|
174
|
+
# Attribute type mapping.
|
175
|
+
def self.swagger_types
|
176
|
+
{
|
177
|
+
# rubocop:disable Style/SymbolLiteral
|
178
|
+
'id': :'String',
|
179
|
+
'display_name': :'String',
|
180
|
+
'description': :'String',
|
181
|
+
'compartment_id': :'String',
|
182
|
+
'model_type': :'String',
|
183
|
+
'is_quick_mode': :'BOOLEAN',
|
184
|
+
'max_training_duration_in_hours': :'Float',
|
185
|
+
'trained_duration_in_hours': :'Float',
|
186
|
+
'training_dataset': :'OCI::AiVision::Models::Dataset',
|
187
|
+
'testing_dataset': :'OCI::AiVision::Models::Dataset',
|
188
|
+
'validation_dataset': :'OCI::AiVision::Models::Dataset',
|
189
|
+
'model_version': :'String',
|
190
|
+
'project_id': :'String',
|
191
|
+
'time_created': :'DateTime',
|
192
|
+
'time_updated': :'DateTime',
|
193
|
+
'lifecycle_state': :'String',
|
194
|
+
'lifecycle_details': :'String',
|
195
|
+
'precision': :'Float',
|
196
|
+
'recall': :'Float',
|
197
|
+
'average_precision': :'Float',
|
198
|
+
'confidence_threshold': :'Float',
|
199
|
+
'total_image_count': :'Integer',
|
200
|
+
'test_image_count': :'Integer',
|
201
|
+
'metrics': :'String',
|
202
|
+
'freeform_tags': :'Hash<String, String>',
|
203
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
204
|
+
'system_tags': :'Hash<String, Hash<String, Object>>'
|
205
|
+
# rubocop:enable Style/SymbolLiteral
|
206
|
+
}
|
207
|
+
end
|
208
|
+
|
209
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
210
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
211
|
+
|
212
|
+
|
213
|
+
# Initializes the object
|
214
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
215
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
216
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
217
|
+
# @option attributes [String] :description The value to assign to the {#description} property
|
218
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
219
|
+
# @option attributes [String] :model_type The value to assign to the {#model_type} property
|
220
|
+
# @option attributes [BOOLEAN] :is_quick_mode The value to assign to the {#is_quick_mode} property
|
221
|
+
# @option attributes [Float] :max_training_duration_in_hours The value to assign to the {#max_training_duration_in_hours} property
|
222
|
+
# @option attributes [Float] :trained_duration_in_hours The value to assign to the {#trained_duration_in_hours} property
|
223
|
+
# @option attributes [OCI::AiVision::Models::Dataset] :training_dataset The value to assign to the {#training_dataset} property
|
224
|
+
# @option attributes [OCI::AiVision::Models::Dataset] :testing_dataset The value to assign to the {#testing_dataset} property
|
225
|
+
# @option attributes [OCI::AiVision::Models::Dataset] :validation_dataset The value to assign to the {#validation_dataset} property
|
226
|
+
# @option attributes [String] :model_version The value to assign to the {#model_version} property
|
227
|
+
# @option attributes [String] :project_id The value to assign to the {#project_id} property
|
228
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
229
|
+
# @option attributes [DateTime] :time_updated The value to assign to the {#time_updated} property
|
230
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
231
|
+
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
232
|
+
# @option attributes [Float] :precision The value to assign to the {#precision} property
|
233
|
+
# @option attributes [Float] :recall The value to assign to the {#recall} property
|
234
|
+
# @option attributes [Float] :average_precision The value to assign to the {#average_precision} property
|
235
|
+
# @option attributes [Float] :confidence_threshold The value to assign to the {#confidence_threshold} property
|
236
|
+
# @option attributes [Integer] :total_image_count The value to assign to the {#total_image_count} property
|
237
|
+
# @option attributes [Integer] :test_image_count The value to assign to the {#test_image_count} property
|
238
|
+
# @option attributes [String] :metrics The value to assign to the {#metrics} property
|
239
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
240
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
241
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :system_tags The value to assign to the {#system_tags} property
|
242
|
+
def initialize(attributes = {})
|
243
|
+
return unless attributes.is_a?(Hash)
|
244
|
+
|
245
|
+
# convert string to symbol for hash key
|
246
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
247
|
+
|
248
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
249
|
+
|
250
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
251
|
+
|
252
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
253
|
+
|
254
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
255
|
+
|
256
|
+
self.description = attributes[:'description'] if attributes[:'description']
|
257
|
+
|
258
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
259
|
+
|
260
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
261
|
+
|
262
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
263
|
+
|
264
|
+
self.model_type = attributes[:'modelType'] if attributes[:'modelType']
|
265
|
+
|
266
|
+
raise 'You cannot provide both :modelType and :model_type' if attributes.key?(:'modelType') && attributes.key?(:'model_type')
|
267
|
+
|
268
|
+
self.model_type = attributes[:'model_type'] if attributes[:'model_type']
|
269
|
+
|
270
|
+
self.is_quick_mode = attributes[:'isQuickMode'] unless attributes[:'isQuickMode'].nil?
|
271
|
+
self.is_quick_mode = false if is_quick_mode.nil? && !attributes.key?(:'isQuickMode') # rubocop:disable Style/StringLiterals
|
272
|
+
|
273
|
+
raise 'You cannot provide both :isQuickMode and :is_quick_mode' if attributes.key?(:'isQuickMode') && attributes.key?(:'is_quick_mode')
|
274
|
+
|
275
|
+
self.is_quick_mode = attributes[:'is_quick_mode'] unless attributes[:'is_quick_mode'].nil?
|
276
|
+
self.is_quick_mode = false if is_quick_mode.nil? && !attributes.key?(:'isQuickMode') && !attributes.key?(:'is_quick_mode') # rubocop:disable Style/StringLiterals
|
277
|
+
|
278
|
+
self.max_training_duration_in_hours = attributes[:'maxTrainingDurationInHours'] if attributes[:'maxTrainingDurationInHours']
|
279
|
+
|
280
|
+
raise 'You cannot provide both :maxTrainingDurationInHours and :max_training_duration_in_hours' if attributes.key?(:'maxTrainingDurationInHours') && attributes.key?(:'max_training_duration_in_hours')
|
281
|
+
|
282
|
+
self.max_training_duration_in_hours = attributes[:'max_training_duration_in_hours'] if attributes[:'max_training_duration_in_hours']
|
283
|
+
|
284
|
+
self.trained_duration_in_hours = attributes[:'trainedDurationInHours'] if attributes[:'trainedDurationInHours']
|
285
|
+
|
286
|
+
raise 'You cannot provide both :trainedDurationInHours and :trained_duration_in_hours' if attributes.key?(:'trainedDurationInHours') && attributes.key?(:'trained_duration_in_hours')
|
287
|
+
|
288
|
+
self.trained_duration_in_hours = attributes[:'trained_duration_in_hours'] if attributes[:'trained_duration_in_hours']
|
289
|
+
|
290
|
+
self.training_dataset = attributes[:'trainingDataset'] if attributes[:'trainingDataset']
|
291
|
+
|
292
|
+
raise 'You cannot provide both :trainingDataset and :training_dataset' if attributes.key?(:'trainingDataset') && attributes.key?(:'training_dataset')
|
293
|
+
|
294
|
+
self.training_dataset = attributes[:'training_dataset'] if attributes[:'training_dataset']
|
295
|
+
|
296
|
+
self.testing_dataset = attributes[:'testingDataset'] if attributes[:'testingDataset']
|
297
|
+
|
298
|
+
raise 'You cannot provide both :testingDataset and :testing_dataset' if attributes.key?(:'testingDataset') && attributes.key?(:'testing_dataset')
|
299
|
+
|
300
|
+
self.testing_dataset = attributes[:'testing_dataset'] if attributes[:'testing_dataset']
|
301
|
+
|
302
|
+
self.validation_dataset = attributes[:'validationDataset'] if attributes[:'validationDataset']
|
303
|
+
|
304
|
+
raise 'You cannot provide both :validationDataset and :validation_dataset' if attributes.key?(:'validationDataset') && attributes.key?(:'validation_dataset')
|
305
|
+
|
306
|
+
self.validation_dataset = attributes[:'validation_dataset'] if attributes[:'validation_dataset']
|
307
|
+
|
308
|
+
self.model_version = attributes[:'modelVersion'] if attributes[:'modelVersion']
|
309
|
+
|
310
|
+
raise 'You cannot provide both :modelVersion and :model_version' if attributes.key?(:'modelVersion') && attributes.key?(:'model_version')
|
311
|
+
|
312
|
+
self.model_version = attributes[:'model_version'] if attributes[:'model_version']
|
313
|
+
|
314
|
+
self.project_id = attributes[:'projectId'] if attributes[:'projectId']
|
315
|
+
|
316
|
+
raise 'You cannot provide both :projectId and :project_id' if attributes.key?(:'projectId') && attributes.key?(:'project_id')
|
317
|
+
|
318
|
+
self.project_id = attributes[:'project_id'] if attributes[:'project_id']
|
319
|
+
|
320
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
321
|
+
|
322
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
323
|
+
|
324
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
325
|
+
|
326
|
+
self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated']
|
327
|
+
|
328
|
+
raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated')
|
329
|
+
|
330
|
+
self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated']
|
331
|
+
|
332
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
333
|
+
|
334
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
335
|
+
|
336
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
337
|
+
|
338
|
+
self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
|
339
|
+
|
340
|
+
raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
|
341
|
+
|
342
|
+
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
343
|
+
|
344
|
+
self.precision = attributes[:'precision'] if attributes[:'precision']
|
345
|
+
|
346
|
+
self.recall = attributes[:'recall'] if attributes[:'recall']
|
347
|
+
|
348
|
+
self.average_precision = attributes[:'averagePrecision'] if attributes[:'averagePrecision']
|
349
|
+
|
350
|
+
raise 'You cannot provide both :averagePrecision and :average_precision' if attributes.key?(:'averagePrecision') && attributes.key?(:'average_precision')
|
351
|
+
|
352
|
+
self.average_precision = attributes[:'average_precision'] if attributes[:'average_precision']
|
353
|
+
|
354
|
+
self.confidence_threshold = attributes[:'confidenceThreshold'] if attributes[:'confidenceThreshold']
|
355
|
+
|
356
|
+
raise 'You cannot provide both :confidenceThreshold and :confidence_threshold' if attributes.key?(:'confidenceThreshold') && attributes.key?(:'confidence_threshold')
|
357
|
+
|
358
|
+
self.confidence_threshold = attributes[:'confidence_threshold'] if attributes[:'confidence_threshold']
|
359
|
+
|
360
|
+
self.total_image_count = attributes[:'totalImageCount'] if attributes[:'totalImageCount']
|
361
|
+
|
362
|
+
raise 'You cannot provide both :totalImageCount and :total_image_count' if attributes.key?(:'totalImageCount') && attributes.key?(:'total_image_count')
|
363
|
+
|
364
|
+
self.total_image_count = attributes[:'total_image_count'] if attributes[:'total_image_count']
|
365
|
+
|
366
|
+
self.test_image_count = attributes[:'testImageCount'] if attributes[:'testImageCount']
|
367
|
+
|
368
|
+
raise 'You cannot provide both :testImageCount and :test_image_count' if attributes.key?(:'testImageCount') && attributes.key?(:'test_image_count')
|
369
|
+
|
370
|
+
self.test_image_count = attributes[:'test_image_count'] if attributes[:'test_image_count']
|
371
|
+
|
372
|
+
self.metrics = attributes[:'metrics'] if attributes[:'metrics']
|
373
|
+
|
374
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
375
|
+
|
376
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
377
|
+
|
378
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
379
|
+
|
380
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
381
|
+
|
382
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
383
|
+
|
384
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
385
|
+
|
386
|
+
self.system_tags = attributes[:'systemTags'] if attributes[:'systemTags']
|
387
|
+
|
388
|
+
raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags')
|
389
|
+
|
390
|
+
self.system_tags = attributes[:'system_tags'] if attributes[:'system_tags']
|
391
|
+
end
|
392
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
393
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
394
|
+
|
395
|
+
# Custom attribute writer method checking allowed values (enum).
|
396
|
+
# @param [Object] model_type Object to be assigned
|
397
|
+
def model_type=(model_type)
|
398
|
+
# rubocop:disable Style/ConditionalAssignment
|
399
|
+
if model_type && !MODEL_TYPE_ENUM.include?(model_type)
|
400
|
+
OCI.logger.debug("Unknown value for 'model_type' [" + model_type + "]. Mapping to 'MODEL_TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
401
|
+
@model_type = MODEL_TYPE_UNKNOWN_ENUM_VALUE
|
402
|
+
else
|
403
|
+
@model_type = model_type
|
404
|
+
end
|
405
|
+
# rubocop:enable Style/ConditionalAssignment
|
406
|
+
end
|
407
|
+
|
408
|
+
# Custom attribute writer method checking allowed values (enum).
|
409
|
+
# @param [Object] lifecycle_state Object to be assigned
|
410
|
+
def lifecycle_state=(lifecycle_state)
|
411
|
+
# rubocop:disable Style/ConditionalAssignment
|
412
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
413
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
414
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
415
|
+
else
|
416
|
+
@lifecycle_state = lifecycle_state
|
417
|
+
end
|
418
|
+
# rubocop:enable Style/ConditionalAssignment
|
419
|
+
end
|
420
|
+
|
421
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
422
|
+
|
423
|
+
|
424
|
+
# Checks equality by comparing each attribute.
|
425
|
+
# @param [Object] other the other object to be compared
|
426
|
+
def ==(other)
|
427
|
+
return true if equal?(other)
|
428
|
+
|
429
|
+
self.class == other.class &&
|
430
|
+
id == other.id &&
|
431
|
+
display_name == other.display_name &&
|
432
|
+
description == other.description &&
|
433
|
+
compartment_id == other.compartment_id &&
|
434
|
+
model_type == other.model_type &&
|
435
|
+
is_quick_mode == other.is_quick_mode &&
|
436
|
+
max_training_duration_in_hours == other.max_training_duration_in_hours &&
|
437
|
+
trained_duration_in_hours == other.trained_duration_in_hours &&
|
438
|
+
training_dataset == other.training_dataset &&
|
439
|
+
testing_dataset == other.testing_dataset &&
|
440
|
+
validation_dataset == other.validation_dataset &&
|
441
|
+
model_version == other.model_version &&
|
442
|
+
project_id == other.project_id &&
|
443
|
+
time_created == other.time_created &&
|
444
|
+
time_updated == other.time_updated &&
|
445
|
+
lifecycle_state == other.lifecycle_state &&
|
446
|
+
lifecycle_details == other.lifecycle_details &&
|
447
|
+
precision == other.precision &&
|
448
|
+
recall == other.recall &&
|
449
|
+
average_precision == other.average_precision &&
|
450
|
+
confidence_threshold == other.confidence_threshold &&
|
451
|
+
total_image_count == other.total_image_count &&
|
452
|
+
test_image_count == other.test_image_count &&
|
453
|
+
metrics == other.metrics &&
|
454
|
+
freeform_tags == other.freeform_tags &&
|
455
|
+
defined_tags == other.defined_tags &&
|
456
|
+
system_tags == other.system_tags
|
457
|
+
end
|
458
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
459
|
+
|
460
|
+
# @see the `==` method
|
461
|
+
# @param [Object] other the other object to be compared
|
462
|
+
def eql?(other)
|
463
|
+
self == other
|
464
|
+
end
|
465
|
+
|
466
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
467
|
+
|
468
|
+
|
469
|
+
# Calculates hash code according to all attributes.
|
470
|
+
# @return [Fixnum] Hash code
|
471
|
+
def hash
|
472
|
+
[id, display_name, description, compartment_id, model_type, is_quick_mode, max_training_duration_in_hours, trained_duration_in_hours, training_dataset, testing_dataset, validation_dataset, model_version, project_id, time_created, time_updated, lifecycle_state, lifecycle_details, precision, recall, average_precision, confidence_threshold, total_image_count, test_image_count, metrics, freeform_tags, defined_tags, system_tags].hash
|
473
|
+
end
|
474
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
475
|
+
|
476
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
477
|
+
|
478
|
+
|
479
|
+
# Builds the object from hash
|
480
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
481
|
+
# @return [Object] Returns the model itself
|
482
|
+
def build_from_hash(attributes)
|
483
|
+
return nil unless attributes.is_a?(Hash)
|
484
|
+
|
485
|
+
self.class.swagger_types.each_pair do |key, type|
|
486
|
+
if type =~ /^Array<(.*)>/i
|
487
|
+
# check to ensure the input is an array given that the the attribute
|
488
|
+
# is documented as an array but the input is not
|
489
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
490
|
+
public_method("#{key}=").call(
|
491
|
+
attributes[self.class.attribute_map[key]]
|
492
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
493
|
+
)
|
494
|
+
end
|
495
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
496
|
+
public_method("#{key}=").call(
|
497
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
498
|
+
)
|
499
|
+
end
|
500
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
501
|
+
end
|
502
|
+
|
503
|
+
self
|
504
|
+
end
|
505
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
506
|
+
|
507
|
+
# Returns the string representation of the object
|
508
|
+
# @return [String] String presentation of the object
|
509
|
+
def to_s
|
510
|
+
to_hash.to_s
|
511
|
+
end
|
512
|
+
|
513
|
+
# Returns the object in the form of hash
|
514
|
+
# @return [Hash] Returns the object in the form of hash
|
515
|
+
def to_hash
|
516
|
+
hash = {}
|
517
|
+
self.class.attribute_map.each_pair do |attr, param|
|
518
|
+
value = public_method(attr).call
|
519
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
520
|
+
|
521
|
+
hash[param] = _to_hash(value)
|
522
|
+
end
|
523
|
+
hash
|
524
|
+
end
|
525
|
+
|
526
|
+
private
|
527
|
+
|
528
|
+
# Outputs non-array value in the form of hash
|
529
|
+
# For object, use to_hash. Otherwise, just return the value
|
530
|
+
# @param [Object] value Any valid value
|
531
|
+
# @return [Hash] Returns the value in the form of hash
|
532
|
+
def _to_hash(value)
|
533
|
+
if value.is_a?(Array)
|
534
|
+
value.compact.map { |v| _to_hash(v) }
|
535
|
+
elsif value.is_a?(Hash)
|
536
|
+
{}.tap do |hash|
|
537
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
538
|
+
end
|
539
|
+
elsif value.respond_to? :to_hash
|
540
|
+
value.to_hash
|
541
|
+
else
|
542
|
+
value
|
543
|
+
end
|
544
|
+
end
|
545
|
+
end
|
546
|
+
end
|
547
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|