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,250 @@
|
|
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_relative 'create_sensitive_type_details'
|
6
|
+
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
8
|
+
module OCI
|
9
|
+
# Details to create a new sensitive type with regular expressions.
|
10
|
+
class DataSafe::Models::CreateSensitiveTypePatternDetails < DataSafe::Models::CreateSensitiveTypeDetails
|
11
|
+
# A regular expression to be used by data discovery for matching column names.
|
12
|
+
# @return [String]
|
13
|
+
attr_accessor :name_pattern
|
14
|
+
|
15
|
+
# A regular expression to be used by data discovery for matching column comments.
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :comment_pattern
|
18
|
+
|
19
|
+
# A regular expression to be used by data discovery for matching column data values.
|
20
|
+
# @return [String]
|
21
|
+
attr_accessor :data_pattern
|
22
|
+
|
23
|
+
# The search type indicating how the column name, comment and data patterns should be used by data discovery.
|
24
|
+
# [Learn more](https://docs.oracle.com/en/cloud/paas/data-safe/udscs/sensitive-types.html#GUID-1D1AD98E-B93F-4FF2-80AE-CB7D8A14F6CC).
|
25
|
+
#
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :search_type
|
28
|
+
|
29
|
+
# The OCID of the library masking format that should be used to mask the sensitive columns associated with the sensitive type.
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :default_masking_format_id
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
# rubocop:disable Style/SymbolLiteral
|
37
|
+
'entity_type': :'entityType',
|
38
|
+
'display_name': :'displayName',
|
39
|
+
'compartment_id': :'compartmentId',
|
40
|
+
'short_name': :'shortName',
|
41
|
+
'description': :'description',
|
42
|
+
'parent_category_id': :'parentCategoryId',
|
43
|
+
'freeform_tags': :'freeformTags',
|
44
|
+
'defined_tags': :'definedTags',
|
45
|
+
'name_pattern': :'namePattern',
|
46
|
+
'comment_pattern': :'commentPattern',
|
47
|
+
'data_pattern': :'dataPattern',
|
48
|
+
'search_type': :'searchType',
|
49
|
+
'default_masking_format_id': :'defaultMaskingFormatId'
|
50
|
+
# rubocop:enable Style/SymbolLiteral
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.swagger_types
|
56
|
+
{
|
57
|
+
# rubocop:disable Style/SymbolLiteral
|
58
|
+
'entity_type': :'String',
|
59
|
+
'display_name': :'String',
|
60
|
+
'compartment_id': :'String',
|
61
|
+
'short_name': :'String',
|
62
|
+
'description': :'String',
|
63
|
+
'parent_category_id': :'String',
|
64
|
+
'freeform_tags': :'Hash<String, String>',
|
65
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
66
|
+
'name_pattern': :'String',
|
67
|
+
'comment_pattern': :'String',
|
68
|
+
'data_pattern': :'String',
|
69
|
+
'search_type': :'String',
|
70
|
+
'default_masking_format_id': :'String'
|
71
|
+
# rubocop:enable Style/SymbolLiteral
|
72
|
+
}
|
73
|
+
end
|
74
|
+
|
75
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
76
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
77
|
+
|
78
|
+
|
79
|
+
# Initializes the object
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
81
|
+
# @option attributes [String] :display_name The value to assign to the {OCI::DataSafe::Models::CreateSensitiveTypeDetails#display_name #display_name} proprety
|
82
|
+
# @option attributes [String] :compartment_id The value to assign to the {OCI::DataSafe::Models::CreateSensitiveTypeDetails#compartment_id #compartment_id} proprety
|
83
|
+
# @option attributes [String] :short_name The value to assign to the {OCI::DataSafe::Models::CreateSensitiveTypeDetails#short_name #short_name} proprety
|
84
|
+
# @option attributes [String] :description The value to assign to the {OCI::DataSafe::Models::CreateSensitiveTypeDetails#description #description} proprety
|
85
|
+
# @option attributes [String] :parent_category_id The value to assign to the {OCI::DataSafe::Models::CreateSensitiveTypeDetails#parent_category_id #parent_category_id} proprety
|
86
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {OCI::DataSafe::Models::CreateSensitiveTypeDetails#freeform_tags #freeform_tags} proprety
|
87
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {OCI::DataSafe::Models::CreateSensitiveTypeDetails#defined_tags #defined_tags} proprety
|
88
|
+
# @option attributes [String] :name_pattern The value to assign to the {#name_pattern} property
|
89
|
+
# @option attributes [String] :comment_pattern The value to assign to the {#comment_pattern} property
|
90
|
+
# @option attributes [String] :data_pattern The value to assign to the {#data_pattern} property
|
91
|
+
# @option attributes [String] :search_type The value to assign to the {#search_type} property
|
92
|
+
# @option attributes [String] :default_masking_format_id The value to assign to the {#default_masking_format_id} property
|
93
|
+
def initialize(attributes = {})
|
94
|
+
return unless attributes.is_a?(Hash)
|
95
|
+
|
96
|
+
attributes['entityType'] = 'SENSITIVE_TYPE'
|
97
|
+
|
98
|
+
super(attributes)
|
99
|
+
|
100
|
+
# convert string to symbol for hash key
|
101
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
102
|
+
|
103
|
+
self.name_pattern = attributes[:'namePattern'] if attributes[:'namePattern']
|
104
|
+
|
105
|
+
raise 'You cannot provide both :namePattern and :name_pattern' if attributes.key?(:'namePattern') && attributes.key?(:'name_pattern')
|
106
|
+
|
107
|
+
self.name_pattern = attributes[:'name_pattern'] if attributes[:'name_pattern']
|
108
|
+
|
109
|
+
self.comment_pattern = attributes[:'commentPattern'] if attributes[:'commentPattern']
|
110
|
+
|
111
|
+
raise 'You cannot provide both :commentPattern and :comment_pattern' if attributes.key?(:'commentPattern') && attributes.key?(:'comment_pattern')
|
112
|
+
|
113
|
+
self.comment_pattern = attributes[:'comment_pattern'] if attributes[:'comment_pattern']
|
114
|
+
|
115
|
+
self.data_pattern = attributes[:'dataPattern'] if attributes[:'dataPattern']
|
116
|
+
|
117
|
+
raise 'You cannot provide both :dataPattern and :data_pattern' if attributes.key?(:'dataPattern') && attributes.key?(:'data_pattern')
|
118
|
+
|
119
|
+
self.data_pattern = attributes[:'data_pattern'] if attributes[:'data_pattern']
|
120
|
+
|
121
|
+
self.search_type = attributes[:'searchType'] if attributes[:'searchType']
|
122
|
+
self.search_type = "OR" if search_type.nil? && !attributes.key?(:'searchType') # rubocop:disable Style/StringLiterals
|
123
|
+
|
124
|
+
raise 'You cannot provide both :searchType and :search_type' if attributes.key?(:'searchType') && attributes.key?(:'search_type')
|
125
|
+
|
126
|
+
self.search_type = attributes[:'search_type'] if attributes[:'search_type']
|
127
|
+
self.search_type = "OR" if search_type.nil? && !attributes.key?(:'searchType') && !attributes.key?(:'search_type') # rubocop:disable Style/StringLiterals
|
128
|
+
|
129
|
+
self.default_masking_format_id = attributes[:'defaultMaskingFormatId'] if attributes[:'defaultMaskingFormatId']
|
130
|
+
|
131
|
+
raise 'You cannot provide both :defaultMaskingFormatId and :default_masking_format_id' if attributes.key?(:'defaultMaskingFormatId') && attributes.key?(:'default_masking_format_id')
|
132
|
+
|
133
|
+
self.default_masking_format_id = attributes[:'default_masking_format_id'] if attributes[:'default_masking_format_id']
|
134
|
+
end
|
135
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
136
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
137
|
+
|
138
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
139
|
+
|
140
|
+
|
141
|
+
# Checks equality by comparing each attribute.
|
142
|
+
# @param [Object] other the other object to be compared
|
143
|
+
def ==(other)
|
144
|
+
return true if equal?(other)
|
145
|
+
|
146
|
+
self.class == other.class &&
|
147
|
+
entity_type == other.entity_type &&
|
148
|
+
display_name == other.display_name &&
|
149
|
+
compartment_id == other.compartment_id &&
|
150
|
+
short_name == other.short_name &&
|
151
|
+
description == other.description &&
|
152
|
+
parent_category_id == other.parent_category_id &&
|
153
|
+
freeform_tags == other.freeform_tags &&
|
154
|
+
defined_tags == other.defined_tags &&
|
155
|
+
name_pattern == other.name_pattern &&
|
156
|
+
comment_pattern == other.comment_pattern &&
|
157
|
+
data_pattern == other.data_pattern &&
|
158
|
+
search_type == other.search_type &&
|
159
|
+
default_masking_format_id == other.default_masking_format_id
|
160
|
+
end
|
161
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
162
|
+
|
163
|
+
# @see the `==` method
|
164
|
+
# @param [Object] other the other object to be compared
|
165
|
+
def eql?(other)
|
166
|
+
self == other
|
167
|
+
end
|
168
|
+
|
169
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
170
|
+
|
171
|
+
|
172
|
+
# Calculates hash code according to all attributes.
|
173
|
+
# @return [Fixnum] Hash code
|
174
|
+
def hash
|
175
|
+
[entity_type, display_name, compartment_id, short_name, description, parent_category_id, freeform_tags, defined_tags, name_pattern, comment_pattern, data_pattern, search_type, default_masking_format_id].hash
|
176
|
+
end
|
177
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
178
|
+
|
179
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
180
|
+
|
181
|
+
|
182
|
+
# Builds the object from hash
|
183
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
184
|
+
# @return [Object] Returns the model itself
|
185
|
+
def build_from_hash(attributes)
|
186
|
+
return nil unless attributes.is_a?(Hash)
|
187
|
+
|
188
|
+
self.class.swagger_types.each_pair do |key, type|
|
189
|
+
if type =~ /^Array<(.*)>/i
|
190
|
+
# check to ensure the input is an array given that the the attribute
|
191
|
+
# is documented as an array but the input is not
|
192
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
193
|
+
public_method("#{key}=").call(
|
194
|
+
attributes[self.class.attribute_map[key]]
|
195
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
196
|
+
)
|
197
|
+
end
|
198
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
199
|
+
public_method("#{key}=").call(
|
200
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
201
|
+
)
|
202
|
+
end
|
203
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
204
|
+
end
|
205
|
+
|
206
|
+
self
|
207
|
+
end
|
208
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
209
|
+
|
210
|
+
# Returns the string representation of the object
|
211
|
+
# @return [String] String presentation of the object
|
212
|
+
def to_s
|
213
|
+
to_hash.to_s
|
214
|
+
end
|
215
|
+
|
216
|
+
# Returns the object in the form of hash
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
def to_hash
|
219
|
+
hash = {}
|
220
|
+
self.class.attribute_map.each_pair do |attr, param|
|
221
|
+
value = public_method(attr).call
|
222
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
223
|
+
|
224
|
+
hash[param] = _to_hash(value)
|
225
|
+
end
|
226
|
+
hash
|
227
|
+
end
|
228
|
+
|
229
|
+
private
|
230
|
+
|
231
|
+
# Outputs non-array value in the form of hash
|
232
|
+
# For object, use to_hash. Otherwise, just return the value
|
233
|
+
# @param [Object] value Any valid value
|
234
|
+
# @return [Hash] Returns the value in the form of hash
|
235
|
+
def _to_hash(value)
|
236
|
+
if value.is_a?(Array)
|
237
|
+
value.compact.map { |v| _to_hash(v) }
|
238
|
+
elsif value.is_a?(Hash)
|
239
|
+
{}.tap do |hash|
|
240
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
241
|
+
end
|
242
|
+
elsif value.respond_to? :to_hash
|
243
|
+
value.to_hash
|
244
|
+
else
|
245
|
+
value
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
250
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,257 @@
|
|
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
|
+
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
7
|
+
module OCI
|
8
|
+
# The details used to create a new target-alert policy association.
|
9
|
+
#
|
10
|
+
class DataSafe::Models::CreateTargetAlertPolicyAssociationDetails
|
11
|
+
# **[Required]** The OCID of the alert policy.
|
12
|
+
# @return [String]
|
13
|
+
attr_accessor :policy_id
|
14
|
+
|
15
|
+
# **[Required]** The OCID of the target.
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :target_id
|
18
|
+
|
19
|
+
# The display name of the target-alert policy association.
|
20
|
+
# @return [String]
|
21
|
+
attr_accessor :display_name
|
22
|
+
|
23
|
+
# Describes the target-alert policy association.
|
24
|
+
# @return [String]
|
25
|
+
attr_accessor :description
|
26
|
+
|
27
|
+
# **[Required]** The OCID of the compartment where the target-alert policy association is created.
|
28
|
+
# @return [String]
|
29
|
+
attr_accessor :compartment_id
|
30
|
+
|
31
|
+
# **[Required]** Indicates if the target-alert policy association is enabled or disabled.
|
32
|
+
# @return [BOOLEAN]
|
33
|
+
attr_accessor :is_enabled
|
34
|
+
|
35
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm)
|
36
|
+
#
|
37
|
+
# Example: `{\"Department\": \"Finance\"}`
|
38
|
+
#
|
39
|
+
# @return [Hash<String, String>]
|
40
|
+
attr_accessor :freeform_tags
|
41
|
+
|
42
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm)
|
43
|
+
#
|
44
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
45
|
+
#
|
46
|
+
# @return [Hash<String, Hash<String, Object>>]
|
47
|
+
attr_accessor :defined_tags
|
48
|
+
|
49
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
50
|
+
def self.attribute_map
|
51
|
+
{
|
52
|
+
# rubocop:disable Style/SymbolLiteral
|
53
|
+
'policy_id': :'policyId',
|
54
|
+
'target_id': :'targetId',
|
55
|
+
'display_name': :'displayName',
|
56
|
+
'description': :'description',
|
57
|
+
'compartment_id': :'compartmentId',
|
58
|
+
'is_enabled': :'isEnabled',
|
59
|
+
'freeform_tags': :'freeformTags',
|
60
|
+
'defined_tags': :'definedTags'
|
61
|
+
# rubocop:enable Style/SymbolLiteral
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Attribute type mapping.
|
66
|
+
def self.swagger_types
|
67
|
+
{
|
68
|
+
# rubocop:disable Style/SymbolLiteral
|
69
|
+
'policy_id': :'String',
|
70
|
+
'target_id': :'String',
|
71
|
+
'display_name': :'String',
|
72
|
+
'description': :'String',
|
73
|
+
'compartment_id': :'String',
|
74
|
+
'is_enabled': :'BOOLEAN',
|
75
|
+
'freeform_tags': :'Hash<String, String>',
|
76
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
77
|
+
# rubocop:enable Style/SymbolLiteral
|
78
|
+
}
|
79
|
+
end
|
80
|
+
|
81
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
82
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
83
|
+
|
84
|
+
|
85
|
+
# Initializes the object
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
# @option attributes [String] :policy_id The value to assign to the {#policy_id} property
|
88
|
+
# @option attributes [String] :target_id The value to assign to the {#target_id} property
|
89
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
90
|
+
# @option attributes [String] :description The value to assign to the {#description} property
|
91
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
92
|
+
# @option attributes [BOOLEAN] :is_enabled The value to assign to the {#is_enabled} property
|
93
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
94
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
95
|
+
def initialize(attributes = {})
|
96
|
+
return unless attributes.is_a?(Hash)
|
97
|
+
|
98
|
+
# convert string to symbol for hash key
|
99
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
100
|
+
|
101
|
+
self.policy_id = attributes[:'policyId'] if attributes[:'policyId']
|
102
|
+
|
103
|
+
raise 'You cannot provide both :policyId and :policy_id' if attributes.key?(:'policyId') && attributes.key?(:'policy_id')
|
104
|
+
|
105
|
+
self.policy_id = attributes[:'policy_id'] if attributes[:'policy_id']
|
106
|
+
|
107
|
+
self.target_id = attributes[:'targetId'] if attributes[:'targetId']
|
108
|
+
|
109
|
+
raise 'You cannot provide both :targetId and :target_id' if attributes.key?(:'targetId') && attributes.key?(:'target_id')
|
110
|
+
|
111
|
+
self.target_id = attributes[:'target_id'] if attributes[:'target_id']
|
112
|
+
|
113
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
114
|
+
|
115
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
116
|
+
|
117
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
118
|
+
|
119
|
+
self.description = attributes[:'description'] if attributes[:'description']
|
120
|
+
|
121
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
122
|
+
|
123
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
124
|
+
|
125
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
126
|
+
|
127
|
+
self.is_enabled = attributes[:'isEnabled'] unless attributes[:'isEnabled'].nil?
|
128
|
+
self.is_enabled = true if is_enabled.nil? && !attributes.key?(:'isEnabled') # rubocop:disable Style/StringLiterals
|
129
|
+
|
130
|
+
raise 'You cannot provide both :isEnabled and :is_enabled' if attributes.key?(:'isEnabled') && attributes.key?(:'is_enabled')
|
131
|
+
|
132
|
+
self.is_enabled = attributes[:'is_enabled'] unless attributes[:'is_enabled'].nil?
|
133
|
+
self.is_enabled = true if is_enabled.nil? && !attributes.key?(:'isEnabled') && !attributes.key?(:'is_enabled') # rubocop:disable Style/StringLiterals
|
134
|
+
|
135
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
136
|
+
|
137
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
138
|
+
|
139
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
140
|
+
|
141
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
142
|
+
|
143
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
144
|
+
|
145
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
146
|
+
end
|
147
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
148
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
149
|
+
|
150
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
151
|
+
|
152
|
+
|
153
|
+
# Checks equality by comparing each attribute.
|
154
|
+
# @param [Object] other the other object to be compared
|
155
|
+
def ==(other)
|
156
|
+
return true if equal?(other)
|
157
|
+
|
158
|
+
self.class == other.class &&
|
159
|
+
policy_id == other.policy_id &&
|
160
|
+
target_id == other.target_id &&
|
161
|
+
display_name == other.display_name &&
|
162
|
+
description == other.description &&
|
163
|
+
compartment_id == other.compartment_id &&
|
164
|
+
is_enabled == other.is_enabled &&
|
165
|
+
freeform_tags == other.freeform_tags &&
|
166
|
+
defined_tags == other.defined_tags
|
167
|
+
end
|
168
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
169
|
+
|
170
|
+
# @see the `==` method
|
171
|
+
# @param [Object] other the other object to be compared
|
172
|
+
def eql?(other)
|
173
|
+
self == other
|
174
|
+
end
|
175
|
+
|
176
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
177
|
+
|
178
|
+
|
179
|
+
# Calculates hash code according to all attributes.
|
180
|
+
# @return [Fixnum] Hash code
|
181
|
+
def hash
|
182
|
+
[policy_id, target_id, display_name, description, compartment_id, is_enabled, freeform_tags, defined_tags].hash
|
183
|
+
end
|
184
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
185
|
+
|
186
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
187
|
+
|
188
|
+
|
189
|
+
# Builds the object from hash
|
190
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
191
|
+
# @return [Object] Returns the model itself
|
192
|
+
def build_from_hash(attributes)
|
193
|
+
return nil unless attributes.is_a?(Hash)
|
194
|
+
|
195
|
+
self.class.swagger_types.each_pair do |key, type|
|
196
|
+
if type =~ /^Array<(.*)>/i
|
197
|
+
# check to ensure the input is an array given that the the attribute
|
198
|
+
# is documented as an array but the input is not
|
199
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
200
|
+
public_method("#{key}=").call(
|
201
|
+
attributes[self.class.attribute_map[key]]
|
202
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
203
|
+
)
|
204
|
+
end
|
205
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
206
|
+
public_method("#{key}=").call(
|
207
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
208
|
+
)
|
209
|
+
end
|
210
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
211
|
+
end
|
212
|
+
|
213
|
+
self
|
214
|
+
end
|
215
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
216
|
+
|
217
|
+
# Returns the string representation of the object
|
218
|
+
# @return [String] String presentation of the object
|
219
|
+
def to_s
|
220
|
+
to_hash.to_s
|
221
|
+
end
|
222
|
+
|
223
|
+
# Returns the object in the form of hash
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
225
|
+
def to_hash
|
226
|
+
hash = {}
|
227
|
+
self.class.attribute_map.each_pair do |attr, param|
|
228
|
+
value = public_method(attr).call
|
229
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
230
|
+
|
231
|
+
hash[param] = _to_hash(value)
|
232
|
+
end
|
233
|
+
hash
|
234
|
+
end
|
235
|
+
|
236
|
+
private
|
237
|
+
|
238
|
+
# Outputs non-array value in the form of hash
|
239
|
+
# For object, use to_hash. Otherwise, just return the value
|
240
|
+
# @param [Object] value Any valid value
|
241
|
+
# @return [Hash] Returns the value in the form of hash
|
242
|
+
def _to_hash(value)
|
243
|
+
if value.is_a?(Array)
|
244
|
+
value.compact.map { |v| _to_hash(v) }
|
245
|
+
elsif value.is_a?(Hash)
|
246
|
+
{}.tap do |hash|
|
247
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
248
|
+
end
|
249
|
+
elsif value.respond_to? :to_hash
|
250
|
+
value.to_hash
|
251
|
+
else
|
252
|
+
value
|
253
|
+
end
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|
257
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,10 @@
|
|
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 DataSafe::Models
|
6
|
+
DATA_MODEL_FORMAT_ENUM = [
|
7
|
+
DATA_MODEL_FORMAT_XML = 'XML'.freeze
|
8
|
+
].freeze
|
9
|
+
end
|
10
|
+
end
|
@@ -39,6 +39,14 @@ module OCI
|
|
39
39
|
# @return [String]
|
40
40
|
attr_reader :lifecycle_state
|
41
41
|
|
42
|
+
# The Oracle Data Safe's NAT Gateway IP Address.
|
43
|
+
#
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :data_safe_nat_gateway_ip_address
|
46
|
+
|
47
|
+
# @return [OCI::DataSafe::Models::GlobalSettings]
|
48
|
+
attr_accessor :global_settings
|
49
|
+
|
42
50
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm)
|
43
51
|
#
|
44
52
|
# Example: `{\"Department\": \"Finance\"}`
|
@@ -62,6 +70,8 @@ module OCI
|
|
62
70
|
'compartment_id': :'compartmentId',
|
63
71
|
'time_enabled': :'timeEnabled',
|
64
72
|
'lifecycle_state': :'lifecycleState',
|
73
|
+
'data_safe_nat_gateway_ip_address': :'dataSafeNatGatewayIpAddress',
|
74
|
+
'global_settings': :'globalSettings',
|
65
75
|
'freeform_tags': :'freeformTags',
|
66
76
|
'defined_tags': :'definedTags'
|
67
77
|
# rubocop:enable Style/SymbolLiteral
|
@@ -77,6 +87,8 @@ module OCI
|
|
77
87
|
'compartment_id': :'String',
|
78
88
|
'time_enabled': :'DateTime',
|
79
89
|
'lifecycle_state': :'String',
|
90
|
+
'data_safe_nat_gateway_ip_address': :'String',
|
91
|
+
'global_settings': :'OCI::DataSafe::Models::GlobalSettings',
|
80
92
|
'freeform_tags': :'Hash<String, String>',
|
81
93
|
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
82
94
|
# rubocop:enable Style/SymbolLiteral
|
@@ -94,6 +106,8 @@ module OCI
|
|
94
106
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
95
107
|
# @option attributes [DateTime] :time_enabled The value to assign to the {#time_enabled} property
|
96
108
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
109
|
+
# @option attributes [String] :data_safe_nat_gateway_ip_address The value to assign to the {#data_safe_nat_gateway_ip_address} property
|
110
|
+
# @option attributes [OCI::DataSafe::Models::GlobalSettings] :global_settings The value to assign to the {#global_settings} property
|
97
111
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
98
112
|
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
99
113
|
def initialize(attributes = {})
|
@@ -128,6 +142,18 @@ module OCI
|
|
128
142
|
|
129
143
|
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
130
144
|
|
145
|
+
self.data_safe_nat_gateway_ip_address = attributes[:'dataSafeNatGatewayIpAddress'] if attributes[:'dataSafeNatGatewayIpAddress']
|
146
|
+
|
147
|
+
raise 'You cannot provide both :dataSafeNatGatewayIpAddress and :data_safe_nat_gateway_ip_address' if attributes.key?(:'dataSafeNatGatewayIpAddress') && attributes.key?(:'data_safe_nat_gateway_ip_address')
|
148
|
+
|
149
|
+
self.data_safe_nat_gateway_ip_address = attributes[:'data_safe_nat_gateway_ip_address'] if attributes[:'data_safe_nat_gateway_ip_address']
|
150
|
+
|
151
|
+
self.global_settings = attributes[:'globalSettings'] if attributes[:'globalSettings']
|
152
|
+
|
153
|
+
raise 'You cannot provide both :globalSettings and :global_settings' if attributes.key?(:'globalSettings') && attributes.key?(:'global_settings')
|
154
|
+
|
155
|
+
self.global_settings = attributes[:'global_settings'] if attributes[:'global_settings']
|
156
|
+
|
131
157
|
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
132
158
|
|
133
159
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
@@ -170,6 +196,8 @@ module OCI
|
|
170
196
|
compartment_id == other.compartment_id &&
|
171
197
|
time_enabled == other.time_enabled &&
|
172
198
|
lifecycle_state == other.lifecycle_state &&
|
199
|
+
data_safe_nat_gateway_ip_address == other.data_safe_nat_gateway_ip_address &&
|
200
|
+
global_settings == other.global_settings &&
|
173
201
|
freeform_tags == other.freeform_tags &&
|
174
202
|
defined_tags == other.defined_tags
|
175
203
|
end
|
@@ -187,7 +215,7 @@ module OCI
|
|
187
215
|
# Calculates hash code according to all attributes.
|
188
216
|
# @return [Fixnum] Hash code
|
189
217
|
def hash
|
190
|
-
[is_enabled, url, compartment_id, time_enabled, lifecycle_state, freeform_tags, defined_tags].hash
|
218
|
+
[is_enabled, url, compartment_id, time_enabled, lifecycle_state, data_safe_nat_gateway_ip_address, global_settings, freeform_tags, defined_tags].hash
|
191
219
|
end
|
192
220
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
193
221
|
|