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
@@ -73,6 +73,14 @@ module OCI
|
|
73
73
|
# @return [BOOLEAN]
|
74
74
|
attr_accessor :is_restorable
|
75
75
|
|
76
|
+
# The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key store.
|
77
|
+
# @return [String]
|
78
|
+
attr_accessor :key_store_id
|
79
|
+
|
80
|
+
# The wallet name for Oracle Key Vault.
|
81
|
+
# @return [String]
|
82
|
+
attr_accessor :key_store_wallet_name
|
83
|
+
|
76
84
|
# Attribute mapping from ruby-style variable name to JSON key.
|
77
85
|
def self.attribute_map
|
78
86
|
{
|
@@ -88,7 +96,9 @@ module OCI
|
|
88
96
|
'lifecycle_details': :'lifecycleDetails',
|
89
97
|
'database_size_in_tbs': :'databaseSizeInTBs',
|
90
98
|
'lifecycle_state': :'lifecycleState',
|
91
|
-
'is_restorable': :'isRestorable'
|
99
|
+
'is_restorable': :'isRestorable',
|
100
|
+
'key_store_id': :'keyStoreId',
|
101
|
+
'key_store_wallet_name': :'keyStoreWalletName'
|
92
102
|
# rubocop:enable Style/SymbolLiteral
|
93
103
|
}
|
94
104
|
end
|
@@ -108,7 +118,9 @@ module OCI
|
|
108
118
|
'lifecycle_details': :'String',
|
109
119
|
'database_size_in_tbs': :'Float',
|
110
120
|
'lifecycle_state': :'String',
|
111
|
-
'is_restorable': :'BOOLEAN'
|
121
|
+
'is_restorable': :'BOOLEAN',
|
122
|
+
'key_store_id': :'String',
|
123
|
+
'key_store_wallet_name': :'String'
|
112
124
|
# rubocop:enable Style/SymbolLiteral
|
113
125
|
}
|
114
126
|
end
|
@@ -131,6 +143,8 @@ module OCI
|
|
131
143
|
# @option attributes [Float] :database_size_in_tbs The value to assign to the {#database_size_in_tbs} property
|
132
144
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
133
145
|
# @option attributes [BOOLEAN] :is_restorable The value to assign to the {#is_restorable} property
|
146
|
+
# @option attributes [String] :key_store_id The value to assign to the {#key_store_id} property
|
147
|
+
# @option attributes [String] :key_store_wallet_name The value to assign to the {#key_store_wallet_name} property
|
134
148
|
def initialize(attributes = {})
|
135
149
|
return unless attributes.is_a?(Hash)
|
136
150
|
|
@@ -199,6 +213,18 @@ module OCI
|
|
199
213
|
|
200
214
|
self.is_restorable = attributes[:'is_restorable'] unless attributes[:'is_restorable'].nil?
|
201
215
|
self.is_restorable = true if is_restorable.nil? && !attributes.key?(:'isRestorable') && !attributes.key?(:'is_restorable') # rubocop:disable Style/StringLiterals
|
216
|
+
|
217
|
+
self.key_store_id = attributes[:'keyStoreId'] if attributes[:'keyStoreId']
|
218
|
+
|
219
|
+
raise 'You cannot provide both :keyStoreId and :key_store_id' if attributes.key?(:'keyStoreId') && attributes.key?(:'key_store_id')
|
220
|
+
|
221
|
+
self.key_store_id = attributes[:'key_store_id'] if attributes[:'key_store_id']
|
222
|
+
|
223
|
+
self.key_store_wallet_name = attributes[:'keyStoreWalletName'] if attributes[:'keyStoreWalletName']
|
224
|
+
|
225
|
+
raise 'You cannot provide both :keyStoreWalletName and :key_store_wallet_name' if attributes.key?(:'keyStoreWalletName') && attributes.key?(:'key_store_wallet_name')
|
226
|
+
|
227
|
+
self.key_store_wallet_name = attributes[:'key_store_wallet_name'] if attributes[:'key_store_wallet_name']
|
202
228
|
end
|
203
229
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
204
230
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -249,7 +275,9 @@ module OCI
|
|
249
275
|
lifecycle_details == other.lifecycle_details &&
|
250
276
|
database_size_in_tbs == other.database_size_in_tbs &&
|
251
277
|
lifecycle_state == other.lifecycle_state &&
|
252
|
-
is_restorable == other.is_restorable
|
278
|
+
is_restorable == other.is_restorable &&
|
279
|
+
key_store_id == other.key_store_id &&
|
280
|
+
key_store_wallet_name == other.key_store_wallet_name
|
253
281
|
end
|
254
282
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
255
283
|
|
@@ -265,7 +293,7 @@ module OCI
|
|
265
293
|
# Calculates hash code according to all attributes.
|
266
294
|
# @return [Fixnum] Hash code
|
267
295
|
def hash
|
268
|
-
[id, compartment_id, autonomous_database_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, database_size_in_tbs, lifecycle_state, is_restorable].hash
|
296
|
+
[id, compartment_id, autonomous_database_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, database_size_in_tbs, lifecycle_state, is_restorable, key_store_id, key_store_wallet_name].hash
|
269
297
|
end
|
270
298
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
271
299
|
|
@@ -0,0 +1,189 @@
|
|
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
|
+
# Autonomous Database configuration details for storing [manual backups](https://docs.cloud.oracle.com/Content/Database/Tasks/adbbackingup.htm) in the [Object Storage](https://docs.cloud.oracle.com/Content/Object/Concepts/objectstorageoverview.htm) service.
|
10
|
+
#
|
11
|
+
class Database::Models::AutonomousDatabaseBackupConfig
|
12
|
+
MANUAL_BACKUP_TYPE_ENUM = [
|
13
|
+
MANUAL_BACKUP_TYPE_NONE = 'NONE'.freeze,
|
14
|
+
MANUAL_BACKUP_TYPE_OBJECT_STORE = 'OBJECT_STORE'.freeze,
|
15
|
+
MANUAL_BACKUP_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
16
|
+
].freeze
|
17
|
+
|
18
|
+
# Name of [Object Storage](https://docs.cloud.oracle.com/Content/Object/Concepts/objectstorageoverview.htm) bucket to use for storing manual backups.
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :manual_backup_bucket_name
|
21
|
+
|
22
|
+
# The manual backup destination type.
|
23
|
+
# @return [String]
|
24
|
+
attr_reader :manual_backup_type
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
# rubocop:disable Style/SymbolLiteral
|
30
|
+
'manual_backup_bucket_name': :'manualBackupBucketName',
|
31
|
+
'manual_backup_type': :'manualBackupType'
|
32
|
+
# rubocop:enable Style/SymbolLiteral
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
# rubocop:disable Style/SymbolLiteral
|
40
|
+
'manual_backup_bucket_name': :'String',
|
41
|
+
'manual_backup_type': :'String'
|
42
|
+
# rubocop:enable Style/SymbolLiteral
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
47
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
48
|
+
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
# @option attributes [String] :manual_backup_bucket_name The value to assign to the {#manual_backup_bucket_name} property
|
53
|
+
# @option attributes [String] :manual_backup_type The value to assign to the {#manual_backup_type} property
|
54
|
+
def initialize(attributes = {})
|
55
|
+
return unless attributes.is_a?(Hash)
|
56
|
+
|
57
|
+
# convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
59
|
+
|
60
|
+
self.manual_backup_bucket_name = attributes[:'manualBackupBucketName'] if attributes[:'manualBackupBucketName']
|
61
|
+
|
62
|
+
raise 'You cannot provide both :manualBackupBucketName and :manual_backup_bucket_name' if attributes.key?(:'manualBackupBucketName') && attributes.key?(:'manual_backup_bucket_name')
|
63
|
+
|
64
|
+
self.manual_backup_bucket_name = attributes[:'manual_backup_bucket_name'] if attributes[:'manual_backup_bucket_name']
|
65
|
+
|
66
|
+
self.manual_backup_type = attributes[:'manualBackupType'] if attributes[:'manualBackupType']
|
67
|
+
|
68
|
+
raise 'You cannot provide both :manualBackupType and :manual_backup_type' if attributes.key?(:'manualBackupType') && attributes.key?(:'manual_backup_type')
|
69
|
+
|
70
|
+
self.manual_backup_type = attributes[:'manual_backup_type'] if attributes[:'manual_backup_type']
|
71
|
+
end
|
72
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
73
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
74
|
+
|
75
|
+
# Custom attribute writer method checking allowed values (enum).
|
76
|
+
# @param [Object] manual_backup_type Object to be assigned
|
77
|
+
def manual_backup_type=(manual_backup_type)
|
78
|
+
# rubocop:disable Style/ConditionalAssignment
|
79
|
+
if manual_backup_type && !MANUAL_BACKUP_TYPE_ENUM.include?(manual_backup_type)
|
80
|
+
OCI.logger.debug("Unknown value for 'manual_backup_type' [" + manual_backup_type + "]. Mapping to 'MANUAL_BACKUP_TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
81
|
+
@manual_backup_type = MANUAL_BACKUP_TYPE_UNKNOWN_ENUM_VALUE
|
82
|
+
else
|
83
|
+
@manual_backup_type = manual_backup_type
|
84
|
+
end
|
85
|
+
# rubocop:enable Style/ConditionalAssignment
|
86
|
+
end
|
87
|
+
|
88
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
89
|
+
|
90
|
+
|
91
|
+
# Checks equality by comparing each attribute.
|
92
|
+
# @param [Object] other the other object to be compared
|
93
|
+
def ==(other)
|
94
|
+
return true if equal?(other)
|
95
|
+
|
96
|
+
self.class == other.class &&
|
97
|
+
manual_backup_bucket_name == other.manual_backup_bucket_name &&
|
98
|
+
manual_backup_type == other.manual_backup_type
|
99
|
+
end
|
100
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
101
|
+
|
102
|
+
# @see the `==` method
|
103
|
+
# @param [Object] other the other object to be compared
|
104
|
+
def eql?(other)
|
105
|
+
self == other
|
106
|
+
end
|
107
|
+
|
108
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
109
|
+
|
110
|
+
|
111
|
+
# Calculates hash code according to all attributes.
|
112
|
+
# @return [Fixnum] Hash code
|
113
|
+
def hash
|
114
|
+
[manual_backup_bucket_name, manual_backup_type].hash
|
115
|
+
end
|
116
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
117
|
+
|
118
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
119
|
+
|
120
|
+
|
121
|
+
# Builds the object from hash
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
123
|
+
# @return [Object] Returns the model itself
|
124
|
+
def build_from_hash(attributes)
|
125
|
+
return nil unless attributes.is_a?(Hash)
|
126
|
+
|
127
|
+
self.class.swagger_types.each_pair do |key, type|
|
128
|
+
if type =~ /^Array<(.*)>/i
|
129
|
+
# check to ensure the input is an array given that the the attribute
|
130
|
+
# is documented as an array but the input is not
|
131
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
132
|
+
public_method("#{key}=").call(
|
133
|
+
attributes[self.class.attribute_map[key]]
|
134
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
135
|
+
)
|
136
|
+
end
|
137
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
138
|
+
public_method("#{key}=").call(
|
139
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
140
|
+
)
|
141
|
+
end
|
142
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
143
|
+
end
|
144
|
+
|
145
|
+
self
|
146
|
+
end
|
147
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
148
|
+
|
149
|
+
# Returns the string representation of the object
|
150
|
+
# @return [String] String presentation of the object
|
151
|
+
def to_s
|
152
|
+
to_hash.to_s
|
153
|
+
end
|
154
|
+
|
155
|
+
# Returns the object in the form of hash
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
157
|
+
def to_hash
|
158
|
+
hash = {}
|
159
|
+
self.class.attribute_map.each_pair do |attr, param|
|
160
|
+
value = public_method(attr).call
|
161
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
162
|
+
|
163
|
+
hash[param] = _to_hash(value)
|
164
|
+
end
|
165
|
+
hash
|
166
|
+
end
|
167
|
+
|
168
|
+
private
|
169
|
+
|
170
|
+
# Outputs non-array value in the form of hash
|
171
|
+
# For object, use to_hash. Otherwise, just return the value
|
172
|
+
# @param [Object] value Any valid value
|
173
|
+
# @return [Hash] Returns the value in the form of hash
|
174
|
+
def _to_hash(value)
|
175
|
+
if value.is_a?(Array)
|
176
|
+
value.compact.map { |v| _to_hash(v) }
|
177
|
+
elsif value.is_a?(Hash)
|
178
|
+
{}.tap do |hash|
|
179
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
180
|
+
end
|
181
|
+
elsif value.respond_to? :to_hash
|
182
|
+
value.to_hash
|
183
|
+
else
|
184
|
+
value
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -76,6 +76,14 @@ module OCI
|
|
76
76
|
# @return [BOOLEAN]
|
77
77
|
attr_accessor :is_restorable
|
78
78
|
|
79
|
+
# The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key store.
|
80
|
+
# @return [String]
|
81
|
+
attr_accessor :key_store_id
|
82
|
+
|
83
|
+
# The wallet name for Oracle Key Vault.
|
84
|
+
# @return [String]
|
85
|
+
attr_accessor :key_store_wallet_name
|
86
|
+
|
79
87
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
88
|
def self.attribute_map
|
81
89
|
{
|
@@ -91,7 +99,9 @@ module OCI
|
|
91
99
|
'lifecycle_details': :'lifecycleDetails',
|
92
100
|
'database_size_in_tbs': :'databaseSizeInTBs',
|
93
101
|
'lifecycle_state': :'lifecycleState',
|
94
|
-
'is_restorable': :'isRestorable'
|
102
|
+
'is_restorable': :'isRestorable',
|
103
|
+
'key_store_id': :'keyStoreId',
|
104
|
+
'key_store_wallet_name': :'keyStoreWalletName'
|
95
105
|
# rubocop:enable Style/SymbolLiteral
|
96
106
|
}
|
97
107
|
end
|
@@ -111,7 +121,9 @@ module OCI
|
|
111
121
|
'lifecycle_details': :'String',
|
112
122
|
'database_size_in_tbs': :'Float',
|
113
123
|
'lifecycle_state': :'String',
|
114
|
-
'is_restorable': :'BOOLEAN'
|
124
|
+
'is_restorable': :'BOOLEAN',
|
125
|
+
'key_store_id': :'String',
|
126
|
+
'key_store_wallet_name': :'String'
|
115
127
|
# rubocop:enable Style/SymbolLiteral
|
116
128
|
}
|
117
129
|
end
|
@@ -134,6 +146,8 @@ module OCI
|
|
134
146
|
# @option attributes [Float] :database_size_in_tbs The value to assign to the {#database_size_in_tbs} property
|
135
147
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
136
148
|
# @option attributes [BOOLEAN] :is_restorable The value to assign to the {#is_restorable} property
|
149
|
+
# @option attributes [String] :key_store_id The value to assign to the {#key_store_id} property
|
150
|
+
# @option attributes [String] :key_store_wallet_name The value to assign to the {#key_store_wallet_name} property
|
137
151
|
def initialize(attributes = {})
|
138
152
|
return unless attributes.is_a?(Hash)
|
139
153
|
|
@@ -205,6 +219,18 @@ module OCI
|
|
205
219
|
|
206
220
|
self.is_restorable = attributes[:'is_restorable'] unless attributes[:'is_restorable'].nil?
|
207
221
|
self.is_restorable = true if is_restorable.nil? && !attributes.key?(:'isRestorable') && !attributes.key?(:'is_restorable') # rubocop:disable Style/StringLiterals
|
222
|
+
|
223
|
+
self.key_store_id = attributes[:'keyStoreId'] if attributes[:'keyStoreId']
|
224
|
+
|
225
|
+
raise 'You cannot provide both :keyStoreId and :key_store_id' if attributes.key?(:'keyStoreId') && attributes.key?(:'key_store_id')
|
226
|
+
|
227
|
+
self.key_store_id = attributes[:'key_store_id'] if attributes[:'key_store_id']
|
228
|
+
|
229
|
+
self.key_store_wallet_name = attributes[:'keyStoreWalletName'] if attributes[:'keyStoreWalletName']
|
230
|
+
|
231
|
+
raise 'You cannot provide both :keyStoreWalletName and :key_store_wallet_name' if attributes.key?(:'keyStoreWalletName') && attributes.key?(:'key_store_wallet_name')
|
232
|
+
|
233
|
+
self.key_store_wallet_name = attributes[:'key_store_wallet_name'] if attributes[:'key_store_wallet_name']
|
208
234
|
end
|
209
235
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
210
236
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -255,7 +281,9 @@ module OCI
|
|
255
281
|
lifecycle_details == other.lifecycle_details &&
|
256
282
|
database_size_in_tbs == other.database_size_in_tbs &&
|
257
283
|
lifecycle_state == other.lifecycle_state &&
|
258
|
-
is_restorable == other.is_restorable
|
284
|
+
is_restorable == other.is_restorable &&
|
285
|
+
key_store_id == other.key_store_id &&
|
286
|
+
key_store_wallet_name == other.key_store_wallet_name
|
259
287
|
end
|
260
288
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
261
289
|
|
@@ -271,7 +299,7 @@ module OCI
|
|
271
299
|
# Calculates hash code according to all attributes.
|
272
300
|
# @return [Fixnum] Hash code
|
273
301
|
def hash
|
274
|
-
[id, compartment_id, autonomous_database_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, database_size_in_tbs, lifecycle_state, is_restorable].hash
|
302
|
+
[id, compartment_id, autonomous_database_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, database_size_in_tbs, lifecycle_state, is_restorable, key_store_id, key_store_wallet_name].hash
|
275
303
|
end
|
276
304
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
277
305
|
|
@@ -0,0 +1,468 @@
|
|
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
|
+
# The properties that define dataguard association between two different Autonomous Databases.
|
10
|
+
# Note that Autonomous Databases inherit DataGuard association from parent Autonomous Container Database.
|
11
|
+
# No actions can be taken on AutonomousDatabaseDataguardAssociation, usage is strictly informational.
|
12
|
+
#
|
13
|
+
class Database::Models::AutonomousDatabaseDataguardAssociation
|
14
|
+
ROLE_ENUM = [
|
15
|
+
ROLE_PRIMARY = 'PRIMARY'.freeze,
|
16
|
+
ROLE_STANDBY = 'STANDBY'.freeze,
|
17
|
+
ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'.freeze,
|
18
|
+
ROLE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
19
|
+
].freeze
|
20
|
+
|
21
|
+
LIFECYCLE_STATE_ENUM = [
|
22
|
+
LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
|
23
|
+
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
|
24
|
+
LIFECYCLE_STATE_ROLE_CHANGE_IN_PROGRESS = 'ROLE_CHANGE_IN_PROGRESS'.freeze,
|
25
|
+
LIFECYCLE_STATE_TERMINATING = 'TERMINATING'.freeze,
|
26
|
+
LIFECYCLE_STATE_TERMINATED = 'TERMINATED'.freeze,
|
27
|
+
LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
|
28
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
29
|
+
].freeze
|
30
|
+
|
31
|
+
PEER_ROLE_ENUM = [
|
32
|
+
PEER_ROLE_PRIMARY = 'PRIMARY'.freeze,
|
33
|
+
PEER_ROLE_STANDBY = 'STANDBY'.freeze,
|
34
|
+
PEER_ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'.freeze,
|
35
|
+
PEER_ROLE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
36
|
+
].freeze
|
37
|
+
|
38
|
+
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_ENUM = [
|
39
|
+
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
|
40
|
+
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
|
41
|
+
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_ROLE_CHANGE_IN_PROGRESS = 'ROLE_CHANGE_IN_PROGRESS'.freeze,
|
42
|
+
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_TERMINATING = 'TERMINATING'.freeze,
|
43
|
+
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_TERMINATED = 'TERMINATED'.freeze,
|
44
|
+
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_FAILED = 'FAILED'.freeze,
|
45
|
+
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
46
|
+
].freeze
|
47
|
+
|
48
|
+
PROTECTION_MODE_ENUM = [
|
49
|
+
PROTECTION_MODE_MAXIMUM_AVAILABILITY = 'MAXIMUM_AVAILABILITY'.freeze,
|
50
|
+
PROTECTION_MODE_MAXIMUM_PERFORMANCE = 'MAXIMUM_PERFORMANCE'.freeze,
|
51
|
+
PROTECTION_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
52
|
+
].freeze
|
53
|
+
|
54
|
+
# **[Required]** The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
|
55
|
+
# @return [String]
|
56
|
+
attr_accessor :id
|
57
|
+
|
58
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database that has a relationship with the peer Autonomous Database.
|
59
|
+
#
|
60
|
+
# @return [String]
|
61
|
+
attr_accessor :autonomous_database_id
|
62
|
+
|
63
|
+
# **[Required]** The role of the Autonomous Data Guard-enabled Autonomous Container Database.
|
64
|
+
# @return [String]
|
65
|
+
attr_reader :role
|
66
|
+
|
67
|
+
# **[Required]** The current state of the Autonomous Data Guard.
|
68
|
+
# @return [String]
|
69
|
+
attr_reader :lifecycle_state
|
70
|
+
|
71
|
+
# Additional information about the current lifecycleState, if available.
|
72
|
+
#
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :lifecycle_details
|
75
|
+
|
76
|
+
# **[Required]** The role of the Autonomous Data Guard-enabled Autonomous Container Database.
|
77
|
+
# @return [String]
|
78
|
+
attr_reader :peer_role
|
79
|
+
|
80
|
+
# The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the peer Autonomous Database.
|
81
|
+
#
|
82
|
+
# @return [String]
|
83
|
+
attr_accessor :peer_autonomous_database_id
|
84
|
+
|
85
|
+
# The current state of the Autonomous Data Guard.
|
86
|
+
# @return [String]
|
87
|
+
attr_reader :peer_autonomous_database_life_cycle_state
|
88
|
+
|
89
|
+
# The protection mode of this Data Guard association. For more information, see
|
90
|
+
# [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000)
|
91
|
+
# in the Oracle Data Guard documentation.
|
92
|
+
#
|
93
|
+
# @return [String]
|
94
|
+
attr_reader :protection_mode
|
95
|
+
|
96
|
+
# The lag time between updates to the primary database and application of the redo data on the standby database,
|
97
|
+
# as computed by the reporting database.
|
98
|
+
#
|
99
|
+
# Example: `9 seconds`
|
100
|
+
#
|
101
|
+
# @return [String]
|
102
|
+
attr_accessor :apply_lag
|
103
|
+
|
104
|
+
# The rate at which redo logs are synced between the associated databases.
|
105
|
+
#
|
106
|
+
# Example: `180 Mb per second`
|
107
|
+
#
|
108
|
+
# @return [String]
|
109
|
+
attr_accessor :apply_rate
|
110
|
+
|
111
|
+
# The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database,
|
112
|
+
# as computed by the reporting database.
|
113
|
+
#
|
114
|
+
# Example: `7 seconds`
|
115
|
+
#
|
116
|
+
# @return [String]
|
117
|
+
attr_accessor :transport_lag
|
118
|
+
|
119
|
+
# The date and time of the last update to the apply lag, apply rate, and transport lag values.
|
120
|
+
# @return [DateTime]
|
121
|
+
attr_accessor :time_last_synced
|
122
|
+
|
123
|
+
# The date and time the Data Guard association was created.
|
124
|
+
# @return [DateTime]
|
125
|
+
attr_accessor :time_created
|
126
|
+
|
127
|
+
# The date and time when the last role change action happened.
|
128
|
+
# @return [DateTime]
|
129
|
+
attr_accessor :time_last_role_changed
|
130
|
+
|
131
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
132
|
+
def self.attribute_map
|
133
|
+
{
|
134
|
+
# rubocop:disable Style/SymbolLiteral
|
135
|
+
'id': :'id',
|
136
|
+
'autonomous_database_id': :'autonomousDatabaseId',
|
137
|
+
'role': :'role',
|
138
|
+
'lifecycle_state': :'lifecycleState',
|
139
|
+
'lifecycle_details': :'lifecycleDetails',
|
140
|
+
'peer_role': :'peerRole',
|
141
|
+
'peer_autonomous_database_id': :'peerAutonomousDatabaseId',
|
142
|
+
'peer_autonomous_database_life_cycle_state': :'peerAutonomousDatabaseLifeCycleState',
|
143
|
+
'protection_mode': :'protectionMode',
|
144
|
+
'apply_lag': :'applyLag',
|
145
|
+
'apply_rate': :'applyRate',
|
146
|
+
'transport_lag': :'transportLag',
|
147
|
+
'time_last_synced': :'timeLastSynced',
|
148
|
+
'time_created': :'timeCreated',
|
149
|
+
'time_last_role_changed': :'timeLastRoleChanged'
|
150
|
+
# rubocop:enable Style/SymbolLiteral
|
151
|
+
}
|
152
|
+
end
|
153
|
+
|
154
|
+
# Attribute type mapping.
|
155
|
+
def self.swagger_types
|
156
|
+
{
|
157
|
+
# rubocop:disable Style/SymbolLiteral
|
158
|
+
'id': :'String',
|
159
|
+
'autonomous_database_id': :'String',
|
160
|
+
'role': :'String',
|
161
|
+
'lifecycle_state': :'String',
|
162
|
+
'lifecycle_details': :'String',
|
163
|
+
'peer_role': :'String',
|
164
|
+
'peer_autonomous_database_id': :'String',
|
165
|
+
'peer_autonomous_database_life_cycle_state': :'String',
|
166
|
+
'protection_mode': :'String',
|
167
|
+
'apply_lag': :'String',
|
168
|
+
'apply_rate': :'String',
|
169
|
+
'transport_lag': :'String',
|
170
|
+
'time_last_synced': :'DateTime',
|
171
|
+
'time_created': :'DateTime',
|
172
|
+
'time_last_role_changed': :'DateTime'
|
173
|
+
# rubocop:enable Style/SymbolLiteral
|
174
|
+
}
|
175
|
+
end
|
176
|
+
|
177
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
178
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
179
|
+
|
180
|
+
|
181
|
+
# Initializes the object
|
182
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
183
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
184
|
+
# @option attributes [String] :autonomous_database_id The value to assign to the {#autonomous_database_id} property
|
185
|
+
# @option attributes [String] :role The value to assign to the {#role} property
|
186
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
187
|
+
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
188
|
+
# @option attributes [String] :peer_role The value to assign to the {#peer_role} property
|
189
|
+
# @option attributes [String] :peer_autonomous_database_id The value to assign to the {#peer_autonomous_database_id} property
|
190
|
+
# @option attributes [String] :peer_autonomous_database_life_cycle_state The value to assign to the {#peer_autonomous_database_life_cycle_state} property
|
191
|
+
# @option attributes [String] :protection_mode The value to assign to the {#protection_mode} property
|
192
|
+
# @option attributes [String] :apply_lag The value to assign to the {#apply_lag} property
|
193
|
+
# @option attributes [String] :apply_rate The value to assign to the {#apply_rate} property
|
194
|
+
# @option attributes [String] :transport_lag The value to assign to the {#transport_lag} property
|
195
|
+
# @option attributes [DateTime] :time_last_synced The value to assign to the {#time_last_synced} property
|
196
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
197
|
+
# @option attributes [DateTime] :time_last_role_changed The value to assign to the {#time_last_role_changed} property
|
198
|
+
def initialize(attributes = {})
|
199
|
+
return unless attributes.is_a?(Hash)
|
200
|
+
|
201
|
+
# convert string to symbol for hash key
|
202
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
203
|
+
|
204
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
205
|
+
|
206
|
+
self.autonomous_database_id = attributes[:'autonomousDatabaseId'] if attributes[:'autonomousDatabaseId']
|
207
|
+
|
208
|
+
raise 'You cannot provide both :autonomousDatabaseId and :autonomous_database_id' if attributes.key?(:'autonomousDatabaseId') && attributes.key?(:'autonomous_database_id')
|
209
|
+
|
210
|
+
self.autonomous_database_id = attributes[:'autonomous_database_id'] if attributes[:'autonomous_database_id']
|
211
|
+
|
212
|
+
self.role = attributes[:'role'] if attributes[:'role']
|
213
|
+
|
214
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
215
|
+
|
216
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
217
|
+
|
218
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
219
|
+
|
220
|
+
self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
|
221
|
+
|
222
|
+
raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
|
223
|
+
|
224
|
+
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
225
|
+
|
226
|
+
self.peer_role = attributes[:'peerRole'] if attributes[:'peerRole']
|
227
|
+
|
228
|
+
raise 'You cannot provide both :peerRole and :peer_role' if attributes.key?(:'peerRole') && attributes.key?(:'peer_role')
|
229
|
+
|
230
|
+
self.peer_role = attributes[:'peer_role'] if attributes[:'peer_role']
|
231
|
+
|
232
|
+
self.peer_autonomous_database_id = attributes[:'peerAutonomousDatabaseId'] if attributes[:'peerAutonomousDatabaseId']
|
233
|
+
|
234
|
+
raise 'You cannot provide both :peerAutonomousDatabaseId and :peer_autonomous_database_id' if attributes.key?(:'peerAutonomousDatabaseId') && attributes.key?(:'peer_autonomous_database_id')
|
235
|
+
|
236
|
+
self.peer_autonomous_database_id = attributes[:'peer_autonomous_database_id'] if attributes[:'peer_autonomous_database_id']
|
237
|
+
|
238
|
+
self.peer_autonomous_database_life_cycle_state = attributes[:'peerAutonomousDatabaseLifeCycleState'] if attributes[:'peerAutonomousDatabaseLifeCycleState']
|
239
|
+
|
240
|
+
raise 'You cannot provide both :peerAutonomousDatabaseLifeCycleState and :peer_autonomous_database_life_cycle_state' if attributes.key?(:'peerAutonomousDatabaseLifeCycleState') && attributes.key?(:'peer_autonomous_database_life_cycle_state')
|
241
|
+
|
242
|
+
self.peer_autonomous_database_life_cycle_state = attributes[:'peer_autonomous_database_life_cycle_state'] if attributes[:'peer_autonomous_database_life_cycle_state']
|
243
|
+
|
244
|
+
self.protection_mode = attributes[:'protectionMode'] if attributes[:'protectionMode']
|
245
|
+
|
246
|
+
raise 'You cannot provide both :protectionMode and :protection_mode' if attributes.key?(:'protectionMode') && attributes.key?(:'protection_mode')
|
247
|
+
|
248
|
+
self.protection_mode = attributes[:'protection_mode'] if attributes[:'protection_mode']
|
249
|
+
|
250
|
+
self.apply_lag = attributes[:'applyLag'] if attributes[:'applyLag']
|
251
|
+
|
252
|
+
raise 'You cannot provide both :applyLag and :apply_lag' if attributes.key?(:'applyLag') && attributes.key?(:'apply_lag')
|
253
|
+
|
254
|
+
self.apply_lag = attributes[:'apply_lag'] if attributes[:'apply_lag']
|
255
|
+
|
256
|
+
self.apply_rate = attributes[:'applyRate'] if attributes[:'applyRate']
|
257
|
+
|
258
|
+
raise 'You cannot provide both :applyRate and :apply_rate' if attributes.key?(:'applyRate') && attributes.key?(:'apply_rate')
|
259
|
+
|
260
|
+
self.apply_rate = attributes[:'apply_rate'] if attributes[:'apply_rate']
|
261
|
+
|
262
|
+
self.transport_lag = attributes[:'transportLag'] if attributes[:'transportLag']
|
263
|
+
|
264
|
+
raise 'You cannot provide both :transportLag and :transport_lag' if attributes.key?(:'transportLag') && attributes.key?(:'transport_lag')
|
265
|
+
|
266
|
+
self.transport_lag = attributes[:'transport_lag'] if attributes[:'transport_lag']
|
267
|
+
|
268
|
+
self.time_last_synced = attributes[:'timeLastSynced'] if attributes[:'timeLastSynced']
|
269
|
+
|
270
|
+
raise 'You cannot provide both :timeLastSynced and :time_last_synced' if attributes.key?(:'timeLastSynced') && attributes.key?(:'time_last_synced')
|
271
|
+
|
272
|
+
self.time_last_synced = attributes[:'time_last_synced'] if attributes[:'time_last_synced']
|
273
|
+
|
274
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
275
|
+
|
276
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
277
|
+
|
278
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
279
|
+
|
280
|
+
self.time_last_role_changed = attributes[:'timeLastRoleChanged'] if attributes[:'timeLastRoleChanged']
|
281
|
+
|
282
|
+
raise 'You cannot provide both :timeLastRoleChanged and :time_last_role_changed' if attributes.key?(:'timeLastRoleChanged') && attributes.key?(:'time_last_role_changed')
|
283
|
+
|
284
|
+
self.time_last_role_changed = attributes[:'time_last_role_changed'] if attributes[:'time_last_role_changed']
|
285
|
+
end
|
286
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
287
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
288
|
+
|
289
|
+
# Custom attribute writer method checking allowed values (enum).
|
290
|
+
# @param [Object] role Object to be assigned
|
291
|
+
def role=(role)
|
292
|
+
# rubocop:disable Style/ConditionalAssignment
|
293
|
+
if role && !ROLE_ENUM.include?(role)
|
294
|
+
OCI.logger.debug("Unknown value for 'role' [" + role + "]. Mapping to 'ROLE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
295
|
+
@role = ROLE_UNKNOWN_ENUM_VALUE
|
296
|
+
else
|
297
|
+
@role = role
|
298
|
+
end
|
299
|
+
# rubocop:enable Style/ConditionalAssignment
|
300
|
+
end
|
301
|
+
|
302
|
+
# Custom attribute writer method checking allowed values (enum).
|
303
|
+
# @param [Object] lifecycle_state Object to be assigned
|
304
|
+
def lifecycle_state=(lifecycle_state)
|
305
|
+
# rubocop:disable Style/ConditionalAssignment
|
306
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
307
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
308
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
309
|
+
else
|
310
|
+
@lifecycle_state = lifecycle_state
|
311
|
+
end
|
312
|
+
# rubocop:enable Style/ConditionalAssignment
|
313
|
+
end
|
314
|
+
|
315
|
+
# Custom attribute writer method checking allowed values (enum).
|
316
|
+
# @param [Object] peer_role Object to be assigned
|
317
|
+
def peer_role=(peer_role)
|
318
|
+
# rubocop:disable Style/ConditionalAssignment
|
319
|
+
if peer_role && !PEER_ROLE_ENUM.include?(peer_role)
|
320
|
+
OCI.logger.debug("Unknown value for 'peer_role' [" + peer_role + "]. Mapping to 'PEER_ROLE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
321
|
+
@peer_role = PEER_ROLE_UNKNOWN_ENUM_VALUE
|
322
|
+
else
|
323
|
+
@peer_role = peer_role
|
324
|
+
end
|
325
|
+
# rubocop:enable Style/ConditionalAssignment
|
326
|
+
end
|
327
|
+
|
328
|
+
# Custom attribute writer method checking allowed values (enum).
|
329
|
+
# @param [Object] peer_autonomous_database_life_cycle_state Object to be assigned
|
330
|
+
def peer_autonomous_database_life_cycle_state=(peer_autonomous_database_life_cycle_state)
|
331
|
+
# rubocop:disable Style/ConditionalAssignment
|
332
|
+
if peer_autonomous_database_life_cycle_state && !PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_ENUM.include?(peer_autonomous_database_life_cycle_state)
|
333
|
+
OCI.logger.debug("Unknown value for 'peer_autonomous_database_life_cycle_state' [" + peer_autonomous_database_life_cycle_state + "]. Mapping to 'PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
334
|
+
@peer_autonomous_database_life_cycle_state = PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_UNKNOWN_ENUM_VALUE
|
335
|
+
else
|
336
|
+
@peer_autonomous_database_life_cycle_state = peer_autonomous_database_life_cycle_state
|
337
|
+
end
|
338
|
+
# rubocop:enable Style/ConditionalAssignment
|
339
|
+
end
|
340
|
+
|
341
|
+
# Custom attribute writer method checking allowed values (enum).
|
342
|
+
# @param [Object] protection_mode Object to be assigned
|
343
|
+
def protection_mode=(protection_mode)
|
344
|
+
# rubocop:disable Style/ConditionalAssignment
|
345
|
+
if protection_mode && !PROTECTION_MODE_ENUM.include?(protection_mode)
|
346
|
+
OCI.logger.debug("Unknown value for 'protection_mode' [" + protection_mode + "]. Mapping to 'PROTECTION_MODE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
347
|
+
@protection_mode = PROTECTION_MODE_UNKNOWN_ENUM_VALUE
|
348
|
+
else
|
349
|
+
@protection_mode = protection_mode
|
350
|
+
end
|
351
|
+
# rubocop:enable Style/ConditionalAssignment
|
352
|
+
end
|
353
|
+
|
354
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
355
|
+
|
356
|
+
|
357
|
+
# Checks equality by comparing each attribute.
|
358
|
+
# @param [Object] other the other object to be compared
|
359
|
+
def ==(other)
|
360
|
+
return true if equal?(other)
|
361
|
+
|
362
|
+
self.class == other.class &&
|
363
|
+
id == other.id &&
|
364
|
+
autonomous_database_id == other.autonomous_database_id &&
|
365
|
+
role == other.role &&
|
366
|
+
lifecycle_state == other.lifecycle_state &&
|
367
|
+
lifecycle_details == other.lifecycle_details &&
|
368
|
+
peer_role == other.peer_role &&
|
369
|
+
peer_autonomous_database_id == other.peer_autonomous_database_id &&
|
370
|
+
peer_autonomous_database_life_cycle_state == other.peer_autonomous_database_life_cycle_state &&
|
371
|
+
protection_mode == other.protection_mode &&
|
372
|
+
apply_lag == other.apply_lag &&
|
373
|
+
apply_rate == other.apply_rate &&
|
374
|
+
transport_lag == other.transport_lag &&
|
375
|
+
time_last_synced == other.time_last_synced &&
|
376
|
+
time_created == other.time_created &&
|
377
|
+
time_last_role_changed == other.time_last_role_changed
|
378
|
+
end
|
379
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
380
|
+
|
381
|
+
# @see the `==` method
|
382
|
+
# @param [Object] other the other object to be compared
|
383
|
+
def eql?(other)
|
384
|
+
self == other
|
385
|
+
end
|
386
|
+
|
387
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
388
|
+
|
389
|
+
|
390
|
+
# Calculates hash code according to all attributes.
|
391
|
+
# @return [Fixnum] Hash code
|
392
|
+
def hash
|
393
|
+
[id, autonomous_database_id, role, lifecycle_state, lifecycle_details, peer_role, peer_autonomous_database_id, peer_autonomous_database_life_cycle_state, protection_mode, apply_lag, apply_rate, transport_lag, time_last_synced, time_created, time_last_role_changed].hash
|
394
|
+
end
|
395
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
396
|
+
|
397
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
398
|
+
|
399
|
+
|
400
|
+
# Builds the object from hash
|
401
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
402
|
+
# @return [Object] Returns the model itself
|
403
|
+
def build_from_hash(attributes)
|
404
|
+
return nil unless attributes.is_a?(Hash)
|
405
|
+
|
406
|
+
self.class.swagger_types.each_pair do |key, type|
|
407
|
+
if type =~ /^Array<(.*)>/i
|
408
|
+
# check to ensure the input is an array given that the the attribute
|
409
|
+
# is documented as an array but the input is not
|
410
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
411
|
+
public_method("#{key}=").call(
|
412
|
+
attributes[self.class.attribute_map[key]]
|
413
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
414
|
+
)
|
415
|
+
end
|
416
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
417
|
+
public_method("#{key}=").call(
|
418
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
419
|
+
)
|
420
|
+
end
|
421
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
422
|
+
end
|
423
|
+
|
424
|
+
self
|
425
|
+
end
|
426
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
427
|
+
|
428
|
+
# Returns the string representation of the object
|
429
|
+
# @return [String] String presentation of the object
|
430
|
+
def to_s
|
431
|
+
to_hash.to_s
|
432
|
+
end
|
433
|
+
|
434
|
+
# Returns the object in the form of hash
|
435
|
+
# @return [Hash] Returns the object in the form of hash
|
436
|
+
def to_hash
|
437
|
+
hash = {}
|
438
|
+
self.class.attribute_map.each_pair do |attr, param|
|
439
|
+
value = public_method(attr).call
|
440
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
441
|
+
|
442
|
+
hash[param] = _to_hash(value)
|
443
|
+
end
|
444
|
+
hash
|
445
|
+
end
|
446
|
+
|
447
|
+
private
|
448
|
+
|
449
|
+
# Outputs non-array value in the form of hash
|
450
|
+
# For object, use to_hash. Otherwise, just return the value
|
451
|
+
# @param [Object] value Any valid value
|
452
|
+
# @return [Hash] Returns the value in the form of hash
|
453
|
+
def _to_hash(value)
|
454
|
+
if value.is_a?(Array)
|
455
|
+
value.compact.map { |v| _to_hash(v) }
|
456
|
+
elsif value.is_a?(Hash)
|
457
|
+
{}.tap do |hash|
|
458
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
459
|
+
end
|
460
|
+
elsif value.respond_to? :to_hash
|
461
|
+
value.to_hash
|
462
|
+
else
|
463
|
+
value
|
464
|
+
end
|
465
|
+
end
|
466
|
+
end
|
467
|
+
end
|
468
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|