oci 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -3
- data/lib/oci.rb +6 -0
- data/lib/oci/api_client.rb +159 -134
- data/lib/oci/audit/audit.rb +3 -0
- data/lib/oci/audit/audit_client.rb +88 -40
- data/lib/oci/audit/audit_client_composite_operations.rb +64 -0
- data/lib/oci/audit/models/audit_event.rb +151 -200
- data/lib/oci/audit/models/configuration.rb +61 -38
- data/lib/oci/audit/models/update_configuration_details.rb +61 -38
- data/lib/oci/auth/util.rb +1 -1
- data/lib/oci/base_signer.rb +20 -29
- data/lib/oci/config.rb +9 -3
- data/lib/oci/core/blockstorage_client.rb +512 -269
- data/lib/oci/core/blockstorage_client_composite_operations.rb +342 -0
- data/lib/oci/core/compute_client.rb +959 -536
- data/lib/oci/core/compute_client_composite_operations.rb +738 -0
- data/lib/oci/core/core.rb +5 -0
- data/lib/oci/core/models/attach_boot_volume_details.rb +72 -57
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +76 -53
- data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +69 -45
- data/lib/oci/core/models/attach_vnic_details.rb +79 -68
- data/lib/oci/core/models/attach_volume_details.rb +83 -74
- data/lib/oci/core/models/boot_volume.rb +119 -120
- data/lib/oci/core/models/boot_volume_attachment.rb +114 -111
- data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +61 -38
- data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +61 -38
- data/lib/oci/core/models/capture_console_history_details.rb +81 -70
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +60 -38
- data/lib/oci/core/models/connect_remote_peering_connections_details.rb +67 -49
- data/lib/oci/core/models/console_history.rb +122 -123
- data/lib/oci/core/models/cpe.rb +82 -74
- data/lib/oci/core/models/create_cpe_details.rb +73 -58
- data/lib/oci/core/models/create_cross_connect_details.rb +98 -99
- data/lib/oci/core/models/create_cross_connect_group_details.rb +67 -48
- data/lib/oci/core/models/create_dhcp_details.rb +89 -84
- data/lib/oci/core/models/create_drg_attachment_details.rb +71 -56
- data/lib/oci/core/models/create_drg_details.rb +66 -47
- data/lib/oci/core/models/create_image_details.rb +108 -110
- data/lib/oci/core/models/create_instance_console_connection_details.rb +79 -69
- data/lib/oci/core/models/create_internet_gateway_details.rb +76 -65
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +83 -76
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +72 -57
- data/lib/oci/core/models/create_private_ip_details.rb +97 -94
- data/lib/oci/core/models/create_public_ip_details.rb +90 -77
- data/lib/oci/core/models/create_remote_peering_connection_details.rb +72 -57
- data/lib/oci/core/models/create_route_table_details.rb +90 -87
- data/lib/oci/core/models/create_security_list_details.rb +95 -96
- data/lib/oci/core/models/create_subnet_details.rb +133 -154
- data/lib/oci/core/models/create_vcn_details.rb +96 -93
- data/lib/oci/core/models/create_virtual_circuit_details.rb +136 -153
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +62 -39
- data/lib/oci/core/models/create_vnic_details.rb +99 -97
- data/lib/oci/core/models/create_volume_backup_details.rb +94 -85
- data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +66 -47
- data/lib/oci/core/models/create_volume_details.rb +117 -130
- data/lib/oci/core/models/cross_connect.rb +120 -121
- data/lib/oci/core/models/cross_connect_group.rb +97 -82
- data/lib/oci/core/models/cross_connect_location.rb +65 -43
- data/lib/oci/core/models/cross_connect_mapping.rb +89 -81
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +68 -48
- data/lib/oci/core/models/cross_connect_status.rb +110 -87
- data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +61 -38
- data/lib/oci/core/models/dhcp_dns_option.rb +85 -60
- data/lib/oci/core/models/dhcp_option.rb +62 -38
- data/lib/oci/core/models/dhcp_options.rb +119 -118
- data/lib/oci/core/models/dhcp_search_domain_option.rb +66 -44
- data/lib/oci/core/models/drg.rb +96 -81
- data/lib/oci/core/models/drg_attachment.rb +106 -99
- data/lib/oci/core/models/egress_security_rule.rb +89 -83
- data/lib/oci/core/models/export_image_details.rb +63 -41
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +74 -59
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +65 -42
- data/lib/oci/core/models/fast_connect_provider_service.rb +155 -126
- data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +61 -39
- data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +61 -39
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +117 -105
- data/lib/oci/core/models/icmp_options.rb +63 -41
- data/lib/oci/core/models/image.rb +170 -185
- data/lib/oci/core/models/image_source_details.rb +79 -60
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +77 -62
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +67 -44
- data/lib/oci/core/models/ingress_security_rule.rb +89 -83
- data/lib/oci/core/models/instance.rb +190 -211
- data/lib/oci/core/models/instance_console_connection.rb +118 -117
- data/lib/oci/core/models/instance_credentials.rb +63 -41
- data/lib/oci/core/models/instance_source_details.rb +64 -41
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +64 -41
- data/lib/oci/core/models/instance_source_via_image_details.rb +70 -51
- data/lib/oci/core/models/internet_gateway.rb +107 -100
- data/lib/oci/core/models/ip_sec_connection.rb +113 -110
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +73 -59
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +75 -61
- data/lib/oci/core/models/launch_instance_details.rb +163 -189
- data/lib/oci/core/models/launch_options.rb +130 -93
- data/lib/oci/core/models/letter_of_authority.rb +105 -100
- data/lib/oci/core/models/local_peering_gateway.rb +141 -140
- data/lib/oci/core/models/paravirtualized_volume_attachment.rb +83 -60
- data/lib/oci/core/models/peer_region_for_remote_peering.rb +61 -37
- data/lib/oci/core/models/port_range.rb +65 -42
- data/lib/oci/core/models/private_ip.rb +131 -151
- data/lib/oci/core/models/public_ip.rb +160 -149
- data/lib/oci/core/models/remote_peering_connection.rb +148 -151
- data/lib/oci/core/models/route_rule.rb +68 -50
- data/lib/oci/core/models/route_table.rb +120 -121
- data/lib/oci/core/models/security_list.rb +125 -130
- data/lib/oci/core/models/shape.rb +60 -36
- data/lib/oci/core/models/subnet.rb +183 -220
- data/lib/oci/core/models/tcp_options.rb +67 -49
- data/lib/oci/core/models/tunnel_config.rb +76 -62
- data/lib/oci/core/models/tunnel_status.rb +94 -77
- data/lib/oci/core/models/udp_options.rb +67 -49
- data/lib/oci/core/models/update_boot_volume_details.rb +62 -39
- data/lib/oci/core/models/update_console_history_details.rb +76 -61
- data/lib/oci/core/models/update_cpe_details.rb +62 -39
- data/lib/oci/core/models/update_cross_connect_details.rb +68 -50
- data/lib/oci/core/models/update_cross_connect_group_details.rb +62 -39
- data/lib/oci/core/models/update_dhcp_details.rb +80 -67
- data/lib/oci/core/models/update_drg_attachment_details.rb +62 -39
- data/lib/oci/core/models/update_drg_details.rb +62 -39
- data/lib/oci/core/models/update_image_details.rb +77 -62
- data/lib/oci/core/models/update_instance_details.rb +77 -62
- data/lib/oci/core/models/update_internet_gateway_details.rb +67 -48
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +62 -39
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +62 -39
- data/lib/oci/core/models/update_private_ip_details.rb +90 -83
- data/lib/oci/core/models/update_public_ip_details.rb +68 -49
- data/lib/oci/core/models/update_remote_peering_connection_details.rb +62 -39
- data/lib/oci/core/models/update_route_table_details.rb +81 -70
- data/lib/oci/core/models/update_security_list_details.rb +86 -79
- data/lib/oci/core/models/update_subnet_details.rb +76 -61
- data/lib/oci/core/models/update_vcn_details.rb +76 -61
- data/lib/oci/core/models/update_virtual_circuit_details.rb +114 -115
- data/lib/oci/core/models/update_vnic_details.rb +75 -60
- data/lib/oci/core/models/update_volume_backup_details.rb +76 -61
- data/lib/oci/core/models/update_volume_details.rb +76 -61
- data/lib/oci/core/models/vcn.rb +150 -167
- data/lib/oci/core/models/virtual_circuit.rb +254 -269
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +68 -48
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +79 -54
- data/lib/oci/core/models/vnic.rb +149 -166
- data/lib/oci/core/models/vnic_attachment.rb +132 -141
- data/lib/oci/core/models/volume.rb +138 -151
- data/lib/oci/core/models/volume_attachment.rb +126 -131
- data/lib/oci/core/models/volume_backup.rb +185 -200
- data/lib/oci/core/models/volume_backup_policy.rb +75 -61
- data/lib/oci/core/models/volume_backup_policy_assignment.rb +75 -63
- data/lib/oci/core/models/volume_backup_schedule.rb +101 -76
- data/lib/oci/core/models/volume_source_details.rb +62 -37
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +62 -38
- data/lib/oci/core/models/volume_source_from_volume_details.rb +62 -38
- data/lib/oci/core/virtual_network_client.rb +2683 -1457
- data/lib/oci/core/virtual_network_client_composite_operations.rb +1849 -0
- data/lib/oci/database/database.rb +3 -0
- data/lib/oci/database/database_client.rb +894 -454
- data/lib/oci/database/database_client_composite_operations.rb +462 -0
- data/lib/oci/database/models/backup.rb +131 -128
- data/lib/oci/database/models/backup_summary.rb +131 -128
- data/lib/oci/database/models/create_backup_details.rb +66 -47
- data/lib/oci/database/models/create_data_guard_association_details.rb +112 -102
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +73 -51
- data/lib/oci/database/models/create_database_details.rb +140 -105
- data/lib/oci/database/models/create_database_from_backup_details.rb +71 -56
- data/lib/oci/database/models/create_db_home_details.rb +70 -53
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +83 -67
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +74 -53
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +69 -44
- data/lib/oci/database/models/data_guard_association.rb +205 -204
- data/lib/oci/database/models/data_guard_association_summary.rb +205 -204
- data/lib/oci/database/models/database.rb +175 -156
- data/lib/oci/database/models/database_summary.rb +175 -156
- data/lib/oci/database/models/db_backup_config.rb +60 -38
- data/lib/oci/database/models/db_home.rb +110 -107
- data/lib/oci/database/models/db_home_summary.rb +110 -107
- data/lib/oci/database/models/db_node.rb +113 -108
- data/lib/oci/database/models/db_node_summary.rb +113 -108
- data/lib/oci/database/models/db_system.rb +299 -314
- data/lib/oci/database/models/db_system_shape_summary.rb +88 -86
- data/lib/oci/database/models/db_system_summary.rb +299 -314
- data/lib/oci/database/models/db_version_summary.rb +64 -44
- data/lib/oci/database/models/failover_data_guard_association_details.rb +60 -38
- data/lib/oci/database/models/launch_db_system_details.rb +231 -234
- data/lib/oci/database/models/patch.rb +136 -113
- data/lib/oci/database/models/patch_details.rb +73 -53
- data/lib/oci/database/models/patch_history_entry.rb +114 -99
- data/lib/oci/database/models/patch_history_entry_summary.rb +114 -99
- data/lib/oci/database/models/patch_summary.rb +136 -113
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +60 -38
- data/lib/oci/database/models/restore_database_details.rb +72 -53
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +60 -38
- data/lib/oci/database/models/update_database_details.rb +97 -38
- data/lib/oci/database/models/update_db_home_details.rb +60 -38
- data/lib/oci/database/models/update_db_system_details.rb +112 -64
- data/lib/oci/dns/dns.rb +3 -0
- data/lib/oci/dns/dns_client.rb +489 -302
- data/lib/oci/dns/dns_client_composite_operations.rb +143 -0
- data/lib/oci/dns/models/create_zone_details.rb +84 -72
- data/lib/oci/dns/models/external_master.rb +67 -47
- data/lib/oci/dns/models/patch_domain_records_details.rb +60 -35
- data/lib/oci/dns/models/patch_rr_set_details.rb +60 -35
- data/lib/oci/dns/models/patch_zone_records_details.rb +60 -35
- data/lib/oci/dns/models/record.rb +92 -86
- data/lib/oci/dns/models/record_collection.rb +59 -35
- data/lib/oci/dns/models/record_details.rb +92 -86
- data/lib/oci/dns/models/record_operation.rb +113 -110
- data/lib/oci/dns/models/rr_set.rb +59 -35
- data/lib/oci/dns/models/sort_order.rb +0 -2
- data/lib/oci/dns/models/tsig.rb +68 -48
- data/lib/oci/dns/models/update_domain_records_details.rb +60 -35
- data/lib/oci/dns/models/update_rr_set_details.rb +60 -35
- data/lib/oci/dns/models/update_zone_details.rb +60 -38
- data/lib/oci/dns/models/update_zone_records_details.rb +60 -35
- data/lib/oci/dns/models/zone.rb +133 -126
- data/lib/oci/dns/models/zone_summary.rb +108 -99
- data/lib/oci/email/email.rb +3 -0
- data/lib/oci/email/email_client.rb +223 -112
- data/lib/oci/email/email_client_composite_operations.rb +103 -0
- data/lib/oci/email/models/create_sender_details.rb +65 -47
- data/lib/oci/email/models/create_suppression_details.rb +66 -48
- data/lib/oci/email/models/sender.rb +97 -84
- data/lib/oci/email/models/sender_summary.rb +89 -70
- data/lib/oci/email/models/suppression.rb +90 -69
- data/lib/oci/email/models/suppression_summary.rb +90 -69
- data/lib/oci/errors.rb +16 -0
- data/lib/oci/file_storage/file_storage.rb +3 -0
- data/lib/oci/file_storage/file_storage_client.rb +587 -333
- data/lib/oci/file_storage/file_storage_client_composite_operations.rb +460 -0
- data/lib/oci/file_storage/models/create_export_details.rb +73 -56
- data/lib/oci/file_storage/models/create_file_system_details.rb +75 -60
- data/lib/oci/file_storage/models/create_mount_target_details.rb +96 -93
- data/lib/oci/file_storage/models/create_snapshot_details.rb +68 -47
- data/lib/oci/file_storage/models/export.rb +102 -89
- data/lib/oci/file_storage/models/export_set.rb +121 -122
- data/lib/oci/file_storage/models/export_set_summary.rb +109 -102
- data/lib/oci/file_storage/models/export_summary.rb +102 -89
- data/lib/oci/file_storage/models/file_system.rb +110 -103
- data/lib/oci/file_storage/models/file_system_summary.rb +110 -103
- data/lib/oci/file_storage/models/mount_target.rb +126 -131
- data/lib/oci/file_storage/models/mount_target_summary.rb +121 -122
- data/lib/oci/file_storage/models/snapshot.rb +98 -81
- data/lib/oci/file_storage/models/snapshot_summary.rb +98 -81
- data/lib/oci/file_storage/models/update_export_set_details.rb +75 -60
- data/lib/oci/file_storage/models/update_file_system_details.rb +63 -40
- data/lib/oci/file_storage/models/update_mount_target_details.rb +63 -40
- data/lib/oci/identity/identity.rb +3 -0
- data/lib/oci/identity/identity_client.rb +1671 -872
- data/lib/oci/identity/identity_client_composite_operations.rb +818 -0
- data/lib/oci/identity/models/add_user_to_group_details.rb +66 -47
- data/lib/oci/identity/models/api_key.rb +108 -101
- data/lib/oci/identity/models/availability_domain.rb +64 -44
- data/lib/oci/identity/models/compartment.rb +118 -115
- data/lib/oci/identity/models/create_api_key_details.rb +60 -35
- data/lib/oci/identity/models/create_compartment_details.rb +83 -72
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +62 -39
- data/lib/oci/identity/models/create_dynamic_group_details.rb +75 -61
- data/lib/oci/identity/models/create_group_details.rb +82 -71
- data/lib/oci/identity/models/create_identity_provider_details.rb +115 -110
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +67 -48
- data/lib/oci/identity/models/create_policy_details.rb +94 -89
- data/lib/oci/identity/models/create_region_subscription_details.rb +64 -41
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +88 -67
- data/lib/oci/identity/models/create_smtp_credential_details.rb +61 -36
- data/lib/oci/identity/models/create_swift_password_details.rb +61 -36
- data/lib/oci/identity/models/create_tag_details.rb +77 -62
- data/lib/oci/identity/models/create_tag_namespace_details.rb +82 -71
- data/lib/oci/identity/models/create_user_details.rb +82 -71
- data/lib/oci/identity/models/customer_secret_key.rb +114 -109
- data/lib/oci/identity/models/customer_secret_key_summary.rb +109 -102
- data/lib/oci/identity/models/dynamic_group.rb +112 -105
- data/lib/oci/identity/models/group.rb +118 -115
- data/lib/oci/identity/models/identity_provider.rb +135 -138
- data/lib/oci/identity/models/idp_group_mapping.rb +112 -109
- data/lib/oci/identity/models/policy.rb +129 -132
- data/lib/oci/identity/models/region.rb +67 -45
- data/lib/oci/identity/models/region_subscription.rb +90 -71
- data/lib/oci/identity/models/saml2_identity_provider.rb +106 -92
- data/lib/oci/identity/models/smtp_credential.rb +118 -113
- data/lib/oci/identity/models/smtp_credential_summary.rb +113 -106
- data/lib/oci/identity/models/swift_password.rb +113 -106
- data/lib/oci/identity/models/tag.rb +108 -116
- data/lib/oci/identity/models/tag_namespace.rb +97 -97
- data/lib/oci/identity/models/tag_namespace_summary.rb +97 -97
- data/lib/oci/identity/models/tag_summary.rb +97 -97
- data/lib/oci/identity/models/tenancy.rb +86 -78
- data/lib/oci/identity/models/ui_password.rb +97 -82
- data/lib/oci/identity/models/update_compartment_details.rb +77 -62
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +61 -38
- data/lib/oci/identity/models/update_dynamic_group_details.rb +65 -45
- data/lib/oci/identity/models/update_group_details.rb +72 -55
- data/lib/oci/identity/models/update_identity_provider_details.rb +89 -74
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +66 -47
- data/lib/oci/identity/models/update_policy_details.rb +83 -72
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +79 -58
- data/lib/oci/identity/models/update_smtp_credential_details.rb +60 -35
- data/lib/oci/identity/models/update_state_details.rb +61 -36
- data/lib/oci/identity/models/update_swift_password_details.rb +60 -35
- data/lib/oci/identity/models/update_tag_details.rb +78 -65
- data/lib/oci/identity/models/update_tag_namespace_details.rb +78 -65
- data/lib/oci/identity/models/update_user_details.rb +72 -55
- data/lib/oci/identity/models/user.rb +120 -117
- data/lib/oci/identity/models/user_group_membership.rb +107 -100
- data/lib/oci/load_balancer/load_balancer.rb +3 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +918 -500
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +795 -0
- data/lib/oci/load_balancer/models/backend.rb +101 -94
- data/lib/oci/load_balancer/models/backend_details.rb +95 -86
- data/lib/oci/load_balancer/models/backend_health.rb +84 -57
- data/lib/oci/load_balancer/models/backend_set.rb +87 -79
- data/lib/oci/load_balancer/models/backend_set_details.rb +80 -70
- data/lib/oci/load_balancer/models/backend_set_health.rb +106 -91
- data/lib/oci/load_balancer/models/certificate.rb +78 -64
- data/lib/oci/load_balancer/models/certificate_details.rb +92 -84
- data/lib/oci/load_balancer/models/connection_configuration.rb +73 -51
- data/lib/oci/load_balancer/models/create_backend_details.rb +95 -86
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +87 -79
- data/lib/oci/load_balancer/models/create_certificate_details.rb +92 -84
- data/lib/oci/load_balancer/models/create_listener_details.rb +97 -93
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +109 -117
- data/lib/oci/load_balancer/models/create_path_route_set_details.rb +66 -46
- data/lib/oci/load_balancer/models/health_check_result.rb +98 -79
- data/lib/oci/load_balancer/models/health_checker.rb +108 -108
- data/lib/oci/load_balancer/models/health_checker_details.rb +108 -108
- data/lib/oci/load_balancer/models/ip_address.rb +70 -52
- data/lib/oci/load_balancer/models/listener.rb +97 -93
- data/lib/oci/load_balancer/models/listener_details.rb +91 -85
- data/lib/oci/load_balancer/models/load_balancer.rb +144 -157
- data/lib/oci/load_balancer/models/load_balancer_health.rb +110 -95
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +88 -61
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +59 -35
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +59 -35
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +59 -35
- data/lib/oci/load_balancer/models/path_match_type.rb +80 -51
- data/lib/oci/load_balancer/models/path_route.rb +76 -60
- data/lib/oci/load_balancer/models/path_route_set.rb +66 -46
- data/lib/oci/load_balancer/models/path_route_set_details.rb +60 -38
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +71 -55
- data/lib/oci/load_balancer/models/ssl_configuration.rb +78 -66
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +78 -66
- data/lib/oci/load_balancer/models/update_backend_details.rb +82 -67
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +80 -70
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +108 -108
- data/lib/oci/load_balancer/models/update_listener_details.rb +91 -85
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +62 -40
- data/lib/oci/load_balancer/models/update_path_route_set_details.rb +60 -38
- data/lib/oci/load_balancer/models/work_request.rb +115 -108
- data/lib/oci/load_balancer/models/work_request_error.rb +76 -49
- data/lib/oci/object_storage/models/bucket.rb +136 -133
- data/lib/oci/object_storage/models/bucket_summary.rb +95 -95
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +66 -48
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +64 -44
- data/lib/oci/object_storage/models/create_bucket_details.rb +113 -111
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +80 -70
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +87 -74
- data/lib/oci/object_storage/models/list_objects.rb +71 -53
- data/lib/oci/object_storage/models/multipart_upload.rb +77 -65
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +72 -56
- data/lib/oci/object_storage/models/namespace_metadata.rb +69 -53
- data/lib/oci/object_storage/models/object_summary.rb +73 -57
- data/lib/oci/object_storage/models/preauthenticated_request.rb +105 -96
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +99 -86
- data/lib/oci/object_storage/models/rename_object_details.rb +80 -74
- data/lib/oci/object_storage/models/restore_objects_details.rb +66 -45
- data/lib/oci/object_storage/models/update_bucket_details.rb +101 -97
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +65 -47
- data/lib/oci/object_storage/object_storage.rb +2 -0
- data/lib/oci/object_storage/object_storage_client.rb +737 -435
- data/lib/oci/object_storage/object_storage_client_composite_operations.rb +24 -0
- data/lib/oci/signer.rb +20 -7
- data/lib/oci/version.rb +1 -1
- metadata +13 -2
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
module OCI
|
4
4
|
module Database
|
5
|
+
# Module containing models for requests made to, and responses received from,
|
6
|
+
# OCI Database services
|
5
7
|
module Models
|
6
8
|
end
|
7
9
|
end
|
@@ -48,6 +50,7 @@ require 'oci/database/models/update_db_system_details'
|
|
48
50
|
|
49
51
|
# Require generated clients
|
50
52
|
require 'oci/database/database_client'
|
53
|
+
require 'oci/database/database_client_composite_operations'
|
51
54
|
|
52
55
|
# Require service utilities
|
53
56
|
require 'oci/database/util'
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require 'uri'
|
4
|
+
require 'logger'
|
5
5
|
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
6
7
|
module OCI
|
7
|
-
|
8
|
+
# The API for the Database Service.
|
8
9
|
class Database::DatabaseClient
|
9
|
-
|
10
10
|
# Client used to make HTTP requests.
|
11
11
|
# @return [OCI::ApiClient]
|
12
12
|
attr_reader :api_client
|
@@ -17,7 +17,10 @@ module OCI
|
|
17
17
|
|
18
18
|
# The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
|
19
19
|
# @return [String]
|
20
|
-
|
20
|
+
attr_reader :region
|
21
|
+
|
22
|
+
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines
|
23
|
+
|
21
24
|
|
22
25
|
# Creates a new DatabaseClient.
|
23
26
|
# If a config is not specified, then the global OCI.config will be used.
|
@@ -46,15 +49,23 @@ module OCI
|
|
46
49
|
config.validate unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
|
47
50
|
|
48
51
|
if signer.nil?
|
49
|
-
signer = Signer.new(
|
52
|
+
signer = OCI::Signer.new(
|
53
|
+
config.user,
|
54
|
+
config.fingerprint,
|
55
|
+
config.tenancy,
|
56
|
+
config.key_file,
|
57
|
+
pass_phrase: config.pass_phrase,
|
58
|
+
private_key_content: config.key_content
|
59
|
+
)
|
50
60
|
end
|
51
61
|
|
52
|
-
@api_client = ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
62
|
+
@api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
53
63
|
|
54
64
|
region ||= config.region
|
55
65
|
region ||= signer.region if signer.respond_to?(:region)
|
56
66
|
self.region = region
|
57
67
|
end
|
68
|
+
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines
|
58
69
|
|
59
70
|
# Set the region that will be used to determine the service endpoint.
|
60
71
|
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
@@ -73,24 +84,29 @@ module OCI
|
|
73
84
|
@api_client.config.logger
|
74
85
|
end
|
75
86
|
|
87
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
88
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
89
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
90
|
+
|
76
91
|
|
77
92
|
# Creates a new backup in the specified database based on the request parameters you provide. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
|
78
|
-
#
|
79
|
-
# @param [CreateBackupDetails] create_backup_details Request to create a new database backup.
|
93
|
+
#
|
94
|
+
# @param [OCI::Database::Models::CreateBackupDetails] create_backup_details Request to create a new database backup.
|
80
95
|
# @param [Hash] opts the optional parameters
|
81
96
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
82
97
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
83
98
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
84
99
|
# has been deleted and purged from the system, then a retry of the original creation request
|
85
100
|
# may be rejected).
|
86
|
-
#
|
87
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::Backup
|
101
|
+
#
|
102
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Backup Backup}
|
88
103
|
def create_backup(create_backup_details, opts = {})
|
89
|
-
logger.debug
|
104
|
+
logger.debug 'Calling operation DatabaseClient#create_backup.' if logger
|
90
105
|
|
91
106
|
raise "Missing the required parameter 'create_backup_details' when calling create_backup." if create_backup_details.nil?
|
92
107
|
|
93
|
-
path =
|
108
|
+
path = '/backups'
|
109
|
+
operation_signing_strategy = :standard
|
94
110
|
|
95
111
|
# Query Params
|
96
112
|
query_params = {}
|
@@ -99,47 +115,58 @@ module OCI
|
|
99
115
|
header_params = {}
|
100
116
|
header_params['accept'] = 'application/json'
|
101
117
|
header_params['content-type'] = 'application/json'
|
102
|
-
header_params[:'opc-retry-token'] = opts[:
|
118
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
103
119
|
|
104
120
|
post_body = @api_client.object_to_http_body(create_backup_details)
|
105
121
|
|
106
|
-
|
122
|
+
@api_client.call_api(
|
107
123
|
:POST,
|
108
124
|
path,
|
109
125
|
endpoint,
|
110
|
-
:
|
111
|
-
:
|
112
|
-
:
|
113
|
-
:
|
126
|
+
header_params: header_params,
|
127
|
+
query_params: query_params,
|
128
|
+
operation_signing_strategy: operation_signing_strategy,
|
129
|
+
body: post_body,
|
130
|
+
return_type: 'OCI::Database::Models::Backup'
|
131
|
+
)
|
114
132
|
end
|
133
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
134
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
135
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
136
|
+
|
137
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
138
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
139
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
140
|
+
|
115
141
|
|
116
142
|
# Creates a new Data Guard association. A Data Guard association represents the replication relationship between the
|
117
143
|
# specified database and a peer database. For more information, see [Using Oracle Data Guard](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Tasks/usingdataguard.htm).
|
118
|
-
#
|
144
|
+
#
|
119
145
|
# All Oracle Cloud Infrastructure resources, including Data Guard associations, get an Oracle-assigned, unique ID
|
120
146
|
# called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response.
|
121
147
|
# You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the
|
122
148
|
# resource in the Console. For more information, see
|
123
149
|
# [Resource Identifiers](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
124
|
-
#
|
150
|
+
#
|
125
151
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
126
|
-
# @param [CreateDataGuardAssociationDetails] create_data_guard_association_details A request to create a Data Guard association.
|
152
|
+
# @param [OCI::Database::Models::CreateDataGuardAssociationDetails] create_data_guard_association_details A request to create a Data Guard association.
|
127
153
|
# @param [Hash] opts the optional parameters
|
128
154
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
129
155
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
130
156
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
131
157
|
# has been deleted and purged from the system, then a retry of the original creation request
|
132
158
|
# may be rejected).
|
133
|
-
#
|
134
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DataGuardAssociation
|
159
|
+
#
|
160
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
135
161
|
def create_data_guard_association(database_id, create_data_guard_association_details, opts = {})
|
136
|
-
logger.debug
|
162
|
+
logger.debug 'Calling operation DatabaseClient#create_data_guard_association.' if logger
|
137
163
|
|
138
164
|
raise "Missing the required parameter 'database_id' when calling create_data_guard_association." if database_id.nil?
|
139
165
|
raise "Missing the required parameter 'create_data_guard_association_details' when calling create_data_guard_association." if create_data_guard_association_details.nil?
|
140
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util
|
166
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
141
167
|
|
142
|
-
path =
|
168
|
+
path = '/databases/{databaseId}/dataGuardAssociations'.sub('{databaseId}', database_id.to_s)
|
169
|
+
operation_signing_strategy = :standard
|
143
170
|
|
144
171
|
# Query Params
|
145
172
|
query_params = {}
|
@@ -148,37 +175,48 @@ module OCI
|
|
148
175
|
header_params = {}
|
149
176
|
header_params['accept'] = 'application/json'
|
150
177
|
header_params['content-type'] = 'application/json'
|
151
|
-
header_params[:'opc-retry-token'] = opts[:
|
178
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
152
179
|
|
153
180
|
post_body = @api_client.object_to_http_body(create_data_guard_association_details)
|
154
181
|
|
155
|
-
|
182
|
+
@api_client.call_api(
|
156
183
|
:POST,
|
157
184
|
path,
|
158
185
|
endpoint,
|
159
|
-
:
|
160
|
-
:
|
161
|
-
:
|
162
|
-
:
|
186
|
+
header_params: header_params,
|
187
|
+
query_params: query_params,
|
188
|
+
operation_signing_strategy: operation_signing_strategy,
|
189
|
+
body: post_body,
|
190
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
191
|
+
)
|
163
192
|
end
|
193
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
194
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
195
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
196
|
+
|
197
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
198
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
199
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
200
|
+
|
164
201
|
|
165
202
|
# Creates a new DB Home in the specified DB System based on the request parameters you provide.
|
166
|
-
#
|
167
|
-
# @param [CreateDbHomeWithDbSystemIdBase] create_db_home_with_db_system_id_details Request to create a new DB Home.
|
203
|
+
#
|
204
|
+
# @param [OCI::Database::Models::CreateDbHomeWithDbSystemIdBase] create_db_home_with_db_system_id_details Request to create a new DB Home.
|
168
205
|
# @param [Hash] opts the optional parameters
|
169
206
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
170
207
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
171
208
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
172
209
|
# has been deleted and purged from the system, then a retry of the original creation request
|
173
210
|
# may be rejected).
|
174
|
-
#
|
175
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DbHome
|
211
|
+
#
|
212
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbHome DbHome}
|
176
213
|
def create_db_home(create_db_home_with_db_system_id_details, opts = {})
|
177
|
-
logger.debug
|
214
|
+
logger.debug 'Calling operation DatabaseClient#create_db_home.' if logger
|
178
215
|
|
179
216
|
raise "Missing the required parameter 'create_db_home_with_db_system_id_details' when calling create_db_home." if create_db_home_with_db_system_id_details.nil?
|
180
217
|
|
181
|
-
path =
|
218
|
+
path = '/dbHomes'
|
219
|
+
operation_signing_strategy = :standard
|
182
220
|
|
183
221
|
# Query Params
|
184
222
|
query_params = {}
|
@@ -187,36 +225,46 @@ module OCI
|
|
187
225
|
header_params = {}
|
188
226
|
header_params['accept'] = 'application/json'
|
189
227
|
header_params['content-type'] = 'application/json'
|
190
|
-
header_params[:'opc-retry-token'] = opts[:
|
228
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
191
229
|
|
192
230
|
post_body = @api_client.object_to_http_body(create_db_home_with_db_system_id_details)
|
193
231
|
|
194
|
-
|
232
|
+
@api_client.call_api(
|
195
233
|
:POST,
|
196
234
|
path,
|
197
235
|
endpoint,
|
198
|
-
:
|
199
|
-
:
|
200
|
-
:
|
201
|
-
:
|
236
|
+
header_params: header_params,
|
237
|
+
query_params: query_params,
|
238
|
+
operation_signing_strategy: operation_signing_strategy,
|
239
|
+
body: post_body,
|
240
|
+
return_type: 'OCI::Database::Models::DbHome'
|
241
|
+
)
|
202
242
|
end
|
243
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
244
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
245
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
246
|
+
|
247
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
248
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
249
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
250
|
+
|
203
251
|
|
204
252
|
# Performs an action, such as one of the power actions (start, stop, softreset, or reset), on the specified DB Node.
|
205
|
-
#
|
253
|
+
#
|
206
254
|
# **start** - power on
|
207
|
-
#
|
255
|
+
#
|
208
256
|
# **stop** - power off
|
209
|
-
#
|
257
|
+
#
|
210
258
|
# **softreset** - ACPI shutdown and power on
|
211
|
-
#
|
259
|
+
#
|
212
260
|
# **reset** - power off and power on
|
213
|
-
#
|
261
|
+
#
|
214
262
|
# Note that the **stop** state has no effect on the resources you consume.
|
215
263
|
# Billing continues for DB Nodes that you stop, and related resources continue
|
216
|
-
# to apply against any relevant quotas. You must terminate the DB System
|
264
|
+
# to apply against any relevant quotas. You must terminate the DB System
|
217
265
|
# ({#terminate_db_system terminate_db_system})
|
218
266
|
# to remove its resources from billing and quotas.
|
219
|
-
#
|
267
|
+
#
|
220
268
|
# @param [String] db_node_id The database node [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
221
269
|
# @param [String] action The action to perform on the DB Node.
|
222
270
|
# Allowed values are: STOP, START, SOFTRESET, RESET
|
@@ -226,46 +274,57 @@ module OCI
|
|
226
274
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
227
275
|
# has been deleted and purged from the system, then a retry of the original creation request
|
228
276
|
# may be rejected).
|
229
|
-
#
|
277
|
+
#
|
230
278
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
231
279
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
232
280
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
233
|
-
#
|
234
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DbNode
|
281
|
+
#
|
282
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbNode DbNode}
|
235
283
|
def db_node_action(db_node_id, action, opts = {})
|
236
|
-
logger.debug
|
284
|
+
logger.debug 'Calling operation DatabaseClient#db_node_action.' if logger
|
237
285
|
|
238
286
|
raise "Missing the required parameter 'db_node_id' when calling db_node_action." if db_node_id.nil?
|
239
287
|
raise "Missing the required parameter 'action' when calling db_node_action." if action.nil?
|
240
|
-
unless [
|
288
|
+
unless %w[STOP START SOFTRESET RESET].include?(action)
|
241
289
|
raise "Invalid value for 'action', must be one of STOP, START, SOFTRESET, RESET."
|
242
290
|
end
|
243
|
-
raise "Parameter value for 'db_node_id' must not be blank" if OCI::Internal::Util
|
291
|
+
raise "Parameter value for 'db_node_id' must not be blank" if OCI::Internal::Util.blank_string?(db_node_id)
|
244
292
|
|
245
|
-
path =
|
293
|
+
path = '/dbNodes/{dbNodeId}'.sub('{dbNodeId}', db_node_id.to_s)
|
294
|
+
operation_signing_strategy = :standard
|
246
295
|
|
247
296
|
# Query Params
|
248
297
|
query_params = {}
|
249
|
-
query_params[:
|
298
|
+
query_params[:action] = action
|
250
299
|
|
251
300
|
# Header Params
|
252
301
|
header_params = {}
|
253
302
|
header_params['accept'] = 'application/json'
|
254
303
|
header_params['content-type'] = 'application/json'
|
255
|
-
header_params[:'opc-retry-token'] = opts[:
|
256
|
-
header_params[:'if-match'] = opts[:
|
304
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
305
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
257
306
|
|
258
307
|
post_body = nil
|
259
308
|
|
260
|
-
|
309
|
+
@api_client.call_api(
|
261
310
|
:POST,
|
262
311
|
path,
|
263
312
|
endpoint,
|
264
|
-
:
|
265
|
-
:
|
266
|
-
:
|
267
|
-
:
|
313
|
+
header_params: header_params,
|
314
|
+
query_params: query_params,
|
315
|
+
operation_signing_strategy: operation_signing_strategy,
|
316
|
+
body: post_body,
|
317
|
+
return_type: 'OCI::Database::Models::DbNode'
|
318
|
+
)
|
268
319
|
end
|
320
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
321
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
322
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
323
|
+
|
324
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
325
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
326
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
327
|
+
|
269
328
|
|
270
329
|
# Deletes a full backup. You cannot delete automatic backups using this API.
|
271
330
|
# @param [String] backup_id The backup OCID.
|
@@ -273,15 +332,16 @@ module OCI
|
|
273
332
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
274
333
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
275
334
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
276
|
-
#
|
335
|
+
#
|
277
336
|
# @return [Response] A Response object with data of type nil
|
278
337
|
def delete_backup(backup_id, opts = {})
|
279
|
-
logger.debug
|
338
|
+
logger.debug 'Calling operation DatabaseClient#delete_backup.' if logger
|
280
339
|
|
281
340
|
raise "Missing the required parameter 'backup_id' when calling delete_backup." if backup_id.nil?
|
282
|
-
raise "Parameter value for 'backup_id' must not be blank" if OCI::Internal::Util
|
341
|
+
raise "Parameter value for 'backup_id' must not be blank" if OCI::Internal::Util.blank_string?(backup_id)
|
283
342
|
|
284
|
-
path =
|
343
|
+
path = '/backups/{backupId}'.sub('{backupId}', backup_id.to_s)
|
344
|
+
operation_signing_strategy = :standard
|
285
345
|
|
286
346
|
# Query Params
|
287
347
|
query_params = {}
|
@@ -290,83 +350,105 @@ module OCI
|
|
290
350
|
header_params = {}
|
291
351
|
header_params['accept'] = 'application/json'
|
292
352
|
header_params['content-type'] = 'application/json'
|
293
|
-
header_params[:'if-match'] = opts[:
|
353
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
294
354
|
|
295
355
|
post_body = nil
|
296
356
|
|
297
|
-
|
357
|
+
@api_client.call_api(
|
298
358
|
:DELETE,
|
299
359
|
path,
|
300
360
|
endpoint,
|
301
|
-
:
|
302
|
-
:
|
303
|
-
:
|
361
|
+
header_params: header_params,
|
362
|
+
query_params: query_params,
|
363
|
+
operation_signing_strategy: operation_signing_strategy,
|
364
|
+
body: post_body
|
365
|
+
)
|
304
366
|
end
|
367
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
368
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
369
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
370
|
+
|
371
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
372
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
373
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
374
|
+
|
305
375
|
|
306
376
|
# Deletes a DB Home. The DB Home and its database data are local to the DB System and will be lost when it is deleted. Oracle recommends that you back up any data in the DB System prior to deleting it.
|
307
|
-
#
|
377
|
+
#
|
308
378
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
309
379
|
# @param [Hash] opts the optional parameters
|
310
380
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
311
381
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
312
382
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
313
|
-
#
|
383
|
+
#
|
314
384
|
# @option opts [BOOLEAN] :perform_final_backup Whether to perform a final backup of the database or not. Default is false. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
|
315
385
|
# @return [Response] A Response object with data of type nil
|
316
386
|
def delete_db_home(db_home_id, opts = {})
|
317
|
-
logger.debug
|
387
|
+
logger.debug 'Calling operation DatabaseClient#delete_db_home.' if logger
|
318
388
|
|
319
389
|
raise "Missing the required parameter 'db_home_id' when calling delete_db_home." if db_home_id.nil?
|
320
|
-
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util
|
390
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
321
391
|
|
322
|
-
path =
|
392
|
+
path = '/dbHomes/{dbHomeId}'.sub('{dbHomeId}', db_home_id.to_s)
|
393
|
+
operation_signing_strategy = :standard
|
323
394
|
|
324
395
|
# Query Params
|
325
396
|
query_params = {}
|
326
|
-
query_params[:
|
397
|
+
query_params[:performFinalBackup] = opts[:perform_final_backup] if opts[:perform_final_backup]
|
327
398
|
|
328
399
|
# Header Params
|
329
400
|
header_params = {}
|
330
401
|
header_params['accept'] = 'application/json'
|
331
402
|
header_params['content-type'] = 'application/json'
|
332
|
-
header_params[:'if-match'] = opts[:
|
403
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
333
404
|
|
334
405
|
post_body = nil
|
335
406
|
|
336
|
-
|
407
|
+
@api_client.call_api(
|
337
408
|
:DELETE,
|
338
409
|
path,
|
339
410
|
endpoint,
|
340
|
-
:
|
341
|
-
:
|
342
|
-
:
|
411
|
+
header_params: header_params,
|
412
|
+
query_params: query_params,
|
413
|
+
operation_signing_strategy: operation_signing_strategy,
|
414
|
+
body: post_body
|
415
|
+
)
|
343
416
|
end
|
417
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
418
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
419
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
420
|
+
|
421
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
422
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
423
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
424
|
+
|
344
425
|
|
345
426
|
# Performs a failover to transition the standby database identified by the `databaseId` parameter into the
|
346
427
|
# specified Data Guard association's primary role after the existing primary database fails or becomes unreachable.
|
347
|
-
#
|
428
|
+
#
|
348
429
|
# A failover might result in data loss depending on the protection mode in effect at the time of the primary
|
349
430
|
# database failure.
|
350
|
-
#
|
431
|
+
#
|
351
432
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
352
433
|
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
353
|
-
# @param [FailoverDataGuardAssociationDetails] failover_data_guard_association_details A request to perform a failover, transitioning a standby database into a primary database.
|
434
|
+
# @param [OCI::Database::Models::FailoverDataGuardAssociationDetails] failover_data_guard_association_details A request to perform a failover, transitioning a standby database into a primary database.
|
354
435
|
# @param [Hash] opts the optional parameters
|
355
436
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
356
437
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
357
438
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
358
|
-
#
|
359
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DataGuardAssociation
|
439
|
+
#
|
440
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
360
441
|
def failover_data_guard_association(database_id, data_guard_association_id, failover_data_guard_association_details, opts = {})
|
361
|
-
logger.debug
|
442
|
+
logger.debug 'Calling operation DatabaseClient#failover_data_guard_association.' if logger
|
362
443
|
|
363
444
|
raise "Missing the required parameter 'database_id' when calling failover_data_guard_association." if database_id.nil?
|
364
445
|
raise "Missing the required parameter 'data_guard_association_id' when calling failover_data_guard_association." if data_guard_association_id.nil?
|
365
446
|
raise "Missing the required parameter 'failover_data_guard_association_details' when calling failover_data_guard_association." if failover_data_guard_association_details.nil?
|
366
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util
|
367
|
-
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util
|
447
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
448
|
+
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
368
449
|
|
369
|
-
path =
|
450
|
+
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/failover'.sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
451
|
+
operation_signing_strategy = :standard
|
370
452
|
|
371
453
|
# Query Params
|
372
454
|
query_params = {}
|
@@ -375,31 +457,43 @@ module OCI
|
|
375
457
|
header_params = {}
|
376
458
|
header_params['accept'] = 'application/json'
|
377
459
|
header_params['content-type'] = 'application/json'
|
378
|
-
header_params[:'if-match'] = opts[:
|
460
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
379
461
|
|
380
462
|
post_body = @api_client.object_to_http_body(failover_data_guard_association_details)
|
381
463
|
|
382
|
-
|
464
|
+
@api_client.call_api(
|
383
465
|
:POST,
|
384
466
|
path,
|
385
467
|
endpoint,
|
386
|
-
:
|
387
|
-
:
|
388
|
-
:
|
389
|
-
:
|
468
|
+
header_params: header_params,
|
469
|
+
query_params: query_params,
|
470
|
+
operation_signing_strategy: operation_signing_strategy,
|
471
|
+
body: post_body,
|
472
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
473
|
+
)
|
390
474
|
end
|
475
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
476
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
477
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
478
|
+
|
479
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
480
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
481
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
482
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
483
|
+
|
391
484
|
|
392
485
|
# Gets information about the specified backup.
|
393
486
|
# @param [String] backup_id The backup OCID.
|
394
487
|
# @param [Hash] opts the optional parameters
|
395
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::Backup
|
488
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Backup Backup}
|
396
489
|
def get_backup(backup_id, opts = {})
|
397
|
-
logger.debug
|
490
|
+
logger.debug 'Calling operation DatabaseClient#get_backup.' if logger
|
398
491
|
|
399
492
|
raise "Missing the required parameter 'backup_id' when calling get_backup." if backup_id.nil?
|
400
|
-
raise "Parameter value for 'backup_id' must not be blank" if OCI::Internal::Util
|
493
|
+
raise "Parameter value for 'backup_id' must not be blank" if OCI::Internal::Util.blank_string?(backup_id)
|
401
494
|
|
402
|
-
path =
|
495
|
+
path = '/backups/{backupId}'.sub('{backupId}', backup_id.to_s)
|
496
|
+
operation_signing_strategy = :standard
|
403
497
|
|
404
498
|
# Query Params
|
405
499
|
query_params = {}
|
@@ -411,31 +505,44 @@ module OCI
|
|
411
505
|
|
412
506
|
post_body = nil
|
413
507
|
|
414
|
-
|
508
|
+
@api_client.call_api(
|
415
509
|
:GET,
|
416
510
|
path,
|
417
511
|
endpoint,
|
418
|
-
:
|
419
|
-
:
|
420
|
-
:
|
421
|
-
:
|
512
|
+
header_params: header_params,
|
513
|
+
query_params: query_params,
|
514
|
+
operation_signing_strategy: operation_signing_strategy,
|
515
|
+
body: post_body,
|
516
|
+
return_type: 'OCI::Database::Models::Backup'
|
517
|
+
)
|
422
518
|
end
|
519
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
520
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
521
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
522
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
523
|
+
|
524
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
525
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
526
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
527
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
528
|
+
|
423
529
|
|
424
530
|
# Gets the specified Data Guard association's configuration information.
|
425
|
-
#
|
531
|
+
#
|
426
532
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
427
533
|
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
428
534
|
# @param [Hash] opts the optional parameters
|
429
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DataGuardAssociation
|
535
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
430
536
|
def get_data_guard_association(database_id, data_guard_association_id, opts = {})
|
431
|
-
logger.debug
|
537
|
+
logger.debug 'Calling operation DatabaseClient#get_data_guard_association.' if logger
|
432
538
|
|
433
539
|
raise "Missing the required parameter 'database_id' when calling get_data_guard_association." if database_id.nil?
|
434
540
|
raise "Missing the required parameter 'data_guard_association_id' when calling get_data_guard_association." if data_guard_association_id.nil?
|
435
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util
|
436
|
-
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util
|
541
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
542
|
+
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
437
543
|
|
438
|
-
path =
|
544
|
+
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}'.sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
545
|
+
operation_signing_strategy = :standard
|
439
546
|
|
440
547
|
# Query Params
|
441
548
|
query_params = {}
|
@@ -447,27 +554,40 @@ module OCI
|
|
447
554
|
|
448
555
|
post_body = nil
|
449
556
|
|
450
|
-
|
557
|
+
@api_client.call_api(
|
451
558
|
:GET,
|
452
559
|
path,
|
453
560
|
endpoint,
|
454
|
-
:
|
455
|
-
:
|
456
|
-
:
|
457
|
-
:
|
561
|
+
header_params: header_params,
|
562
|
+
query_params: query_params,
|
563
|
+
operation_signing_strategy: operation_signing_strategy,
|
564
|
+
body: post_body,
|
565
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
566
|
+
)
|
458
567
|
end
|
568
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
569
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
570
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
571
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
572
|
+
|
573
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
574
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
575
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
576
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
577
|
+
|
459
578
|
|
460
579
|
# Gets information about a specific database.
|
461
580
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
462
581
|
# @param [Hash] opts the optional parameters
|
463
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::Database
|
582
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Database Database}
|
464
583
|
def get_database(database_id, opts = {})
|
465
|
-
logger.debug
|
584
|
+
logger.debug 'Calling operation DatabaseClient#get_database.' if logger
|
466
585
|
|
467
586
|
raise "Missing the required parameter 'database_id' when calling get_database." if database_id.nil?
|
468
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util
|
587
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
469
588
|
|
470
|
-
path =
|
589
|
+
path = '/databases/{databaseId}'.sub('{databaseId}', database_id.to_s)
|
590
|
+
operation_signing_strategy = :standard
|
471
591
|
|
472
592
|
# Query Params
|
473
593
|
query_params = {}
|
@@ -479,27 +599,40 @@ module OCI
|
|
479
599
|
|
480
600
|
post_body = nil
|
481
601
|
|
482
|
-
|
602
|
+
@api_client.call_api(
|
483
603
|
:GET,
|
484
604
|
path,
|
485
605
|
endpoint,
|
486
|
-
:
|
487
|
-
:
|
488
|
-
:
|
489
|
-
:
|
606
|
+
header_params: header_params,
|
607
|
+
query_params: query_params,
|
608
|
+
operation_signing_strategy: operation_signing_strategy,
|
609
|
+
body: post_body,
|
610
|
+
return_type: 'OCI::Database::Models::Database'
|
611
|
+
)
|
490
612
|
end
|
613
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
614
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
615
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
616
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
617
|
+
|
618
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
619
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
620
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
621
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
622
|
+
|
491
623
|
|
492
624
|
# Gets information about the specified database home.
|
493
625
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
494
626
|
# @param [Hash] opts the optional parameters
|
495
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DbHome
|
627
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbHome DbHome}
|
496
628
|
def get_db_home(db_home_id, opts = {})
|
497
|
-
logger.debug
|
629
|
+
logger.debug 'Calling operation DatabaseClient#get_db_home.' if logger
|
498
630
|
|
499
631
|
raise "Missing the required parameter 'db_home_id' when calling get_db_home." if db_home_id.nil?
|
500
|
-
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util
|
632
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
501
633
|
|
502
|
-
path =
|
634
|
+
path = '/dbHomes/{dbHomeId}'.sub('{dbHomeId}', db_home_id.to_s)
|
635
|
+
operation_signing_strategy = :standard
|
503
636
|
|
504
637
|
# Query Params
|
505
638
|
query_params = {}
|
@@ -511,31 +644,44 @@ module OCI
|
|
511
644
|
|
512
645
|
post_body = nil
|
513
646
|
|
514
|
-
|
647
|
+
@api_client.call_api(
|
515
648
|
:GET,
|
516
649
|
path,
|
517
650
|
endpoint,
|
518
|
-
:
|
519
|
-
:
|
520
|
-
:
|
521
|
-
:
|
651
|
+
header_params: header_params,
|
652
|
+
query_params: query_params,
|
653
|
+
operation_signing_strategy: operation_signing_strategy,
|
654
|
+
body: post_body,
|
655
|
+
return_type: 'OCI::Database::Models::DbHome'
|
656
|
+
)
|
522
657
|
end
|
658
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
659
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
660
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
661
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
662
|
+
|
663
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
664
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
665
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
666
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
667
|
+
|
523
668
|
|
524
669
|
# Gets information about a specified patch package.
|
525
|
-
#
|
670
|
+
#
|
526
671
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
527
672
|
# @param [String] patch_id The OCID of the patch.
|
528
673
|
# @param [Hash] opts the optional parameters
|
529
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::Patch
|
674
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Patch Patch}
|
530
675
|
def get_db_home_patch(db_home_id, patch_id, opts = {})
|
531
|
-
logger.debug
|
676
|
+
logger.debug 'Calling operation DatabaseClient#get_db_home_patch.' if logger
|
532
677
|
|
533
678
|
raise "Missing the required parameter 'db_home_id' when calling get_db_home_patch." if db_home_id.nil?
|
534
679
|
raise "Missing the required parameter 'patch_id' when calling get_db_home_patch." if patch_id.nil?
|
535
|
-
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util
|
536
|
-
raise "Parameter value for 'patch_id' must not be blank" if OCI::Internal::Util
|
680
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
681
|
+
raise "Parameter value for 'patch_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_id)
|
537
682
|
|
538
|
-
path =
|
683
|
+
path = '/dbHomes/{dbHomeId}/patches/{patchId}'.sub('{dbHomeId}', db_home_id.to_s).sub('{patchId}', patch_id.to_s)
|
684
|
+
operation_signing_strategy = :standard
|
539
685
|
|
540
686
|
# Query Params
|
541
687
|
query_params = {}
|
@@ -547,31 +693,44 @@ module OCI
|
|
547
693
|
|
548
694
|
post_body = nil
|
549
695
|
|
550
|
-
|
696
|
+
@api_client.call_api(
|
551
697
|
:GET,
|
552
698
|
path,
|
553
699
|
endpoint,
|
554
|
-
:
|
555
|
-
:
|
556
|
-
:
|
557
|
-
:
|
700
|
+
header_params: header_params,
|
701
|
+
query_params: query_params,
|
702
|
+
operation_signing_strategy: operation_signing_strategy,
|
703
|
+
body: post_body,
|
704
|
+
return_type: 'OCI::Database::Models::Patch'
|
705
|
+
)
|
558
706
|
end
|
707
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
708
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
709
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
710
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
711
|
+
|
712
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
713
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
714
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
715
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
716
|
+
|
559
717
|
|
560
718
|
# Gets the patch history details for the specified patchHistoryEntryId
|
561
|
-
#
|
719
|
+
#
|
562
720
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
563
721
|
# @param [String] patch_history_entry_id The OCID of the patch history entry.
|
564
722
|
# @param [Hash] opts the optional parameters
|
565
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::PatchHistoryEntry
|
723
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::PatchHistoryEntry PatchHistoryEntry}
|
566
724
|
def get_db_home_patch_history_entry(db_home_id, patch_history_entry_id, opts = {})
|
567
|
-
logger.debug
|
725
|
+
logger.debug 'Calling operation DatabaseClient#get_db_home_patch_history_entry.' if logger
|
568
726
|
|
569
727
|
raise "Missing the required parameter 'db_home_id' when calling get_db_home_patch_history_entry." if db_home_id.nil?
|
570
728
|
raise "Missing the required parameter 'patch_history_entry_id' when calling get_db_home_patch_history_entry." if patch_history_entry_id.nil?
|
571
|
-
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util
|
572
|
-
raise "Parameter value for 'patch_history_entry_id' must not be blank" if OCI::Internal::Util
|
729
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
730
|
+
raise "Parameter value for 'patch_history_entry_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_history_entry_id)
|
573
731
|
|
574
|
-
path =
|
732
|
+
path = '/dbHomes/{dbHomeId}/patchHistoryEntries/{patchHistoryEntryId}'.sub('{dbHomeId}', db_home_id.to_s).sub('{patchHistoryEntryId}', patch_history_entry_id.to_s)
|
733
|
+
operation_signing_strategy = :standard
|
575
734
|
|
576
735
|
# Query Params
|
577
736
|
query_params = {}
|
@@ -583,27 +742,40 @@ module OCI
|
|
583
742
|
|
584
743
|
post_body = nil
|
585
744
|
|
586
|
-
|
745
|
+
@api_client.call_api(
|
587
746
|
:GET,
|
588
747
|
path,
|
589
748
|
endpoint,
|
590
|
-
:
|
591
|
-
:
|
592
|
-
:
|
593
|
-
:
|
749
|
+
header_params: header_params,
|
750
|
+
query_params: query_params,
|
751
|
+
operation_signing_strategy: operation_signing_strategy,
|
752
|
+
body: post_body,
|
753
|
+
return_type: 'OCI::Database::Models::PatchHistoryEntry'
|
754
|
+
)
|
594
755
|
end
|
756
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
757
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
758
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
759
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
760
|
+
|
761
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
762
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
763
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
764
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
765
|
+
|
595
766
|
|
596
767
|
# Gets information about the specified database node.
|
597
768
|
# @param [String] db_node_id The database node [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
598
769
|
# @param [Hash] opts the optional parameters
|
599
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DbNode
|
770
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbNode DbNode}
|
600
771
|
def get_db_node(db_node_id, opts = {})
|
601
|
-
logger.debug
|
772
|
+
logger.debug 'Calling operation DatabaseClient#get_db_node.' if logger
|
602
773
|
|
603
774
|
raise "Missing the required parameter 'db_node_id' when calling get_db_node." if db_node_id.nil?
|
604
|
-
raise "Parameter value for 'db_node_id' must not be blank" if OCI::Internal::Util
|
775
|
+
raise "Parameter value for 'db_node_id' must not be blank" if OCI::Internal::Util.blank_string?(db_node_id)
|
605
776
|
|
606
|
-
path =
|
777
|
+
path = '/dbNodes/{dbNodeId}'.sub('{dbNodeId}', db_node_id.to_s)
|
778
|
+
operation_signing_strategy = :standard
|
607
779
|
|
608
780
|
# Query Params
|
609
781
|
query_params = {}
|
@@ -615,27 +787,40 @@ module OCI
|
|
615
787
|
|
616
788
|
post_body = nil
|
617
789
|
|
618
|
-
|
790
|
+
@api_client.call_api(
|
619
791
|
:GET,
|
620
792
|
path,
|
621
793
|
endpoint,
|
622
|
-
:
|
623
|
-
:
|
624
|
-
:
|
625
|
-
:
|
794
|
+
header_params: header_params,
|
795
|
+
query_params: query_params,
|
796
|
+
operation_signing_strategy: operation_signing_strategy,
|
797
|
+
body: post_body,
|
798
|
+
return_type: 'OCI::Database::Models::DbNode'
|
799
|
+
)
|
626
800
|
end
|
801
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
802
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
803
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
804
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
805
|
+
|
806
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
807
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
808
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
809
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
810
|
+
|
627
811
|
|
628
812
|
# Gets information about the specified DB System.
|
629
813
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
630
814
|
# @param [Hash] opts the optional parameters
|
631
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DbSystem
|
815
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbSystem DbSystem}
|
632
816
|
def get_db_system(db_system_id, opts = {})
|
633
|
-
logger.debug
|
817
|
+
logger.debug 'Calling operation DatabaseClient#get_db_system.' if logger
|
634
818
|
|
635
819
|
raise "Missing the required parameter 'db_system_id' when calling get_db_system." if db_system_id.nil?
|
636
|
-
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util
|
820
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
637
821
|
|
638
|
-
path =
|
822
|
+
path = '/dbSystems/{dbSystemId}'.sub('{dbSystemId}', db_system_id.to_s)
|
823
|
+
operation_signing_strategy = :standard
|
639
824
|
|
640
825
|
# Query Params
|
641
826
|
query_params = {}
|
@@ -647,31 +832,44 @@ module OCI
|
|
647
832
|
|
648
833
|
post_body = nil
|
649
834
|
|
650
|
-
|
835
|
+
@api_client.call_api(
|
651
836
|
:GET,
|
652
837
|
path,
|
653
838
|
endpoint,
|
654
|
-
:
|
655
|
-
:
|
656
|
-
:
|
657
|
-
:
|
839
|
+
header_params: header_params,
|
840
|
+
query_params: query_params,
|
841
|
+
operation_signing_strategy: operation_signing_strategy,
|
842
|
+
body: post_body,
|
843
|
+
return_type: 'OCI::Database::Models::DbSystem'
|
844
|
+
)
|
658
845
|
end
|
846
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
847
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
848
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
849
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
850
|
+
|
851
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
852
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
853
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
854
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
855
|
+
|
659
856
|
|
660
857
|
# Gets information about a specified patch package.
|
661
|
-
#
|
858
|
+
#
|
662
859
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
663
860
|
# @param [String] patch_id The OCID of the patch.
|
664
861
|
# @param [Hash] opts the optional parameters
|
665
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::Patch
|
862
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Patch Patch}
|
666
863
|
def get_db_system_patch(db_system_id, patch_id, opts = {})
|
667
|
-
logger.debug
|
864
|
+
logger.debug 'Calling operation DatabaseClient#get_db_system_patch.' if logger
|
668
865
|
|
669
866
|
raise "Missing the required parameter 'db_system_id' when calling get_db_system_patch." if db_system_id.nil?
|
670
867
|
raise "Missing the required parameter 'patch_id' when calling get_db_system_patch." if patch_id.nil?
|
671
|
-
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util
|
672
|
-
raise "Parameter value for 'patch_id' must not be blank" if OCI::Internal::Util
|
868
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
869
|
+
raise "Parameter value for 'patch_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_id)
|
673
870
|
|
674
|
-
path =
|
871
|
+
path = '/dbSystems/{dbSystemId}/patches/{patchId}'.sub('{dbSystemId}', db_system_id.to_s).sub('{patchId}', patch_id.to_s)
|
872
|
+
operation_signing_strategy = :standard
|
675
873
|
|
676
874
|
# Query Params
|
677
875
|
query_params = {}
|
@@ -683,31 +881,44 @@ module OCI
|
|
683
881
|
|
684
882
|
post_body = nil
|
685
883
|
|
686
|
-
|
884
|
+
@api_client.call_api(
|
687
885
|
:GET,
|
688
886
|
path,
|
689
887
|
endpoint,
|
690
|
-
:
|
691
|
-
:
|
692
|
-
:
|
693
|
-
:
|
888
|
+
header_params: header_params,
|
889
|
+
query_params: query_params,
|
890
|
+
operation_signing_strategy: operation_signing_strategy,
|
891
|
+
body: post_body,
|
892
|
+
return_type: 'OCI::Database::Models::Patch'
|
893
|
+
)
|
694
894
|
end
|
895
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
896
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
897
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
898
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
899
|
+
|
900
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
901
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
902
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
903
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
904
|
+
|
695
905
|
|
696
906
|
# Gets the patch history details for the specified patchHistoryEntryId.
|
697
|
-
#
|
907
|
+
#
|
698
908
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
699
909
|
# @param [String] patch_history_entry_id The OCID of the patch history entry.
|
700
910
|
# @param [Hash] opts the optional parameters
|
701
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::PatchHistoryEntry
|
911
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::PatchHistoryEntry PatchHistoryEntry}
|
702
912
|
def get_db_system_patch_history_entry(db_system_id, patch_history_entry_id, opts = {})
|
703
|
-
logger.debug
|
913
|
+
logger.debug 'Calling operation DatabaseClient#get_db_system_patch_history_entry.' if logger
|
704
914
|
|
705
915
|
raise "Missing the required parameter 'db_system_id' when calling get_db_system_patch_history_entry." if db_system_id.nil?
|
706
916
|
raise "Missing the required parameter 'patch_history_entry_id' when calling get_db_system_patch_history_entry." if patch_history_entry_id.nil?
|
707
|
-
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util
|
708
|
-
raise "Parameter value for 'patch_history_entry_id' must not be blank" if OCI::Internal::Util
|
917
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
918
|
+
raise "Parameter value for 'patch_history_entry_id' must not be blank" if OCI::Internal::Util.blank_string?(patch_history_entry_id)
|
709
919
|
|
710
|
-
path =
|
920
|
+
path = '/dbSystems/{dbSystemId}/patchHistoryEntries/{patchHistoryEntryId}'.sub('{dbSystemId}', db_system_id.to_s).sub('{patchHistoryEntryId}', patch_history_entry_id.to_s)
|
921
|
+
operation_signing_strategy = :standard
|
711
922
|
|
712
923
|
# Query Params
|
713
924
|
query_params = {}
|
@@ -719,42 +930,54 @@ module OCI
|
|
719
930
|
|
720
931
|
post_body = nil
|
721
932
|
|
722
|
-
|
933
|
+
@api_client.call_api(
|
723
934
|
:GET,
|
724
935
|
path,
|
725
936
|
endpoint,
|
726
|
-
:
|
727
|
-
:
|
728
|
-
:
|
729
|
-
:
|
937
|
+
header_params: header_params,
|
938
|
+
query_params: query_params,
|
939
|
+
operation_signing_strategy: operation_signing_strategy,
|
940
|
+
body: post_body,
|
941
|
+
return_type: 'OCI::Database::Models::PatchHistoryEntry'
|
942
|
+
)
|
730
943
|
end
|
944
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
945
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
946
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
947
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
948
|
+
|
949
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
950
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
951
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
952
|
+
|
731
953
|
|
732
954
|
# Launches a new DB System in the specified compartment and Availability Domain. You'll specify a single Oracle
|
733
955
|
# Database Edition that applies to all the databases on that DB System. The selected edition cannot be changed.
|
734
|
-
#
|
956
|
+
#
|
735
957
|
# An initial database is created on the DB System based on the request parameters you provide and some default
|
736
958
|
# options. For more information,
|
737
959
|
# see [Default Options for the Initial Database](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Tasks/launchingDB.htm#Default_Options_for_the_Initial_Database).
|
738
|
-
#
|
960
|
+
#
|
739
961
|
# The DB System will include a command line interface (CLI) that you can use to create additional databases and
|
740
962
|
# manage existing databases. For more information, see the
|
741
963
|
# [Oracle Database CLI Reference](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/References/odacli.htm#Oracle_Database_CLI_Reference).
|
742
|
-
#
|
743
|
-
# @param [LaunchDbSystemDetails] launch_db_system_details Request to launch a DB System.
|
964
|
+
#
|
965
|
+
# @param [OCI::Database::Models::LaunchDbSystemDetails] launch_db_system_details Request to launch a DB System.
|
744
966
|
# @param [Hash] opts the optional parameters
|
745
967
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
746
968
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
747
969
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
748
970
|
# has been deleted and purged from the system, then a retry of the original creation request
|
749
971
|
# may be rejected).
|
750
|
-
#
|
751
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DbSystem
|
972
|
+
#
|
973
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbSystem DbSystem}
|
752
974
|
def launch_db_system(launch_db_system_details, opts = {})
|
753
|
-
logger.debug
|
975
|
+
logger.debug 'Calling operation DatabaseClient#launch_db_system.' if logger
|
754
976
|
|
755
977
|
raise "Missing the required parameter 'launch_db_system_details' when calling launch_db_system." if launch_db_system_details.nil?
|
756
978
|
|
757
|
-
path =
|
979
|
+
path = '/dbSystems'
|
980
|
+
operation_signing_strategy = :standard
|
758
981
|
|
759
982
|
# Query Params
|
760
983
|
query_params = {}
|
@@ -763,40 +986,51 @@ module OCI
|
|
763
986
|
header_params = {}
|
764
987
|
header_params['accept'] = 'application/json'
|
765
988
|
header_params['content-type'] = 'application/json'
|
766
|
-
header_params[:'opc-retry-token'] = opts[:
|
989
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
767
990
|
|
768
991
|
post_body = @api_client.object_to_http_body(launch_db_system_details)
|
769
992
|
|
770
|
-
|
993
|
+
@api_client.call_api(
|
771
994
|
:POST,
|
772
995
|
path,
|
773
996
|
endpoint,
|
774
|
-
:
|
775
|
-
:
|
776
|
-
:
|
777
|
-
:
|
997
|
+
header_params: header_params,
|
998
|
+
query_params: query_params,
|
999
|
+
operation_signing_strategy: operation_signing_strategy,
|
1000
|
+
body: post_body,
|
1001
|
+
return_type: 'OCI::Database::Models::DbSystem'
|
1002
|
+
)
|
778
1003
|
end
|
1004
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1005
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1006
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1007
|
+
|
1008
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1009
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1010
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1011
|
+
|
779
1012
|
|
780
1013
|
# Gets a list of backups based on the databaseId or compartmentId specified. Either one of the query parameters must be provided.
|
781
|
-
#
|
1014
|
+
#
|
782
1015
|
# @param [Hash] opts the optional parameters
|
783
1016
|
# @option opts [String] :database_id The OCID of the database.
|
784
1017
|
# @option opts [String] :compartment_id The compartment OCID.
|
785
1018
|
# @option opts [Integer] :limit The maximum number of items to return.
|
786
1019
|
# @option opts [String] :page The pagination token to continue listing from.
|
787
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::BackupSummary>
|
1020
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::BackupSummary BackupSummary}>
|
788
1021
|
def list_backups(opts = {})
|
789
|
-
logger.debug
|
1022
|
+
logger.debug 'Calling operation DatabaseClient#list_backups.' if logger
|
790
1023
|
|
791
1024
|
|
792
|
-
path =
|
1025
|
+
path = '/backups'
|
1026
|
+
operation_signing_strategy = :standard
|
793
1027
|
|
794
1028
|
# Query Params
|
795
1029
|
query_params = {}
|
796
|
-
query_params[:
|
797
|
-
query_params[:
|
798
|
-
query_params[:
|
799
|
-
query_params[:
|
1030
|
+
query_params[:databaseId] = opts[:database_id] if opts[:database_id]
|
1031
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
1032
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1033
|
+
query_params[:page] = opts[:page] if opts[:page]
|
800
1034
|
|
801
1035
|
# Header Params
|
802
1036
|
header_params = {}
|
@@ -805,35 +1039,46 @@ module OCI
|
|
805
1039
|
|
806
1040
|
post_body = nil
|
807
1041
|
|
808
|
-
|
1042
|
+
@api_client.call_api(
|
809
1043
|
:GET,
|
810
1044
|
path,
|
811
1045
|
endpoint,
|
812
|
-
:
|
813
|
-
:
|
814
|
-
:
|
815
|
-
:
|
1046
|
+
header_params: header_params,
|
1047
|
+
query_params: query_params,
|
1048
|
+
operation_signing_strategy: operation_signing_strategy,
|
1049
|
+
body: post_body,
|
1050
|
+
return_type: 'Array<OCI::Database::Models::BackupSummary>'
|
1051
|
+
)
|
816
1052
|
end
|
1053
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1054
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1055
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1056
|
+
|
1057
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1058
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1059
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1060
|
+
|
817
1061
|
|
818
1062
|
# Lists all Data Guard associations for the specified database.
|
819
|
-
#
|
1063
|
+
#
|
820
1064
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
821
1065
|
# @param [Hash] opts the optional parameters
|
822
1066
|
# @option opts [Integer] :limit The maximum number of items to return.
|
823
1067
|
# @option opts [String] :page The pagination token to continue listing from.
|
824
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::DataGuardAssociationSummary>
|
1068
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DataGuardAssociationSummary DataGuardAssociationSummary}>
|
825
1069
|
def list_data_guard_associations(database_id, opts = {})
|
826
|
-
logger.debug
|
1070
|
+
logger.debug 'Calling operation DatabaseClient#list_data_guard_associations.' if logger
|
827
1071
|
|
828
1072
|
raise "Missing the required parameter 'database_id' when calling list_data_guard_associations." if database_id.nil?
|
829
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util
|
1073
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
830
1074
|
|
831
|
-
path =
|
1075
|
+
path = '/databases/{databaseId}/dataGuardAssociations'.sub('{databaseId}', database_id.to_s)
|
1076
|
+
operation_signing_strategy = :standard
|
832
1077
|
|
833
1078
|
# Query Params
|
834
1079
|
query_params = {}
|
835
|
-
query_params[:
|
836
|
-
query_params[:
|
1080
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1081
|
+
query_params[:page] = opts[:page] if opts[:page]
|
837
1082
|
|
838
1083
|
# Header Params
|
839
1084
|
header_params = {}
|
@@ -842,38 +1087,49 @@ module OCI
|
|
842
1087
|
|
843
1088
|
post_body = nil
|
844
1089
|
|
845
|
-
|
1090
|
+
@api_client.call_api(
|
846
1091
|
:GET,
|
847
1092
|
path,
|
848
1093
|
endpoint,
|
849
|
-
:
|
850
|
-
:
|
851
|
-
:
|
852
|
-
:
|
1094
|
+
header_params: header_params,
|
1095
|
+
query_params: query_params,
|
1096
|
+
operation_signing_strategy: operation_signing_strategy,
|
1097
|
+
body: post_body,
|
1098
|
+
return_type: 'Array<OCI::Database::Models::DataGuardAssociationSummary>'
|
1099
|
+
)
|
853
1100
|
end
|
1101
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1102
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1103
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1104
|
+
|
1105
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1106
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1107
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1108
|
+
|
854
1109
|
|
855
1110
|
# Gets a list of the databases in the specified database home.
|
856
|
-
#
|
1111
|
+
#
|
857
1112
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
858
1113
|
# @param [String] db_home_id A database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
859
1114
|
# @param [Hash] opts the optional parameters
|
860
1115
|
# @option opts [Integer] :limit The maximum number of items to return.
|
861
1116
|
# @option opts [String] :page The pagination token to continue listing from.
|
862
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::DatabaseSummary>
|
1117
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DatabaseSummary DatabaseSummary}>
|
863
1118
|
def list_databases(compartment_id, db_home_id, opts = {})
|
864
|
-
logger.debug
|
1119
|
+
logger.debug 'Calling operation DatabaseClient#list_databases.' if logger
|
865
1120
|
|
866
1121
|
raise "Missing the required parameter 'compartment_id' when calling list_databases." if compartment_id.nil?
|
867
1122
|
raise "Missing the required parameter 'db_home_id' when calling list_databases." if db_home_id.nil?
|
868
1123
|
|
869
|
-
path =
|
1124
|
+
path = '/databases'
|
1125
|
+
operation_signing_strategy = :standard
|
870
1126
|
|
871
1127
|
# Query Params
|
872
1128
|
query_params = {}
|
873
|
-
query_params[:
|
874
|
-
query_params[:
|
875
|
-
query_params[:
|
876
|
-
query_params[:
|
1129
|
+
query_params[:compartmentId] = compartment_id
|
1130
|
+
query_params[:dbHomeId] = db_home_id
|
1131
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1132
|
+
query_params[:page] = opts[:page] if opts[:page]
|
877
1133
|
|
878
1134
|
# Header Params
|
879
1135
|
header_params = {}
|
@@ -882,35 +1138,46 @@ module OCI
|
|
882
1138
|
|
883
1139
|
post_body = nil
|
884
1140
|
|
885
|
-
|
1141
|
+
@api_client.call_api(
|
886
1142
|
:GET,
|
887
1143
|
path,
|
888
1144
|
endpoint,
|
889
|
-
:
|
890
|
-
:
|
891
|
-
:
|
892
|
-
:
|
1145
|
+
header_params: header_params,
|
1146
|
+
query_params: query_params,
|
1147
|
+
operation_signing_strategy: operation_signing_strategy,
|
1148
|
+
body: post_body,
|
1149
|
+
return_type: 'Array<OCI::Database::Models::DatabaseSummary>'
|
1150
|
+
)
|
893
1151
|
end
|
1152
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1153
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1154
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1155
|
+
|
1156
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1157
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1158
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1159
|
+
|
894
1160
|
|
895
1161
|
# Gets history of the actions taken for patches for the specified database home.
|
896
|
-
#
|
1162
|
+
#
|
897
1163
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
898
1164
|
# @param [Hash] opts the optional parameters
|
899
1165
|
# @option opts [Integer] :limit The maximum number of items to return.
|
900
1166
|
# @option opts [String] :page The pagination token to continue listing from.
|
901
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::PatchHistoryEntrySummary>
|
1167
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchHistoryEntrySummary PatchHistoryEntrySummary}>
|
902
1168
|
def list_db_home_patch_history_entries(db_home_id, opts = {})
|
903
|
-
logger.debug
|
1169
|
+
logger.debug 'Calling operation DatabaseClient#list_db_home_patch_history_entries.' if logger
|
904
1170
|
|
905
1171
|
raise "Missing the required parameter 'db_home_id' when calling list_db_home_patch_history_entries." if db_home_id.nil?
|
906
|
-
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util
|
1172
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
907
1173
|
|
908
|
-
path =
|
1174
|
+
path = '/dbHomes/{dbHomeId}/patchHistoryEntries'.sub('{dbHomeId}', db_home_id.to_s)
|
1175
|
+
operation_signing_strategy = :standard
|
909
1176
|
|
910
1177
|
# Query Params
|
911
1178
|
query_params = {}
|
912
|
-
query_params[:
|
913
|
-
query_params[:
|
1179
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1180
|
+
query_params[:page] = opts[:page] if opts[:page]
|
914
1181
|
|
915
1182
|
# Header Params
|
916
1183
|
header_params = {}
|
@@ -919,35 +1186,46 @@ module OCI
|
|
919
1186
|
|
920
1187
|
post_body = nil
|
921
1188
|
|
922
|
-
|
1189
|
+
@api_client.call_api(
|
923
1190
|
:GET,
|
924
1191
|
path,
|
925
1192
|
endpoint,
|
926
|
-
:
|
927
|
-
:
|
928
|
-
:
|
929
|
-
:
|
1193
|
+
header_params: header_params,
|
1194
|
+
query_params: query_params,
|
1195
|
+
operation_signing_strategy: operation_signing_strategy,
|
1196
|
+
body: post_body,
|
1197
|
+
return_type: 'Array<OCI::Database::Models::PatchHistoryEntrySummary>'
|
1198
|
+
)
|
930
1199
|
end
|
1200
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1201
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1202
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1203
|
+
|
1204
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1205
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1206
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1207
|
+
|
931
1208
|
|
932
1209
|
# Lists patches applicable to the requested database home.
|
933
|
-
#
|
1210
|
+
#
|
934
1211
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
935
1212
|
# @param [Hash] opts the optional parameters
|
936
1213
|
# @option opts [Integer] :limit The maximum number of items to return.
|
937
1214
|
# @option opts [String] :page The pagination token to continue listing from.
|
938
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::PatchSummary>
|
1215
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchSummary PatchSummary}>
|
939
1216
|
def list_db_home_patches(db_home_id, opts = {})
|
940
|
-
logger.debug
|
1217
|
+
logger.debug 'Calling operation DatabaseClient#list_db_home_patches.' if logger
|
941
1218
|
|
942
1219
|
raise "Missing the required parameter 'db_home_id' when calling list_db_home_patches." if db_home_id.nil?
|
943
|
-
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util
|
1220
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
944
1221
|
|
945
|
-
path =
|
1222
|
+
path = '/dbHomes/{dbHomeId}/patches'.sub('{dbHomeId}', db_home_id.to_s)
|
1223
|
+
operation_signing_strategy = :standard
|
946
1224
|
|
947
1225
|
# Query Params
|
948
1226
|
query_params = {}
|
949
|
-
query_params[:
|
950
|
-
query_params[:
|
1227
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1228
|
+
query_params[:page] = opts[:page] if opts[:page]
|
951
1229
|
|
952
1230
|
# Header Params
|
953
1231
|
header_params = {}
|
@@ -956,38 +1234,49 @@ module OCI
|
|
956
1234
|
|
957
1235
|
post_body = nil
|
958
1236
|
|
959
|
-
|
1237
|
+
@api_client.call_api(
|
960
1238
|
:GET,
|
961
1239
|
path,
|
962
1240
|
endpoint,
|
963
|
-
:
|
964
|
-
:
|
965
|
-
:
|
966
|
-
:
|
1241
|
+
header_params: header_params,
|
1242
|
+
query_params: query_params,
|
1243
|
+
operation_signing_strategy: operation_signing_strategy,
|
1244
|
+
body: post_body,
|
1245
|
+
return_type: 'Array<OCI::Database::Models::PatchSummary>'
|
1246
|
+
)
|
967
1247
|
end
|
1248
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1249
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1250
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1251
|
+
|
1252
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1253
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1254
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1255
|
+
|
968
1256
|
|
969
1257
|
# Gets a list of database homes in the specified DB System and compartment. A database home is a directory where Oracle database software is installed.
|
970
|
-
#
|
1258
|
+
#
|
971
1259
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
972
1260
|
# @param [String] db_system_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System.
|
973
1261
|
# @param [Hash] opts the optional parameters
|
974
1262
|
# @option opts [Integer] :limit The maximum number of items to return.
|
975
1263
|
# @option opts [String] :page The pagination token to continue listing from.
|
976
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::DbHomeSummary>
|
1264
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbHomeSummary DbHomeSummary}>
|
977
1265
|
def list_db_homes(compartment_id, db_system_id, opts = {})
|
978
|
-
logger.debug
|
1266
|
+
logger.debug 'Calling operation DatabaseClient#list_db_homes.' if logger
|
979
1267
|
|
980
1268
|
raise "Missing the required parameter 'compartment_id' when calling list_db_homes." if compartment_id.nil?
|
981
1269
|
raise "Missing the required parameter 'db_system_id' when calling list_db_homes." if db_system_id.nil?
|
982
1270
|
|
983
|
-
path =
|
1271
|
+
path = '/dbHomes'
|
1272
|
+
operation_signing_strategy = :standard
|
984
1273
|
|
985
1274
|
# Query Params
|
986
1275
|
query_params = {}
|
987
|
-
query_params[:
|
988
|
-
query_params[:
|
989
|
-
query_params[:
|
990
|
-
query_params[:
|
1276
|
+
query_params[:compartmentId] = compartment_id
|
1277
|
+
query_params[:dbSystemId] = db_system_id
|
1278
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1279
|
+
query_params[:page] = opts[:page] if opts[:page]
|
991
1280
|
|
992
1281
|
# Header Params
|
993
1282
|
header_params = {}
|
@@ -996,38 +1285,49 @@ module OCI
|
|
996
1285
|
|
997
1286
|
post_body = nil
|
998
1287
|
|
999
|
-
|
1288
|
+
@api_client.call_api(
|
1000
1289
|
:GET,
|
1001
1290
|
path,
|
1002
1291
|
endpoint,
|
1003
|
-
:
|
1004
|
-
:
|
1005
|
-
:
|
1006
|
-
:
|
1292
|
+
header_params: header_params,
|
1293
|
+
query_params: query_params,
|
1294
|
+
operation_signing_strategy: operation_signing_strategy,
|
1295
|
+
body: post_body,
|
1296
|
+
return_type: 'Array<OCI::Database::Models::DbHomeSummary>'
|
1297
|
+
)
|
1007
1298
|
end
|
1299
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1300
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1301
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1302
|
+
|
1303
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1304
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1305
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1306
|
+
|
1008
1307
|
|
1009
1308
|
# Gets a list of database nodes in the specified DB System and compartment. A database node is a server running database software.
|
1010
|
-
#
|
1309
|
+
#
|
1011
1310
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1012
1311
|
# @param [String] db_system_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System.
|
1013
1312
|
# @param [Hash] opts the optional parameters
|
1014
1313
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1015
1314
|
# @option opts [String] :page The pagination token to continue listing from.
|
1016
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::DbNodeSummary>
|
1315
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbNodeSummary DbNodeSummary}>
|
1017
1316
|
def list_db_nodes(compartment_id, db_system_id, opts = {})
|
1018
|
-
logger.debug
|
1317
|
+
logger.debug 'Calling operation DatabaseClient#list_db_nodes.' if logger
|
1019
1318
|
|
1020
1319
|
raise "Missing the required parameter 'compartment_id' when calling list_db_nodes." if compartment_id.nil?
|
1021
1320
|
raise "Missing the required parameter 'db_system_id' when calling list_db_nodes." if db_system_id.nil?
|
1022
1321
|
|
1023
|
-
path =
|
1322
|
+
path = '/dbNodes'
|
1323
|
+
operation_signing_strategy = :standard
|
1024
1324
|
|
1025
1325
|
# Query Params
|
1026
1326
|
query_params = {}
|
1027
|
-
query_params[:
|
1028
|
-
query_params[:
|
1029
|
-
query_params[:
|
1030
|
-
query_params[:
|
1327
|
+
query_params[:compartmentId] = compartment_id
|
1328
|
+
query_params[:dbSystemId] = db_system_id
|
1329
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1330
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1031
1331
|
|
1032
1332
|
# Header Params
|
1033
1333
|
header_params = {}
|
@@ -1036,35 +1336,46 @@ module OCI
|
|
1036
1336
|
|
1037
1337
|
post_body = nil
|
1038
1338
|
|
1039
|
-
|
1339
|
+
@api_client.call_api(
|
1040
1340
|
:GET,
|
1041
1341
|
path,
|
1042
1342
|
endpoint,
|
1043
|
-
:
|
1044
|
-
:
|
1045
|
-
:
|
1046
|
-
:
|
1343
|
+
header_params: header_params,
|
1344
|
+
query_params: query_params,
|
1345
|
+
operation_signing_strategy: operation_signing_strategy,
|
1346
|
+
body: post_body,
|
1347
|
+
return_type: 'Array<OCI::Database::Models::DbNodeSummary>'
|
1348
|
+
)
|
1047
1349
|
end
|
1350
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1351
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1352
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1353
|
+
|
1354
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1355
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1356
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1357
|
+
|
1048
1358
|
|
1049
1359
|
# Gets the history of the patch actions performed on the specified DB System.
|
1050
|
-
#
|
1360
|
+
#
|
1051
1361
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1052
1362
|
# @param [Hash] opts the optional parameters
|
1053
1363
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1054
1364
|
# @option opts [String] :page The pagination token to continue listing from.
|
1055
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::PatchHistoryEntrySummary>
|
1365
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchHistoryEntrySummary PatchHistoryEntrySummary}>
|
1056
1366
|
def list_db_system_patch_history_entries(db_system_id, opts = {})
|
1057
|
-
logger.debug
|
1367
|
+
logger.debug 'Calling operation DatabaseClient#list_db_system_patch_history_entries.' if logger
|
1058
1368
|
|
1059
1369
|
raise "Missing the required parameter 'db_system_id' when calling list_db_system_patch_history_entries." if db_system_id.nil?
|
1060
|
-
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util
|
1370
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1061
1371
|
|
1062
|
-
path =
|
1372
|
+
path = '/dbSystems/{dbSystemId}/patchHistoryEntries'.sub('{dbSystemId}', db_system_id.to_s)
|
1373
|
+
operation_signing_strategy = :standard
|
1063
1374
|
|
1064
1375
|
# Query Params
|
1065
1376
|
query_params = {}
|
1066
|
-
query_params[:
|
1067
|
-
query_params[:
|
1377
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1378
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1068
1379
|
|
1069
1380
|
# Header Params
|
1070
1381
|
header_params = {}
|
@@ -1073,35 +1384,46 @@ module OCI
|
|
1073
1384
|
|
1074
1385
|
post_body = nil
|
1075
1386
|
|
1076
|
-
|
1387
|
+
@api_client.call_api(
|
1077
1388
|
:GET,
|
1078
1389
|
path,
|
1079
1390
|
endpoint,
|
1080
|
-
:
|
1081
|
-
:
|
1082
|
-
:
|
1083
|
-
:
|
1391
|
+
header_params: header_params,
|
1392
|
+
query_params: query_params,
|
1393
|
+
operation_signing_strategy: operation_signing_strategy,
|
1394
|
+
body: post_body,
|
1395
|
+
return_type: 'Array<OCI::Database::Models::PatchHistoryEntrySummary>'
|
1396
|
+
)
|
1084
1397
|
end
|
1398
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1399
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1400
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1401
|
+
|
1402
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1403
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1404
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1405
|
+
|
1085
1406
|
|
1086
1407
|
# Lists the patches applicable to the requested DB System.
|
1087
|
-
#
|
1408
|
+
#
|
1088
1409
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1089
1410
|
# @param [Hash] opts the optional parameters
|
1090
1411
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1091
1412
|
# @option opts [String] :page The pagination token to continue listing from.
|
1092
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::PatchSummary>
|
1413
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchSummary PatchSummary}>
|
1093
1414
|
def list_db_system_patches(db_system_id, opts = {})
|
1094
|
-
logger.debug
|
1415
|
+
logger.debug 'Calling operation DatabaseClient#list_db_system_patches.' if logger
|
1095
1416
|
|
1096
1417
|
raise "Missing the required parameter 'db_system_id' when calling list_db_system_patches." if db_system_id.nil?
|
1097
|
-
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util
|
1418
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1098
1419
|
|
1099
|
-
path =
|
1420
|
+
path = '/dbSystems/{dbSystemId}/patches'.sub('{dbSystemId}', db_system_id.to_s)
|
1421
|
+
operation_signing_strategy = :standard
|
1100
1422
|
|
1101
1423
|
# Query Params
|
1102
1424
|
query_params = {}
|
1103
|
-
query_params[:
|
1104
|
-
query_params[:
|
1425
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1426
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1105
1427
|
|
1106
1428
|
# Header Params
|
1107
1429
|
header_params = {}
|
@@ -1110,15 +1432,25 @@ module OCI
|
|
1110
1432
|
|
1111
1433
|
post_body = nil
|
1112
1434
|
|
1113
|
-
|
1435
|
+
@api_client.call_api(
|
1114
1436
|
:GET,
|
1115
1437
|
path,
|
1116
1438
|
endpoint,
|
1117
|
-
:
|
1118
|
-
:
|
1119
|
-
:
|
1120
|
-
:
|
1439
|
+
header_params: header_params,
|
1440
|
+
query_params: query_params,
|
1441
|
+
operation_signing_strategy: operation_signing_strategy,
|
1442
|
+
body: post_body,
|
1443
|
+
return_type: 'Array<OCI::Database::Models::PatchSummary>'
|
1444
|
+
)
|
1121
1445
|
end
|
1446
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1447
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1448
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1449
|
+
|
1450
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1451
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1452
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1453
|
+
|
1122
1454
|
|
1123
1455
|
# Gets a list of the shapes that can be used to launch a new DB System. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes.
|
1124
1456
|
# @param [String] availability_domain The name of the Availability Domain.
|
@@ -1126,21 +1458,22 @@ module OCI
|
|
1126
1458
|
# @param [Hash] opts the optional parameters
|
1127
1459
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1128
1460
|
# @option opts [String] :page The pagination token to continue listing from.
|
1129
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::DbSystemShapeSummary>
|
1461
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbSystemShapeSummary DbSystemShapeSummary}>
|
1130
1462
|
def list_db_system_shapes(availability_domain, compartment_id, opts = {})
|
1131
|
-
logger.debug
|
1463
|
+
logger.debug 'Calling operation DatabaseClient#list_db_system_shapes.' if logger
|
1132
1464
|
|
1133
1465
|
raise "Missing the required parameter 'availability_domain' when calling list_db_system_shapes." if availability_domain.nil?
|
1134
1466
|
raise "Missing the required parameter 'compartment_id' when calling list_db_system_shapes." if compartment_id.nil?
|
1135
1467
|
|
1136
|
-
path =
|
1468
|
+
path = '/dbSystemShapes'
|
1469
|
+
operation_signing_strategy = :standard
|
1137
1470
|
|
1138
1471
|
# Query Params
|
1139
1472
|
query_params = {}
|
1140
|
-
query_params[:
|
1141
|
-
query_params[:
|
1142
|
-
query_params[:
|
1143
|
-
query_params[:
|
1473
|
+
query_params[:availabilityDomain] = availability_domain
|
1474
|
+
query_params[:compartmentId] = compartment_id
|
1475
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1476
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1144
1477
|
|
1145
1478
|
# Header Params
|
1146
1479
|
header_params = {}
|
@@ -1149,38 +1482,49 @@ module OCI
|
|
1149
1482
|
|
1150
1483
|
post_body = nil
|
1151
1484
|
|
1152
|
-
|
1485
|
+
@api_client.call_api(
|
1153
1486
|
:GET,
|
1154
1487
|
path,
|
1155
1488
|
endpoint,
|
1156
|
-
:
|
1157
|
-
:
|
1158
|
-
:
|
1159
|
-
:
|
1489
|
+
header_params: header_params,
|
1490
|
+
query_params: query_params,
|
1491
|
+
operation_signing_strategy: operation_signing_strategy,
|
1492
|
+
body: post_body,
|
1493
|
+
return_type: 'Array<OCI::Database::Models::DbSystemShapeSummary>'
|
1494
|
+
)
|
1160
1495
|
end
|
1496
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1497
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1498
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1499
|
+
|
1500
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1501
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1502
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1503
|
+
|
1161
1504
|
|
1162
1505
|
# Gets a list of the DB Systems in the specified compartment. You can specify a backupId to list only the DB Systems that support creating a database using this backup in this compartment.
|
1163
|
-
#
|
1164
|
-
#
|
1506
|
+
#
|
1507
|
+
#
|
1165
1508
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1166
1509
|
# @param [Hash] opts the optional parameters
|
1167
1510
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1168
1511
|
# @option opts [String] :page The pagination token to continue listing from.
|
1169
1512
|
# @option opts [String] :backup_id The OCID of the backup. Specify a backupId to list only the DB Systems that support creating a database using this backup in this compartment.
|
1170
|
-
# @return [Response] A Response object with data of type Array<OCI::Database::Models::DbSystemSummary>
|
1513
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbSystemSummary DbSystemSummary}>
|
1171
1514
|
def list_db_systems(compartment_id, opts = {})
|
1172
|
-
logger.debug
|
1515
|
+
logger.debug 'Calling operation DatabaseClient#list_db_systems.' if logger
|
1173
1516
|
|
1174
1517
|
raise "Missing the required parameter 'compartment_id' when calling list_db_systems." if compartment_id.nil?
|
1175
1518
|
|
1176
|
-
path =
|
1519
|
+
path = '/dbSystems'
|
1520
|
+
operation_signing_strategy = :standard
|
1177
1521
|
|
1178
1522
|
# Query Params
|
1179
1523
|
query_params = {}
|
1180
|
-
query_params[:
|
1181
|
-
query_params[:
|
1182
|
-
query_params[:
|
1183
|
-
query_params[:
|
1524
|
+
query_params[:compartmentId] = compartment_id
|
1525
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1526
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1527
|
+
query_params[:backupId] = opts[:backup_id] if opts[:backup_id]
|
1184
1528
|
|
1185
1529
|
# Header Params
|
1186
1530
|
header_params = {}
|
@@ -1189,15 +1533,25 @@ module OCI
|
|
1189
1533
|
|
1190
1534
|
post_body = nil
|
1191
1535
|
|
1192
|
-
|
1536
|
+
@api_client.call_api(
|
1193
1537
|
:GET,
|
1194
1538
|
path,
|
1195
1539
|
endpoint,
|
1196
|
-
:
|
1197
|
-
:
|
1198
|
-
:
|
1199
|
-
:
|
1540
|
+
header_params: header_params,
|
1541
|
+
query_params: query_params,
|
1542
|
+
operation_signing_strategy: operation_signing_strategy,
|
1543
|
+
body: post_body,
|
1544
|
+
return_type: 'Array<OCI::Database::Models::DbSystemSummary>'
|
1545
|
+
)
|
1200
1546
|
end
|
1547
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1548
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1549
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1550
|
+
|
1551
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1552
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1553
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1554
|
+
|
1201
1555
|
|
1202
1556
|
# Gets a list of supported Oracle database versions.
|
1203
1557
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
@@ -1205,20 +1559,23 @@ module OCI
|
|
1205
1559
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1206
1560
|
# @option opts [String] :page The pagination token to continue listing from.
|
1207
1561
|
# @option opts [String] :db_system_shape If provided, filters the results to the set of database versions which are supported for the given shape.
|
1208
|
-
# @
|
1562
|
+
# @option opts [String] :db_system_id The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
|
1563
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbVersionSummary DbVersionSummary}>
|
1209
1564
|
def list_db_versions(compartment_id, opts = {})
|
1210
|
-
logger.debug
|
1565
|
+
logger.debug 'Calling operation DatabaseClient#list_db_versions.' if logger
|
1211
1566
|
|
1212
1567
|
raise "Missing the required parameter 'compartment_id' when calling list_db_versions." if compartment_id.nil?
|
1213
1568
|
|
1214
|
-
path =
|
1569
|
+
path = '/dbVersions'
|
1570
|
+
operation_signing_strategy = :standard
|
1215
1571
|
|
1216
1572
|
# Query Params
|
1217
1573
|
query_params = {}
|
1218
|
-
query_params[:
|
1219
|
-
query_params[:
|
1220
|
-
query_params[:
|
1221
|
-
query_params[:
|
1574
|
+
query_params[:compartmentId] = compartment_id
|
1575
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1576
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1577
|
+
query_params[:dbSystemShape] = opts[:db_system_shape] if opts[:db_system_shape]
|
1578
|
+
query_params[:dbSystemId] = opts[:db_system_id] if opts[:db_system_id]
|
1222
1579
|
|
1223
1580
|
# Header Params
|
1224
1581
|
header_params = {}
|
@@ -1227,37 +1584,48 @@ module OCI
|
|
1227
1584
|
|
1228
1585
|
post_body = nil
|
1229
1586
|
|
1230
|
-
|
1587
|
+
@api_client.call_api(
|
1231
1588
|
:GET,
|
1232
1589
|
path,
|
1233
1590
|
endpoint,
|
1234
|
-
:
|
1235
|
-
:
|
1236
|
-
:
|
1237
|
-
:
|
1591
|
+
header_params: header_params,
|
1592
|
+
query_params: query_params,
|
1593
|
+
operation_signing_strategy: operation_signing_strategy,
|
1594
|
+
body: post_body,
|
1595
|
+
return_type: 'Array<OCI::Database::Models::DbVersionSummary>'
|
1596
|
+
)
|
1238
1597
|
end
|
1598
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1599
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1600
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1601
|
+
|
1602
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1603
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1604
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1605
|
+
|
1239
1606
|
|
1240
1607
|
# Reinstates the database identified by the `databaseId` parameter into the standby role in a Data Guard association.
|
1241
|
-
#
|
1608
|
+
#
|
1242
1609
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1243
1610
|
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1244
|
-
# @param [ReinstateDataGuardAssociationDetails] reinstate_data_guard_association_details A request to reinstate a database in a standby role.
|
1611
|
+
# @param [OCI::Database::Models::ReinstateDataGuardAssociationDetails] reinstate_data_guard_association_details A request to reinstate a database in a standby role.
|
1245
1612
|
# @param [Hash] opts the optional parameters
|
1246
1613
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1247
1614
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1248
1615
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1249
|
-
#
|
1250
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DataGuardAssociation
|
1616
|
+
#
|
1617
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
1251
1618
|
def reinstate_data_guard_association(database_id, data_guard_association_id, reinstate_data_guard_association_details, opts = {})
|
1252
|
-
logger.debug
|
1619
|
+
logger.debug 'Calling operation DatabaseClient#reinstate_data_guard_association.' if logger
|
1253
1620
|
|
1254
1621
|
raise "Missing the required parameter 'database_id' when calling reinstate_data_guard_association." if database_id.nil?
|
1255
1622
|
raise "Missing the required parameter 'data_guard_association_id' when calling reinstate_data_guard_association." if data_guard_association_id.nil?
|
1256
1623
|
raise "Missing the required parameter 'reinstate_data_guard_association_details' when calling reinstate_data_guard_association." if reinstate_data_guard_association_details.nil?
|
1257
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util
|
1258
|
-
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util
|
1624
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
1625
|
+
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
1259
1626
|
|
1260
|
-
path =
|
1627
|
+
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/reinstate'.sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
1628
|
+
operation_signing_strategy = :standard
|
1261
1629
|
|
1262
1630
|
# Query Params
|
1263
1631
|
query_params = {}
|
@@ -1266,38 +1634,49 @@ module OCI
|
|
1266
1634
|
header_params = {}
|
1267
1635
|
header_params['accept'] = 'application/json'
|
1268
1636
|
header_params['content-type'] = 'application/json'
|
1269
|
-
header_params[:'if-match'] = opts[:
|
1637
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1270
1638
|
|
1271
1639
|
post_body = @api_client.object_to_http_body(reinstate_data_guard_association_details)
|
1272
1640
|
|
1273
|
-
|
1641
|
+
@api_client.call_api(
|
1274
1642
|
:POST,
|
1275
1643
|
path,
|
1276
1644
|
endpoint,
|
1277
|
-
:
|
1278
|
-
:
|
1279
|
-
:
|
1280
|
-
:
|
1645
|
+
header_params: header_params,
|
1646
|
+
query_params: query_params,
|
1647
|
+
operation_signing_strategy: operation_signing_strategy,
|
1648
|
+
body: post_body,
|
1649
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
1650
|
+
)
|
1281
1651
|
end
|
1652
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1653
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1654
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1655
|
+
|
1656
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1657
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1658
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1659
|
+
|
1282
1660
|
|
1283
1661
|
# Restore a Database based on the request parameters you provide.
|
1284
|
-
#
|
1662
|
+
#
|
1285
1663
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1286
|
-
# @param [RestoreDatabaseDetails] restore_database_details Request to perform database restore.
|
1664
|
+
# @param [OCI::Database::Models::RestoreDatabaseDetails] restore_database_details Request to perform database restore.
|
1287
1665
|
# @param [Hash] opts the optional parameters
|
1288
1666
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1289
1667
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1290
1668
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1291
|
-
#
|
1292
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::Database
|
1669
|
+
#
|
1670
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Database Database}
|
1293
1671
|
def restore_database(database_id, restore_database_details, opts = {})
|
1294
|
-
logger.debug
|
1672
|
+
logger.debug 'Calling operation DatabaseClient#restore_database.' if logger
|
1295
1673
|
|
1296
1674
|
raise "Missing the required parameter 'database_id' when calling restore_database." if database_id.nil?
|
1297
1675
|
raise "Missing the required parameter 'restore_database_details' when calling restore_database." if restore_database_details.nil?
|
1298
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util
|
1676
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
1299
1677
|
|
1300
|
-
path =
|
1678
|
+
path = '/databases/{databaseId}/actions/restore'.sub('{databaseId}', database_id.to_s)
|
1679
|
+
operation_signing_strategy = :standard
|
1301
1680
|
|
1302
1681
|
# Query Params
|
1303
1682
|
query_params = {}
|
@@ -1306,44 +1685,55 @@ module OCI
|
|
1306
1685
|
header_params = {}
|
1307
1686
|
header_params['accept'] = 'application/json'
|
1308
1687
|
header_params['content-type'] = 'application/json'
|
1309
|
-
header_params[:'if-match'] = opts[:
|
1688
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1310
1689
|
|
1311
1690
|
post_body = @api_client.object_to_http_body(restore_database_details)
|
1312
1691
|
|
1313
|
-
|
1692
|
+
@api_client.call_api(
|
1314
1693
|
:POST,
|
1315
1694
|
path,
|
1316
1695
|
endpoint,
|
1317
|
-
:
|
1318
|
-
:
|
1319
|
-
:
|
1320
|
-
:
|
1696
|
+
header_params: header_params,
|
1697
|
+
query_params: query_params,
|
1698
|
+
operation_signing_strategy: operation_signing_strategy,
|
1699
|
+
body: post_body,
|
1700
|
+
return_type: 'OCI::Database::Models::Database'
|
1701
|
+
)
|
1321
1702
|
end
|
1703
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1704
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1705
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1706
|
+
|
1707
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1708
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1709
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1710
|
+
|
1322
1711
|
|
1323
1712
|
# Performs a switchover to transition the primary database of a Data Guard association into a standby role. The
|
1324
1713
|
# standby database associated with the `dataGuardAssociationId` assumes the primary database role.
|
1325
|
-
#
|
1714
|
+
#
|
1326
1715
|
# A switchover guarantees no data loss.
|
1327
|
-
#
|
1716
|
+
#
|
1328
1717
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1329
1718
|
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1330
|
-
# @param [SwitchoverDataGuardAssociationDetails] switchover_data_guard_association_details Request to swtichover a primary to a standby.
|
1719
|
+
# @param [OCI::Database::Models::SwitchoverDataGuardAssociationDetails] switchover_data_guard_association_details Request to swtichover a primary to a standby.
|
1331
1720
|
# @param [Hash] opts the optional parameters
|
1332
1721
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1333
1722
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1334
1723
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1335
|
-
#
|
1336
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DataGuardAssociation
|
1724
|
+
#
|
1725
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
1337
1726
|
def switchover_data_guard_association(database_id, data_guard_association_id, switchover_data_guard_association_details, opts = {})
|
1338
|
-
logger.debug
|
1727
|
+
logger.debug 'Calling operation DatabaseClient#switchover_data_guard_association.' if logger
|
1339
1728
|
|
1340
1729
|
raise "Missing the required parameter 'database_id' when calling switchover_data_guard_association." if database_id.nil?
|
1341
1730
|
raise "Missing the required parameter 'data_guard_association_id' when calling switchover_data_guard_association." if data_guard_association_id.nil?
|
1342
1731
|
raise "Missing the required parameter 'switchover_data_guard_association_details' when calling switchover_data_guard_association." if switchover_data_guard_association_details.nil?
|
1343
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util
|
1344
|
-
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util
|
1732
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
1733
|
+
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
1345
1734
|
|
1346
|
-
path =
|
1735
|
+
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/switchover'.sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
1736
|
+
operation_signing_strategy = :standard
|
1347
1737
|
|
1348
1738
|
# Query Params
|
1349
1739
|
query_params = {}
|
@@ -1352,19 +1742,29 @@ module OCI
|
|
1352
1742
|
header_params = {}
|
1353
1743
|
header_params['accept'] = 'application/json'
|
1354
1744
|
header_params['content-type'] = 'application/json'
|
1355
|
-
header_params[:'if-match'] = opts[:
|
1745
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1356
1746
|
|
1357
1747
|
post_body = @api_client.object_to_http_body(switchover_data_guard_association_details)
|
1358
1748
|
|
1359
|
-
|
1749
|
+
@api_client.call_api(
|
1360
1750
|
:POST,
|
1361
1751
|
path,
|
1362
1752
|
endpoint,
|
1363
|
-
:
|
1364
|
-
:
|
1365
|
-
:
|
1366
|
-
:
|
1753
|
+
header_params: header_params,
|
1754
|
+
query_params: query_params,
|
1755
|
+
operation_signing_strategy: operation_signing_strategy,
|
1756
|
+
body: post_body,
|
1757
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
1758
|
+
)
|
1367
1759
|
end
|
1760
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1761
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1762
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1763
|
+
|
1764
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1765
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1766
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1767
|
+
|
1368
1768
|
|
1369
1769
|
# Terminates a DB System and permanently deletes it and any databases running on it, and any storage volumes attached to it. The database data is local to the DB System and will be lost when the system is terminated. Oracle recommends that you back up any data in the DB System prior to terminating it.
|
1370
1770
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
@@ -1372,15 +1772,16 @@ module OCI
|
|
1372
1772
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1373
1773
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1374
1774
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1375
|
-
#
|
1775
|
+
#
|
1376
1776
|
# @return [Response] A Response object with data of type nil
|
1377
1777
|
def terminate_db_system(db_system_id, opts = {})
|
1378
|
-
logger.debug
|
1778
|
+
logger.debug 'Calling operation DatabaseClient#terminate_db_system.' if logger
|
1379
1779
|
|
1380
1780
|
raise "Missing the required parameter 'db_system_id' when calling terminate_db_system." if db_system_id.nil?
|
1381
|
-
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util
|
1781
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1382
1782
|
|
1383
|
-
path =
|
1783
|
+
path = '/dbSystems/{dbSystemId}'.sub('{dbSystemId}', db_system_id.to_s)
|
1784
|
+
operation_signing_strategy = :standard
|
1384
1785
|
|
1385
1786
|
# Query Params
|
1386
1787
|
query_params = {}
|
@@ -1389,37 +1790,48 @@ module OCI
|
|
1389
1790
|
header_params = {}
|
1390
1791
|
header_params['accept'] = 'application/json'
|
1391
1792
|
header_params['content-type'] = 'application/json'
|
1392
|
-
header_params[:'if-match'] = opts[:
|
1793
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1393
1794
|
|
1394
1795
|
post_body = nil
|
1395
1796
|
|
1396
|
-
|
1797
|
+
@api_client.call_api(
|
1397
1798
|
:DELETE,
|
1398
1799
|
path,
|
1399
1800
|
endpoint,
|
1400
|
-
:
|
1401
|
-
:
|
1402
|
-
:
|
1801
|
+
header_params: header_params,
|
1802
|
+
query_params: query_params,
|
1803
|
+
operation_signing_strategy: operation_signing_strategy,
|
1804
|
+
body: post_body
|
1805
|
+
)
|
1403
1806
|
end
|
1807
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1808
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1809
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1810
|
+
|
1811
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1812
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1813
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1814
|
+
|
1404
1815
|
|
1405
1816
|
# Update a Database based on the request parameters you provide.
|
1406
|
-
#
|
1817
|
+
#
|
1407
1818
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1408
|
-
# @param [UpdateDatabaseDetails] update_database_details Request to perform database update.
|
1819
|
+
# @param [OCI::Database::Models::UpdateDatabaseDetails] update_database_details Request to perform database update.
|
1409
1820
|
# @param [Hash] opts the optional parameters
|
1410
1821
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1411
1822
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1412
1823
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1413
|
-
#
|
1414
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::Database
|
1824
|
+
#
|
1825
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::Database Database}
|
1415
1826
|
def update_database(database_id, update_database_details, opts = {})
|
1416
|
-
logger.debug
|
1827
|
+
logger.debug 'Calling operation DatabaseClient#update_database.' if logger
|
1417
1828
|
|
1418
1829
|
raise "Missing the required parameter 'database_id' when calling update_database." if database_id.nil?
|
1419
1830
|
raise "Missing the required parameter 'update_database_details' when calling update_database." if update_database_details.nil?
|
1420
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util
|
1831
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
1421
1832
|
|
1422
|
-
path =
|
1833
|
+
path = '/databases/{databaseId}'.sub('{databaseId}', database_id.to_s)
|
1834
|
+
operation_signing_strategy = :standard
|
1423
1835
|
|
1424
1836
|
# Query Params
|
1425
1837
|
query_params = {}
|
@@ -1428,37 +1840,48 @@ module OCI
|
|
1428
1840
|
header_params = {}
|
1429
1841
|
header_params['accept'] = 'application/json'
|
1430
1842
|
header_params['content-type'] = 'application/json'
|
1431
|
-
header_params[:'if-match'] = opts[:
|
1843
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1432
1844
|
|
1433
1845
|
post_body = @api_client.object_to_http_body(update_database_details)
|
1434
1846
|
|
1435
|
-
|
1847
|
+
@api_client.call_api(
|
1436
1848
|
:PUT,
|
1437
1849
|
path,
|
1438
1850
|
endpoint,
|
1439
|
-
:
|
1440
|
-
:
|
1441
|
-
:
|
1442
|
-
:
|
1851
|
+
header_params: header_params,
|
1852
|
+
query_params: query_params,
|
1853
|
+
operation_signing_strategy: operation_signing_strategy,
|
1854
|
+
body: post_body,
|
1855
|
+
return_type: 'OCI::Database::Models::Database'
|
1856
|
+
)
|
1443
1857
|
end
|
1858
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1859
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1860
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1861
|
+
|
1862
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1863
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1864
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1865
|
+
|
1444
1866
|
|
1445
1867
|
# Patches the specified dbHome.
|
1446
1868
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1447
|
-
# @param [UpdateDbHomeDetails] update_db_home_details Request to update the properties of a DB Home.
|
1869
|
+
# @param [OCI::Database::Models::UpdateDbHomeDetails] update_db_home_details Request to update the properties of a DB Home.
|
1448
1870
|
# @param [Hash] opts the optional parameters
|
1449
1871
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1450
1872
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1451
1873
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1452
|
-
#
|
1453
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DbHome
|
1874
|
+
#
|
1875
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbHome DbHome}
|
1454
1876
|
def update_db_home(db_home_id, update_db_home_details, opts = {})
|
1455
|
-
logger.debug
|
1877
|
+
logger.debug 'Calling operation DatabaseClient#update_db_home.' if logger
|
1456
1878
|
|
1457
1879
|
raise "Missing the required parameter 'db_home_id' when calling update_db_home." if db_home_id.nil?
|
1458
1880
|
raise "Missing the required parameter 'update_db_home_details' when calling update_db_home." if update_db_home_details.nil?
|
1459
|
-
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util
|
1881
|
+
raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util.blank_string?(db_home_id)
|
1460
1882
|
|
1461
|
-
path =
|
1883
|
+
path = '/dbHomes/{dbHomeId}'.sub('{dbHomeId}', db_home_id.to_s)
|
1884
|
+
operation_signing_strategy = :standard
|
1462
1885
|
|
1463
1886
|
# Query Params
|
1464
1887
|
query_params = {}
|
@@ -1467,37 +1890,48 @@ module OCI
|
|
1467
1890
|
header_params = {}
|
1468
1891
|
header_params['accept'] = 'application/json'
|
1469
1892
|
header_params['content-type'] = 'application/json'
|
1470
|
-
header_params[:'if-match'] = opts[:
|
1893
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1471
1894
|
|
1472
1895
|
post_body = @api_client.object_to_http_body(update_db_home_details)
|
1473
1896
|
|
1474
|
-
|
1897
|
+
@api_client.call_api(
|
1475
1898
|
:PUT,
|
1476
1899
|
path,
|
1477
1900
|
endpoint,
|
1478
|
-
:
|
1479
|
-
:
|
1480
|
-
:
|
1481
|
-
:
|
1901
|
+
header_params: header_params,
|
1902
|
+
query_params: query_params,
|
1903
|
+
operation_signing_strategy: operation_signing_strategy,
|
1904
|
+
body: post_body,
|
1905
|
+
return_type: 'OCI::Database::Models::DbHome'
|
1906
|
+
)
|
1482
1907
|
end
|
1908
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1909
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1910
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1911
|
+
|
1912
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1913
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1914
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1915
|
+
|
1483
1916
|
|
1484
1917
|
# Updates the properties of a DB System, such as the CPU core count.
|
1485
1918
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1486
|
-
# @param [UpdateDbSystemDetails] update_db_system_details Request to update the properties of a DB System.
|
1919
|
+
# @param [OCI::Database::Models::UpdateDbSystemDetails] update_db_system_details Request to update the properties of a DB System.
|
1487
1920
|
# @param [Hash] opts the optional parameters
|
1488
1921
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1489
1922
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1490
1923
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1491
|
-
#
|
1492
|
-
# @return [Response] A Response object with data of type OCI::Database::Models::DbSystem
|
1924
|
+
#
|
1925
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DbSystem DbSystem}
|
1493
1926
|
def update_db_system(db_system_id, update_db_system_details, opts = {})
|
1494
|
-
logger.debug
|
1927
|
+
logger.debug 'Calling operation DatabaseClient#update_db_system.' if logger
|
1495
1928
|
|
1496
1929
|
raise "Missing the required parameter 'db_system_id' when calling update_db_system." if db_system_id.nil?
|
1497
1930
|
raise "Missing the required parameter 'update_db_system_details' when calling update_db_system." if update_db_system_details.nil?
|
1498
|
-
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util
|
1931
|
+
raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
|
1499
1932
|
|
1500
|
-
path =
|
1933
|
+
path = '/dbSystems/{dbSystemId}'.sub('{dbSystemId}', db_system_id.to_s)
|
1934
|
+
operation_signing_strategy = :standard
|
1501
1935
|
|
1502
1936
|
# Query Params
|
1503
1937
|
query_params = {}
|
@@ -1506,18 +1940,24 @@ module OCI
|
|
1506
1940
|
header_params = {}
|
1507
1941
|
header_params['accept'] = 'application/json'
|
1508
1942
|
header_params['content-type'] = 'application/json'
|
1509
|
-
header_params[:'if-match'] = opts[:
|
1943
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1510
1944
|
|
1511
1945
|
post_body = @api_client.object_to_http_body(update_db_system_details)
|
1512
1946
|
|
1513
|
-
|
1947
|
+
@api_client.call_api(
|
1514
1948
|
:PUT,
|
1515
1949
|
path,
|
1516
1950
|
endpoint,
|
1517
|
-
:
|
1518
|
-
:
|
1519
|
-
:
|
1520
|
-
:
|
1951
|
+
header_params: header_params,
|
1952
|
+
query_params: query_params,
|
1953
|
+
operation_signing_strategy: operation_signing_strategy,
|
1954
|
+
body: post_body,
|
1955
|
+
return_type: 'OCI::Database::Models::DbSystem'
|
1956
|
+
)
|
1521
1957
|
end
|
1958
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1959
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1960
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1522
1961
|
end
|
1523
1962
|
end
|
1963
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|