oci 2.10.0 → 2.11.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 +2 -1
- data/lib/oci.rb +4 -0
- data/lib/oci/api_client.rb +1 -3
- data/lib/oci/apigateway/api_gateway_client.rb +619 -0
- data/lib/oci/apigateway/api_gateway_client_composite_operations.rb +198 -0
- data/lib/oci/apigateway/apigateway.rb +10 -0
- data/lib/oci/apigateway/models/api.rb +340 -0
- data/lib/oci/apigateway/models/api_collection.rb +150 -0
- data/lib/oci/apigateway/models/api_summary.rb +342 -0
- data/lib/oci/apigateway/models/api_validation_detail.rb +191 -0
- data/lib/oci/apigateway/models/api_validation_details.rb +192 -0
- data/lib/oci/apigateway/models/api_validation_result.rb +182 -0
- data/lib/oci/apigateway/models/api_validations.rb +150 -0
- data/lib/oci/{log_analytics/models/create_namespace_details.rb → apigateway/models/change_api_compartment_details.rb} +5 -3
- data/lib/oci/apigateway/models/create_api_details.rb +222 -0
- data/lib/oci/apigateway/models/update_api_details.rb +206 -0
- data/lib/oci/apigateway/models/work_request.rb +4 -0
- data/lib/oci/application_migration/application_migration.rb +2 -0
- data/lib/oci/application_migration/application_migration_client.rb +169 -52
- data/lib/oci/application_migration/application_migration_client_composite_operations.rb +447 -0
- data/lib/oci/application_migration/models/authorization_details.rb +4 -2
- data/lib/oci/application_migration/models/change_compartment_details.rb +2 -2
- data/lib/oci/application_migration/models/configuration_field.rb +9 -7
- data/lib/oci/application_migration/models/create_migration_details.rb +54 -12
- data/lib/oci/application_migration/models/create_source_details.rb +13 -8
- data/lib/oci/application_migration/models/discovery_details.rb +2 -2
- data/lib/oci/application_migration/models/ics_discovery_details.rb +4 -3
- data/lib/oci/application_migration/models/internal_authorization_details.rb +1 -1
- data/lib/oci/application_migration/models/internal_source_details.rb +2 -2
- data/lib/oci/application_migration/models/jcs_discovery_details.rb +5 -3
- data/lib/oci/application_migration/models/migration.rb +111 -18
- data/lib/oci/application_migration/models/migration_summary.rb +63 -15
- data/lib/oci/application_migration/models/oac_discovery_details.rb +3 -3
- data/lib/oci/application_migration/models/ocic_authorization_details.rb +1 -1
- data/lib/oci/application_migration/models/ocic_source_details.rb +8 -3
- data/lib/oci/application_migration/models/oic_discovery_details.rb +4 -3
- data/lib/oci/application_migration/models/pcs_discovery_details.rb +4 -3
- data/lib/oci/application_migration/models/soacs_discovery_details.rb +5 -3
- data/lib/oci/application_migration/models/source.rb +41 -13
- data/lib/oci/application_migration/models/source_application.rb +6 -6
- data/lib/oci/application_migration/models/source_application_summary.rb +7 -6
- data/lib/oci/application_migration/models/source_details.rb +10 -2
- data/lib/oci/application_migration/models/source_summary.rb +36 -14
- data/lib/oci/application_migration/models/target_database_types.rb +11 -0
- data/lib/oci/application_migration/models/update_migration_details.rb +15 -7
- data/lib/oci/application_migration/models/update_source_details.rb +7 -7
- data/lib/oci/application_migration/models/work_request.rb +54 -3
- data/lib/oci/application_migration/models/work_request_error.rb +1 -1
- data/lib/oci/application_migration/models/work_request_log_entry.rb +2 -2
- data/lib/oci/application_migration/models/work_request_resource.rb +1 -1
- data/lib/oci/application_migration/models/work_request_summary.rb +54 -3
- data/lib/oci/auth/signers/instance_principals_delegation_token_signer.rb +1 -1
- data/lib/oci/compute_instance_agent/compute_instance_agent.rb +39 -0
- data/lib/oci/compute_instance_agent/compute_instance_agent_client.rb +522 -0
- data/lib/oci/compute_instance_agent/compute_instance_agent_client_composite_operations.rb +25 -0
- data/lib/oci/compute_instance_agent/models/create_instance_agent_command_details.rb +205 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command.rb +256 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_content.rb +159 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_content_info.rb +236 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution.rb +321 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_content.rb +218 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_object_storage_tuple_details.rb +198 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_object_storage_uri_details.rb +170 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_text_details.rb +180 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_summary.rb +321 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_output_details.rb +197 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_object_storage_tuple_details.rb +190 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_object_storage_uri_details.rb +162 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_text_details.rb +145 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_source_details.rb +197 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_object_storage_tuple_details.rb +190 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_object_storage_uri_details.rb +162 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_text_details.rb +172 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_summary.rb +224 -0
- data/lib/oci/compute_instance_agent/models/instance_agent_command_target.rb +154 -0
- data/lib/oci/compute_instance_agent/util.rb +3 -0
- data/lib/oci/container_engine/container_engine_client.rb +0 -11
- data/lib/oci/container_engine/models/create_node_shape_config_details.rb +19 -4
- data/lib/oci/container_engine/models/node_shape_config.rb +19 -4
- data/lib/oci/container_engine/models/update_node_shape_config_details.rb +19 -4
- data/lib/oci/core/core.rb +4 -0
- data/lib/oci/core/models/add_vcn_cidr_details.rb +155 -0
- data/lib/oci/core/models/create_vcn_details.rb +24 -2
- data/lib/oci/core/models/create_vlan_details.rb +1 -0
- data/lib/oci/core/models/image_memory_constraints.rb +17 -17
- data/lib/oci/core/models/modify_vcn_cidr_details.rb +172 -0
- data/lib/oci/core/models/remove_vcn_cidr_details.rb +155 -0
- data/lib/oci/core/models/subnet.rb +1 -0
- data/lib/oci/core/models/update_subnet_details.rb +27 -4
- data/lib/oci/core/models/update_vlan_details.rb +25 -4
- data/lib/oci/core/models/vcn.rb +18 -2
- data/lib/oci/core/models/vcn_dns_resolver_association.rb +206 -0
- data/lib/oci/core/virtual_network_client.rb +289 -4
- data/lib/oci/data_catalog/data_catalog.rb +30 -0
- data/lib/oci/data_catalog/data_catalog_client.rb +1763 -112
- data/lib/oci/data_catalog/data_catalog_client_composite_operations.rb +413 -0
- data/lib/oci/data_catalog/models/attribute.rb +15 -1
- data/lib/oci/data_catalog/models/connection.rb +15 -1
- data/lib/oci/data_catalog/models/create_attribute_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_connection_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_custom_property_details.rb +324 -0
- data/lib/oci/data_catalog/models/create_data_asset_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_entity_details.rb +43 -1
- data/lib/oci/data_catalog/models/create_folder_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_glossary_details.rb +18 -4
- data/lib/oci/data_catalog/models/create_namespace_details.rb +182 -0
- data/lib/oci/data_catalog/models/create_pattern_details.rb +243 -0
- data/lib/oci/data_catalog/models/create_term_details.rb +18 -4
- data/lib/oci/data_catalog/models/custom_property.rb +506 -0
- data/lib/oci/data_catalog/models/custom_property_collection.rb +161 -0
- data/lib/oci/data_catalog/models/custom_property_data_type.rb +14 -0
- data/lib/oci/data_catalog/models/custom_property_get_usage.rb +327 -0
- data/lib/oci/data_catalog/models/custom_property_set_usage.rb +188 -0
- data/lib/oci/data_catalog/models/custom_property_summary.rb +432 -0
- data/lib/oci/data_catalog/models/custom_property_type_usage.rb +178 -0
- data/lib/oci/data_catalog/models/data_asset.rb +29 -1
- data/lib/oci/{log_analytics/models/string_list_details.rb → data_catalog/models/data_selector_pattern_details.rb} +11 -10
- data/lib/oci/data_catalog/models/derived_logical_entities.rb +178 -0
- data/lib/oci/data_catalog/models/entity.rb +43 -1
- data/lib/oci/data_catalog/models/entity_summary.rb +29 -1
- data/lib/oci/data_catalog/models/faceted_search_aggregation.rb +160 -0
- data/lib/oci/data_catalog/models/faceted_search_custom_property.rb +174 -0
- data/lib/oci/data_catalog/models/faceted_search_date_filter_request.rb +186 -0
- data/lib/oci/data_catalog/models/faceted_search_filter_request.rb +168 -0
- data/lib/oci/data_catalog/models/faceted_search_sort_request.rb +181 -0
- data/lib/oci/data_catalog/models/faceted_search_string_filter_request.rb +160 -0
- data/lib/oci/data_catalog/models/folder.rb +15 -1
- data/lib/oci/data_catalog/models/glossary.rb +73 -1
- data/lib/oci/data_catalog/models/glossary_summary.rb +62 -4
- data/lib/oci/data_catalog/models/namespace.rb +290 -0
- data/lib/oci/data_catalog/models/namespace_collection.rb +161 -0
- data/lib/oci/data_catalog/models/namespace_summary.rb +247 -0
- data/lib/oci/data_catalog/models/pattern.rb +368 -0
- data/lib/oci/data_catalog/models/pattern_collection.rb +162 -0
- data/lib/oci/data_catalog/models/pattern_summary.rb +258 -0
- data/lib/oci/data_catalog/models/search_criteria.rb +47 -4
- data/lib/oci/data_catalog/models/search_result.rb +28 -4
- data/lib/oci/data_catalog/models/search_result_collection.rb +28 -4
- data/lib/oci/data_catalog/models/term.rb +18 -4
- data/lib/oci/data_catalog/models/type.rb +18 -4
- data/lib/oci/{log_analytics/models/register_entity_types_details.rb → data_catalog/models/type_custom_property_details.rb} +13 -13
- data/lib/oci/data_catalog/models/update_attribute_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_connection_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_custom_property_details.rb +291 -0
- data/lib/oci/data_catalog/models/update_data_asset_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_entity_details.rb +43 -1
- data/lib/oci/data_catalog/models/update_folder_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_glossary_details.rb +18 -4
- data/lib/oci/data_catalog/models/update_namespace_details.rb +182 -0
- data/lib/oci/data_catalog/models/update_pattern_details.rb +243 -0
- data/lib/oci/data_catalog/models/update_term_details.rb +18 -4
- data/lib/oci/data_catalog/models/validate_pattern_details.rb +187 -0
- data/lib/oci/data_catalog/models/validate_pattern_result.rb +184 -0
- data/lib/oci/data_integration/models/source.rb +1 -0
- data/lib/oci/database/database.rb +19 -0
- data/lib/oci/database/database_client.rb +1112 -8
- data/lib/oci/database/database_client_composite_operations.rb +281 -0
- data/lib/oci/database/models/autonomous_container_database.rb +80 -4
- data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +480 -0
- data/lib/oci/database/models/autonomous_container_database_summary.rb +80 -4
- data/lib/oci/database/models/autonomous_database.rb +141 -8
- data/lib/oci/database/models/autonomous_database_backup.rb +32 -4
- data/lib/oci/database/models/autonomous_database_backup_config.rb +189 -0
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +32 -4
- data/lib/oci/database/models/autonomous_database_dataguard_association.rb +468 -0
- data/lib/oci/database/models/autonomous_database_summary.rb +141 -8
- data/lib/oci/database/models/autonomous_db_version_summary.rb +46 -4
- data/lib/oci/{log_analytics/models/query.rb → database/models/change_key_store_compartment_details.rb} +5 -3
- data/lib/oci/database/models/create_autonomous_container_database_details.rb +138 -5
- data/lib/oci/database/models/create_autonomous_database_base.rb +30 -5
- data/lib/oci/database/models/create_autonomous_database_clone_details.rb +5 -1
- data/lib/oci/database/models/create_autonomous_database_details.rb +5 -1
- data/lib/oci/database/models/create_autonomous_database_from_backup_details.rb +5 -1
- data/lib/oci/database/models/create_autonomous_database_from_backup_timestamp_details.rb +5 -1
- data/lib/oci/database/models/create_data_guard_association_details.rb +15 -1
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +24 -4
- data/lib/oci/database/models/create_data_guard_association_to_existing_vm_cluster_details.rb +24 -4
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +5 -1
- data/lib/oci/database/models/create_database_details.rb +15 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +1 -1
- data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +1 -1
- data/lib/oci/database/models/create_key_store_details.rb +217 -0
- data/lib/oci/database/models/create_refreshable_autonomous_database_clone_details.rb +5 -1
- data/lib/oci/database/models/database.rb +1 -0
- data/lib/oci/database/models/database_software_image.rb +18 -4
- data/lib/oci/database/models/database_software_image_summary.rb +18 -4
- data/lib/oci/database/models/database_summary.rb +1 -0
- data/lib/oci/database/models/database_upgrade_history_entry.rb +352 -0
- data/lib/oci/database/models/database_upgrade_history_entry_summary.rb +355 -0
- data/lib/oci/database/models/database_upgrade_source_base.rb +188 -0
- data/lib/oci/database/models/database_upgrade_with_database_software_image_details.rb +164 -0
- data/lib/oci/database/models/database_upgrade_with_db_home_details.rb +164 -0
- data/lib/oci/database/models/database_upgrade_with_db_version_details.rb +164 -0
- data/lib/oci/database/models/db_system.rb +1 -0
- data/lib/oci/database/models/db_system_summary.rb +1 -0
- data/lib/oci/database/models/db_version_summary.rb +18 -4
- data/lib/oci/database/models/key_store.rb +300 -0
- data/lib/oci/database/models/key_store_associated_database_details.rb +164 -0
- data/lib/oci/database/models/key_store_summary.rb +303 -0
- data/lib/oci/database/models/key_store_type_details.rb +185 -0
- data/lib/oci/database/models/key_store_type_from_oracle_key_vault_details.rb +204 -0
- data/lib/oci/database/models/maintenance_run.rb +18 -4
- data/lib/oci/database/models/maintenance_run_summary.rb +18 -4
- data/lib/oci/database/models/peer_autonomous_container_database_backup_config.rb +172 -0
- data/lib/oci/database/models/update.rb +1 -0
- data/lib/oci/database/models/update_autonomous_container_database_details.rb +17 -1
- data/lib/oci/database/models/update_autonomous_database_details.rb +30 -5
- data/lib/oci/database/models/update_database_details.rb +43 -1
- data/lib/oci/database/models/update_history_entry.rb +1 -0
- data/lib/oci/database/models/update_history_entry_summary.rb +1 -0
- data/lib/oci/database/models/update_key_store_details.rb +187 -0
- data/lib/oci/database/models/update_summary.rb +1 -0
- data/lib/oci/database/models/upgrade_database_details.rb +179 -0
- data/lib/oci/dns/dns.rb +24 -0
- data/lib/oci/dns/dns_client.rb +1695 -175
- data/lib/oci/dns/dns_client_composite_operations.rb +240 -0
- data/lib/oci/{log_analytics/models/service_tenancy.rb → dns/models/attached_view.rb} +13 -12
- data/lib/oci/dns/models/attached_view_details.rb +155 -0
- data/lib/oci/dns/models/change_resolver_compartment_details.rb +156 -0
- data/lib/oci/{log_analytics/models/query_work_request_resource.rb → dns/models/change_view_compartment_details.rb} +5 -3
- data/lib/oci/dns/models/create_resolver_endpoint_details.rb +261 -0
- data/lib/oci/dns/models/create_resolver_vnic_endpoint_details.rb +203 -0
- data/lib/oci/dns/models/create_view_details.rb +210 -0
- data/lib/oci/dns/models/create_zone_details.rb +41 -2
- data/lib/oci/dns/models/migration_replacement.rb +1 -1
- data/lib/oci/dns/models/record.rb +1 -2
- data/lib/oci/dns/models/record_collection.rb +1 -0
- data/lib/oci/dns/models/record_details.rb +1 -2
- data/lib/oci/dns/models/record_operation.rb +1 -2
- data/lib/oci/dns/models/resolver.rb +393 -0
- data/lib/oci/dns/models/resolver_endpoint.rb +371 -0
- data/lib/oci/dns/models/resolver_endpoint_summary.rb +371 -0
- data/lib/oci/{log_analytics/models/generate_agent_object_name_details.rb → dns/models/resolver_forward_rule.rb} +42 -51
- data/lib/oci/dns/models/resolver_forward_rule_details.rb +187 -0
- data/lib/oci/dns/models/resolver_rule.rb +222 -0
- data/lib/oci/dns/models/resolver_rule_details.rb +215 -0
- data/lib/oci/dns/models/resolver_summary.rb +357 -0
- data/lib/oci/dns/models/resolver_vnic_endpoint.rb +220 -0
- data/lib/oci/dns/models/resolver_vnic_endpoint_summary.rb +205 -0
- data/lib/oci/dns/models/rr_set.rb +1 -0
- data/lib/oci/{log_analytics/models/sort_orders.rb → dns/models/scope.rb} +4 -4
- data/lib/oci/dns/models/steering_policy.rb +12 -12
- data/lib/oci/dns/models/steering_policy_answer.rb +1 -1
- data/lib/oci/dns/models/steering_policy_attachment.rb +10 -10
- data/lib/oci/dns/models/steering_policy_attachment_summary.rb +10 -10
- data/lib/oci/dns/models/steering_policy_summary.rb +10 -10
- data/lib/oci/dns/models/tsig_key.rb +10 -10
- data/lib/oci/dns/models/tsig_key_summary.rb +9 -9
- data/lib/oci/dns/models/update_resolver_details.rb +221 -0
- data/lib/oci/dns/models/update_resolver_endpoint_details.rb +188 -0
- data/lib/oci/dns/models/update_resolver_vnic_endpoint_details.rb +166 -0
- data/lib/oci/dns/models/update_view_details.rb +196 -0
- data/lib/oci/{log_analytics/models/log_analytics.rb → dns/models/view.rb} +105 -77
- data/lib/oci/dns/models/view_summary.rb +321 -0
- data/lib/oci/dns/models/zone.rb +75 -14
- data/lib/oci/dns/models/zone_summary.rb +76 -15
- data/lib/oci/functions/functions_management_client.rb +1 -1
- data/lib/oci/functions/models/application.rb +21 -2
- data/lib/oci/functions/models/application_summary.rb +1 -1
- data/lib/oci/functions/models/create_application_details.rb +20 -1
- data/lib/oci/functions/models/function.rb +1 -1
- data/lib/oci/functions/models/function_summary.rb +1 -1
- data/lib/oci/functions/models/update_application_details.rb +20 -1
- data/lib/oci/identity/identity.rb +5 -0
- data/lib/oci/identity/identity_client.rb +152 -23
- data/lib/oci/identity/identity_client_composite_operations.rb +48 -0
- data/lib/oci/identity/models/bulk_edit_operation_details.rb +193 -0
- data/lib/oci/identity/models/bulk_edit_resource.rb +175 -0
- data/lib/oci/identity/models/bulk_edit_tags_details.rb +181 -0
- data/lib/oci/identity/models/bulk_edit_tags_resource_type.rb +175 -0
- data/lib/oci/identity/models/bulk_edit_tags_resource_type_collection.rb +151 -0
- data/lib/oci/identity/models/customer_secret_key.rb +3 -3
- data/lib/oci/identity/models/tagging_work_request.rb +4 -0
- data/lib/oci/identity/models/tagging_work_request_summary.rb +4 -0
- data/lib/oci/identity/models/user.rb +54 -4
- data/lib/oci/identity/models/work_request_resource.rb +1 -0
- data/lib/oci/load_balancer/load_balancer.rb +1 -0
- data/lib/oci/load_balancer/models/add_http_request_header_rule.rb +2 -1
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +16 -1
- data/lib/oci/load_balancer/models/ip_address.rb +17 -4
- data/lib/oci/load_balancer/models/remove_http_request_header_rule.rb +0 -2
- data/lib/oci/{log_analytics/models/log_analytics_collection_warning.rb → load_balancer/models/reserved_ip.rb} +2 -4
- data/lib/oci/load_balancer/models/update_load_balancer_shape_details.rb +7 -6
- data/lib/oci/log_analytics/log_analytics.rb +0 -15
- data/lib/oci/log_analytics/log_analytics_client.rb +193 -180
- data/lib/oci/log_analytics/log_analytics_client_composite_operations.rb +68 -17
- data/lib/oci/log_analytics/models/abstract_command_descriptor.rb +1 -1
- data/lib/oci/log_analytics/models/archiving_configuration.rb +3 -3
- data/lib/oci/log_analytics/models/bucket_range.rb +1 -1
- data/lib/oci/log_analytics/models/change_log_analytics_object_collection_rule_compartment_details.rb +1 -1
- data/lib/oci/log_analytics/models/char_encoding_collection.rb +2 -2
- data/lib/oci/log_analytics/models/create_log_analytics_object_collection_rule_details.rb +4 -6
- data/lib/oci/log_analytics/models/estimate_purge_data_size_details.rb +6 -6
- data/lib/oci/log_analytics/models/estimate_purge_data_size_result.rb +1 -1
- data/lib/oci/log_analytics/models/export_content.rb +1 -0
- data/lib/oci/log_analytics/models/extract_log_field_results.rb +1 -1
- data/lib/oci/log_analytics/models/extract_log_header_details.rb +1 -1
- data/lib/oci/log_analytics/models/extract_log_header_results.rb +1 -1
- data/lib/oci/log_analytics/models/file_validation_response.rb +3 -3
- data/lib/oci/log_analytics/models/filter.rb +1 -1
- data/lib/oci/log_analytics/models/filter_details.rb +1 -1
- data/lib/oci/log_analytics/models/label_source_summary.rb +1 -1
- data/lib/oci/log_analytics/models/log_analytics_entity_summary.rb +36 -4
- data/lib/oci/log_analytics/models/log_analytics_field_summary.rb +1 -1
- data/lib/oci/log_analytics/models/log_analytics_import_custom_content.rb +0 -1
- data/lib/oci/log_analytics/models/log_analytics_lookup.rb +0 -2
- data/lib/oci/log_analytics/models/log_analytics_object_collection_rule.rb +4 -6
- data/lib/oci/log_analytics/models/log_analytics_object_collection_rule_summary.rb +1 -3
- data/lib/oci/log_analytics/models/log_analytics_parser_filter.rb +3 -3
- data/lib/oci/log_analytics/models/namespace.rb +5 -4
- data/lib/oci/log_analytics/models/namespace_collection.rb +2 -2
- data/lib/oci/log_analytics/models/namespace_summary.rb +5 -4
- data/lib/oci/log_analytics/models/parsed_content.rb +2 -2
- data/lib/oci/log_analytics/models/parsed_field.rb +1 -1
- data/lib/oci/log_analytics/models/purge_storage_data_details.rb +6 -6
- data/lib/oci/log_analytics/models/query_aggregation.rb +1 -1
- data/lib/oci/log_analytics/models/query_details.rb +5 -5
- data/lib/oci/log_analytics/models/recall_archived_data_details.rb +5 -5
- data/lib/oci/log_analytics/models/release_recalled_data_details.rb +5 -5
- data/lib/oci/log_analytics/models/scope_filter.rb +1 -1
- data/lib/oci/log_analytics/models/source_validate_details.rb +1 -1
- data/lib/oci/log_analytics/models/source_validate_results.rb +1 -1
- data/lib/oci/log_analytics/models/storage.rb +2 -2
- data/lib/oci/log_analytics/models/storage_usage.rb +4 -4
- data/lib/oci/log_analytics/models/storage_work_request.rb +14 -14
- data/lib/oci/log_analytics/models/storage_work_request_collection.rb +2 -2
- data/lib/oci/log_analytics/models/storage_work_request_summary.rb +14 -14
- data/lib/oci/log_analytics/models/timezone_collection.rb +2 -2
- data/lib/oci/log_analytics/models/update_log_analytics_object_collection_rule_details.rb +3 -3
- data/lib/oci/log_analytics/models/update_storage_details.rb +1 -1
- data/lib/oci/log_analytics/models/upload.rb +1 -1
- data/lib/oci/log_analytics/models/upload_collection.rb +1 -1
- data/lib/oci/log_analytics/models/upload_file_collection.rb +1 -1
- data/lib/oci/log_analytics/models/upload_summary.rb +1 -1
- data/lib/oci/log_analytics/models/upload_warning_summary.rb +1 -1
- data/lib/oci/log_analytics/models/work_request_error_collection.rb +2 -2
- data/lib/oci/log_analytics/models/work_request_log.rb +3 -3
- data/lib/oci/log_analytics/models/work_request_log_collection.rb +2 -2
- data/lib/oci/logging/logging_management_client.rb +52 -52
- data/lib/oci/logging/logging_management_client_composite_operations.rb +128 -7
- data/lib/oci/logging/models/category.rb +4 -4
- data/lib/oci/logging/models/change_log_group_compartment_details.rb +2 -2
- data/lib/oci/logging/models/change_log_log_group_details.rb +1 -1
- data/lib/oci/logging/models/change_unified_agent_configuration_compartment_details.rb +2 -2
- data/lib/oci/logging/models/create_log_details.rb +3 -3
- data/lib/oci/logging/models/create_log_group_details.rb +1 -1
- data/lib/oci/logging/models/create_log_saved_search_details.rb +2 -16
- data/lib/oci/logging/models/create_unified_agent_configuration_details.rb +1 -1
- data/lib/oci/logging/models/grok_pattern.rb +6 -6
- data/lib/oci/logging/models/log.rb +5 -5
- data/lib/oci/logging/models/log_group.rb +3 -3
- data/lib/oci/logging/models/log_group_summary.rb +43 -5
- data/lib/oci/logging/models/log_included_search.rb +1 -1
- data/lib/oci/logging/models/log_included_search_summary.rb +1 -1
- data/lib/oci/logging/models/log_saved_search.rb +44 -19
- data/lib/oci/logging/models/log_saved_search_lifecycle_state.rb +5 -1
- data/lib/oci/logging/models/log_saved_search_summary.rb +63 -17
- data/lib/oci/logging/models/log_saved_search_summary_collection.rb +1 -1
- data/lib/oci/logging/models/log_summary.rb +4 -4
- data/lib/oci/logging/models/parameter.rb +2 -2
- data/lib/oci/logging/models/resource_type.rb +2 -2
- data/lib/oci/logging/models/service_summary.rb +6 -6
- data/lib/oci/logging/models/source.rb +1 -1
- data/lib/oci/logging/models/unified_agent_apache2_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_apache_error_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_configuration.rb +2 -2
- data/lib/oci/logging/models/unified_agent_configuration_collection.rb +1 -1
- data/lib/oci/logging/models/unified_agent_configuration_summary.rb +4 -4
- data/lib/oci/logging/models/unified_agent_csv_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_grok_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_logging_destination.rb +1 -1
- data/lib/oci/logging/models/unified_agent_logging_source.rb +2 -2
- data/lib/oci/logging/models/unified_agent_multiline_grok_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_multiline_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_none_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_parser.rb +7 -7
- data/lib/oci/logging/models/unified_agent_regex_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_service_configuration_details.rb +1 -1
- data/lib/oci/logging/models/unified_agent_syslog_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_tail_log_source.rb +1 -1
- data/lib/oci/logging/models/unified_agent_tsv_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_windows_event_source.rb +1 -1
- data/lib/oci/logging/models/unified_json_parser.rb +1 -1
- data/lib/oci/logging/models/update_configuration_details.rb +1 -1
- data/lib/oci/logging/models/update_log_details.rb +3 -3
- data/lib/oci/logging/models/update_log_group_details.rb +1 -1
- data/lib/oci/logging/models/update_log_saved_search_details.rb +2 -16
- data/lib/oci/logging/models/update_unified_agent_configuration_details.rb +2 -2
- data/lib/oci/logging/models/work_request.rb +2 -2
- data/lib/oci/logging/models/work_request_error.rb +3 -3
- data/lib/oci/logging/models/work_request_log.rb +1 -1
- data/lib/oci/logging/models/work_request_resource.rb +3 -3
- data/lib/oci/loggingingestion/logging_client.rb +3 -3
- data/lib/oci/loggingingestion/models/log_entry.rb +4 -5
- data/lib/oci/loggingingestion/models/log_entry_batch.rb +7 -7
- data/lib/oci/loggingsearch/log_search_client.rb +3 -3
- data/lib/oci/loggingsearch/models/field_info.rb +1 -1
- data/lib/oci/loggingsearch/models/search_logs_details.rb +2 -2
- data/lib/oci/loggingsearch/models/search_result.rb +2 -2
- data/lib/oci/management_dashboard/dashx_apis_client.rb +31 -32
- data/lib/oci/management_dashboard/models/change_management_dashboards_compartment_details.rb +2 -2
- data/lib/oci/management_dashboard/models/change_management_saved_searches_compartment_details.rb +2 -2
- data/lib/oci/management_dashboard/models/create_management_dashboard_details.rb +18 -18
- data/lib/oci/management_dashboard/models/create_management_saved_search_details.rb +15 -15
- data/lib/oci/management_dashboard/models/management_dashboard.rb +23 -23
- data/lib/oci/management_dashboard/models/management_dashboard_export_details.rb +1 -1
- data/lib/oci/management_dashboard/models/management_dashboard_for_import_export_details.rb +19 -19
- data/lib/oci/management_dashboard/models/management_dashboard_import_details.rb +1 -1
- data/lib/oci/management_dashboard/models/management_dashboard_summary.rb +14 -14
- data/lib/oci/management_dashboard/models/management_dashboard_tile_details.rb +14 -12
- data/lib/oci/management_dashboard/models/management_saved_search.rb +19 -19
- data/lib/oci/management_dashboard/models/management_saved_search_for_import_details.rb +15 -15
- data/lib/oci/management_dashboard/models/management_saved_search_summary.rb +46 -18
- data/lib/oci/management_dashboard/models/update_management_dashboard_details.rb +17 -17
- data/lib/oci/management_dashboard/models/update_management_saved_search_details.rb +15 -15
- data/lib/oci/mysql/db_system_client.rb +611 -2
- data/lib/oci/mysql/db_system_client_composite_operations.rb +345 -0
- data/lib/oci/mysql/models/add_analytics_cluster_details.rb +173 -0
- data/lib/oci/mysql/models/analytics_cluster.rb +282 -0
- data/lib/oci/mysql/models/analytics_cluster_memory_estimate.rb +236 -0
- data/lib/oci/mysql/models/analytics_cluster_memory_estimate_status.rb +15 -0
- data/lib/oci/mysql/models/analytics_cluster_node.rb +222 -0
- data/lib/oci/mysql/models/analytics_cluster_schema_memory_estimate.rb +172 -0
- data/lib/oci/mysql/models/analytics_cluster_summary.rb +215 -0
- data/lib/oci/mysql/models/analytics_cluster_table_memory_estimate.rb +236 -0
- data/lib/oci/mysql/models/db_system.rb +31 -1
- data/lib/oci/mysql/models/db_system_summary.rb +31 -1
- data/lib/oci/mysql/models/shape_summary.rb +46 -4
- data/lib/oci/mysql/models/update_analytics_cluster_details.rb +179 -0
- data/lib/oci/mysql/models/work_request.rb +7 -0
- data/lib/oci/mysql/models/work_request_operation_type.rb +8 -1
- data/lib/oci/mysql/models/work_request_summary.rb +7 -0
- data/lib/oci/mysql/mysql.rb +9 -0
- data/lib/oci/mysql/mysqlaas_client.rb +14 -0
- data/lib/oci/nosql/models/create_table_details.rb +15 -1
- data/lib/oci/nosql/models/table.rb +55 -4
- data/lib/oci/nosql/models/table_collection.rb +32 -4
- data/lib/oci/nosql/models/table_summary.rb +54 -4
- data/lib/oci/nosql/nosql_client.rb +6 -6
- data/lib/oci/object_storage/models/object_lifecycle_rule.rb +6 -0
- data/lib/oci/ocvp/models/create_esxi_host_details.rb +4 -2
- data/lib/oci/ocvp/models/create_sddc_details.rb +35 -3
- data/lib/oci/ocvp/models/sddc.rb +89 -1
- data/lib/oci/ocvp/models/sddc_summary.rb +29 -1
- data/lib/oci/ocvp/models/update_esxi_host_details.rb +3 -1
- data/lib/oci/ocvp/models/update_sddc_details.rb +17 -1
- data/lib/oci/opsi/models/database_details.rb +210 -0
- data/lib/oci/opsi/models/database_insight_summary.rb +286 -0
- data/lib/oci/opsi/models/database_insights.rb +154 -0
- data/lib/oci/opsi/models/database_insights_collection.rb +150 -0
- data/lib/oci/opsi/models/historical_data_item.rb +165 -0
- data/lib/oci/opsi/models/ingest_sql_bucket_details.rb +151 -0
- data/lib/oci/opsi/models/ingest_sql_bucket_response_details.rb +152 -0
- data/lib/oci/opsi/models/ingest_sql_plan_lines_details.rb +151 -0
- data/lib/oci/opsi/models/ingest_sql_plan_lines_response_details.rb +152 -0
- data/lib/oci/opsi/models/ingest_sql_text_details.rb +151 -0
- data/lib/oci/opsi/models/ingest_sql_text_response_details.rb +152 -0
- data/lib/oci/opsi/models/projected_data_item.rb +195 -0
- data/lib/oci/opsi/models/resource_capacity_trend_aggregation.rb +180 -0
- data/lib/oci/opsi/models/resource_insight_current_utilization.rb +160 -0
- data/lib/oci/opsi/models/resource_insight_projected_utilization.rb +160 -0
- data/lib/oci/opsi/models/resource_insight_projected_utilization_item.rb +164 -0
- data/lib/oci/opsi/models/resource_statistics.rb +219 -0
- data/lib/oci/opsi/models/resource_statistics_aggregation.rb +166 -0
- data/lib/oci/opsi/models/resource_usage_trend_aggregation.rb +176 -0
- data/lib/oci/opsi/models/sort_order.rb +11 -0
- data/lib/oci/opsi/models/sql_bucket.rb +307 -0
- data/lib/oci/opsi/models/sql_insight_aggregation.rb +202 -0
- data/lib/oci/opsi/models/sql_insight_aggregation_collection.rb +199 -0
- data/lib/oci/opsi/models/sql_insight_thresholds.rb +243 -0
- data/lib/oci/opsi/models/sql_inventory.rb +182 -0
- data/lib/oci/opsi/models/sql_plan_collection.rb +180 -0
- data/lib/oci/opsi/models/sql_plan_insight_aggregation.rb +210 -0
- data/lib/oci/opsi/models/sql_plan_insight_aggregation_collection.rb +218 -0
- data/lib/oci/opsi/models/sql_plan_insights.rb +177 -0
- data/lib/oci/opsi/models/sql_plan_line.rb +673 -0
- data/lib/oci/opsi/models/sql_plan_summary.rb +169 -0
- data/lib/oci/opsi/models/sql_response_time_distribution_aggregation.rb +168 -0
- data/lib/oci/opsi/models/sql_response_time_distribution_aggregation_collection.rb +208 -0
- data/lib/oci/opsi/models/sql_search_collection.rb +209 -0
- data/lib/oci/opsi/models/sql_search_summary.rb +224 -0
- data/lib/oci/opsi/models/sql_statistic_aggregation.rb +189 -0
- data/lib/oci/opsi/models/sql_statistic_aggregation_collection.rb +179 -0
- data/lib/oci/opsi/models/sql_statistics.rb +402 -0
- data/lib/oci/opsi/models/sql_statistics_time_series.rb +162 -0
- data/lib/oci/opsi/models/sql_statistics_time_series_aggregation.rb +165 -0
- data/lib/oci/opsi/models/sql_statistics_time_series_aggregation_collection.rb +223 -0
- data/lib/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation.rb +165 -0
- data/lib/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation_collection.rb +237 -0
- data/lib/oci/opsi/models/sql_text.rb +248 -0
- data/lib/oci/opsi/models/sql_text_collection.rb +151 -0
- data/lib/oci/opsi/models/sql_text_summary.rb +184 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_capacity_trend_aggregation_collection.rb +270 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.rb +302 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_statistics_aggregation_collection.rb +249 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_usage_aggregation.rb +275 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_usage_trend_aggregation_collection.rb +270 -0
- data/lib/oci/opsi/models/summarize_database_insight_resource_utilization_insight_aggregation.rb +232 -0
- data/lib/oci/opsi/models/usage_unit.rb +13 -0
- data/lib/oci/opsi/operations_insights_client.rb +2008 -0
- data/lib/oci/opsi/operations_insights_client_composite_operations.rb +25 -0
- data/lib/oci/opsi/opsi.rb +72 -0
- data/lib/oci/opsi/util.rb +3 -0
- data/lib/oci/optimizer/models/action.rb +192 -0
- data/lib/oci/optimizer/models/action_type.rb +10 -0
- data/lib/oci/optimizer/models/bulk_apply_recommendations_details.rb +197 -0
- data/lib/oci/optimizer/models/category.rb +298 -0
- data/lib/oci/optimizer/models/category_collection.rb +151 -0
- data/lib/oci/optimizer/models/category_summary.rb +298 -0
- data/lib/oci/optimizer/models/create_profile_details.rb +227 -0
- data/lib/oci/{log_analytics/models/log_analytics_summary.rb → optimizer/models/enrollment_status.rb} +81 -63
- data/lib/oci/optimizer/models/enrollment_status_collection.rb +151 -0
- data/lib/oci/optimizer/models/enrollment_status_summary.rb +279 -0
- data/lib/oci/optimizer/models/history_collection.rb +151 -0
- data/lib/oci/optimizer/models/history_summary.rb +429 -0
- data/lib/oci/optimizer/models/importance.rb +14 -0
- data/lib/oci/{log_analytics/models/field_map.rb → optimizer/models/level_configuration.rb} +19 -24
- data/lib/oci/optimizer/models/levels_configuration.rb +150 -0
- data/lib/oci/optimizer/models/lifecycle_state.rb +18 -0
- data/lib/oci/optimizer/models/operation_status.rb +15 -0
- data/lib/oci/optimizer/models/operation_type.rb +10 -0
- data/lib/oci/optimizer/models/optimizer_enrollment_status.rb +11 -0
- data/lib/oci/optimizer/models/profile.rb +305 -0
- data/lib/oci/optimizer/models/profile_collection.rb +151 -0
- data/lib/oci/optimizer/models/profile_summary.rb +303 -0
- data/lib/oci/optimizer/models/recommendation.rb +409 -0
- data/lib/oci/optimizer/models/recommendation_collection.rb +151 -0
- data/lib/oci/optimizer/models/recommendation_count.rb +183 -0
- data/lib/oci/optimizer/models/recommendation_summary.rb +409 -0
- data/lib/oci/optimizer/models/resource_action.rb +450 -0
- data/lib/oci/optimizer/models/resource_action_collection.rb +151 -0
- data/lib/oci/optimizer/models/resource_action_summary.rb +450 -0
- data/lib/oci/optimizer/models/resource_count.rb +182 -0
- data/lib/oci/optimizer/models/sort_order.rb +11 -0
- data/lib/oci/optimizer/models/status.rb +13 -0
- data/lib/oci/{log_analytics/models/agent_upload.rb → optimizer/models/supported_level.rb} +3 -3
- data/lib/oci/optimizer/models/supported_levels.rb +153 -0
- data/lib/oci/optimizer/models/update_enrollment_status_details.rb +166 -0
- data/lib/oci/optimizer/models/update_profile_details.rb +202 -0
- data/lib/oci/optimizer/models/update_recommendation_details.rb +183 -0
- data/lib/oci/optimizer/models/update_resource_action_details.rb +183 -0
- data/lib/oci/optimizer/models/work_request.rb +300 -0
- data/lib/oci/optimizer/models/work_request_action_type.rb +14 -0
- data/lib/oci/optimizer/models/work_request_collection.rb +151 -0
- data/lib/oci/optimizer/models/work_request_error.rb +173 -0
- data/lib/oci/optimizer/models/work_request_error_collection.rb +151 -0
- data/lib/oci/optimizer/models/work_request_log_entry.rb +161 -0
- data/lib/oci/optimizer/models/work_request_log_entry_collection.rb +151 -0
- data/lib/oci/{log_analytics/models/out_of_box_entity_type_details.rb → optimizer/models/work_request_resource.rb} +60 -57
- data/lib/oci/optimizer/optimizer.rb +66 -0
- data/lib/oci/optimizer/optimizer_client.rb +1652 -0
- data/lib/oci/optimizer/optimizer_client_composite_operations.rb +314 -0
- data/lib/oci/optimizer/util.rb +3 -0
- data/lib/oci/regions.rb +5 -1
- data/lib/oci/sch/models/service_connector.rb +1 -1
- data/lib/oci/sch/models/source_details.rb +1 -1
- data/lib/oci/sch/models/target_details.rb +1 -1
- data/lib/oci/sch/models/task_details.rb +1 -1
- data/lib/oci/sch/models/work_request.rb +1 -1
- data/lib/oci/sch/service_connector_client.rb +8 -8
- data/lib/oci/signer.rb +3 -1
- data/lib/oci/tenant_manager_control_plane/link_client.rb +287 -0
- data/lib/oci/tenant_manager_control_plane/link_client_composite_operations.rb +65 -0
- data/lib/oci/tenant_manager_control_plane/models/action_type.rb +14 -0
- data/lib/oci/tenant_manager_control_plane/models/create_sender_invitation_details.rb +228 -0
- data/lib/oci/tenant_manager_control_plane/models/lifecycle_state.rb +15 -0
- data/lib/oci/tenant_manager_control_plane/models/link.rb +258 -0
- data/lib/oci/tenant_manager_control_plane/models/link_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/link_summary.rb +258 -0
- data/lib/oci/tenant_manager_control_plane/models/operation_status.rb +15 -0
- data/lib/oci/tenant_manager_control_plane/models/operation_type.rb +12 -0
- data/lib/oci/tenant_manager_control_plane/models/recipient_invitation.rb +367 -0
- data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_status.rb +15 -0
- data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_summary.rb +367 -0
- data/lib/oci/tenant_manager_control_plane/models/sender_invitation.rb +366 -0
- data/lib/oci/tenant_manager_control_plane/models/sender_invitation_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/sender_invitation_status.rb +14 -0
- data/lib/oci/tenant_manager_control_plane/models/sender_invitation_summary.rb +366 -0
- data/lib/oci/tenant_manager_control_plane/models/sort_order.rb +11 -0
- data/lib/oci/tenant_manager_control_plane/models/update_recipient_invitation_details.rb +186 -0
- data/lib/oci/tenant_manager_control_plane/models/update_sender_invitation_details.rb +186 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request.rb +307 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_error.rb +173 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_error_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_log_entry.rb +160 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_resource.rb +219 -0
- data/lib/oci/tenant_manager_control_plane/models/work_request_summary.rb +307 -0
- data/lib/oci/tenant_manager_control_plane/recipient_invitation_client.rb +425 -0
- data/lib/oci/tenant_manager_control_plane/recipient_invitation_client_composite_operations.rb +153 -0
- data/lib/oci/tenant_manager_control_plane/sender_invitation_client.rb +435 -0
- data/lib/oci/tenant_manager_control_plane/sender_invitation_client_composite_operations.rb +163 -0
- data/lib/oci/tenant_manager_control_plane/tenant_manager_control_plane.rb +52 -0
- data/lib/oci/tenant_manager_control_plane/util.rb +3 -0
- data/lib/oci/tenant_manager_control_plane/work_request_client.rb +356 -0
- data/lib/oci/tenant_manager_control_plane/work_request_client_composite_operations.rb +25 -0
- data/lib/oci/usage_api/models/configuration.rb +3 -3
- data/lib/oci/usage_api/models/configuration_aggregation.rb +2 -2
- data/lib/oci/usage_api/models/dimension.rb +3 -3
- data/lib/oci/usage_api/models/filter.rb +1 -1
- data/lib/oci/usage_api/models/request_summarized_usages_details.rb +12 -12
- data/lib/oci/usage_api/models/tag.rb +3 -3
- data/lib/oci/usage_api/models/usage_aggregation.rb +1 -1
- data/lib/oci/usage_api/models/usage_summary.rb +47 -19
- data/lib/oci/usage_api/usageapi_client.rb +4 -4
- data/lib/oci/version.rb +1 -1
- metadata +273 -17
- data/lib/oci/log_analytics/models/attribute.rb +0 -435
@@ -0,0 +1,243 @@
|
|
1
|
+
# Copyright (c) 2016, 2020, 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
|
+
# Properties used in data asset create operations.
|
9
|
+
class DataCatalog::Models::CreatePatternDetails
|
10
|
+
# **[Required]** A user-friendly display name. Does not have to be unique, and it's changeable.
|
11
|
+
# Avoid entering confidential information.
|
12
|
+
#
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :display_name
|
15
|
+
|
16
|
+
# Detailed description of the Pattern.
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :description
|
19
|
+
|
20
|
+
# The expression used in the pattern that may include qualifiers. Refer to the user documentation for details of the format and examples.
|
21
|
+
#
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :expression
|
24
|
+
|
25
|
+
# List of file paths against which the expression can be tried, as a check. This documents, for reference
|
26
|
+
# purposes, some example objects a pattern is meant to work with. If isEnableCheckFailureLimit is set to true,
|
27
|
+
# this will be run as a validation during the request, such that if the check fails the request fails. If
|
28
|
+
# isEnableCheckFailureLimit instead is set to (the default) false, a pattern will still be created or updated even
|
29
|
+
# if the check fails, with a lifecycleState of FAILED.
|
30
|
+
#
|
31
|
+
# @return [Array<String>]
|
32
|
+
attr_accessor :check_file_path_list
|
33
|
+
|
34
|
+
# Indicates whether the expression check, against the checkFilePathList, will fail the request if the count of
|
35
|
+
# UNMATCHED files is above the checkFailureLimit.
|
36
|
+
#
|
37
|
+
# @return [BOOLEAN]
|
38
|
+
attr_accessor :is_enable_check_failure_limit
|
39
|
+
|
40
|
+
# The maximum number of UNMATCHED files, in checkFilePathList, above which the check fails. Optional, if
|
41
|
+
# checkFilePathList is provided - but if isEnableCheckFailureLimit is set to true it is required.
|
42
|
+
#
|
43
|
+
# @return [Integer]
|
44
|
+
attr_accessor :check_failure_limit
|
45
|
+
|
46
|
+
# A map of maps that contains the properties which are specific to the pattern type. Each pattern type
|
47
|
+
# definition defines it's set of required and optional properties.
|
48
|
+
# Example: `{\"properties\": { \"default\": { \"tbd\"}}}`
|
49
|
+
#
|
50
|
+
# @return [Hash<String, Hash<String, String>>]
|
51
|
+
attr_accessor :properties
|
52
|
+
|
53
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
54
|
+
def self.attribute_map
|
55
|
+
{
|
56
|
+
# rubocop:disable Style/SymbolLiteral
|
57
|
+
'display_name': :'displayName',
|
58
|
+
'description': :'description',
|
59
|
+
'expression': :'expression',
|
60
|
+
'check_file_path_list': :'checkFilePathList',
|
61
|
+
'is_enable_check_failure_limit': :'isEnableCheckFailureLimit',
|
62
|
+
'check_failure_limit': :'checkFailureLimit',
|
63
|
+
'properties': :'properties'
|
64
|
+
# rubocop:enable Style/SymbolLiteral
|
65
|
+
}
|
66
|
+
end
|
67
|
+
|
68
|
+
# Attribute type mapping.
|
69
|
+
def self.swagger_types
|
70
|
+
{
|
71
|
+
# rubocop:disable Style/SymbolLiteral
|
72
|
+
'display_name': :'String',
|
73
|
+
'description': :'String',
|
74
|
+
'expression': :'String',
|
75
|
+
'check_file_path_list': :'Array<String>',
|
76
|
+
'is_enable_check_failure_limit': :'BOOLEAN',
|
77
|
+
'check_failure_limit': :'Integer',
|
78
|
+
'properties': :'Hash<String, Hash<String, String>>'
|
79
|
+
# rubocop:enable Style/SymbolLiteral
|
80
|
+
}
|
81
|
+
end
|
82
|
+
|
83
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
84
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
85
|
+
|
86
|
+
|
87
|
+
# Initializes the object
|
88
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
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] :expression The value to assign to the {#expression} property
|
92
|
+
# @option attributes [Array<String>] :check_file_path_list The value to assign to the {#check_file_path_list} property
|
93
|
+
# @option attributes [BOOLEAN] :is_enable_check_failure_limit The value to assign to the {#is_enable_check_failure_limit} property
|
94
|
+
# @option attributes [Integer] :check_failure_limit The value to assign to the {#check_failure_limit} property
|
95
|
+
# @option attributes [Hash<String, Hash<String, String>>] :properties The value to assign to the {#properties} property
|
96
|
+
def initialize(attributes = {})
|
97
|
+
return unless attributes.is_a?(Hash)
|
98
|
+
|
99
|
+
# convert string to symbol for hash key
|
100
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
101
|
+
|
102
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
103
|
+
|
104
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
105
|
+
|
106
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
107
|
+
|
108
|
+
self.description = attributes[:'description'] if attributes[:'description']
|
109
|
+
|
110
|
+
self.expression = attributes[:'expression'] if attributes[:'expression']
|
111
|
+
|
112
|
+
self.check_file_path_list = attributes[:'checkFilePathList'] if attributes[:'checkFilePathList']
|
113
|
+
|
114
|
+
raise 'You cannot provide both :checkFilePathList and :check_file_path_list' if attributes.key?(:'checkFilePathList') && attributes.key?(:'check_file_path_list')
|
115
|
+
|
116
|
+
self.check_file_path_list = attributes[:'check_file_path_list'] if attributes[:'check_file_path_list']
|
117
|
+
|
118
|
+
self.is_enable_check_failure_limit = attributes[:'isEnableCheckFailureLimit'] unless attributes[:'isEnableCheckFailureLimit'].nil?
|
119
|
+
self.is_enable_check_failure_limit = false if is_enable_check_failure_limit.nil? && !attributes.key?(:'isEnableCheckFailureLimit') # rubocop:disable Style/StringLiterals
|
120
|
+
|
121
|
+
raise 'You cannot provide both :isEnableCheckFailureLimit and :is_enable_check_failure_limit' if attributes.key?(:'isEnableCheckFailureLimit') && attributes.key?(:'is_enable_check_failure_limit')
|
122
|
+
|
123
|
+
self.is_enable_check_failure_limit = attributes[:'is_enable_check_failure_limit'] unless attributes[:'is_enable_check_failure_limit'].nil?
|
124
|
+
self.is_enable_check_failure_limit = false if is_enable_check_failure_limit.nil? && !attributes.key?(:'isEnableCheckFailureLimit') && !attributes.key?(:'is_enable_check_failure_limit') # rubocop:disable Style/StringLiterals
|
125
|
+
|
126
|
+
self.check_failure_limit = attributes[:'checkFailureLimit'] if attributes[:'checkFailureLimit']
|
127
|
+
|
128
|
+
raise 'You cannot provide both :checkFailureLimit and :check_failure_limit' if attributes.key?(:'checkFailureLimit') && attributes.key?(:'check_failure_limit')
|
129
|
+
|
130
|
+
self.check_failure_limit = attributes[:'check_failure_limit'] if attributes[:'check_failure_limit']
|
131
|
+
|
132
|
+
self.properties = attributes[:'properties'] if attributes[:'properties']
|
133
|
+
end
|
134
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
135
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
136
|
+
|
137
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
138
|
+
|
139
|
+
|
140
|
+
# Checks equality by comparing each attribute.
|
141
|
+
# @param [Object] other the other object to be compared
|
142
|
+
def ==(other)
|
143
|
+
return true if equal?(other)
|
144
|
+
|
145
|
+
self.class == other.class &&
|
146
|
+
display_name == other.display_name &&
|
147
|
+
description == other.description &&
|
148
|
+
expression == other.expression &&
|
149
|
+
check_file_path_list == other.check_file_path_list &&
|
150
|
+
is_enable_check_failure_limit == other.is_enable_check_failure_limit &&
|
151
|
+
check_failure_limit == other.check_failure_limit &&
|
152
|
+
properties == other.properties
|
153
|
+
end
|
154
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
155
|
+
|
156
|
+
# @see the `==` method
|
157
|
+
# @param [Object] other the other object to be compared
|
158
|
+
def eql?(other)
|
159
|
+
self == other
|
160
|
+
end
|
161
|
+
|
162
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
163
|
+
|
164
|
+
|
165
|
+
# Calculates hash code according to all attributes.
|
166
|
+
# @return [Fixnum] Hash code
|
167
|
+
def hash
|
168
|
+
[display_name, description, expression, check_file_path_list, is_enable_check_failure_limit, check_failure_limit, properties].hash
|
169
|
+
end
|
170
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
171
|
+
|
172
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
173
|
+
|
174
|
+
|
175
|
+
# Builds the object from hash
|
176
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
177
|
+
# @return [Object] Returns the model itself
|
178
|
+
def build_from_hash(attributes)
|
179
|
+
return nil unless attributes.is_a?(Hash)
|
180
|
+
|
181
|
+
self.class.swagger_types.each_pair do |key, type|
|
182
|
+
if type =~ /^Array<(.*)>/i
|
183
|
+
# check to ensure the input is an array given that the the attribute
|
184
|
+
# is documented as an array but the input is not
|
185
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
186
|
+
public_method("#{key}=").call(
|
187
|
+
attributes[self.class.attribute_map[key]]
|
188
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
189
|
+
)
|
190
|
+
end
|
191
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
192
|
+
public_method("#{key}=").call(
|
193
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
194
|
+
)
|
195
|
+
end
|
196
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
197
|
+
end
|
198
|
+
|
199
|
+
self
|
200
|
+
end
|
201
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
202
|
+
|
203
|
+
# Returns the string representation of the object
|
204
|
+
# @return [String] String presentation of the object
|
205
|
+
def to_s
|
206
|
+
to_hash.to_s
|
207
|
+
end
|
208
|
+
|
209
|
+
# Returns the object in the form of hash
|
210
|
+
# @return [Hash] Returns the object in the form of hash
|
211
|
+
def to_hash
|
212
|
+
hash = {}
|
213
|
+
self.class.attribute_map.each_pair do |attr, param|
|
214
|
+
value = public_method(attr).call
|
215
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
216
|
+
|
217
|
+
hash[param] = _to_hash(value)
|
218
|
+
end
|
219
|
+
hash
|
220
|
+
end
|
221
|
+
|
222
|
+
private
|
223
|
+
|
224
|
+
# Outputs non-array value in the form of hash
|
225
|
+
# For object, use to_hash. Otherwise, just return the value
|
226
|
+
# @param [Object] value Any valid value
|
227
|
+
# @return [Hash] Returns the value in the form of hash
|
228
|
+
def _to_hash(value)
|
229
|
+
if value.is_a?(Array)
|
230
|
+
value.compact.map { |v| _to_hash(v) }
|
231
|
+
elsif value.is_a?(Hash)
|
232
|
+
{}.tap do |hash|
|
233
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
234
|
+
end
|
235
|
+
elsif value.respond_to? :to_hash
|
236
|
+
value.to_hash
|
237
|
+
else
|
238
|
+
value
|
239
|
+
end
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
243
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -40,6 +40,10 @@ module OCI
|
|
40
40
|
# @return [String]
|
41
41
|
attr_reader :workflow_status
|
42
42
|
|
43
|
+
# The list of customized properties along with the values for this object
|
44
|
+
# @return [Array<OCI::DataCatalog::Models::CustomPropertySetUsage>]
|
45
|
+
attr_accessor :custom_property_members
|
46
|
+
|
43
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
48
|
def self.attribute_map
|
45
49
|
{
|
@@ -49,7 +53,8 @@ module OCI
|
|
49
53
|
'is_allowed_to_have_child_terms': :'isAllowedToHaveChildTerms',
|
50
54
|
'parent_term_key': :'parentTermKey',
|
51
55
|
'owner': :'owner',
|
52
|
-
'workflow_status': :'workflowStatus'
|
56
|
+
'workflow_status': :'workflowStatus',
|
57
|
+
'custom_property_members': :'customPropertyMembers'
|
53
58
|
# rubocop:enable Style/SymbolLiteral
|
54
59
|
}
|
55
60
|
end
|
@@ -63,7 +68,8 @@ module OCI
|
|
63
68
|
'is_allowed_to_have_child_terms': :'BOOLEAN',
|
64
69
|
'parent_term_key': :'String',
|
65
70
|
'owner': :'String',
|
66
|
-
'workflow_status': :'String'
|
71
|
+
'workflow_status': :'String',
|
72
|
+
'custom_property_members': :'Array<OCI::DataCatalog::Models::CustomPropertySetUsage>'
|
67
73
|
# rubocop:enable Style/SymbolLiteral
|
68
74
|
}
|
69
75
|
end
|
@@ -80,6 +86,7 @@ module OCI
|
|
80
86
|
# @option attributes [String] :parent_term_key The value to assign to the {#parent_term_key} property
|
81
87
|
# @option attributes [String] :owner The value to assign to the {#owner} property
|
82
88
|
# @option attributes [String] :workflow_status The value to assign to the {#workflow_status} property
|
89
|
+
# @option attributes [Array<OCI::DataCatalog::Models::CustomPropertySetUsage>] :custom_property_members The value to assign to the {#custom_property_members} property
|
83
90
|
def initialize(attributes = {})
|
84
91
|
return unless attributes.is_a?(Hash)
|
85
92
|
|
@@ -115,6 +122,12 @@ module OCI
|
|
115
122
|
raise 'You cannot provide both :workflowStatus and :workflow_status' if attributes.key?(:'workflowStatus') && attributes.key?(:'workflow_status')
|
116
123
|
|
117
124
|
self.workflow_status = attributes[:'workflow_status'] if attributes[:'workflow_status']
|
125
|
+
|
126
|
+
self.custom_property_members = attributes[:'customPropertyMembers'] if attributes[:'customPropertyMembers']
|
127
|
+
|
128
|
+
raise 'You cannot provide both :customPropertyMembers and :custom_property_members' if attributes.key?(:'customPropertyMembers') && attributes.key?(:'custom_property_members')
|
129
|
+
|
130
|
+
self.custom_property_members = attributes[:'custom_property_members'] if attributes[:'custom_property_members']
|
118
131
|
end
|
119
132
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
120
133
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -141,7 +154,8 @@ module OCI
|
|
141
154
|
is_allowed_to_have_child_terms == other.is_allowed_to_have_child_terms &&
|
142
155
|
parent_term_key == other.parent_term_key &&
|
143
156
|
owner == other.owner &&
|
144
|
-
workflow_status == other.workflow_status
|
157
|
+
workflow_status == other.workflow_status &&
|
158
|
+
custom_property_members == other.custom_property_members
|
145
159
|
end
|
146
160
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
147
161
|
|
@@ -157,7 +171,7 @@ module OCI
|
|
157
171
|
# Calculates hash code according to all attributes.
|
158
172
|
# @return [Fixnum] Hash code
|
159
173
|
def hash
|
160
|
-
[display_name, description, is_allowed_to_have_child_terms, parent_term_key, owner, workflow_status].hash
|
174
|
+
[display_name, description, is_allowed_to_have_child_terms, parent_term_key, owner, workflow_status, custom_property_members].hash
|
161
175
|
end
|
162
176
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
163
177
|
|
@@ -0,0 +1,506 @@
|
|
1
|
+
# Copyright (c) 2016, 2020, 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
|
+
# Custom Property Definition
|
10
|
+
#
|
11
|
+
class DataCatalog::Models::CustomProperty
|
12
|
+
DATA_TYPE_ENUM = [
|
13
|
+
DATA_TYPE_TEXT = 'TEXT'.freeze,
|
14
|
+
DATA_TYPE_RICH_TEXT = 'RICH_TEXT'.freeze,
|
15
|
+
DATA_TYPE_BOOLEAN = 'BOOLEAN'.freeze,
|
16
|
+
DATA_TYPE_NUMBER = 'NUMBER'.freeze,
|
17
|
+
DATA_TYPE_DATE = 'DATE'.freeze,
|
18
|
+
DATA_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
19
|
+
].freeze
|
20
|
+
|
21
|
+
LIFECYCLE_STATE_ENUM = [
|
22
|
+
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
23
|
+
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
|
24
|
+
LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze,
|
25
|
+
LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
|
26
|
+
LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
|
27
|
+
LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
|
28
|
+
LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
|
29
|
+
LIFECYCLE_STATE_MOVING = 'MOVING'.freeze,
|
30
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
31
|
+
].freeze
|
32
|
+
|
33
|
+
# **[Required]** Unique data asset key that is immutable.
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :key
|
36
|
+
|
37
|
+
# Display name of the custom property
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :display_name
|
40
|
+
|
41
|
+
# Data type of the custom property
|
42
|
+
# @return [String]
|
43
|
+
attr_reader :data_type
|
44
|
+
|
45
|
+
# Description for the custom property
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :description
|
48
|
+
|
49
|
+
# Namespace name of the custom property
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :namespace_name
|
52
|
+
|
53
|
+
# Is this property allowed to have list of values
|
54
|
+
# @return [BOOLEAN]
|
55
|
+
attr_accessor :is_list_type
|
56
|
+
|
57
|
+
# If this field allows to sort from UI
|
58
|
+
# @return [BOOLEAN]
|
59
|
+
attr_accessor :is_sortable
|
60
|
+
|
61
|
+
# If this field allows to filter or create facets from UI
|
62
|
+
# @return [BOOLEAN]
|
63
|
+
attr_accessor :is_filterable
|
64
|
+
|
65
|
+
# If this field allows multiple values to be set
|
66
|
+
# @return [BOOLEAN]
|
67
|
+
attr_accessor :is_multi_valued
|
68
|
+
|
69
|
+
# If this field is a hidden field
|
70
|
+
# @return [BOOLEAN]
|
71
|
+
attr_accessor :is_hidden
|
72
|
+
|
73
|
+
# If this field is a editable field
|
74
|
+
# @return [BOOLEAN]
|
75
|
+
attr_accessor :is_editable
|
76
|
+
|
77
|
+
# If this field is defined by service or by a user
|
78
|
+
# @return [BOOLEAN]
|
79
|
+
attr_accessor :is_service_defined
|
80
|
+
|
81
|
+
# If this field is allowed to pop in search results
|
82
|
+
# @return [BOOLEAN]
|
83
|
+
attr_accessor :is_hidden_in_search
|
84
|
+
|
85
|
+
# The current state of the custom property.
|
86
|
+
# @return [String]
|
87
|
+
attr_reader :lifecycle_state
|
88
|
+
|
89
|
+
# The date and time the custom property was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
|
90
|
+
# Example: `2019-03-25T21:10:29.600Z`
|
91
|
+
#
|
92
|
+
# @return [DateTime]
|
93
|
+
attr_accessor :time_created
|
94
|
+
|
95
|
+
# The last time that any change was made to the custom property. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string.
|
96
|
+
#
|
97
|
+
# @return [DateTime]
|
98
|
+
attr_accessor :time_updated
|
99
|
+
|
100
|
+
# OCID of the user who created the custom property.
|
101
|
+
# @return [String]
|
102
|
+
attr_accessor :created_by_id
|
103
|
+
|
104
|
+
# OCID of the user who last modified the custom property.
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :updated_by_id
|
107
|
+
|
108
|
+
# Total number of first class objects using this custom property
|
109
|
+
# @return [Integer]
|
110
|
+
attr_accessor :usage_count
|
111
|
+
|
112
|
+
# Type or scope of the custom property belongs to. This will be an array of type id it will be belongs to
|
113
|
+
#
|
114
|
+
# @return [Array<OCI::DataCatalog::Models::CustomPropertyTypeUsage>]
|
115
|
+
attr_accessor :scope
|
116
|
+
|
117
|
+
# Allowed values for the custom property if any
|
118
|
+
# @return [Array<String>]
|
119
|
+
attr_accessor :allowed_values
|
120
|
+
|
121
|
+
# A map of maps that contains the properties which are specific to the asset type. Each data asset type
|
122
|
+
# definition defines it's set of required and optional properties. The map keys are category names and the
|
123
|
+
# values are maps of property name to property value. Every property is contained inside of a category. Most
|
124
|
+
# data assets have required properties within the \"default\" category.
|
125
|
+
# Example: `{\"properties\": { \"default\": { \"host\": \"host1\", \"port\": \"1521\", \"database\": \"orcl\"}}}`
|
126
|
+
#
|
127
|
+
# @return [Hash<String, Hash<String, String>>]
|
128
|
+
attr_accessor :properties
|
129
|
+
|
130
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
131
|
+
def self.attribute_map
|
132
|
+
{
|
133
|
+
# rubocop:disable Style/SymbolLiteral
|
134
|
+
'key': :'key',
|
135
|
+
'display_name': :'displayName',
|
136
|
+
'data_type': :'dataType',
|
137
|
+
'description': :'description',
|
138
|
+
'namespace_name': :'namespaceName',
|
139
|
+
'is_list_type': :'isListType',
|
140
|
+
'is_sortable': :'isSortable',
|
141
|
+
'is_filterable': :'isFilterable',
|
142
|
+
'is_multi_valued': :'isMultiValued',
|
143
|
+
'is_hidden': :'isHidden',
|
144
|
+
'is_editable': :'isEditable',
|
145
|
+
'is_service_defined': :'isServiceDefined',
|
146
|
+
'is_hidden_in_search': :'isHiddenInSearch',
|
147
|
+
'lifecycle_state': :'lifecycleState',
|
148
|
+
'time_created': :'timeCreated',
|
149
|
+
'time_updated': :'timeUpdated',
|
150
|
+
'created_by_id': :'createdById',
|
151
|
+
'updated_by_id': :'updatedById',
|
152
|
+
'usage_count': :'usageCount',
|
153
|
+
'scope': :'scope',
|
154
|
+
'allowed_values': :'allowedValues',
|
155
|
+
'properties': :'properties'
|
156
|
+
# rubocop:enable Style/SymbolLiteral
|
157
|
+
}
|
158
|
+
end
|
159
|
+
|
160
|
+
# Attribute type mapping.
|
161
|
+
def self.swagger_types
|
162
|
+
{
|
163
|
+
# rubocop:disable Style/SymbolLiteral
|
164
|
+
'key': :'String',
|
165
|
+
'display_name': :'String',
|
166
|
+
'data_type': :'String',
|
167
|
+
'description': :'String',
|
168
|
+
'namespace_name': :'String',
|
169
|
+
'is_list_type': :'BOOLEAN',
|
170
|
+
'is_sortable': :'BOOLEAN',
|
171
|
+
'is_filterable': :'BOOLEAN',
|
172
|
+
'is_multi_valued': :'BOOLEAN',
|
173
|
+
'is_hidden': :'BOOLEAN',
|
174
|
+
'is_editable': :'BOOLEAN',
|
175
|
+
'is_service_defined': :'BOOLEAN',
|
176
|
+
'is_hidden_in_search': :'BOOLEAN',
|
177
|
+
'lifecycle_state': :'String',
|
178
|
+
'time_created': :'DateTime',
|
179
|
+
'time_updated': :'DateTime',
|
180
|
+
'created_by_id': :'String',
|
181
|
+
'updated_by_id': :'String',
|
182
|
+
'usage_count': :'Integer',
|
183
|
+
'scope': :'Array<OCI::DataCatalog::Models::CustomPropertyTypeUsage>',
|
184
|
+
'allowed_values': :'Array<String>',
|
185
|
+
'properties': :'Hash<String, Hash<String, String>>'
|
186
|
+
# rubocop:enable Style/SymbolLiteral
|
187
|
+
}
|
188
|
+
end
|
189
|
+
|
190
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
191
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
192
|
+
|
193
|
+
|
194
|
+
# Initializes the object
|
195
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
196
|
+
# @option attributes [String] :key The value to assign to the {#key} property
|
197
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
198
|
+
# @option attributes [String] :data_type The value to assign to the {#data_type} property
|
199
|
+
# @option attributes [String] :description The value to assign to the {#description} property
|
200
|
+
# @option attributes [String] :namespace_name The value to assign to the {#namespace_name} property
|
201
|
+
# @option attributes [BOOLEAN] :is_list_type The value to assign to the {#is_list_type} property
|
202
|
+
# @option attributes [BOOLEAN] :is_sortable The value to assign to the {#is_sortable} property
|
203
|
+
# @option attributes [BOOLEAN] :is_filterable The value to assign to the {#is_filterable} property
|
204
|
+
# @option attributes [BOOLEAN] :is_multi_valued The value to assign to the {#is_multi_valued} property
|
205
|
+
# @option attributes [BOOLEAN] :is_hidden The value to assign to the {#is_hidden} property
|
206
|
+
# @option attributes [BOOLEAN] :is_editable The value to assign to the {#is_editable} property
|
207
|
+
# @option attributes [BOOLEAN] :is_service_defined The value to assign to the {#is_service_defined} property
|
208
|
+
# @option attributes [BOOLEAN] :is_hidden_in_search The value to assign to the {#is_hidden_in_search} property
|
209
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
210
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
211
|
+
# @option attributes [DateTime] :time_updated The value to assign to the {#time_updated} property
|
212
|
+
# @option attributes [String] :created_by_id The value to assign to the {#created_by_id} property
|
213
|
+
# @option attributes [String] :updated_by_id The value to assign to the {#updated_by_id} property
|
214
|
+
# @option attributes [Integer] :usage_count The value to assign to the {#usage_count} property
|
215
|
+
# @option attributes [Array<OCI::DataCatalog::Models::CustomPropertyTypeUsage>] :scope The value to assign to the {#scope} property
|
216
|
+
# @option attributes [Array<String>] :allowed_values The value to assign to the {#allowed_values} property
|
217
|
+
# @option attributes [Hash<String, Hash<String, String>>] :properties The value to assign to the {#properties} property
|
218
|
+
def initialize(attributes = {})
|
219
|
+
return unless attributes.is_a?(Hash)
|
220
|
+
|
221
|
+
# convert string to symbol for hash key
|
222
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
223
|
+
|
224
|
+
self.key = attributes[:'key'] if attributes[:'key']
|
225
|
+
|
226
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
227
|
+
|
228
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
229
|
+
|
230
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
231
|
+
|
232
|
+
self.data_type = attributes[:'dataType'] if attributes[:'dataType']
|
233
|
+
|
234
|
+
raise 'You cannot provide both :dataType and :data_type' if attributes.key?(:'dataType') && attributes.key?(:'data_type')
|
235
|
+
|
236
|
+
self.data_type = attributes[:'data_type'] if attributes[:'data_type']
|
237
|
+
|
238
|
+
self.description = attributes[:'description'] if attributes[:'description']
|
239
|
+
|
240
|
+
self.namespace_name = attributes[:'namespaceName'] if attributes[:'namespaceName']
|
241
|
+
|
242
|
+
raise 'You cannot provide both :namespaceName and :namespace_name' if attributes.key?(:'namespaceName') && attributes.key?(:'namespace_name')
|
243
|
+
|
244
|
+
self.namespace_name = attributes[:'namespace_name'] if attributes[:'namespace_name']
|
245
|
+
|
246
|
+
self.is_list_type = attributes[:'isListType'] unless attributes[:'isListType'].nil?
|
247
|
+
self.is_list_type = false if is_list_type.nil? && !attributes.key?(:'isListType') # rubocop:disable Style/StringLiterals
|
248
|
+
|
249
|
+
raise 'You cannot provide both :isListType and :is_list_type' if attributes.key?(:'isListType') && attributes.key?(:'is_list_type')
|
250
|
+
|
251
|
+
self.is_list_type = attributes[:'is_list_type'] unless attributes[:'is_list_type'].nil?
|
252
|
+
self.is_list_type = false if is_list_type.nil? && !attributes.key?(:'isListType') && !attributes.key?(:'is_list_type') # rubocop:disable Style/StringLiterals
|
253
|
+
|
254
|
+
self.is_sortable = attributes[:'isSortable'] unless attributes[:'isSortable'].nil?
|
255
|
+
self.is_sortable = false if is_sortable.nil? && !attributes.key?(:'isSortable') # rubocop:disable Style/StringLiterals
|
256
|
+
|
257
|
+
raise 'You cannot provide both :isSortable and :is_sortable' if attributes.key?(:'isSortable') && attributes.key?(:'is_sortable')
|
258
|
+
|
259
|
+
self.is_sortable = attributes[:'is_sortable'] unless attributes[:'is_sortable'].nil?
|
260
|
+
self.is_sortable = false if is_sortable.nil? && !attributes.key?(:'isSortable') && !attributes.key?(:'is_sortable') # rubocop:disable Style/StringLiterals
|
261
|
+
|
262
|
+
self.is_filterable = attributes[:'isFilterable'] unless attributes[:'isFilterable'].nil?
|
263
|
+
self.is_filterable = false if is_filterable.nil? && !attributes.key?(:'isFilterable') # rubocop:disable Style/StringLiterals
|
264
|
+
|
265
|
+
raise 'You cannot provide both :isFilterable and :is_filterable' if attributes.key?(:'isFilterable') && attributes.key?(:'is_filterable')
|
266
|
+
|
267
|
+
self.is_filterable = attributes[:'is_filterable'] unless attributes[:'is_filterable'].nil?
|
268
|
+
self.is_filterable = false if is_filterable.nil? && !attributes.key?(:'isFilterable') && !attributes.key?(:'is_filterable') # rubocop:disable Style/StringLiterals
|
269
|
+
|
270
|
+
self.is_multi_valued = attributes[:'isMultiValued'] unless attributes[:'isMultiValued'].nil?
|
271
|
+
self.is_multi_valued = false if is_multi_valued.nil? && !attributes.key?(:'isMultiValued') # rubocop:disable Style/StringLiterals
|
272
|
+
|
273
|
+
raise 'You cannot provide both :isMultiValued and :is_multi_valued' if attributes.key?(:'isMultiValued') && attributes.key?(:'is_multi_valued')
|
274
|
+
|
275
|
+
self.is_multi_valued = attributes[:'is_multi_valued'] unless attributes[:'is_multi_valued'].nil?
|
276
|
+
self.is_multi_valued = false if is_multi_valued.nil? && !attributes.key?(:'isMultiValued') && !attributes.key?(:'is_multi_valued') # rubocop:disable Style/StringLiterals
|
277
|
+
|
278
|
+
self.is_hidden = attributes[:'isHidden'] unless attributes[:'isHidden'].nil?
|
279
|
+
self.is_hidden = true if is_hidden.nil? && !attributes.key?(:'isHidden') # rubocop:disable Style/StringLiterals
|
280
|
+
|
281
|
+
raise 'You cannot provide both :isHidden and :is_hidden' if attributes.key?(:'isHidden') && attributes.key?(:'is_hidden')
|
282
|
+
|
283
|
+
self.is_hidden = attributes[:'is_hidden'] unless attributes[:'is_hidden'].nil?
|
284
|
+
self.is_hidden = true if is_hidden.nil? && !attributes.key?(:'isHidden') && !attributes.key?(:'is_hidden') # rubocop:disable Style/StringLiterals
|
285
|
+
|
286
|
+
self.is_editable = attributes[:'isEditable'] unless attributes[:'isEditable'].nil?
|
287
|
+
self.is_editable = true if is_editable.nil? && !attributes.key?(:'isEditable') # rubocop:disable Style/StringLiterals
|
288
|
+
|
289
|
+
raise 'You cannot provide both :isEditable and :is_editable' if attributes.key?(:'isEditable') && attributes.key?(:'is_editable')
|
290
|
+
|
291
|
+
self.is_editable = attributes[:'is_editable'] unless attributes[:'is_editable'].nil?
|
292
|
+
self.is_editable = true if is_editable.nil? && !attributes.key?(:'isEditable') && !attributes.key?(:'is_editable') # rubocop:disable Style/StringLiterals
|
293
|
+
|
294
|
+
self.is_service_defined = attributes[:'isServiceDefined'] unless attributes[:'isServiceDefined'].nil?
|
295
|
+
self.is_service_defined = false if is_service_defined.nil? && !attributes.key?(:'isServiceDefined') # rubocop:disable Style/StringLiterals
|
296
|
+
|
297
|
+
raise 'You cannot provide both :isServiceDefined and :is_service_defined' if attributes.key?(:'isServiceDefined') && attributes.key?(:'is_service_defined')
|
298
|
+
|
299
|
+
self.is_service_defined = attributes[:'is_service_defined'] unless attributes[:'is_service_defined'].nil?
|
300
|
+
self.is_service_defined = false if is_service_defined.nil? && !attributes.key?(:'isServiceDefined') && !attributes.key?(:'is_service_defined') # rubocop:disable Style/StringLiterals
|
301
|
+
|
302
|
+
self.is_hidden_in_search = attributes[:'isHiddenInSearch'] unless attributes[:'isHiddenInSearch'].nil?
|
303
|
+
self.is_hidden_in_search = false if is_hidden_in_search.nil? && !attributes.key?(:'isHiddenInSearch') # rubocop:disable Style/StringLiterals
|
304
|
+
|
305
|
+
raise 'You cannot provide both :isHiddenInSearch and :is_hidden_in_search' if attributes.key?(:'isHiddenInSearch') && attributes.key?(:'is_hidden_in_search')
|
306
|
+
|
307
|
+
self.is_hidden_in_search = attributes[:'is_hidden_in_search'] unless attributes[:'is_hidden_in_search'].nil?
|
308
|
+
self.is_hidden_in_search = false if is_hidden_in_search.nil? && !attributes.key?(:'isHiddenInSearch') && !attributes.key?(:'is_hidden_in_search') # rubocop:disable Style/StringLiterals
|
309
|
+
|
310
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
311
|
+
|
312
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
313
|
+
|
314
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
315
|
+
|
316
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
317
|
+
|
318
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
319
|
+
|
320
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
321
|
+
|
322
|
+
self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated']
|
323
|
+
|
324
|
+
raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated')
|
325
|
+
|
326
|
+
self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated']
|
327
|
+
|
328
|
+
self.created_by_id = attributes[:'createdById'] if attributes[:'createdById']
|
329
|
+
|
330
|
+
raise 'You cannot provide both :createdById and :created_by_id' if attributes.key?(:'createdById') && attributes.key?(:'created_by_id')
|
331
|
+
|
332
|
+
self.created_by_id = attributes[:'created_by_id'] if attributes[:'created_by_id']
|
333
|
+
|
334
|
+
self.updated_by_id = attributes[:'updatedById'] if attributes[:'updatedById']
|
335
|
+
|
336
|
+
raise 'You cannot provide both :updatedById and :updated_by_id' if attributes.key?(:'updatedById') && attributes.key?(:'updated_by_id')
|
337
|
+
|
338
|
+
self.updated_by_id = attributes[:'updated_by_id'] if attributes[:'updated_by_id']
|
339
|
+
|
340
|
+
self.usage_count = attributes[:'usageCount'] if attributes[:'usageCount']
|
341
|
+
|
342
|
+
raise 'You cannot provide both :usageCount and :usage_count' if attributes.key?(:'usageCount') && attributes.key?(:'usage_count')
|
343
|
+
|
344
|
+
self.usage_count = attributes[:'usage_count'] if attributes[:'usage_count']
|
345
|
+
|
346
|
+
self.scope = attributes[:'scope'] if attributes[:'scope']
|
347
|
+
|
348
|
+
self.allowed_values = attributes[:'allowedValues'] if attributes[:'allowedValues']
|
349
|
+
|
350
|
+
raise 'You cannot provide both :allowedValues and :allowed_values' if attributes.key?(:'allowedValues') && attributes.key?(:'allowed_values')
|
351
|
+
|
352
|
+
self.allowed_values = attributes[:'allowed_values'] if attributes[:'allowed_values']
|
353
|
+
|
354
|
+
self.properties = attributes[:'properties'] if attributes[:'properties']
|
355
|
+
end
|
356
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
357
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
358
|
+
|
359
|
+
# Custom attribute writer method checking allowed values (enum).
|
360
|
+
# @param [Object] data_type Object to be assigned
|
361
|
+
def data_type=(data_type)
|
362
|
+
# rubocop:disable Style/ConditionalAssignment
|
363
|
+
if data_type && !DATA_TYPE_ENUM.include?(data_type)
|
364
|
+
OCI.logger.debug("Unknown value for 'data_type' [" + data_type + "]. Mapping to 'DATA_TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
365
|
+
@data_type = DATA_TYPE_UNKNOWN_ENUM_VALUE
|
366
|
+
else
|
367
|
+
@data_type = data_type
|
368
|
+
end
|
369
|
+
# rubocop:enable Style/ConditionalAssignment
|
370
|
+
end
|
371
|
+
|
372
|
+
# Custom attribute writer method checking allowed values (enum).
|
373
|
+
# @param [Object] lifecycle_state Object to be assigned
|
374
|
+
def lifecycle_state=(lifecycle_state)
|
375
|
+
# rubocop:disable Style/ConditionalAssignment
|
376
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
377
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
378
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
379
|
+
else
|
380
|
+
@lifecycle_state = lifecycle_state
|
381
|
+
end
|
382
|
+
# rubocop:enable Style/ConditionalAssignment
|
383
|
+
end
|
384
|
+
|
385
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
386
|
+
|
387
|
+
|
388
|
+
# Checks equality by comparing each attribute.
|
389
|
+
# @param [Object] other the other object to be compared
|
390
|
+
def ==(other)
|
391
|
+
return true if equal?(other)
|
392
|
+
|
393
|
+
self.class == other.class &&
|
394
|
+
key == other.key &&
|
395
|
+
display_name == other.display_name &&
|
396
|
+
data_type == other.data_type &&
|
397
|
+
description == other.description &&
|
398
|
+
namespace_name == other.namespace_name &&
|
399
|
+
is_list_type == other.is_list_type &&
|
400
|
+
is_sortable == other.is_sortable &&
|
401
|
+
is_filterable == other.is_filterable &&
|
402
|
+
is_multi_valued == other.is_multi_valued &&
|
403
|
+
is_hidden == other.is_hidden &&
|
404
|
+
is_editable == other.is_editable &&
|
405
|
+
is_service_defined == other.is_service_defined &&
|
406
|
+
is_hidden_in_search == other.is_hidden_in_search &&
|
407
|
+
lifecycle_state == other.lifecycle_state &&
|
408
|
+
time_created == other.time_created &&
|
409
|
+
time_updated == other.time_updated &&
|
410
|
+
created_by_id == other.created_by_id &&
|
411
|
+
updated_by_id == other.updated_by_id &&
|
412
|
+
usage_count == other.usage_count &&
|
413
|
+
scope == other.scope &&
|
414
|
+
allowed_values == other.allowed_values &&
|
415
|
+
properties == other.properties
|
416
|
+
end
|
417
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
418
|
+
|
419
|
+
# @see the `==` method
|
420
|
+
# @param [Object] other the other object to be compared
|
421
|
+
def eql?(other)
|
422
|
+
self == other
|
423
|
+
end
|
424
|
+
|
425
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
426
|
+
|
427
|
+
|
428
|
+
# Calculates hash code according to all attributes.
|
429
|
+
# @return [Fixnum] Hash code
|
430
|
+
def hash
|
431
|
+
[key, display_name, data_type, description, namespace_name, is_list_type, is_sortable, is_filterable, is_multi_valued, is_hidden, is_editable, is_service_defined, is_hidden_in_search, lifecycle_state, time_created, time_updated, created_by_id, updated_by_id, usage_count, scope, allowed_values, properties].hash
|
432
|
+
end
|
433
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
434
|
+
|
435
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
436
|
+
|
437
|
+
|
438
|
+
# Builds the object from hash
|
439
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
440
|
+
# @return [Object] Returns the model itself
|
441
|
+
def build_from_hash(attributes)
|
442
|
+
return nil unless attributes.is_a?(Hash)
|
443
|
+
|
444
|
+
self.class.swagger_types.each_pair do |key, type|
|
445
|
+
if type =~ /^Array<(.*)>/i
|
446
|
+
# check to ensure the input is an array given that the the attribute
|
447
|
+
# is documented as an array but the input is not
|
448
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
449
|
+
public_method("#{key}=").call(
|
450
|
+
attributes[self.class.attribute_map[key]]
|
451
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
452
|
+
)
|
453
|
+
end
|
454
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
455
|
+
public_method("#{key}=").call(
|
456
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
457
|
+
)
|
458
|
+
end
|
459
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
460
|
+
end
|
461
|
+
|
462
|
+
self
|
463
|
+
end
|
464
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
465
|
+
|
466
|
+
# Returns the string representation of the object
|
467
|
+
# @return [String] String presentation of the object
|
468
|
+
def to_s
|
469
|
+
to_hash.to_s
|
470
|
+
end
|
471
|
+
|
472
|
+
# Returns the object in the form of hash
|
473
|
+
# @return [Hash] Returns the object in the form of hash
|
474
|
+
def to_hash
|
475
|
+
hash = {}
|
476
|
+
self.class.attribute_map.each_pair do |attr, param|
|
477
|
+
value = public_method(attr).call
|
478
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
479
|
+
|
480
|
+
hash[param] = _to_hash(value)
|
481
|
+
end
|
482
|
+
hash
|
483
|
+
end
|
484
|
+
|
485
|
+
private
|
486
|
+
|
487
|
+
# Outputs non-array value in the form of hash
|
488
|
+
# For object, use to_hash. Otherwise, just return the value
|
489
|
+
# @param [Object] value Any valid value
|
490
|
+
# @return [Hash] Returns the value in the form of hash
|
491
|
+
def _to_hash(value)
|
492
|
+
if value.is_a?(Array)
|
493
|
+
value.compact.map { |v| _to_hash(v) }
|
494
|
+
elsif value.is_a?(Hash)
|
495
|
+
{}.tap do |hash|
|
496
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
497
|
+
end
|
498
|
+
elsif value.respond_to? :to_hash
|
499
|
+
value.to_hash
|
500
|
+
else
|
501
|
+
value
|
502
|
+
end
|
503
|
+
end
|
504
|
+
end
|
505
|
+
end
|
506
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|