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,459 @@
|
|
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
|
+
# Subscription object which contains the common subscription data.
|
10
|
+
class OspGateway::Models::SubscriptionSummary
|
11
|
+
PLAN_TYPE_ENUM = [
|
12
|
+
PLAN_TYPE_FREE_TIER = 'FREE_TIER'.freeze,
|
13
|
+
PLAN_TYPE_PAYG = 'PAYG'.freeze,
|
14
|
+
PLAN_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
15
|
+
].freeze
|
16
|
+
|
17
|
+
UPGRADE_STATE_ENUM = [
|
18
|
+
UPGRADE_STATE_PROMO = 'PROMO'.freeze,
|
19
|
+
UPGRADE_STATE_SUBMITTED = 'SUBMITTED'.freeze,
|
20
|
+
UPGRADE_STATE_ERROR = 'ERROR'.freeze,
|
21
|
+
UPGRADE_STATE_UPGRADED = 'UPGRADED'.freeze,
|
22
|
+
UPGRADE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
23
|
+
].freeze
|
24
|
+
|
25
|
+
UPGRADE_STATE_DETAILS_ENUM = [
|
26
|
+
UPGRADE_STATE_DETAILS_TAX_ERROR = 'TAX_ERROR'.freeze,
|
27
|
+
UPGRADE_STATE_DETAILS_UPGRADE_ERROR = 'UPGRADE_ERROR'.freeze,
|
28
|
+
UPGRADE_STATE_DETAILS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
29
|
+
].freeze
|
30
|
+
|
31
|
+
# Subscription id identifier (OCID).
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :id
|
34
|
+
|
35
|
+
# **[Required]** Subscription plan number.
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :subscription_plan_number
|
38
|
+
|
39
|
+
# Subscription plan type.
|
40
|
+
# @return [String]
|
41
|
+
attr_reader :plan_type
|
42
|
+
|
43
|
+
# Start date of the subscription.
|
44
|
+
# @return [DateTime]
|
45
|
+
attr_accessor :time_start
|
46
|
+
|
47
|
+
# Ship to customer account site address id.
|
48
|
+
# @return [String]
|
49
|
+
attr_accessor :ship_to_cust_acct_site_id
|
50
|
+
|
51
|
+
# Ship to customer account role.
|
52
|
+
# @return [String]
|
53
|
+
attr_accessor :ship_to_cust_acct_role_id
|
54
|
+
|
55
|
+
# Bill to customer Account id.
|
56
|
+
# @return [String]
|
57
|
+
attr_accessor :bill_to_cust_account_id
|
58
|
+
|
59
|
+
# Payment intension.
|
60
|
+
# @return [BOOLEAN]
|
61
|
+
attr_accessor :is_intent_to_pay
|
62
|
+
|
63
|
+
# Currency code
|
64
|
+
# @return [String]
|
65
|
+
attr_accessor :currency_code
|
66
|
+
|
67
|
+
# GSI Subscription external code.
|
68
|
+
# @return [String]
|
69
|
+
attr_accessor :gsi_org_code
|
70
|
+
|
71
|
+
# Language short code (en, de, hu, etc)
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :language_code
|
74
|
+
|
75
|
+
# GSI organization external identifier.
|
76
|
+
# @return [String]
|
77
|
+
attr_accessor :organization_id
|
78
|
+
|
79
|
+
# Status of the upgrade.
|
80
|
+
# @return [String]
|
81
|
+
attr_reader :upgrade_state
|
82
|
+
|
83
|
+
# This field is used to describe the Upgrade State in case of error (E.g. Upgrade failure caused by interfacing Tax details- TaxError)
|
84
|
+
# @return [String]
|
85
|
+
attr_reader :upgrade_state_details
|
86
|
+
|
87
|
+
# @return [OCI::OspGateway::Models::TaxInfo]
|
88
|
+
attr_accessor :tax_info
|
89
|
+
|
90
|
+
# Payment option list of a subscription.
|
91
|
+
# @return [Array<OCI::OspGateway::Models::PaymentOption>]
|
92
|
+
attr_accessor :payment_options
|
93
|
+
|
94
|
+
# @return [OCI::OspGateway::Models::PaymentGateway]
|
95
|
+
attr_accessor :payment_gateway
|
96
|
+
|
97
|
+
# @return [OCI::OspGateway::Models::BillingAddress]
|
98
|
+
attr_accessor :billing_address
|
99
|
+
|
100
|
+
# Date of upgrade/conversion when planType changed from FREE_TIER to PAYG
|
101
|
+
# @return [DateTime]
|
102
|
+
attr_accessor :time_plan_upgrade
|
103
|
+
|
104
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
105
|
+
def self.attribute_map
|
106
|
+
{
|
107
|
+
# rubocop:disable Style/SymbolLiteral
|
108
|
+
'id': :'id',
|
109
|
+
'subscription_plan_number': :'subscriptionPlanNumber',
|
110
|
+
'plan_type': :'planType',
|
111
|
+
'time_start': :'timeStart',
|
112
|
+
'ship_to_cust_acct_site_id': :'shipToCustAcctSiteId',
|
113
|
+
'ship_to_cust_acct_role_id': :'shipToCustAcctRoleId',
|
114
|
+
'bill_to_cust_account_id': :'billToCustAccountId',
|
115
|
+
'is_intent_to_pay': :'isIntentToPay',
|
116
|
+
'currency_code': :'currencyCode',
|
117
|
+
'gsi_org_code': :'gsiOrgCode',
|
118
|
+
'language_code': :'languageCode',
|
119
|
+
'organization_id': :'organizationId',
|
120
|
+
'upgrade_state': :'upgradeState',
|
121
|
+
'upgrade_state_details': :'upgradeStateDetails',
|
122
|
+
'tax_info': :'taxInfo',
|
123
|
+
'payment_options': :'paymentOptions',
|
124
|
+
'payment_gateway': :'paymentGateway',
|
125
|
+
'billing_address': :'billingAddress',
|
126
|
+
'time_plan_upgrade': :'timePlanUpgrade'
|
127
|
+
# rubocop:enable Style/SymbolLiteral
|
128
|
+
}
|
129
|
+
end
|
130
|
+
|
131
|
+
# Attribute type mapping.
|
132
|
+
def self.swagger_types
|
133
|
+
{
|
134
|
+
# rubocop:disable Style/SymbolLiteral
|
135
|
+
'id': :'String',
|
136
|
+
'subscription_plan_number': :'String',
|
137
|
+
'plan_type': :'String',
|
138
|
+
'time_start': :'DateTime',
|
139
|
+
'ship_to_cust_acct_site_id': :'String',
|
140
|
+
'ship_to_cust_acct_role_id': :'String',
|
141
|
+
'bill_to_cust_account_id': :'String',
|
142
|
+
'is_intent_to_pay': :'BOOLEAN',
|
143
|
+
'currency_code': :'String',
|
144
|
+
'gsi_org_code': :'String',
|
145
|
+
'language_code': :'String',
|
146
|
+
'organization_id': :'String',
|
147
|
+
'upgrade_state': :'String',
|
148
|
+
'upgrade_state_details': :'String',
|
149
|
+
'tax_info': :'OCI::OspGateway::Models::TaxInfo',
|
150
|
+
'payment_options': :'Array<OCI::OspGateway::Models::PaymentOption>',
|
151
|
+
'payment_gateway': :'OCI::OspGateway::Models::PaymentGateway',
|
152
|
+
'billing_address': :'OCI::OspGateway::Models::BillingAddress',
|
153
|
+
'time_plan_upgrade': :'DateTime'
|
154
|
+
# rubocop:enable Style/SymbolLiteral
|
155
|
+
}
|
156
|
+
end
|
157
|
+
|
158
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
159
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
160
|
+
|
161
|
+
|
162
|
+
# Initializes the object
|
163
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
164
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
165
|
+
# @option attributes [String] :subscription_plan_number The value to assign to the {#subscription_plan_number} property
|
166
|
+
# @option attributes [String] :plan_type The value to assign to the {#plan_type} property
|
167
|
+
# @option attributes [DateTime] :time_start The value to assign to the {#time_start} property
|
168
|
+
# @option attributes [String] :ship_to_cust_acct_site_id The value to assign to the {#ship_to_cust_acct_site_id} property
|
169
|
+
# @option attributes [String] :ship_to_cust_acct_role_id The value to assign to the {#ship_to_cust_acct_role_id} property
|
170
|
+
# @option attributes [String] :bill_to_cust_account_id The value to assign to the {#bill_to_cust_account_id} property
|
171
|
+
# @option attributes [BOOLEAN] :is_intent_to_pay The value to assign to the {#is_intent_to_pay} property
|
172
|
+
# @option attributes [String] :currency_code The value to assign to the {#currency_code} property
|
173
|
+
# @option attributes [String] :gsi_org_code The value to assign to the {#gsi_org_code} property
|
174
|
+
# @option attributes [String] :language_code The value to assign to the {#language_code} property
|
175
|
+
# @option attributes [String] :organization_id The value to assign to the {#organization_id} property
|
176
|
+
# @option attributes [String] :upgrade_state The value to assign to the {#upgrade_state} property
|
177
|
+
# @option attributes [String] :upgrade_state_details The value to assign to the {#upgrade_state_details} property
|
178
|
+
# @option attributes [OCI::OspGateway::Models::TaxInfo] :tax_info The value to assign to the {#tax_info} property
|
179
|
+
# @option attributes [Array<OCI::OspGateway::Models::PaymentOption>] :payment_options The value to assign to the {#payment_options} property
|
180
|
+
# @option attributes [OCI::OspGateway::Models::PaymentGateway] :payment_gateway The value to assign to the {#payment_gateway} property
|
181
|
+
# @option attributes [OCI::OspGateway::Models::BillingAddress] :billing_address The value to assign to the {#billing_address} property
|
182
|
+
# @option attributes [DateTime] :time_plan_upgrade The value to assign to the {#time_plan_upgrade} property
|
183
|
+
def initialize(attributes = {})
|
184
|
+
return unless attributes.is_a?(Hash)
|
185
|
+
|
186
|
+
# convert string to symbol for hash key
|
187
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
188
|
+
|
189
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
190
|
+
|
191
|
+
self.subscription_plan_number = attributes[:'subscriptionPlanNumber'] if attributes[:'subscriptionPlanNumber']
|
192
|
+
|
193
|
+
raise 'You cannot provide both :subscriptionPlanNumber and :subscription_plan_number' if attributes.key?(:'subscriptionPlanNumber') && attributes.key?(:'subscription_plan_number')
|
194
|
+
|
195
|
+
self.subscription_plan_number = attributes[:'subscription_plan_number'] if attributes[:'subscription_plan_number']
|
196
|
+
|
197
|
+
self.plan_type = attributes[:'planType'] if attributes[:'planType']
|
198
|
+
|
199
|
+
raise 'You cannot provide both :planType and :plan_type' if attributes.key?(:'planType') && attributes.key?(:'plan_type')
|
200
|
+
|
201
|
+
self.plan_type = attributes[:'plan_type'] if attributes[:'plan_type']
|
202
|
+
|
203
|
+
self.time_start = attributes[:'timeStart'] if attributes[:'timeStart']
|
204
|
+
|
205
|
+
raise 'You cannot provide both :timeStart and :time_start' if attributes.key?(:'timeStart') && attributes.key?(:'time_start')
|
206
|
+
|
207
|
+
self.time_start = attributes[:'time_start'] if attributes[:'time_start']
|
208
|
+
|
209
|
+
self.ship_to_cust_acct_site_id = attributes[:'shipToCustAcctSiteId'] if attributes[:'shipToCustAcctSiteId']
|
210
|
+
|
211
|
+
raise 'You cannot provide both :shipToCustAcctSiteId and :ship_to_cust_acct_site_id' if attributes.key?(:'shipToCustAcctSiteId') && attributes.key?(:'ship_to_cust_acct_site_id')
|
212
|
+
|
213
|
+
self.ship_to_cust_acct_site_id = attributes[:'ship_to_cust_acct_site_id'] if attributes[:'ship_to_cust_acct_site_id']
|
214
|
+
|
215
|
+
self.ship_to_cust_acct_role_id = attributes[:'shipToCustAcctRoleId'] if attributes[:'shipToCustAcctRoleId']
|
216
|
+
|
217
|
+
raise 'You cannot provide both :shipToCustAcctRoleId and :ship_to_cust_acct_role_id' if attributes.key?(:'shipToCustAcctRoleId') && attributes.key?(:'ship_to_cust_acct_role_id')
|
218
|
+
|
219
|
+
self.ship_to_cust_acct_role_id = attributes[:'ship_to_cust_acct_role_id'] if attributes[:'ship_to_cust_acct_role_id']
|
220
|
+
|
221
|
+
self.bill_to_cust_account_id = attributes[:'billToCustAccountId'] if attributes[:'billToCustAccountId']
|
222
|
+
|
223
|
+
raise 'You cannot provide both :billToCustAccountId and :bill_to_cust_account_id' if attributes.key?(:'billToCustAccountId') && attributes.key?(:'bill_to_cust_account_id')
|
224
|
+
|
225
|
+
self.bill_to_cust_account_id = attributes[:'bill_to_cust_account_id'] if attributes[:'bill_to_cust_account_id']
|
226
|
+
|
227
|
+
self.is_intent_to_pay = attributes[:'isIntentToPay'] unless attributes[:'isIntentToPay'].nil?
|
228
|
+
|
229
|
+
raise 'You cannot provide both :isIntentToPay and :is_intent_to_pay' if attributes.key?(:'isIntentToPay') && attributes.key?(:'is_intent_to_pay')
|
230
|
+
|
231
|
+
self.is_intent_to_pay = attributes[:'is_intent_to_pay'] unless attributes[:'is_intent_to_pay'].nil?
|
232
|
+
|
233
|
+
self.currency_code = attributes[:'currencyCode'] if attributes[:'currencyCode']
|
234
|
+
|
235
|
+
raise 'You cannot provide both :currencyCode and :currency_code' if attributes.key?(:'currencyCode') && attributes.key?(:'currency_code')
|
236
|
+
|
237
|
+
self.currency_code = attributes[:'currency_code'] if attributes[:'currency_code']
|
238
|
+
|
239
|
+
self.gsi_org_code = attributes[:'gsiOrgCode'] if attributes[:'gsiOrgCode']
|
240
|
+
|
241
|
+
raise 'You cannot provide both :gsiOrgCode and :gsi_org_code' if attributes.key?(:'gsiOrgCode') && attributes.key?(:'gsi_org_code')
|
242
|
+
|
243
|
+
self.gsi_org_code = attributes[:'gsi_org_code'] if attributes[:'gsi_org_code']
|
244
|
+
|
245
|
+
self.language_code = attributes[:'languageCode'] if attributes[:'languageCode']
|
246
|
+
|
247
|
+
raise 'You cannot provide both :languageCode and :language_code' if attributes.key?(:'languageCode') && attributes.key?(:'language_code')
|
248
|
+
|
249
|
+
self.language_code = attributes[:'language_code'] if attributes[:'language_code']
|
250
|
+
|
251
|
+
self.organization_id = attributes[:'organizationId'] if attributes[:'organizationId']
|
252
|
+
|
253
|
+
raise 'You cannot provide both :organizationId and :organization_id' if attributes.key?(:'organizationId') && attributes.key?(:'organization_id')
|
254
|
+
|
255
|
+
self.organization_id = attributes[:'organization_id'] if attributes[:'organization_id']
|
256
|
+
|
257
|
+
self.upgrade_state = attributes[:'upgradeState'] if attributes[:'upgradeState']
|
258
|
+
|
259
|
+
raise 'You cannot provide both :upgradeState and :upgrade_state' if attributes.key?(:'upgradeState') && attributes.key?(:'upgrade_state')
|
260
|
+
|
261
|
+
self.upgrade_state = attributes[:'upgrade_state'] if attributes[:'upgrade_state']
|
262
|
+
|
263
|
+
self.upgrade_state_details = attributes[:'upgradeStateDetails'] if attributes[:'upgradeStateDetails']
|
264
|
+
|
265
|
+
raise 'You cannot provide both :upgradeStateDetails and :upgrade_state_details' if attributes.key?(:'upgradeStateDetails') && attributes.key?(:'upgrade_state_details')
|
266
|
+
|
267
|
+
self.upgrade_state_details = attributes[:'upgrade_state_details'] if attributes[:'upgrade_state_details']
|
268
|
+
|
269
|
+
self.tax_info = attributes[:'taxInfo'] if attributes[:'taxInfo']
|
270
|
+
|
271
|
+
raise 'You cannot provide both :taxInfo and :tax_info' if attributes.key?(:'taxInfo') && attributes.key?(:'tax_info')
|
272
|
+
|
273
|
+
self.tax_info = attributes[:'tax_info'] if attributes[:'tax_info']
|
274
|
+
|
275
|
+
self.payment_options = attributes[:'paymentOptions'] if attributes[:'paymentOptions']
|
276
|
+
|
277
|
+
raise 'You cannot provide both :paymentOptions and :payment_options' if attributes.key?(:'paymentOptions') && attributes.key?(:'payment_options')
|
278
|
+
|
279
|
+
self.payment_options = attributes[:'payment_options'] if attributes[:'payment_options']
|
280
|
+
|
281
|
+
self.payment_gateway = attributes[:'paymentGateway'] if attributes[:'paymentGateway']
|
282
|
+
|
283
|
+
raise 'You cannot provide both :paymentGateway and :payment_gateway' if attributes.key?(:'paymentGateway') && attributes.key?(:'payment_gateway')
|
284
|
+
|
285
|
+
self.payment_gateway = attributes[:'payment_gateway'] if attributes[:'payment_gateway']
|
286
|
+
|
287
|
+
self.billing_address = attributes[:'billingAddress'] if attributes[:'billingAddress']
|
288
|
+
|
289
|
+
raise 'You cannot provide both :billingAddress and :billing_address' if attributes.key?(:'billingAddress') && attributes.key?(:'billing_address')
|
290
|
+
|
291
|
+
self.billing_address = attributes[:'billing_address'] if attributes[:'billing_address']
|
292
|
+
|
293
|
+
self.time_plan_upgrade = attributes[:'timePlanUpgrade'] if attributes[:'timePlanUpgrade']
|
294
|
+
|
295
|
+
raise 'You cannot provide both :timePlanUpgrade and :time_plan_upgrade' if attributes.key?(:'timePlanUpgrade') && attributes.key?(:'time_plan_upgrade')
|
296
|
+
|
297
|
+
self.time_plan_upgrade = attributes[:'time_plan_upgrade'] if attributes[:'time_plan_upgrade']
|
298
|
+
end
|
299
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
300
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
301
|
+
|
302
|
+
# Custom attribute writer method checking allowed values (enum).
|
303
|
+
# @param [Object] plan_type Object to be assigned
|
304
|
+
def plan_type=(plan_type)
|
305
|
+
# rubocop:disable Style/ConditionalAssignment
|
306
|
+
if plan_type && !PLAN_TYPE_ENUM.include?(plan_type)
|
307
|
+
OCI.logger.debug("Unknown value for 'plan_type' [" + plan_type + "]. Mapping to 'PLAN_TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
308
|
+
@plan_type = PLAN_TYPE_UNKNOWN_ENUM_VALUE
|
309
|
+
else
|
310
|
+
@plan_type = plan_type
|
311
|
+
end
|
312
|
+
# rubocop:enable Style/ConditionalAssignment
|
313
|
+
end
|
314
|
+
|
315
|
+
# Custom attribute writer method checking allowed values (enum).
|
316
|
+
# @param [Object] upgrade_state Object to be assigned
|
317
|
+
def upgrade_state=(upgrade_state)
|
318
|
+
# rubocop:disable Style/ConditionalAssignment
|
319
|
+
if upgrade_state && !UPGRADE_STATE_ENUM.include?(upgrade_state)
|
320
|
+
OCI.logger.debug("Unknown value for 'upgrade_state' [" + upgrade_state + "]. Mapping to 'UPGRADE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
321
|
+
@upgrade_state = UPGRADE_STATE_UNKNOWN_ENUM_VALUE
|
322
|
+
else
|
323
|
+
@upgrade_state = upgrade_state
|
324
|
+
end
|
325
|
+
# rubocop:enable Style/ConditionalAssignment
|
326
|
+
end
|
327
|
+
|
328
|
+
# Custom attribute writer method checking allowed values (enum).
|
329
|
+
# @param [Object] upgrade_state_details Object to be assigned
|
330
|
+
def upgrade_state_details=(upgrade_state_details)
|
331
|
+
# rubocop:disable Style/ConditionalAssignment
|
332
|
+
if upgrade_state_details && !UPGRADE_STATE_DETAILS_ENUM.include?(upgrade_state_details)
|
333
|
+
OCI.logger.debug("Unknown value for 'upgrade_state_details' [" + upgrade_state_details + "]. Mapping to 'UPGRADE_STATE_DETAILS_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
334
|
+
@upgrade_state_details = UPGRADE_STATE_DETAILS_UNKNOWN_ENUM_VALUE
|
335
|
+
else
|
336
|
+
@upgrade_state_details = upgrade_state_details
|
337
|
+
end
|
338
|
+
# rubocop:enable Style/ConditionalAssignment
|
339
|
+
end
|
340
|
+
|
341
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
342
|
+
|
343
|
+
|
344
|
+
# Checks equality by comparing each attribute.
|
345
|
+
# @param [Object] other the other object to be compared
|
346
|
+
def ==(other)
|
347
|
+
return true if equal?(other)
|
348
|
+
|
349
|
+
self.class == other.class &&
|
350
|
+
id == other.id &&
|
351
|
+
subscription_plan_number == other.subscription_plan_number &&
|
352
|
+
plan_type == other.plan_type &&
|
353
|
+
time_start == other.time_start &&
|
354
|
+
ship_to_cust_acct_site_id == other.ship_to_cust_acct_site_id &&
|
355
|
+
ship_to_cust_acct_role_id == other.ship_to_cust_acct_role_id &&
|
356
|
+
bill_to_cust_account_id == other.bill_to_cust_account_id &&
|
357
|
+
is_intent_to_pay == other.is_intent_to_pay &&
|
358
|
+
currency_code == other.currency_code &&
|
359
|
+
gsi_org_code == other.gsi_org_code &&
|
360
|
+
language_code == other.language_code &&
|
361
|
+
organization_id == other.organization_id &&
|
362
|
+
upgrade_state == other.upgrade_state &&
|
363
|
+
upgrade_state_details == other.upgrade_state_details &&
|
364
|
+
tax_info == other.tax_info &&
|
365
|
+
payment_options == other.payment_options &&
|
366
|
+
payment_gateway == other.payment_gateway &&
|
367
|
+
billing_address == other.billing_address &&
|
368
|
+
time_plan_upgrade == other.time_plan_upgrade
|
369
|
+
end
|
370
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
371
|
+
|
372
|
+
# @see the `==` method
|
373
|
+
# @param [Object] other the other object to be compared
|
374
|
+
def eql?(other)
|
375
|
+
self == other
|
376
|
+
end
|
377
|
+
|
378
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
379
|
+
|
380
|
+
|
381
|
+
# Calculates hash code according to all attributes.
|
382
|
+
# @return [Fixnum] Hash code
|
383
|
+
def hash
|
384
|
+
[id, subscription_plan_number, plan_type, time_start, ship_to_cust_acct_site_id, ship_to_cust_acct_role_id, bill_to_cust_account_id, is_intent_to_pay, currency_code, gsi_org_code, language_code, organization_id, upgrade_state, upgrade_state_details, tax_info, payment_options, payment_gateway, billing_address, time_plan_upgrade].hash
|
385
|
+
end
|
386
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
387
|
+
|
388
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
389
|
+
|
390
|
+
|
391
|
+
# Builds the object from hash
|
392
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
393
|
+
# @return [Object] Returns the model itself
|
394
|
+
def build_from_hash(attributes)
|
395
|
+
return nil unless attributes.is_a?(Hash)
|
396
|
+
|
397
|
+
self.class.swagger_types.each_pair do |key, type|
|
398
|
+
if type =~ /^Array<(.*)>/i
|
399
|
+
# check to ensure the input is an array given that the the attribute
|
400
|
+
# is documented as an array but the input is not
|
401
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
402
|
+
public_method("#{key}=").call(
|
403
|
+
attributes[self.class.attribute_map[key]]
|
404
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
405
|
+
)
|
406
|
+
end
|
407
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
408
|
+
public_method("#{key}=").call(
|
409
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
410
|
+
)
|
411
|
+
end
|
412
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
413
|
+
end
|
414
|
+
|
415
|
+
self
|
416
|
+
end
|
417
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
418
|
+
|
419
|
+
# Returns the string representation of the object
|
420
|
+
# @return [String] String presentation of the object
|
421
|
+
def to_s
|
422
|
+
to_hash.to_s
|
423
|
+
end
|
424
|
+
|
425
|
+
# Returns the object in the form of hash
|
426
|
+
# @return [Hash] Returns the object in the form of hash
|
427
|
+
def to_hash
|
428
|
+
hash = {}
|
429
|
+
self.class.attribute_map.each_pair do |attr, param|
|
430
|
+
value = public_method(attr).call
|
431
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
432
|
+
|
433
|
+
hash[param] = _to_hash(value)
|
434
|
+
end
|
435
|
+
hash
|
436
|
+
end
|
437
|
+
|
438
|
+
private
|
439
|
+
|
440
|
+
# Outputs non-array value in the form of hash
|
441
|
+
# For object, use to_hash. Otherwise, just return the value
|
442
|
+
# @param [Object] value Any valid value
|
443
|
+
# @return [Hash] Returns the value in the form of hash
|
444
|
+
def _to_hash(value)
|
445
|
+
if value.is_a?(Array)
|
446
|
+
value.compact.map { |v| _to_hash(v) }
|
447
|
+
elsif value.is_a?(Hash)
|
448
|
+
{}.tap do |hash|
|
449
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
450
|
+
end
|
451
|
+
elsif value.respond_to? :to_hash
|
452
|
+
value.to_hash
|
453
|
+
else
|
454
|
+
value
|
455
|
+
end
|
456
|
+
end
|
457
|
+
end
|
458
|
+
end
|
459
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,210 @@
|
|
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
|
+
# Tax details.
|
9
|
+
class OspGateway::Models::TaxInfo
|
10
|
+
# Tay payer identifier.
|
11
|
+
# @return [String]
|
12
|
+
attr_accessor :tax_payer_id
|
13
|
+
|
14
|
+
# Tax registration number.
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :tax_reg_number
|
17
|
+
|
18
|
+
# Tax exemption reason code.
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :no_tax_reason_code
|
21
|
+
|
22
|
+
# Tax exemption reason description.
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :no_tax_reason_code_details
|
25
|
+
|
26
|
+
# Brazilian companies' CNPJ number.
|
27
|
+
# @return [String]
|
28
|
+
attr_accessor :tax_cnpj
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
# rubocop:disable Style/SymbolLiteral
|
34
|
+
'tax_payer_id': :'taxPayerId',
|
35
|
+
'tax_reg_number': :'taxRegNumber',
|
36
|
+
'no_tax_reason_code': :'noTaxReasonCode',
|
37
|
+
'no_tax_reason_code_details': :'noTaxReasonCodeDetails',
|
38
|
+
'tax_cnpj': :'taxCnpj'
|
39
|
+
# rubocop:enable Style/SymbolLiteral
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
def self.swagger_types
|
45
|
+
{
|
46
|
+
# rubocop:disable Style/SymbolLiteral
|
47
|
+
'tax_payer_id': :'String',
|
48
|
+
'tax_reg_number': :'String',
|
49
|
+
'no_tax_reason_code': :'String',
|
50
|
+
'no_tax_reason_code_details': :'String',
|
51
|
+
'tax_cnpj': :'String'
|
52
|
+
# rubocop:enable Style/SymbolLiteral
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
57
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
58
|
+
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
# @option attributes [String] :tax_payer_id The value to assign to the {#tax_payer_id} property
|
63
|
+
# @option attributes [String] :tax_reg_number The value to assign to the {#tax_reg_number} property
|
64
|
+
# @option attributes [String] :no_tax_reason_code The value to assign to the {#no_tax_reason_code} property
|
65
|
+
# @option attributes [String] :no_tax_reason_code_details The value to assign to the {#no_tax_reason_code_details} property
|
66
|
+
# @option attributes [String] :tax_cnpj The value to assign to the {#tax_cnpj} property
|
67
|
+
def initialize(attributes = {})
|
68
|
+
return unless attributes.is_a?(Hash)
|
69
|
+
|
70
|
+
# convert string to symbol for hash key
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
72
|
+
|
73
|
+
self.tax_payer_id = attributes[:'taxPayerId'] if attributes[:'taxPayerId']
|
74
|
+
|
75
|
+
raise 'You cannot provide both :taxPayerId and :tax_payer_id' if attributes.key?(:'taxPayerId') && attributes.key?(:'tax_payer_id')
|
76
|
+
|
77
|
+
self.tax_payer_id = attributes[:'tax_payer_id'] if attributes[:'tax_payer_id']
|
78
|
+
|
79
|
+
self.tax_reg_number = attributes[:'taxRegNumber'] if attributes[:'taxRegNumber']
|
80
|
+
|
81
|
+
raise 'You cannot provide both :taxRegNumber and :tax_reg_number' if attributes.key?(:'taxRegNumber') && attributes.key?(:'tax_reg_number')
|
82
|
+
|
83
|
+
self.tax_reg_number = attributes[:'tax_reg_number'] if attributes[:'tax_reg_number']
|
84
|
+
|
85
|
+
self.no_tax_reason_code = attributes[:'noTaxReasonCode'] if attributes[:'noTaxReasonCode']
|
86
|
+
|
87
|
+
raise 'You cannot provide both :noTaxReasonCode and :no_tax_reason_code' if attributes.key?(:'noTaxReasonCode') && attributes.key?(:'no_tax_reason_code')
|
88
|
+
|
89
|
+
self.no_tax_reason_code = attributes[:'no_tax_reason_code'] if attributes[:'no_tax_reason_code']
|
90
|
+
|
91
|
+
self.no_tax_reason_code_details = attributes[:'noTaxReasonCodeDetails'] if attributes[:'noTaxReasonCodeDetails']
|
92
|
+
|
93
|
+
raise 'You cannot provide both :noTaxReasonCodeDetails and :no_tax_reason_code_details' if attributes.key?(:'noTaxReasonCodeDetails') && attributes.key?(:'no_tax_reason_code_details')
|
94
|
+
|
95
|
+
self.no_tax_reason_code_details = attributes[:'no_tax_reason_code_details'] if attributes[:'no_tax_reason_code_details']
|
96
|
+
|
97
|
+
self.tax_cnpj = attributes[:'taxCnpj'] if attributes[:'taxCnpj']
|
98
|
+
|
99
|
+
raise 'You cannot provide both :taxCnpj and :tax_cnpj' if attributes.key?(:'taxCnpj') && attributes.key?(:'tax_cnpj')
|
100
|
+
|
101
|
+
self.tax_cnpj = attributes[:'tax_cnpj'] if attributes[:'tax_cnpj']
|
102
|
+
end
|
103
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
104
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
105
|
+
|
106
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
107
|
+
|
108
|
+
|
109
|
+
# Checks equality by comparing each attribute.
|
110
|
+
# @param [Object] other the other object to be compared
|
111
|
+
def ==(other)
|
112
|
+
return true if equal?(other)
|
113
|
+
|
114
|
+
self.class == other.class &&
|
115
|
+
tax_payer_id == other.tax_payer_id &&
|
116
|
+
tax_reg_number == other.tax_reg_number &&
|
117
|
+
no_tax_reason_code == other.no_tax_reason_code &&
|
118
|
+
no_tax_reason_code_details == other.no_tax_reason_code_details &&
|
119
|
+
tax_cnpj == other.tax_cnpj
|
120
|
+
end
|
121
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
122
|
+
|
123
|
+
# @see the `==` method
|
124
|
+
# @param [Object] other the other object to be compared
|
125
|
+
def eql?(other)
|
126
|
+
self == other
|
127
|
+
end
|
128
|
+
|
129
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
130
|
+
|
131
|
+
|
132
|
+
# Calculates hash code according to all attributes.
|
133
|
+
# @return [Fixnum] Hash code
|
134
|
+
def hash
|
135
|
+
[tax_payer_id, tax_reg_number, no_tax_reason_code, no_tax_reason_code_details, tax_cnpj].hash
|
136
|
+
end
|
137
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
138
|
+
|
139
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
140
|
+
|
141
|
+
|
142
|
+
# Builds the object from hash
|
143
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
144
|
+
# @return [Object] Returns the model itself
|
145
|
+
def build_from_hash(attributes)
|
146
|
+
return nil unless attributes.is_a?(Hash)
|
147
|
+
|
148
|
+
self.class.swagger_types.each_pair do |key, type|
|
149
|
+
if type =~ /^Array<(.*)>/i
|
150
|
+
# check to ensure the input is an array given that the the attribute
|
151
|
+
# is documented as an array but the input is not
|
152
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
153
|
+
public_method("#{key}=").call(
|
154
|
+
attributes[self.class.attribute_map[key]]
|
155
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
156
|
+
)
|
157
|
+
end
|
158
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
159
|
+
public_method("#{key}=").call(
|
160
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
161
|
+
)
|
162
|
+
end
|
163
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
164
|
+
end
|
165
|
+
|
166
|
+
self
|
167
|
+
end
|
168
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
169
|
+
|
170
|
+
# Returns the string representation of the object
|
171
|
+
# @return [String] String presentation of the object
|
172
|
+
def to_s
|
173
|
+
to_hash.to_s
|
174
|
+
end
|
175
|
+
|
176
|
+
# Returns the object in the form of hash
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
178
|
+
def to_hash
|
179
|
+
hash = {}
|
180
|
+
self.class.attribute_map.each_pair do |attr, param|
|
181
|
+
value = public_method(attr).call
|
182
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
183
|
+
|
184
|
+
hash[param] = _to_hash(value)
|
185
|
+
end
|
186
|
+
hash
|
187
|
+
end
|
188
|
+
|
189
|
+
private
|
190
|
+
|
191
|
+
# Outputs non-array value in the form of hash
|
192
|
+
# For object, use to_hash. Otherwise, just return the value
|
193
|
+
# @param [Object] value Any valid value
|
194
|
+
# @return [Hash] Returns the value in the form of hash
|
195
|
+
def _to_hash(value)
|
196
|
+
if value.is_a?(Array)
|
197
|
+
value.compact.map { |v| _to_hash(v) }
|
198
|
+
elsif value.is_a?(Hash)
|
199
|
+
{}.tap do |hash|
|
200
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
201
|
+
end
|
202
|
+
elsif value.respond_to? :to_hash
|
203
|
+
value.to_hash
|
204
|
+
else
|
205
|
+
value
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|