oci 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,218 @@
|
|
|
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
|
+
# SQL plan insights response.
|
|
9
|
+
#
|
|
10
|
+
class Opsi::Models::SqlPlanInsightAggregationCollection
|
|
11
|
+
# **[Required]** Unique SQL_ID for a SQL Statement.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :sql_identifier
|
|
15
|
+
|
|
16
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :database_id
|
|
19
|
+
|
|
20
|
+
# **[Required]** The start timestamp that was passed into the request.
|
|
21
|
+
# @return [DateTime]
|
|
22
|
+
attr_accessor :time_interval_start
|
|
23
|
+
|
|
24
|
+
# **[Required]** The end timestamp that was passed into the request.
|
|
25
|
+
# @return [DateTime]
|
|
26
|
+
attr_accessor :time_interval_end
|
|
27
|
+
|
|
28
|
+
# **[Required]** List of SQL plan insights.
|
|
29
|
+
# @return [Array<OCI::Opsi::Models::SqlPlanInsights>]
|
|
30
|
+
attr_accessor :insights
|
|
31
|
+
|
|
32
|
+
# **[Required]** List of SQL plan statistics.
|
|
33
|
+
# @return [Array<OCI::Opsi::Models::SqlPlanInsightAggregation>]
|
|
34
|
+
attr_accessor :items
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
# rubocop:disable Style/SymbolLiteral
|
|
40
|
+
'sql_identifier': :'sqlIdentifier',
|
|
41
|
+
'database_id': :'databaseId',
|
|
42
|
+
'time_interval_start': :'timeIntervalStart',
|
|
43
|
+
'time_interval_end': :'timeIntervalEnd',
|
|
44
|
+
'insights': :'insights',
|
|
45
|
+
'items': :'items'
|
|
46
|
+
# rubocop:enable Style/SymbolLiteral
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Attribute type mapping.
|
|
51
|
+
def self.swagger_types
|
|
52
|
+
{
|
|
53
|
+
# rubocop:disable Style/SymbolLiteral
|
|
54
|
+
'sql_identifier': :'String',
|
|
55
|
+
'database_id': :'String',
|
|
56
|
+
'time_interval_start': :'DateTime',
|
|
57
|
+
'time_interval_end': :'DateTime',
|
|
58
|
+
'insights': :'Array<OCI::Opsi::Models::SqlPlanInsights>',
|
|
59
|
+
'items': :'Array<OCI::Opsi::Models::SqlPlanInsightAggregation>'
|
|
60
|
+
# rubocop:enable Style/SymbolLiteral
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
65
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# Initializes the object
|
|
69
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
70
|
+
# @option attributes [String] :sql_identifier The value to assign to the {#sql_identifier} property
|
|
71
|
+
# @option attributes [String] :database_id The value to assign to the {#database_id} property
|
|
72
|
+
# @option attributes [DateTime] :time_interval_start The value to assign to the {#time_interval_start} property
|
|
73
|
+
# @option attributes [DateTime] :time_interval_end The value to assign to the {#time_interval_end} property
|
|
74
|
+
# @option attributes [Array<OCI::Opsi::Models::SqlPlanInsights>] :insights The value to assign to the {#insights} property
|
|
75
|
+
# @option attributes [Array<OCI::Opsi::Models::SqlPlanInsightAggregation>] :items The value to assign to the {#items} property
|
|
76
|
+
def initialize(attributes = {})
|
|
77
|
+
return unless attributes.is_a?(Hash)
|
|
78
|
+
|
|
79
|
+
# convert string to symbol for hash key
|
|
80
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
81
|
+
|
|
82
|
+
self.sql_identifier = attributes[:'sqlIdentifier'] if attributes[:'sqlIdentifier']
|
|
83
|
+
|
|
84
|
+
raise 'You cannot provide both :sqlIdentifier and :sql_identifier' if attributes.key?(:'sqlIdentifier') && attributes.key?(:'sql_identifier')
|
|
85
|
+
|
|
86
|
+
self.sql_identifier = attributes[:'sql_identifier'] if attributes[:'sql_identifier']
|
|
87
|
+
|
|
88
|
+
self.database_id = attributes[:'databaseId'] if attributes[:'databaseId']
|
|
89
|
+
|
|
90
|
+
raise 'You cannot provide both :databaseId and :database_id' if attributes.key?(:'databaseId') && attributes.key?(:'database_id')
|
|
91
|
+
|
|
92
|
+
self.database_id = attributes[:'database_id'] if attributes[:'database_id']
|
|
93
|
+
|
|
94
|
+
self.time_interval_start = attributes[:'timeIntervalStart'] if attributes[:'timeIntervalStart']
|
|
95
|
+
|
|
96
|
+
raise 'You cannot provide both :timeIntervalStart and :time_interval_start' if attributes.key?(:'timeIntervalStart') && attributes.key?(:'time_interval_start')
|
|
97
|
+
|
|
98
|
+
self.time_interval_start = attributes[:'time_interval_start'] if attributes[:'time_interval_start']
|
|
99
|
+
|
|
100
|
+
self.time_interval_end = attributes[:'timeIntervalEnd'] if attributes[:'timeIntervalEnd']
|
|
101
|
+
|
|
102
|
+
raise 'You cannot provide both :timeIntervalEnd and :time_interval_end' if attributes.key?(:'timeIntervalEnd') && attributes.key?(:'time_interval_end')
|
|
103
|
+
|
|
104
|
+
self.time_interval_end = attributes[:'time_interval_end'] if attributes[:'time_interval_end']
|
|
105
|
+
|
|
106
|
+
self.insights = attributes[:'insights'] if attributes[:'insights']
|
|
107
|
+
|
|
108
|
+
self.items = attributes[:'items'] if attributes[:'items']
|
|
109
|
+
end
|
|
110
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
111
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
112
|
+
|
|
113
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
# Checks equality by comparing each attribute.
|
|
117
|
+
# @param [Object] other the other object to be compared
|
|
118
|
+
def ==(other)
|
|
119
|
+
return true if equal?(other)
|
|
120
|
+
|
|
121
|
+
self.class == other.class &&
|
|
122
|
+
sql_identifier == other.sql_identifier &&
|
|
123
|
+
database_id == other.database_id &&
|
|
124
|
+
time_interval_start == other.time_interval_start &&
|
|
125
|
+
time_interval_end == other.time_interval_end &&
|
|
126
|
+
insights == other.insights &&
|
|
127
|
+
items == other.items
|
|
128
|
+
end
|
|
129
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
130
|
+
|
|
131
|
+
# @see the `==` method
|
|
132
|
+
# @param [Object] other the other object to be compared
|
|
133
|
+
def eql?(other)
|
|
134
|
+
self == other
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
# Calculates hash code according to all attributes.
|
|
141
|
+
# @return [Fixnum] Hash code
|
|
142
|
+
def hash
|
|
143
|
+
[sql_identifier, database_id, time_interval_start, time_interval_end, insights, items].hash
|
|
144
|
+
end
|
|
145
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
146
|
+
|
|
147
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
# Builds the object from hash
|
|
151
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
152
|
+
# @return [Object] Returns the model itself
|
|
153
|
+
def build_from_hash(attributes)
|
|
154
|
+
return nil unless attributes.is_a?(Hash)
|
|
155
|
+
|
|
156
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
157
|
+
if type =~ /^Array<(.*)>/i
|
|
158
|
+
# check to ensure the input is an array given that the the attribute
|
|
159
|
+
# is documented as an array but the input is not
|
|
160
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
161
|
+
public_method("#{key}=").call(
|
|
162
|
+
attributes[self.class.attribute_map[key]]
|
|
163
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
164
|
+
)
|
|
165
|
+
end
|
|
166
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
167
|
+
public_method("#{key}=").call(
|
|
168
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
169
|
+
)
|
|
170
|
+
end
|
|
171
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
self
|
|
175
|
+
end
|
|
176
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
177
|
+
|
|
178
|
+
# Returns the string representation of the object
|
|
179
|
+
# @return [String] String presentation of the object
|
|
180
|
+
def to_s
|
|
181
|
+
to_hash.to_s
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Returns the object in the form of hash
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_hash
|
|
187
|
+
hash = {}
|
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
189
|
+
value = public_method(attr).call
|
|
190
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
191
|
+
|
|
192
|
+
hash[param] = _to_hash(value)
|
|
193
|
+
end
|
|
194
|
+
hash
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
private
|
|
198
|
+
|
|
199
|
+
# Outputs non-array value in the form of hash
|
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
201
|
+
# @param [Object] value Any valid value
|
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
|
203
|
+
def _to_hash(value)
|
|
204
|
+
if value.is_a?(Array)
|
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
|
206
|
+
elsif value.is_a?(Hash)
|
|
207
|
+
{}.tap do |hash|
|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
209
|
+
end
|
|
210
|
+
elsif value.respond_to? :to_hash
|
|
211
|
+
value.to_hash
|
|
212
|
+
else
|
|
213
|
+
value
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -0,0 +1,177 @@
|
|
|
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
|
+
# Represents collection of SQL Plan Insights.
|
|
9
|
+
class Opsi::Models::SqlPlanInsights
|
|
10
|
+
# **[Required]** SQL Plan Insight text.
|
|
11
|
+
# For example `Number of Plans Used`, `Most Executed Plan`,
|
|
12
|
+
# `Best Performing Plan`, `Worst Performing Plan`,
|
|
13
|
+
# `Plan With Most IO`,
|
|
14
|
+
# `Plan with Most CPU`
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :text
|
|
18
|
+
|
|
19
|
+
# **[Required]** SQL execution plan hash value for a given insight. For example `Most Executed Plan` insight will have value as \"3975467901\"
|
|
20
|
+
#
|
|
21
|
+
# @return [Integer]
|
|
22
|
+
attr_accessor :value
|
|
23
|
+
|
|
24
|
+
# **[Required]** SQL Insight category. For example PLANS_USED, MOST_EXECUTED, BEST_PERFORMER, WORST_PERFORMER, MOST_CPU or MOST_IO.
|
|
25
|
+
#
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :category
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
def self.attribute_map
|
|
31
|
+
{
|
|
32
|
+
# rubocop:disable Style/SymbolLiteral
|
|
33
|
+
'text': :'text',
|
|
34
|
+
'value': :'value',
|
|
35
|
+
'category': :'category'
|
|
36
|
+
# rubocop:enable Style/SymbolLiteral
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.swagger_types
|
|
42
|
+
{
|
|
43
|
+
# rubocop:disable Style/SymbolLiteral
|
|
44
|
+
'text': :'String',
|
|
45
|
+
'value': :'Integer',
|
|
46
|
+
'category': :'String'
|
|
47
|
+
# rubocop:enable Style/SymbolLiteral
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
52
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
# @option attributes [String] :text The value to assign to the {#text} property
|
|
58
|
+
# @option attributes [Integer] :value The value to assign to the {#value} property
|
|
59
|
+
# @option attributes [String] :category The value to assign to the {#category} property
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
return unless attributes.is_a?(Hash)
|
|
62
|
+
|
|
63
|
+
# convert string to symbol for hash key
|
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
65
|
+
|
|
66
|
+
self.text = attributes[:'text'] if attributes[:'text']
|
|
67
|
+
|
|
68
|
+
self.value = attributes[:'value'] if attributes[:'value']
|
|
69
|
+
|
|
70
|
+
self.category = attributes[:'category'] if attributes[:'category']
|
|
71
|
+
end
|
|
72
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
73
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
74
|
+
|
|
75
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# Checks equality by comparing each attribute.
|
|
79
|
+
# @param [Object] other the other object to be compared
|
|
80
|
+
def ==(other)
|
|
81
|
+
return true if equal?(other)
|
|
82
|
+
|
|
83
|
+
self.class == other.class &&
|
|
84
|
+
text == other.text &&
|
|
85
|
+
value == other.value &&
|
|
86
|
+
category == other.category
|
|
87
|
+
end
|
|
88
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
89
|
+
|
|
90
|
+
# @see the `==` method
|
|
91
|
+
# @param [Object] other the other object to be compared
|
|
92
|
+
def eql?(other)
|
|
93
|
+
self == other
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
# Calculates hash code according to all attributes.
|
|
100
|
+
# @return [Fixnum] Hash code
|
|
101
|
+
def hash
|
|
102
|
+
[text, value, category].hash
|
|
103
|
+
end
|
|
104
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
105
|
+
|
|
106
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# Builds the object from hash
|
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
111
|
+
# @return [Object] Returns the model itself
|
|
112
|
+
def build_from_hash(attributes)
|
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
|
114
|
+
|
|
115
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
116
|
+
if type =~ /^Array<(.*)>/i
|
|
117
|
+
# check to ensure the input is an array given that the the attribute
|
|
118
|
+
# is documented as an array but the input is not
|
|
119
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
120
|
+
public_method("#{key}=").call(
|
|
121
|
+
attributes[self.class.attribute_map[key]]
|
|
122
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
123
|
+
)
|
|
124
|
+
end
|
|
125
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
126
|
+
public_method("#{key}=").call(
|
|
127
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
self
|
|
134
|
+
end
|
|
135
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
136
|
+
|
|
137
|
+
# Returns the string representation of the object
|
|
138
|
+
# @return [String] String presentation of the object
|
|
139
|
+
def to_s
|
|
140
|
+
to_hash.to_s
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Returns the object in the form of hash
|
|
144
|
+
# @return [Hash] Returns the object in the form of hash
|
|
145
|
+
def to_hash
|
|
146
|
+
hash = {}
|
|
147
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
148
|
+
value = public_method(attr).call
|
|
149
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
150
|
+
|
|
151
|
+
hash[param] = _to_hash(value)
|
|
152
|
+
end
|
|
153
|
+
hash
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
private
|
|
157
|
+
|
|
158
|
+
# Outputs non-array value in the form of hash
|
|
159
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
160
|
+
# @param [Object] value Any valid value
|
|
161
|
+
# @return [Hash] Returns the value in the form of hash
|
|
162
|
+
def _to_hash(value)
|
|
163
|
+
if value.is_a?(Array)
|
|
164
|
+
value.compact.map { |v| _to_hash(v) }
|
|
165
|
+
elsif value.is_a?(Hash)
|
|
166
|
+
{}.tap do |hash|
|
|
167
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
168
|
+
end
|
|
169
|
+
elsif value.respond_to? :to_hash
|
|
170
|
+
value.to_hash
|
|
171
|
+
else
|
|
172
|
+
value
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -0,0 +1,673 @@
|
|
|
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
|
+
# SQL Plan Line type object.
|
|
9
|
+
class Opsi::Models::SqlPlanLine
|
|
10
|
+
# Version
|
|
11
|
+
# Example: `1`
|
|
12
|
+
#
|
|
13
|
+
# @return [Float]
|
|
14
|
+
attr_accessor :version
|
|
15
|
+
|
|
16
|
+
# **[Required]** Unique SQL_ID for a SQL Statement.
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :sql_identifier
|
|
20
|
+
|
|
21
|
+
# **[Required]** Plan hash value for the SQL Execution Plan
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
attr_accessor :plan_hash
|
|
24
|
+
|
|
25
|
+
# **[Required]** Collection time stamp
|
|
26
|
+
# Example: `\"2020-05-06T00:00:00.000Z\"`
|
|
27
|
+
#
|
|
28
|
+
# @return [DateTime]
|
|
29
|
+
attr_accessor :time_collected
|
|
30
|
+
|
|
31
|
+
# **[Required]** Operation
|
|
32
|
+
# Example: `\"SELECT STATEMENT\"`
|
|
33
|
+
#
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :operation
|
|
36
|
+
|
|
37
|
+
# Remark
|
|
38
|
+
# Example: `\"\"`
|
|
39
|
+
#
|
|
40
|
+
# @return [String]
|
|
41
|
+
attr_accessor :remark
|
|
42
|
+
|
|
43
|
+
# Options
|
|
44
|
+
# Example: `\"RANGE SCAN\"`
|
|
45
|
+
#
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :options
|
|
48
|
+
|
|
49
|
+
# Object Node
|
|
50
|
+
# Example: `\"Q4000\"`
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
attr_accessor :object_node
|
|
54
|
+
|
|
55
|
+
# Object Owner
|
|
56
|
+
# Example: `\"TENANT_A#SCHEMA\"`
|
|
57
|
+
#
|
|
58
|
+
# @return [String]
|
|
59
|
+
attr_accessor :object_owner
|
|
60
|
+
|
|
61
|
+
# Object Name
|
|
62
|
+
# Example: `\"PLAN_LINES_PK\"`
|
|
63
|
+
#
|
|
64
|
+
# @return [String]
|
|
65
|
+
attr_accessor :object_name
|
|
66
|
+
|
|
67
|
+
# Object Alias
|
|
68
|
+
# Example: `\"PLAN_LINES@SEL$1\"`
|
|
69
|
+
#
|
|
70
|
+
# @return [String]
|
|
71
|
+
attr_accessor :object_alias
|
|
72
|
+
|
|
73
|
+
# Object Instance
|
|
74
|
+
# Example: `37472`
|
|
75
|
+
#
|
|
76
|
+
# @return [Integer]
|
|
77
|
+
attr_accessor :object_instance
|
|
78
|
+
|
|
79
|
+
# Object Type
|
|
80
|
+
# Example: `\"INDEX (UNIQUE)\"`
|
|
81
|
+
#
|
|
82
|
+
# @return [String]
|
|
83
|
+
attr_accessor :object_type
|
|
84
|
+
|
|
85
|
+
# Optimizer
|
|
86
|
+
# Example: `\"CLUSTER\"`
|
|
87
|
+
#
|
|
88
|
+
# @return [String]
|
|
89
|
+
attr_accessor :optimizer
|
|
90
|
+
|
|
91
|
+
# Search Columns
|
|
92
|
+
# Example: `3`
|
|
93
|
+
#
|
|
94
|
+
# @return [Integer]
|
|
95
|
+
attr_accessor :search_columns
|
|
96
|
+
|
|
97
|
+
# **[Required]** Identifier
|
|
98
|
+
# Example: `3`
|
|
99
|
+
#
|
|
100
|
+
# @return [Integer]
|
|
101
|
+
attr_accessor :identifier
|
|
102
|
+
|
|
103
|
+
# Parent Identifier
|
|
104
|
+
# Example: `2`
|
|
105
|
+
#
|
|
106
|
+
# @return [Integer]
|
|
107
|
+
attr_accessor :parent_identifier
|
|
108
|
+
|
|
109
|
+
# Depth
|
|
110
|
+
# Example: `3`
|
|
111
|
+
#
|
|
112
|
+
# @return [Integer]
|
|
113
|
+
attr_accessor :depth
|
|
114
|
+
|
|
115
|
+
# Position
|
|
116
|
+
# Example: `1`
|
|
117
|
+
#
|
|
118
|
+
# @return [Integer]
|
|
119
|
+
attr_accessor :position
|
|
120
|
+
|
|
121
|
+
# Cost
|
|
122
|
+
# Example: `1`
|
|
123
|
+
#
|
|
124
|
+
# @return [Integer]
|
|
125
|
+
attr_accessor :cost
|
|
126
|
+
|
|
127
|
+
# Cardinality
|
|
128
|
+
# Example: `1`
|
|
129
|
+
#
|
|
130
|
+
# @return [Integer]
|
|
131
|
+
attr_accessor :cardinality
|
|
132
|
+
|
|
133
|
+
# Bytes
|
|
134
|
+
# Example: `150`
|
|
135
|
+
#
|
|
136
|
+
# @return [Integer]
|
|
137
|
+
attr_accessor :bytes
|
|
138
|
+
|
|
139
|
+
# Other
|
|
140
|
+
# Example: ``
|
|
141
|
+
#
|
|
142
|
+
# @return [String]
|
|
143
|
+
attr_accessor :other
|
|
144
|
+
|
|
145
|
+
# Other Tag
|
|
146
|
+
# Example: `\"PARALLEL_COMBINED_WITH_PARENT\"`
|
|
147
|
+
#
|
|
148
|
+
# @return [String]
|
|
149
|
+
attr_accessor :other_tag
|
|
150
|
+
|
|
151
|
+
# Partition start
|
|
152
|
+
# Example: `1`
|
|
153
|
+
#
|
|
154
|
+
# @return [String]
|
|
155
|
+
attr_accessor :partition_start
|
|
156
|
+
|
|
157
|
+
# Partition stop
|
|
158
|
+
# Example: `2`
|
|
159
|
+
#
|
|
160
|
+
# @return [String]
|
|
161
|
+
attr_accessor :partition_stop
|
|
162
|
+
|
|
163
|
+
# Partition identifier
|
|
164
|
+
# Example: `8`
|
|
165
|
+
#
|
|
166
|
+
# @return [Integer]
|
|
167
|
+
attr_accessor :partition_identifier
|
|
168
|
+
|
|
169
|
+
# Distribution
|
|
170
|
+
# Example: `\"QC (RANDOM)\"`
|
|
171
|
+
#
|
|
172
|
+
# @return [String]
|
|
173
|
+
attr_accessor :distribution
|
|
174
|
+
|
|
175
|
+
# CPU cost
|
|
176
|
+
# Example: `7321`
|
|
177
|
+
#
|
|
178
|
+
# @return [Integer]
|
|
179
|
+
attr_accessor :cpu_cost
|
|
180
|
+
|
|
181
|
+
# IO cost
|
|
182
|
+
# Example: `1`
|
|
183
|
+
#
|
|
184
|
+
# @return [Integer]
|
|
185
|
+
attr_accessor :io_cost
|
|
186
|
+
|
|
187
|
+
# Time space
|
|
188
|
+
# Example: `15614000`
|
|
189
|
+
#
|
|
190
|
+
# @return [Integer]
|
|
191
|
+
attr_accessor :temp_space
|
|
192
|
+
|
|
193
|
+
# Access predicates
|
|
194
|
+
# Example: `\"\\\"RESOURCE_ID\\\"=:1 AND \\\"QUERY_ID\\\"=:2\"`
|
|
195
|
+
#
|
|
196
|
+
# @return [String]
|
|
197
|
+
attr_accessor :access_predicates
|
|
198
|
+
|
|
199
|
+
# Filter predicates
|
|
200
|
+
# Example: `\"(INTERNAL_FUNCTION(\\\"J\\\".\\\"DATABASE_ROLE\\\") OR (\\\"J\\\".\\\"DATABASE_ROLE\\\" IS NULL AND SYS_CONTEXT('userenv','database_role')='PRIMARY'))\"`
|
|
201
|
+
#
|
|
202
|
+
# @return [String]
|
|
203
|
+
attr_accessor :filter_predicates
|
|
204
|
+
|
|
205
|
+
# Projection
|
|
206
|
+
# Example: `\"COUNT(*)[22]\"`
|
|
207
|
+
#
|
|
208
|
+
# @return [String]
|
|
209
|
+
attr_accessor :projection
|
|
210
|
+
|
|
211
|
+
# Qblock Name
|
|
212
|
+
# Example: `\"SEL$1\"`
|
|
213
|
+
#
|
|
214
|
+
# @return [String]
|
|
215
|
+
attr_accessor :qblock_name
|
|
216
|
+
|
|
217
|
+
# Total elapsed time
|
|
218
|
+
# Example: `1.2`
|
|
219
|
+
#
|
|
220
|
+
# @return [Float]
|
|
221
|
+
attr_accessor :elapsed_time_in_sec
|
|
222
|
+
|
|
223
|
+
# Other SQL
|
|
224
|
+
# Example: `\"<other_xml><info type=\\\"db_version\\\">18.0.0.0</info><info type=\\\"parse_schema\\\"><![CDATA[\\\"SYS\\\"]]></info><info type=\\\"plan_hash_full\\\">483892784</info><info type=\\\"plan_hash\\\">2709293936</info><info type=\\\"plan_hash_2\\\">483892784</info><outline_data><hint><![CDATA[IGNORE_OPTIM_EMBEDDED_HINTS]]></hint><hint><![CDATA[OPTIMIZER_FEATURES_ENABLE('18.1.0')]]></hint><hint><![CDATA[DB_VERSION('18.1.0')]]></hint><hint><![CDATA[OPT_PARAM('_b_tree_bitmap_plans' 'false')]]></hint><hint><![CDATA[OPT_PARAM('_optim_peek_user_binds' 'false')]]></hint><hint><![CDATA[OPT_PARAM('result_cache_mode' 'FORCE')]]></hint><hint><![CDATA[OPT_PARAM('_fix_control' '20648883:0 27745220:1 30001331:1 30142527:1 30539126:1')]]></hint><hint><![CDATA[OUTLINE_LEAF(@\\\"SEL$1\\\")]]></hint><hint><![CDATA[INDEX(@\\\"SEL$1\\\" \\\"USER$\\\"@\\\"SEL$1\\\" \\\"I_USER#\\\")]]></hint></outline_data></other_xml>\"`
|
|
225
|
+
#
|
|
226
|
+
# @return [String]
|
|
227
|
+
attr_accessor :other_xml
|
|
228
|
+
|
|
229
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
230
|
+
def self.attribute_map
|
|
231
|
+
{
|
|
232
|
+
# rubocop:disable Style/SymbolLiteral
|
|
233
|
+
'version': :'version',
|
|
234
|
+
'sql_identifier': :'sqlIdentifier',
|
|
235
|
+
'plan_hash': :'planHash',
|
|
236
|
+
'time_collected': :'timeCollected',
|
|
237
|
+
'operation': :'operation',
|
|
238
|
+
'remark': :'remark',
|
|
239
|
+
'options': :'options',
|
|
240
|
+
'object_node': :'objectNode',
|
|
241
|
+
'object_owner': :'objectOwner',
|
|
242
|
+
'object_name': :'objectName',
|
|
243
|
+
'object_alias': :'objectAlias',
|
|
244
|
+
'object_instance': :'objectInstance',
|
|
245
|
+
'object_type': :'objectType',
|
|
246
|
+
'optimizer': :'optimizer',
|
|
247
|
+
'search_columns': :'searchColumns',
|
|
248
|
+
'identifier': :'identifier',
|
|
249
|
+
'parent_identifier': :'parentIdentifier',
|
|
250
|
+
'depth': :'depth',
|
|
251
|
+
'position': :'position',
|
|
252
|
+
'cost': :'cost',
|
|
253
|
+
'cardinality': :'cardinality',
|
|
254
|
+
'bytes': :'bytes',
|
|
255
|
+
'other': :'other',
|
|
256
|
+
'other_tag': :'otherTag',
|
|
257
|
+
'partition_start': :'partitionStart',
|
|
258
|
+
'partition_stop': :'partitionStop',
|
|
259
|
+
'partition_identifier': :'partitionIdentifier',
|
|
260
|
+
'distribution': :'distribution',
|
|
261
|
+
'cpu_cost': :'cpuCost',
|
|
262
|
+
'io_cost': :'ioCost',
|
|
263
|
+
'temp_space': :'tempSpace',
|
|
264
|
+
'access_predicates': :'accessPredicates',
|
|
265
|
+
'filter_predicates': :'filterPredicates',
|
|
266
|
+
'projection': :'projection',
|
|
267
|
+
'qblock_name': :'qblockName',
|
|
268
|
+
'elapsed_time_in_sec': :'elapsedTimeInSec',
|
|
269
|
+
'other_xml': :'otherXML'
|
|
270
|
+
# rubocop:enable Style/SymbolLiteral
|
|
271
|
+
}
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Attribute type mapping.
|
|
275
|
+
def self.swagger_types
|
|
276
|
+
{
|
|
277
|
+
# rubocop:disable Style/SymbolLiteral
|
|
278
|
+
'version': :'Float',
|
|
279
|
+
'sql_identifier': :'String',
|
|
280
|
+
'plan_hash': :'Integer',
|
|
281
|
+
'time_collected': :'DateTime',
|
|
282
|
+
'operation': :'String',
|
|
283
|
+
'remark': :'String',
|
|
284
|
+
'options': :'String',
|
|
285
|
+
'object_node': :'String',
|
|
286
|
+
'object_owner': :'String',
|
|
287
|
+
'object_name': :'String',
|
|
288
|
+
'object_alias': :'String',
|
|
289
|
+
'object_instance': :'Integer',
|
|
290
|
+
'object_type': :'String',
|
|
291
|
+
'optimizer': :'String',
|
|
292
|
+
'search_columns': :'Integer',
|
|
293
|
+
'identifier': :'Integer',
|
|
294
|
+
'parent_identifier': :'Integer',
|
|
295
|
+
'depth': :'Integer',
|
|
296
|
+
'position': :'Integer',
|
|
297
|
+
'cost': :'Integer',
|
|
298
|
+
'cardinality': :'Integer',
|
|
299
|
+
'bytes': :'Integer',
|
|
300
|
+
'other': :'String',
|
|
301
|
+
'other_tag': :'String',
|
|
302
|
+
'partition_start': :'String',
|
|
303
|
+
'partition_stop': :'String',
|
|
304
|
+
'partition_identifier': :'Integer',
|
|
305
|
+
'distribution': :'String',
|
|
306
|
+
'cpu_cost': :'Integer',
|
|
307
|
+
'io_cost': :'Integer',
|
|
308
|
+
'temp_space': :'Integer',
|
|
309
|
+
'access_predicates': :'String',
|
|
310
|
+
'filter_predicates': :'String',
|
|
311
|
+
'projection': :'String',
|
|
312
|
+
'qblock_name': :'String',
|
|
313
|
+
'elapsed_time_in_sec': :'Float',
|
|
314
|
+
'other_xml': :'String'
|
|
315
|
+
# rubocop:enable Style/SymbolLiteral
|
|
316
|
+
}
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
320
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
# Initializes the object
|
|
324
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
325
|
+
# @option attributes [Float] :version The value to assign to the {#version} property
|
|
326
|
+
# @option attributes [String] :sql_identifier The value to assign to the {#sql_identifier} property
|
|
327
|
+
# @option attributes [Integer] :plan_hash The value to assign to the {#plan_hash} property
|
|
328
|
+
# @option attributes [DateTime] :time_collected The value to assign to the {#time_collected} property
|
|
329
|
+
# @option attributes [String] :operation The value to assign to the {#operation} property
|
|
330
|
+
# @option attributes [String] :remark The value to assign to the {#remark} property
|
|
331
|
+
# @option attributes [String] :options The value to assign to the {#options} property
|
|
332
|
+
# @option attributes [String] :object_node The value to assign to the {#object_node} property
|
|
333
|
+
# @option attributes [String] :object_owner The value to assign to the {#object_owner} property
|
|
334
|
+
# @option attributes [String] :object_name The value to assign to the {#object_name} property
|
|
335
|
+
# @option attributes [String] :object_alias The value to assign to the {#object_alias} property
|
|
336
|
+
# @option attributes [Integer] :object_instance The value to assign to the {#object_instance} property
|
|
337
|
+
# @option attributes [String] :object_type The value to assign to the {#object_type} property
|
|
338
|
+
# @option attributes [String] :optimizer The value to assign to the {#optimizer} property
|
|
339
|
+
# @option attributes [Integer] :search_columns The value to assign to the {#search_columns} property
|
|
340
|
+
# @option attributes [Integer] :identifier The value to assign to the {#identifier} property
|
|
341
|
+
# @option attributes [Integer] :parent_identifier The value to assign to the {#parent_identifier} property
|
|
342
|
+
# @option attributes [Integer] :depth The value to assign to the {#depth} property
|
|
343
|
+
# @option attributes [Integer] :position The value to assign to the {#position} property
|
|
344
|
+
# @option attributes [Integer] :cost The value to assign to the {#cost} property
|
|
345
|
+
# @option attributes [Integer] :cardinality The value to assign to the {#cardinality} property
|
|
346
|
+
# @option attributes [Integer] :bytes The value to assign to the {#bytes} property
|
|
347
|
+
# @option attributes [String] :other The value to assign to the {#other} property
|
|
348
|
+
# @option attributes [String] :other_tag The value to assign to the {#other_tag} property
|
|
349
|
+
# @option attributes [String] :partition_start The value to assign to the {#partition_start} property
|
|
350
|
+
# @option attributes [String] :partition_stop The value to assign to the {#partition_stop} property
|
|
351
|
+
# @option attributes [Integer] :partition_identifier The value to assign to the {#partition_identifier} property
|
|
352
|
+
# @option attributes [String] :distribution The value to assign to the {#distribution} property
|
|
353
|
+
# @option attributes [Integer] :cpu_cost The value to assign to the {#cpu_cost} property
|
|
354
|
+
# @option attributes [Integer] :io_cost The value to assign to the {#io_cost} property
|
|
355
|
+
# @option attributes [Integer] :temp_space The value to assign to the {#temp_space} property
|
|
356
|
+
# @option attributes [String] :access_predicates The value to assign to the {#access_predicates} property
|
|
357
|
+
# @option attributes [String] :filter_predicates The value to assign to the {#filter_predicates} property
|
|
358
|
+
# @option attributes [String] :projection The value to assign to the {#projection} property
|
|
359
|
+
# @option attributes [String] :qblock_name The value to assign to the {#qblock_name} property
|
|
360
|
+
# @option attributes [Float] :elapsed_time_in_sec The value to assign to the {#elapsed_time_in_sec} property
|
|
361
|
+
# @option attributes [String] :other_xml The value to assign to the {#other_xml} property
|
|
362
|
+
def initialize(attributes = {})
|
|
363
|
+
return unless attributes.is_a?(Hash)
|
|
364
|
+
|
|
365
|
+
# convert string to symbol for hash key
|
|
366
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
367
|
+
|
|
368
|
+
self.version = attributes[:'version'] if attributes[:'version']
|
|
369
|
+
|
|
370
|
+
self.sql_identifier = attributes[:'sqlIdentifier'] if attributes[:'sqlIdentifier']
|
|
371
|
+
|
|
372
|
+
raise 'You cannot provide both :sqlIdentifier and :sql_identifier' if attributes.key?(:'sqlIdentifier') && attributes.key?(:'sql_identifier')
|
|
373
|
+
|
|
374
|
+
self.sql_identifier = attributes[:'sql_identifier'] if attributes[:'sql_identifier']
|
|
375
|
+
|
|
376
|
+
self.plan_hash = attributes[:'planHash'] if attributes[:'planHash']
|
|
377
|
+
|
|
378
|
+
raise 'You cannot provide both :planHash and :plan_hash' if attributes.key?(:'planHash') && attributes.key?(:'plan_hash')
|
|
379
|
+
|
|
380
|
+
self.plan_hash = attributes[:'plan_hash'] if attributes[:'plan_hash']
|
|
381
|
+
|
|
382
|
+
self.time_collected = attributes[:'timeCollected'] if attributes[:'timeCollected']
|
|
383
|
+
|
|
384
|
+
raise 'You cannot provide both :timeCollected and :time_collected' if attributes.key?(:'timeCollected') && attributes.key?(:'time_collected')
|
|
385
|
+
|
|
386
|
+
self.time_collected = attributes[:'time_collected'] if attributes[:'time_collected']
|
|
387
|
+
|
|
388
|
+
self.operation = attributes[:'operation'] if attributes[:'operation']
|
|
389
|
+
|
|
390
|
+
self.remark = attributes[:'remark'] if attributes[:'remark']
|
|
391
|
+
|
|
392
|
+
self.options = attributes[:'options'] if attributes[:'options']
|
|
393
|
+
|
|
394
|
+
self.object_node = attributes[:'objectNode'] if attributes[:'objectNode']
|
|
395
|
+
|
|
396
|
+
raise 'You cannot provide both :objectNode and :object_node' if attributes.key?(:'objectNode') && attributes.key?(:'object_node')
|
|
397
|
+
|
|
398
|
+
self.object_node = attributes[:'object_node'] if attributes[:'object_node']
|
|
399
|
+
|
|
400
|
+
self.object_owner = attributes[:'objectOwner'] if attributes[:'objectOwner']
|
|
401
|
+
|
|
402
|
+
raise 'You cannot provide both :objectOwner and :object_owner' if attributes.key?(:'objectOwner') && attributes.key?(:'object_owner')
|
|
403
|
+
|
|
404
|
+
self.object_owner = attributes[:'object_owner'] if attributes[:'object_owner']
|
|
405
|
+
|
|
406
|
+
self.object_name = attributes[:'objectName'] if attributes[:'objectName']
|
|
407
|
+
|
|
408
|
+
raise 'You cannot provide both :objectName and :object_name' if attributes.key?(:'objectName') && attributes.key?(:'object_name')
|
|
409
|
+
|
|
410
|
+
self.object_name = attributes[:'object_name'] if attributes[:'object_name']
|
|
411
|
+
|
|
412
|
+
self.object_alias = attributes[:'objectAlias'] if attributes[:'objectAlias']
|
|
413
|
+
|
|
414
|
+
raise 'You cannot provide both :objectAlias and :object_alias' if attributes.key?(:'objectAlias') && attributes.key?(:'object_alias')
|
|
415
|
+
|
|
416
|
+
self.object_alias = attributes[:'object_alias'] if attributes[:'object_alias']
|
|
417
|
+
|
|
418
|
+
self.object_instance = attributes[:'objectInstance'] if attributes[:'objectInstance']
|
|
419
|
+
|
|
420
|
+
raise 'You cannot provide both :objectInstance and :object_instance' if attributes.key?(:'objectInstance') && attributes.key?(:'object_instance')
|
|
421
|
+
|
|
422
|
+
self.object_instance = attributes[:'object_instance'] if attributes[:'object_instance']
|
|
423
|
+
|
|
424
|
+
self.object_type = attributes[:'objectType'] if attributes[:'objectType']
|
|
425
|
+
|
|
426
|
+
raise 'You cannot provide both :objectType and :object_type' if attributes.key?(:'objectType') && attributes.key?(:'object_type')
|
|
427
|
+
|
|
428
|
+
self.object_type = attributes[:'object_type'] if attributes[:'object_type']
|
|
429
|
+
|
|
430
|
+
self.optimizer = attributes[:'optimizer'] if attributes[:'optimizer']
|
|
431
|
+
|
|
432
|
+
self.search_columns = attributes[:'searchColumns'] if attributes[:'searchColumns']
|
|
433
|
+
|
|
434
|
+
raise 'You cannot provide both :searchColumns and :search_columns' if attributes.key?(:'searchColumns') && attributes.key?(:'search_columns')
|
|
435
|
+
|
|
436
|
+
self.search_columns = attributes[:'search_columns'] if attributes[:'search_columns']
|
|
437
|
+
|
|
438
|
+
self.identifier = attributes[:'identifier'] if attributes[:'identifier']
|
|
439
|
+
|
|
440
|
+
self.parent_identifier = attributes[:'parentIdentifier'] if attributes[:'parentIdentifier']
|
|
441
|
+
|
|
442
|
+
raise 'You cannot provide both :parentIdentifier and :parent_identifier' if attributes.key?(:'parentIdentifier') && attributes.key?(:'parent_identifier')
|
|
443
|
+
|
|
444
|
+
self.parent_identifier = attributes[:'parent_identifier'] if attributes[:'parent_identifier']
|
|
445
|
+
|
|
446
|
+
self.depth = attributes[:'depth'] if attributes[:'depth']
|
|
447
|
+
|
|
448
|
+
self.position = attributes[:'position'] if attributes[:'position']
|
|
449
|
+
|
|
450
|
+
self.cost = attributes[:'cost'] if attributes[:'cost']
|
|
451
|
+
|
|
452
|
+
self.cardinality = attributes[:'cardinality'] if attributes[:'cardinality']
|
|
453
|
+
|
|
454
|
+
self.bytes = attributes[:'bytes'] if attributes[:'bytes']
|
|
455
|
+
|
|
456
|
+
self.other = attributes[:'other'] if attributes[:'other']
|
|
457
|
+
|
|
458
|
+
self.other_tag = attributes[:'otherTag'] if attributes[:'otherTag']
|
|
459
|
+
|
|
460
|
+
raise 'You cannot provide both :otherTag and :other_tag' if attributes.key?(:'otherTag') && attributes.key?(:'other_tag')
|
|
461
|
+
|
|
462
|
+
self.other_tag = attributes[:'other_tag'] if attributes[:'other_tag']
|
|
463
|
+
|
|
464
|
+
self.partition_start = attributes[:'partitionStart'] if attributes[:'partitionStart']
|
|
465
|
+
|
|
466
|
+
raise 'You cannot provide both :partitionStart and :partition_start' if attributes.key?(:'partitionStart') && attributes.key?(:'partition_start')
|
|
467
|
+
|
|
468
|
+
self.partition_start = attributes[:'partition_start'] if attributes[:'partition_start']
|
|
469
|
+
|
|
470
|
+
self.partition_stop = attributes[:'partitionStop'] if attributes[:'partitionStop']
|
|
471
|
+
|
|
472
|
+
raise 'You cannot provide both :partitionStop and :partition_stop' if attributes.key?(:'partitionStop') && attributes.key?(:'partition_stop')
|
|
473
|
+
|
|
474
|
+
self.partition_stop = attributes[:'partition_stop'] if attributes[:'partition_stop']
|
|
475
|
+
|
|
476
|
+
self.partition_identifier = attributes[:'partitionIdentifier'] if attributes[:'partitionIdentifier']
|
|
477
|
+
|
|
478
|
+
raise 'You cannot provide both :partitionIdentifier and :partition_identifier' if attributes.key?(:'partitionIdentifier') && attributes.key?(:'partition_identifier')
|
|
479
|
+
|
|
480
|
+
self.partition_identifier = attributes[:'partition_identifier'] if attributes[:'partition_identifier']
|
|
481
|
+
|
|
482
|
+
self.distribution = attributes[:'distribution'] if attributes[:'distribution']
|
|
483
|
+
|
|
484
|
+
self.cpu_cost = attributes[:'cpuCost'] if attributes[:'cpuCost']
|
|
485
|
+
|
|
486
|
+
raise 'You cannot provide both :cpuCost and :cpu_cost' if attributes.key?(:'cpuCost') && attributes.key?(:'cpu_cost')
|
|
487
|
+
|
|
488
|
+
self.cpu_cost = attributes[:'cpu_cost'] if attributes[:'cpu_cost']
|
|
489
|
+
|
|
490
|
+
self.io_cost = attributes[:'ioCost'] if attributes[:'ioCost']
|
|
491
|
+
|
|
492
|
+
raise 'You cannot provide both :ioCost and :io_cost' if attributes.key?(:'ioCost') && attributes.key?(:'io_cost')
|
|
493
|
+
|
|
494
|
+
self.io_cost = attributes[:'io_cost'] if attributes[:'io_cost']
|
|
495
|
+
|
|
496
|
+
self.temp_space = attributes[:'tempSpace'] if attributes[:'tempSpace']
|
|
497
|
+
|
|
498
|
+
raise 'You cannot provide both :tempSpace and :temp_space' if attributes.key?(:'tempSpace') && attributes.key?(:'temp_space')
|
|
499
|
+
|
|
500
|
+
self.temp_space = attributes[:'temp_space'] if attributes[:'temp_space']
|
|
501
|
+
|
|
502
|
+
self.access_predicates = attributes[:'accessPredicates'] if attributes[:'accessPredicates']
|
|
503
|
+
|
|
504
|
+
raise 'You cannot provide both :accessPredicates and :access_predicates' if attributes.key?(:'accessPredicates') && attributes.key?(:'access_predicates')
|
|
505
|
+
|
|
506
|
+
self.access_predicates = attributes[:'access_predicates'] if attributes[:'access_predicates']
|
|
507
|
+
|
|
508
|
+
self.filter_predicates = attributes[:'filterPredicates'] if attributes[:'filterPredicates']
|
|
509
|
+
|
|
510
|
+
raise 'You cannot provide both :filterPredicates and :filter_predicates' if attributes.key?(:'filterPredicates') && attributes.key?(:'filter_predicates')
|
|
511
|
+
|
|
512
|
+
self.filter_predicates = attributes[:'filter_predicates'] if attributes[:'filter_predicates']
|
|
513
|
+
|
|
514
|
+
self.projection = attributes[:'projection'] if attributes[:'projection']
|
|
515
|
+
|
|
516
|
+
self.qblock_name = attributes[:'qblockName'] if attributes[:'qblockName']
|
|
517
|
+
|
|
518
|
+
raise 'You cannot provide both :qblockName and :qblock_name' if attributes.key?(:'qblockName') && attributes.key?(:'qblock_name')
|
|
519
|
+
|
|
520
|
+
self.qblock_name = attributes[:'qblock_name'] if attributes[:'qblock_name']
|
|
521
|
+
|
|
522
|
+
self.elapsed_time_in_sec = attributes[:'elapsedTimeInSec'] if attributes[:'elapsedTimeInSec']
|
|
523
|
+
|
|
524
|
+
raise 'You cannot provide both :elapsedTimeInSec and :elapsed_time_in_sec' if attributes.key?(:'elapsedTimeInSec') && attributes.key?(:'elapsed_time_in_sec')
|
|
525
|
+
|
|
526
|
+
self.elapsed_time_in_sec = attributes[:'elapsed_time_in_sec'] if attributes[:'elapsed_time_in_sec']
|
|
527
|
+
|
|
528
|
+
self.other_xml = attributes[:'otherXML'] if attributes[:'otherXML']
|
|
529
|
+
|
|
530
|
+
raise 'You cannot provide both :otherXML and :other_xml' if attributes.key?(:'otherXML') && attributes.key?(:'other_xml')
|
|
531
|
+
|
|
532
|
+
self.other_xml = attributes[:'other_xml'] if attributes[:'other_xml']
|
|
533
|
+
end
|
|
534
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
535
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
536
|
+
|
|
537
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
# Checks equality by comparing each attribute.
|
|
541
|
+
# @param [Object] other the other object to be compared
|
|
542
|
+
def ==(other)
|
|
543
|
+
return true if equal?(other)
|
|
544
|
+
|
|
545
|
+
self.class == other.class &&
|
|
546
|
+
version == other.version &&
|
|
547
|
+
sql_identifier == other.sql_identifier &&
|
|
548
|
+
plan_hash == other.plan_hash &&
|
|
549
|
+
time_collected == other.time_collected &&
|
|
550
|
+
operation == other.operation &&
|
|
551
|
+
remark == other.remark &&
|
|
552
|
+
options == other.options &&
|
|
553
|
+
object_node == other.object_node &&
|
|
554
|
+
object_owner == other.object_owner &&
|
|
555
|
+
object_name == other.object_name &&
|
|
556
|
+
object_alias == other.object_alias &&
|
|
557
|
+
object_instance == other.object_instance &&
|
|
558
|
+
object_type == other.object_type &&
|
|
559
|
+
optimizer == other.optimizer &&
|
|
560
|
+
search_columns == other.search_columns &&
|
|
561
|
+
identifier == other.identifier &&
|
|
562
|
+
parent_identifier == other.parent_identifier &&
|
|
563
|
+
depth == other.depth &&
|
|
564
|
+
position == other.position &&
|
|
565
|
+
cost == other.cost &&
|
|
566
|
+
cardinality == other.cardinality &&
|
|
567
|
+
bytes == other.bytes &&
|
|
568
|
+
other == other.other &&
|
|
569
|
+
other_tag == other.other_tag &&
|
|
570
|
+
partition_start == other.partition_start &&
|
|
571
|
+
partition_stop == other.partition_stop &&
|
|
572
|
+
partition_identifier == other.partition_identifier &&
|
|
573
|
+
distribution == other.distribution &&
|
|
574
|
+
cpu_cost == other.cpu_cost &&
|
|
575
|
+
io_cost == other.io_cost &&
|
|
576
|
+
temp_space == other.temp_space &&
|
|
577
|
+
access_predicates == other.access_predicates &&
|
|
578
|
+
filter_predicates == other.filter_predicates &&
|
|
579
|
+
projection == other.projection &&
|
|
580
|
+
qblock_name == other.qblock_name &&
|
|
581
|
+
elapsed_time_in_sec == other.elapsed_time_in_sec &&
|
|
582
|
+
other_xml == other.other_xml
|
|
583
|
+
end
|
|
584
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
585
|
+
|
|
586
|
+
# @see the `==` method
|
|
587
|
+
# @param [Object] other the other object to be compared
|
|
588
|
+
def eql?(other)
|
|
589
|
+
self == other
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
# Calculates hash code according to all attributes.
|
|
596
|
+
# @return [Fixnum] Hash code
|
|
597
|
+
def hash
|
|
598
|
+
[version, sql_identifier, plan_hash, time_collected, operation, remark, options, object_node, object_owner, object_name, object_alias, object_instance, object_type, optimizer, search_columns, identifier, parent_identifier, depth, position, cost, cardinality, bytes, other, other_tag, partition_start, partition_stop, partition_identifier, distribution, cpu_cost, io_cost, temp_space, access_predicates, filter_predicates, projection, qblock_name, elapsed_time_in_sec, other_xml].hash
|
|
599
|
+
end
|
|
600
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
601
|
+
|
|
602
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
# Builds the object from hash
|
|
606
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
607
|
+
# @return [Object] Returns the model itself
|
|
608
|
+
def build_from_hash(attributes)
|
|
609
|
+
return nil unless attributes.is_a?(Hash)
|
|
610
|
+
|
|
611
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
612
|
+
if type =~ /^Array<(.*)>/i
|
|
613
|
+
# check to ensure the input is an array given that the the attribute
|
|
614
|
+
# is documented as an array but the input is not
|
|
615
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
616
|
+
public_method("#{key}=").call(
|
|
617
|
+
attributes[self.class.attribute_map[key]]
|
|
618
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
619
|
+
)
|
|
620
|
+
end
|
|
621
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
622
|
+
public_method("#{key}=").call(
|
|
623
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
624
|
+
)
|
|
625
|
+
end
|
|
626
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
self
|
|
630
|
+
end
|
|
631
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
632
|
+
|
|
633
|
+
# Returns the string representation of the object
|
|
634
|
+
# @return [String] String presentation of the object
|
|
635
|
+
def to_s
|
|
636
|
+
to_hash.to_s
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
# Returns the object in the form of hash
|
|
640
|
+
# @return [Hash] Returns the object in the form of hash
|
|
641
|
+
def to_hash
|
|
642
|
+
hash = {}
|
|
643
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
644
|
+
value = public_method(attr).call
|
|
645
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
646
|
+
|
|
647
|
+
hash[param] = _to_hash(value)
|
|
648
|
+
end
|
|
649
|
+
hash
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
private
|
|
653
|
+
|
|
654
|
+
# Outputs non-array value in the form of hash
|
|
655
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
656
|
+
# @param [Object] value Any valid value
|
|
657
|
+
# @return [Hash] Returns the value in the form of hash
|
|
658
|
+
def _to_hash(value)
|
|
659
|
+
if value.is_a?(Array)
|
|
660
|
+
value.compact.map { |v| _to_hash(v) }
|
|
661
|
+
elsif value.is_a?(Hash)
|
|
662
|
+
{}.tap do |hash|
|
|
663
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
664
|
+
end
|
|
665
|
+
elsif value.respond_to? :to_hash
|
|
666
|
+
value.to_hash
|
|
667
|
+
else
|
|
668
|
+
value
|
|
669
|
+
end
|
|
670
|
+
end
|
|
671
|
+
end
|
|
672
|
+
end
|
|
673
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|