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,13 +2,35 @@
|
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
5
6
|
module OCI
|
6
7
|
# Describes the modification parameters for the DB Home.
|
7
8
|
#
|
8
|
-
class Database::Models::UpdateDbHomeDetails
|
9
|
+
class Database::Models::UpdateDbHomeDetails # rubocop:disable Metrics/LineLength
|
9
10
|
# @return [OCI::Database::Models::PatchDetails]
|
10
11
|
attr_accessor :db_version
|
11
12
|
|
13
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
14
|
+
def self.attribute_map
|
15
|
+
{
|
16
|
+
# rubocop:disable Style/SymbolLiteral
|
17
|
+
'db_version': :'dbVersion'
|
18
|
+
# rubocop:enable Style/SymbolLiteral
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
# Attribute type mapping.
|
23
|
+
def self.swagger_types
|
24
|
+
{
|
25
|
+
# rubocop:disable Style/SymbolLiteral
|
26
|
+
'db_version': :'OCI::Database::Models::PatchDetails'
|
27
|
+
# rubocop:enable Style/SymbolLiteral
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
32
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
33
|
+
|
12
34
|
|
13
35
|
# Initializes the object
|
14
36
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -17,39 +39,47 @@ module OCI
|
|
17
39
|
return unless attributes.is_a?(Hash)
|
18
40
|
|
19
41
|
# convert string to symbol for hash key
|
20
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
42
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
21
43
|
|
22
|
-
if attributes[:'dbVersion']
|
23
|
-
self.db_version = attributes[:'dbVersion']
|
24
|
-
end
|
44
|
+
self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
|
25
45
|
|
26
46
|
raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
|
27
47
|
|
28
|
-
if attributes[:'db_version']
|
29
|
-
self.db_version = attributes[:'db_version']
|
30
|
-
end
|
31
|
-
|
48
|
+
self.db_version = attributes[:'db_version'] if attributes[:'db_version']
|
32
49
|
end
|
50
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
51
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
52
|
+
|
53
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
54
|
+
|
33
55
|
|
34
56
|
# Checks equality by comparing each attribute.
|
35
|
-
# @param [Object]
|
36
|
-
def ==(
|
37
|
-
return true if
|
38
|
-
self.class ==
|
39
|
-
|
57
|
+
# @param [Object] other the other object to be compared
|
58
|
+
def ==(other)
|
59
|
+
return true if equal?(other)
|
60
|
+
self.class == other.class &&
|
61
|
+
db_version == other.db_version
|
40
62
|
end
|
63
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
41
64
|
|
42
65
|
# @see the `==` method
|
43
|
-
# @param [Object]
|
44
|
-
def eql?(
|
45
|
-
self ==
|
66
|
+
# @param [Object] other the other object to be compared
|
67
|
+
def eql?(other)
|
68
|
+
self == other
|
46
69
|
end
|
47
70
|
|
71
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
72
|
+
|
73
|
+
|
48
74
|
# Calculates hash code according to all attributes.
|
49
75
|
# @return [Fixnum] Hash code
|
50
76
|
def hash
|
51
77
|
[db_version].hash
|
52
78
|
end
|
79
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
80
|
+
|
81
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
82
|
+
|
53
83
|
|
54
84
|
# Builds the object from hash
|
55
85
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -61,15 +91,22 @@ module OCI
|
|
61
91
|
# check to ensure the input is an array given that the the attribute
|
62
92
|
# is documented as an array but the input is not
|
63
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
64
|
-
|
94
|
+
public_method("#{key}=").call(
|
95
|
+
attributes[self.class.attribute_map[key]]
|
96
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
97
|
+
)
|
65
98
|
end
|
66
99
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
67
|
-
|
68
|
-
|
100
|
+
public_method("#{key}=").call(
|
101
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
102
|
+
)
|
103
|
+
end
|
104
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
69
105
|
end
|
70
106
|
|
71
107
|
self
|
72
108
|
end
|
109
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
73
110
|
|
74
111
|
# Returns the string representation of the object
|
75
112
|
# @return [String] String presentation of the object
|
@@ -93,11 +130,11 @@ module OCI
|
|
93
130
|
|
94
131
|
# Outputs non-array value in the form of hash
|
95
132
|
# For object, use to_hash. Otherwise, just return the value
|
96
|
-
# @param [Object] value Any valid value
|
133
|
+
# @param [Object] value Any valid value
|
97
134
|
# @return [Hash] Returns the value in the form of hash
|
98
135
|
def _to_hash(value)
|
99
136
|
if value.is_a?(Array)
|
100
|
-
value.compact.map{ |v| _to_hash(v) }
|
137
|
+
value.compact.map { |v| _to_hash(v) }
|
101
138
|
elsif value.is_a?(Hash)
|
102
139
|
{}.tap do |hash|
|
103
140
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -108,21 +145,6 @@ module OCI
|
|
108
145
|
value
|
109
146
|
end
|
110
147
|
end
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
115
|
-
def self.attribute_map
|
116
|
-
{
|
117
|
-
:'db_version' => :'dbVersion'
|
118
|
-
}
|
119
|
-
end
|
120
|
-
|
121
|
-
# Attribute type mapping.
|
122
|
-
def self.swagger_types
|
123
|
-
{
|
124
|
-
:'db_version' => :'OCI::Database::Models::PatchDetails'
|
125
|
-
}
|
126
|
-
end
|
127
148
|
end
|
128
149
|
end
|
150
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|
@@ -2,19 +2,36 @@
|
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
5
6
|
module OCI
|
6
7
|
# Describes the modification parameters for the DB System.
|
7
8
|
#
|
8
|
-
class Database::Models::UpdateDbSystemDetails
|
9
|
+
class Database::Models::UpdateDbSystemDetails # rubocop:disable Metrics/LineLength
|
9
10
|
# The number of CPU Cores to be set on the DB System. Applicable only for non-VM based DB systems.
|
10
11
|
# @return [Integer]
|
11
12
|
attr_accessor :cpu_core_count
|
12
13
|
|
13
14
|
# Size, in GBs, to which the currently attached storage needs to be scaled up to for VM based DB system. This must be greater than current storage size. Note that the total storage size attached will be more than what is requested, to account for REDO/RECO space and software volume.
|
14
|
-
#
|
15
|
+
#
|
15
16
|
# @return [Integer]
|
16
17
|
attr_accessor :data_storage_size_in_gbs
|
17
18
|
|
19
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
20
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
21
|
+
#
|
22
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
23
|
+
#
|
24
|
+
# @return [Hash<String, Hash<String, Object>>]
|
25
|
+
attr_accessor :defined_tags
|
26
|
+
|
27
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
28
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
29
|
+
#
|
30
|
+
# Example: `{\"Department\": \"Finance\"}`
|
31
|
+
#
|
32
|
+
# @return [Hash<String, String>]
|
33
|
+
attr_accessor :freeform_tags
|
34
|
+
|
18
35
|
# The public key portion of the key pair to use for SSH access to the DB System. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters.
|
19
36
|
# @return [Array<String>]
|
20
37
|
attr_accessor :ssh_public_keys
|
@@ -22,77 +39,122 @@ module OCI
|
|
22
39
|
# @return [OCI::Database::Models::PatchDetails]
|
23
40
|
attr_accessor :version
|
24
41
|
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
43
|
+
def self.attribute_map
|
44
|
+
{
|
45
|
+
# rubocop:disable Style/SymbolLiteral
|
46
|
+
'cpu_core_count': :'cpuCoreCount',
|
47
|
+
'data_storage_size_in_gbs': :'dataStorageSizeInGBs',
|
48
|
+
'defined_tags': :'definedTags',
|
49
|
+
'freeform_tags': :'freeformTags',
|
50
|
+
'ssh_public_keys': :'sshPublicKeys',
|
51
|
+
'version': :'version'
|
52
|
+
# rubocop:enable Style/SymbolLiteral
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Attribute type mapping.
|
57
|
+
def self.swagger_types
|
58
|
+
{
|
59
|
+
# rubocop:disable Style/SymbolLiteral
|
60
|
+
'cpu_core_count': :'Integer',
|
61
|
+
'data_storage_size_in_gbs': :'Integer',
|
62
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
63
|
+
'freeform_tags': :'Hash<String, String>',
|
64
|
+
'ssh_public_keys': :'Array<String>',
|
65
|
+
'version': :'OCI::Database::Models::PatchDetails'
|
66
|
+
# rubocop:enable Style/SymbolLiteral
|
67
|
+
}
|
68
|
+
end
|
69
|
+
|
70
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
71
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
72
|
+
|
25
73
|
|
26
74
|
# Initializes the object
|
27
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
28
76
|
# @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
|
29
77
|
# @option attributes [Integer] :data_storage_size_in_gbs The value to assign to the {#data_storage_size_in_gbs} property
|
78
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
79
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
30
80
|
# @option attributes [Array<String>] :ssh_public_keys The value to assign to the {#ssh_public_keys} property
|
31
81
|
# @option attributes [OCI::Database::Models::PatchDetails] :version The value to assign to the {#version} property
|
32
82
|
def initialize(attributes = {})
|
33
83
|
return unless attributes.is_a?(Hash)
|
34
84
|
|
35
85
|
# convert string to symbol for hash key
|
36
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
37
87
|
|
38
|
-
if attributes[:'cpuCoreCount']
|
39
|
-
self.cpu_core_count = attributes[:'cpuCoreCount']
|
40
|
-
end
|
88
|
+
self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
|
41
89
|
|
42
90
|
raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
|
43
91
|
|
44
|
-
if attributes[:'cpu_core_count']
|
45
|
-
self.cpu_core_count = attributes[:'cpu_core_count']
|
46
|
-
end
|
92
|
+
self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
|
47
93
|
|
48
|
-
if attributes[:'dataStorageSizeInGBs']
|
49
|
-
self.data_storage_size_in_gbs = attributes[:'dataStorageSizeInGBs']
|
50
|
-
end
|
94
|
+
self.data_storage_size_in_gbs = attributes[:'dataStorageSizeInGBs'] if attributes[:'dataStorageSizeInGBs']
|
51
95
|
|
52
96
|
raise 'You cannot provide both :dataStorageSizeInGBs and :data_storage_size_in_gbs' if attributes.key?(:'dataStorageSizeInGBs') && attributes.key?(:'data_storage_size_in_gbs')
|
53
97
|
|
54
|
-
if attributes[:'data_storage_size_in_gbs']
|
55
|
-
self.data_storage_size_in_gbs = attributes[:'data_storage_size_in_gbs']
|
56
|
-
end
|
98
|
+
self.data_storage_size_in_gbs = attributes[:'data_storage_size_in_gbs'] if attributes[:'data_storage_size_in_gbs']
|
57
99
|
|
58
|
-
if attributes[:'
|
59
|
-
self.ssh_public_keys = attributes[:'sshPublicKeys']
|
60
|
-
end
|
100
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
61
101
|
|
62
|
-
raise 'You cannot provide both :
|
102
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
63
103
|
|
64
|
-
if attributes[:'
|
65
|
-
self.ssh_public_keys = attributes[:'ssh_public_keys']
|
66
|
-
end
|
104
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
67
105
|
|
68
|
-
if attributes[:'
|
69
|
-
|
70
|
-
|
106
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
107
|
+
|
108
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
109
|
+
|
110
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
111
|
+
|
112
|
+
self.ssh_public_keys = attributes[:'sshPublicKeys'] if attributes[:'sshPublicKeys']
|
71
113
|
|
114
|
+
raise 'You cannot provide both :sshPublicKeys and :ssh_public_keys' if attributes.key?(:'sshPublicKeys') && attributes.key?(:'ssh_public_keys')
|
115
|
+
|
116
|
+
self.ssh_public_keys = attributes[:'ssh_public_keys'] if attributes[:'ssh_public_keys']
|
117
|
+
|
118
|
+
self.version = attributes[:'version'] if attributes[:'version']
|
72
119
|
end
|
120
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
121
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
122
|
+
|
123
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
124
|
+
|
73
125
|
|
74
126
|
# Checks equality by comparing each attribute.
|
75
|
-
# @param [Object]
|
76
|
-
def ==(
|
77
|
-
return true if
|
78
|
-
self.class ==
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
127
|
+
# @param [Object] other the other object to be compared
|
128
|
+
def ==(other)
|
129
|
+
return true if equal?(other)
|
130
|
+
self.class == other.class &&
|
131
|
+
cpu_core_count == other.cpu_core_count &&
|
132
|
+
data_storage_size_in_gbs == other.data_storage_size_in_gbs &&
|
133
|
+
defined_tags == other.defined_tags &&
|
134
|
+
freeform_tags == other.freeform_tags &&
|
135
|
+
ssh_public_keys == other.ssh_public_keys &&
|
136
|
+
version == other.version
|
83
137
|
end
|
138
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
84
139
|
|
85
140
|
# @see the `==` method
|
86
|
-
# @param [Object]
|
87
|
-
def eql?(
|
88
|
-
self ==
|
141
|
+
# @param [Object] other the other object to be compared
|
142
|
+
def eql?(other)
|
143
|
+
self == other
|
89
144
|
end
|
90
145
|
|
146
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
147
|
+
|
148
|
+
|
91
149
|
# Calculates hash code according to all attributes.
|
92
150
|
# @return [Fixnum] Hash code
|
93
151
|
def hash
|
94
|
-
[cpu_core_count, data_storage_size_in_gbs, ssh_public_keys, version].hash
|
152
|
+
[cpu_core_count, data_storage_size_in_gbs, defined_tags, freeform_tags, ssh_public_keys, version].hash
|
95
153
|
end
|
154
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
155
|
+
|
156
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
157
|
+
|
96
158
|
|
97
159
|
# Builds the object from hash
|
98
160
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -104,15 +166,22 @@ module OCI
|
|
104
166
|
# check to ensure the input is an array given that the the attribute
|
105
167
|
# is documented as an array but the input is not
|
106
168
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
107
|
-
|
169
|
+
public_method("#{key}=").call(
|
170
|
+
attributes[self.class.attribute_map[key]]
|
171
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
172
|
+
)
|
108
173
|
end
|
109
174
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
110
|
-
|
111
|
-
|
175
|
+
public_method("#{key}=").call(
|
176
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
177
|
+
)
|
178
|
+
end
|
179
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
112
180
|
end
|
113
181
|
|
114
182
|
self
|
115
183
|
end
|
184
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
116
185
|
|
117
186
|
# Returns the string representation of the object
|
118
187
|
# @return [String] String presentation of the object
|
@@ -136,11 +205,11 @@ module OCI
|
|
136
205
|
|
137
206
|
# Outputs non-array value in the form of hash
|
138
207
|
# For object, use to_hash. Otherwise, just return the value
|
139
|
-
# @param [Object] value Any valid value
|
208
|
+
# @param [Object] value Any valid value
|
140
209
|
# @return [Hash] Returns the value in the form of hash
|
141
210
|
def _to_hash(value)
|
142
211
|
if value.is_a?(Array)
|
143
|
-
value.compact.map{ |v| _to_hash(v) }
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
144
213
|
elsif value.is_a?(Hash)
|
145
214
|
{}.tap do |hash|
|
146
215
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -151,27 +220,6 @@ module OCI
|
|
151
220
|
value
|
152
221
|
end
|
153
222
|
end
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
158
|
-
def self.attribute_map
|
159
|
-
{
|
160
|
-
:'cpu_core_count' => :'cpuCoreCount',
|
161
|
-
:'data_storage_size_in_gbs' => :'dataStorageSizeInGBs',
|
162
|
-
:'ssh_public_keys' => :'sshPublicKeys',
|
163
|
-
:'version' => :'version'
|
164
|
-
}
|
165
|
-
end
|
166
|
-
|
167
|
-
# Attribute type mapping.
|
168
|
-
def self.swagger_types
|
169
|
-
{
|
170
|
-
:'cpu_core_count' => :'Integer',
|
171
|
-
:'data_storage_size_in_gbs' => :'Integer',
|
172
|
-
:'ssh_public_keys' => :'Array<String>',
|
173
|
-
:'version' => :'OCI::Database::Models::PatchDetails'
|
174
|
-
}
|
175
|
-
end
|
176
223
|
end
|
177
224
|
end
|
225
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|
data/lib/oci/dns/dns.rb
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
module OCI
|
4
4
|
module Dns
|
5
|
+
# Module containing models for requests made to, and responses received from,
|
6
|
+
# OCI Dns services
|
5
7
|
module Models
|
6
8
|
end
|
7
9
|
end
|
@@ -29,6 +31,7 @@ require 'oci/dns/models/zone_summary'
|
|
29
31
|
|
30
32
|
# Require generated clients
|
31
33
|
require 'oci/dns/dns_client'
|
34
|
+
require 'oci/dns/dns_client_composite_operations'
|
32
35
|
|
33
36
|
# Require service utilities
|
34
37
|
require 'oci/dns/util'
|
data/lib/oci/dns/dns_client.rb
CHANGED
@@ -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
|
+
# API for managing DNS zones, records, and policies.
|
8
9
|
class Dns::DnsClient
|
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 DnsClient.
|
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,25 +84,30 @@ 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 zone in the specified compartment. The `compartmentId`
|
78
93
|
# query parameter is required if the `Content-Type` header for the
|
79
94
|
# request is `text/dns`.
|
80
|
-
#
|
81
|
-
# @param [CreateZoneDetails] create_zone_details Details for creating a new zone.
|
95
|
+
#
|
96
|
+
# @param [OCI::Dns::Models::CreateZoneDetails] create_zone_details Details for creating a new zone.
|
82
97
|
# @param [Hash] opts the optional parameters
|
83
98
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
84
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::Zone
|
99
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::Zone Zone}
|
85
100
|
def create_zone(create_zone_details, opts = {})
|
86
|
-
logger.debug
|
101
|
+
logger.debug 'Calling operation DnsClient#create_zone.' if logger
|
87
102
|
|
88
103
|
raise "Missing the required parameter 'create_zone_details' when calling create_zone." if create_zone_details.nil?
|
89
104
|
|
90
|
-
path =
|
105
|
+
path = '/zones'
|
106
|
+
operation_signing_strategy = :standard
|
91
107
|
|
92
108
|
# Query Params
|
93
109
|
query_params = {}
|
94
|
-
query_params[:
|
110
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
95
111
|
|
96
112
|
# Header Params
|
97
113
|
header_params = {}
|
@@ -100,15 +116,25 @@ module OCI
|
|
100
116
|
|
101
117
|
post_body = @api_client.object_to_http_body(create_zone_details)
|
102
118
|
|
103
|
-
|
119
|
+
@api_client.call_api(
|
104
120
|
:POST,
|
105
121
|
path,
|
106
122
|
endpoint,
|
107
|
-
:
|
108
|
-
:
|
109
|
-
:
|
110
|
-
:
|
123
|
+
header_params: header_params,
|
124
|
+
query_params: query_params,
|
125
|
+
operation_signing_strategy: operation_signing_strategy,
|
126
|
+
body: post_body,
|
127
|
+
return_type: 'OCI::Dns::Models::Zone'
|
128
|
+
)
|
111
129
|
end
|
130
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
131
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
132
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
133
|
+
|
134
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
135
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
136
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
137
|
+
|
112
138
|
|
113
139
|
# Deletes all records at the specified zone and domain.
|
114
140
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
@@ -119,49 +145,60 @@ module OCI
|
|
119
145
|
# when the field-value is `*`, or having a current representation of the
|
120
146
|
# target resource that has an entity-tag matching a member of the list of
|
121
147
|
# entity-tags provided in the field-value.
|
122
|
-
#
|
148
|
+
#
|
123
149
|
# @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
|
124
150
|
# conditional on the selected representation's last modification date being
|
125
151
|
# earlier than or equal to the date provided in the field-value. This
|
126
152
|
# field accomplishes the same purpose as If-Match for cases where the user
|
127
153
|
# agent does not have an entity-tag for the representation.
|
128
|
-
#
|
154
|
+
#
|
129
155
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
130
156
|
# @return [Response] A Response object with data of type nil
|
131
157
|
def delete_domain_records(zone_name_or_id, domain, opts = {})
|
132
|
-
logger.debug
|
158
|
+
logger.debug 'Calling operation DnsClient#delete_domain_records.' if logger
|
133
159
|
|
134
160
|
raise "Missing the required parameter 'zone_name_or_id' when calling delete_domain_records." if zone_name_or_id.nil?
|
135
161
|
raise "Missing the required parameter 'domain' when calling delete_domain_records." if domain.nil?
|
136
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
137
|
-
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util
|
162
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
163
|
+
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
|
138
164
|
|
139
|
-
path =
|
165
|
+
path = '/zones/{zoneNameOrId}/records/{domain}'.sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
|
166
|
+
operation_signing_strategy = :standard
|
140
167
|
|
141
168
|
# Query Params
|
142
169
|
query_params = {}
|
143
|
-
query_params[:
|
170
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
144
171
|
|
145
172
|
# Header Params
|
146
173
|
header_params = {}
|
147
174
|
header_params['accept'] = 'application/json'
|
148
175
|
header_params['content-type'] = 'application/json'
|
149
|
-
header_params[:'
|
150
|
-
header_params[:'
|
176
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
177
|
+
header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
|
151
178
|
|
152
179
|
post_body = nil
|
153
180
|
|
154
|
-
|
181
|
+
@api_client.call_api(
|
155
182
|
:DELETE,
|
156
183
|
path,
|
157
184
|
endpoint,
|
158
|
-
:
|
159
|
-
:
|
160
|
-
:
|
185
|
+
header_params: header_params,
|
186
|
+
query_params: query_params,
|
187
|
+
operation_signing_strategy: operation_signing_strategy,
|
188
|
+
body: post_body
|
189
|
+
)
|
161
190
|
end
|
191
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
192
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
193
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
194
|
+
|
195
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
196
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
197
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
198
|
+
|
162
199
|
|
163
200
|
# Deletes all records in the specified RRSet.
|
164
|
-
#
|
201
|
+
#
|
165
202
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
166
203
|
# @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
|
167
204
|
# @param [String] rtype The type of the target RRSet within the target zone.
|
@@ -171,52 +208,63 @@ module OCI
|
|
171
208
|
# when the field-value is `*`, or having a current representation of the
|
172
209
|
# target resource that has an entity-tag matching a member of the list of
|
173
210
|
# entity-tags provided in the field-value.
|
174
|
-
#
|
211
|
+
#
|
175
212
|
# @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
|
176
213
|
# conditional on the selected representation's last modification date being
|
177
214
|
# earlier than or equal to the date provided in the field-value. This
|
178
215
|
# field accomplishes the same purpose as If-Match for cases where the user
|
179
216
|
# agent does not have an entity-tag for the representation.
|
180
|
-
#
|
217
|
+
#
|
181
218
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
182
219
|
# @return [Response] A Response object with data of type nil
|
183
220
|
def delete_rr_set(zone_name_or_id, domain, rtype, opts = {})
|
184
|
-
logger.debug
|
221
|
+
logger.debug 'Calling operation DnsClient#delete_rr_set.' if logger
|
185
222
|
|
186
223
|
raise "Missing the required parameter 'zone_name_or_id' when calling delete_rr_set." if zone_name_or_id.nil?
|
187
224
|
raise "Missing the required parameter 'domain' when calling delete_rr_set." if domain.nil?
|
188
225
|
raise "Missing the required parameter 'rtype' when calling delete_rr_set." if rtype.nil?
|
189
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
190
|
-
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util
|
191
|
-
raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util
|
226
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
227
|
+
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
|
228
|
+
raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util.blank_string?(rtype)
|
192
229
|
|
193
|
-
path =
|
230
|
+
path = '/zones/{zoneNameOrId}/records/{domain}/{rtype}'.sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s).sub('{rtype}', rtype.to_s)
|
231
|
+
operation_signing_strategy = :standard
|
194
232
|
|
195
233
|
# Query Params
|
196
234
|
query_params = {}
|
197
|
-
query_params[:
|
235
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
198
236
|
|
199
237
|
# Header Params
|
200
238
|
header_params = {}
|
201
239
|
header_params['accept'] = 'application/json'
|
202
240
|
header_params['content-type'] = 'application/json'
|
203
|
-
header_params[:'
|
204
|
-
header_params[:'
|
241
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
242
|
+
header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
|
205
243
|
|
206
244
|
post_body = nil
|
207
245
|
|
208
|
-
|
246
|
+
@api_client.call_api(
|
209
247
|
:DELETE,
|
210
248
|
path,
|
211
249
|
endpoint,
|
212
|
-
:
|
213
|
-
:
|
214
|
-
:
|
250
|
+
header_params: header_params,
|
251
|
+
query_params: query_params,
|
252
|
+
operation_signing_strategy: operation_signing_strategy,
|
253
|
+
body: post_body
|
254
|
+
)
|
215
255
|
end
|
256
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
257
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
258
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
259
|
+
|
260
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
261
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
262
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
263
|
+
|
216
264
|
|
217
265
|
# Deletes the specified zone. A `204` response indicates that zone has been
|
218
266
|
# successfully deleted.
|
219
|
-
#
|
267
|
+
#
|
220
268
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
221
269
|
# @param [Hash] opts the optional parameters
|
222
270
|
# @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
|
@@ -224,49 +272,60 @@ module OCI
|
|
224
272
|
# when the field-value is `*`, or having a current representation of the
|
225
273
|
# target resource that has an entity-tag matching a member of the list of
|
226
274
|
# entity-tags provided in the field-value.
|
227
|
-
#
|
275
|
+
#
|
228
276
|
# @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
|
229
277
|
# conditional on the selected representation's last modification date being
|
230
278
|
# earlier than or equal to the date provided in the field-value. This
|
231
279
|
# field accomplishes the same purpose as If-Match for cases where the user
|
232
280
|
# agent does not have an entity-tag for the representation.
|
233
|
-
#
|
281
|
+
#
|
234
282
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
235
283
|
# @return [Response] A Response object with data of type nil
|
236
284
|
def delete_zone(zone_name_or_id, opts = {})
|
237
|
-
logger.debug
|
285
|
+
logger.debug 'Calling operation DnsClient#delete_zone.' if logger
|
238
286
|
|
239
287
|
raise "Missing the required parameter 'zone_name_or_id' when calling delete_zone." if zone_name_or_id.nil?
|
240
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
288
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
241
289
|
|
242
|
-
path =
|
290
|
+
path = '/zones/{zoneNameOrId}'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
291
|
+
operation_signing_strategy = :standard
|
243
292
|
|
244
293
|
# Query Params
|
245
294
|
query_params = {}
|
246
|
-
query_params[:
|
295
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
247
296
|
|
248
297
|
# Header Params
|
249
298
|
header_params = {}
|
250
299
|
header_params['accept'] = 'application/json'
|
251
300
|
header_params['content-type'] = 'application/json'
|
252
|
-
header_params[:'
|
253
|
-
header_params[:'
|
301
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
302
|
+
header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
|
254
303
|
|
255
304
|
post_body = nil
|
256
305
|
|
257
|
-
|
306
|
+
@api_client.call_api(
|
258
307
|
:DELETE,
|
259
308
|
path,
|
260
309
|
endpoint,
|
261
|
-
:
|
262
|
-
:
|
263
|
-
:
|
310
|
+
header_params: header_params,
|
311
|
+
query_params: query_params,
|
312
|
+
operation_signing_strategy: operation_signing_strategy,
|
313
|
+
body: post_body
|
314
|
+
)
|
264
315
|
end
|
316
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
317
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
318
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
319
|
+
|
320
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
321
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
322
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
323
|
+
|
265
324
|
|
266
325
|
# Gets a list of all records at the specified zone and domain.
|
267
326
|
# The results are sorted by `rtype` in alphabetical order by default. You
|
268
327
|
# can optionally filter and/or sort the results using the listed parameters.
|
269
|
-
#
|
328
|
+
#
|
270
329
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
271
330
|
# @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
|
272
331
|
# @param [Hash] opts the optional parameters
|
@@ -274,77 +333,88 @@ module OCI
|
|
274
333
|
# the absence of any current representation of the target resource, when
|
275
334
|
# the field-value is `*`, or having a selected representation with an
|
276
335
|
# entity-tag that does not match any of those listed in the field-value.
|
277
|
-
#
|
336
|
+
#
|
278
337
|
# @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
|
279
338
|
# conditional on the selected representation's modification date being more
|
280
339
|
# recent than the date provided in the field-value. Transfer of the
|
281
340
|
# selected representation's data is avoided if that data has not changed.
|
282
|
-
#
|
341
|
+
#
|
283
342
|
# @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
|
284
343
|
# (default to 50)
|
285
344
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
286
|
-
#
|
345
|
+
#
|
287
346
|
# @option opts [String] :zone_version The version of the zone for which data is requested.
|
288
|
-
#
|
347
|
+
#
|
289
348
|
# @option opts [String] :rtype Search by record type.
|
290
349
|
# Will match any record whose [type](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value.
|
291
|
-
#
|
350
|
+
#
|
292
351
|
# @option opts [String] :sort_by The field by which to sort records. (default to rtype)
|
293
352
|
# Allowed values are: rtype, ttl
|
294
353
|
# @option opts [String] :sort_order The order to sort the resources.
|
295
|
-
#
|
354
|
+
#
|
296
355
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
297
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::RecordCollection
|
356
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
|
298
357
|
def get_domain_records(zone_name_or_id, domain, opts = {})
|
299
|
-
logger.debug
|
358
|
+
logger.debug 'Calling operation DnsClient#get_domain_records.' if logger
|
300
359
|
|
301
360
|
raise "Missing the required parameter 'zone_name_or_id' when calling get_domain_records." if zone_name_or_id.nil?
|
302
361
|
raise "Missing the required parameter 'domain' when calling get_domain_records." if domain.nil?
|
303
362
|
|
304
|
-
if opts[:
|
363
|
+
if opts[:sort_by] && !%w[rtype ttl].include?(opts[:sort_by])
|
305
364
|
raise 'Invalid value for "sort_by", must be one of rtype, ttl.'
|
306
365
|
end
|
307
366
|
|
308
|
-
if opts[:
|
367
|
+
if opts[:sort_order] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
309
368
|
raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
|
310
369
|
end
|
311
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
312
|
-
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util
|
370
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
371
|
+
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
|
313
372
|
|
314
|
-
path =
|
373
|
+
path = '/zones/{zoneNameOrId}/records/{domain}'.sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
|
374
|
+
operation_signing_strategy = :standard
|
315
375
|
|
316
376
|
# Query Params
|
317
377
|
query_params = {}
|
318
|
-
query_params[:
|
319
|
-
query_params[:
|
320
|
-
query_params[:
|
321
|
-
query_params[:
|
322
|
-
query_params[:
|
323
|
-
query_params[:
|
324
|
-
query_params[:
|
378
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
379
|
+
query_params[:page] = opts[:page] if opts[:page]
|
380
|
+
query_params[:zoneVersion] = opts[:zone_version] if opts[:zone_version]
|
381
|
+
query_params[:rtype] = opts[:rtype] if opts[:rtype]
|
382
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
383
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
384
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
325
385
|
|
326
386
|
# Header Params
|
327
387
|
header_params = {}
|
328
388
|
header_params['accept'] = 'application/json'
|
329
389
|
header_params['content-type'] = 'application/json'
|
330
|
-
header_params[:'
|
331
|
-
header_params[:'
|
390
|
+
header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
|
391
|
+
header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
|
332
392
|
|
333
393
|
post_body = nil
|
334
394
|
|
335
|
-
|
395
|
+
@api_client.call_api(
|
336
396
|
:GET,
|
337
397
|
path,
|
338
398
|
endpoint,
|
339
|
-
:
|
340
|
-
:
|
341
|
-
:
|
342
|
-
:
|
399
|
+
header_params: header_params,
|
400
|
+
query_params: query_params,
|
401
|
+
operation_signing_strategy: operation_signing_strategy,
|
402
|
+
body: post_body,
|
403
|
+
return_type: 'OCI::Dns::Models::RecordCollection'
|
404
|
+
)
|
343
405
|
end
|
406
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
407
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
408
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
409
|
+
|
410
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
411
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
412
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
413
|
+
|
344
414
|
|
345
415
|
# Gets a list of all records in the specified RRSet. The results are
|
346
416
|
# sorted by `recordHash` by default.
|
347
|
-
#
|
417
|
+
#
|
348
418
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
349
419
|
# @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
|
350
420
|
# @param [String] rtype The type of the target RRSet within the target zone.
|
@@ -353,258 +423,292 @@ module OCI
|
|
353
423
|
# the absence of any current representation of the target resource, when
|
354
424
|
# the field-value is `*`, or having a selected representation with an
|
355
425
|
# entity-tag that does not match any of those listed in the field-value.
|
356
|
-
#
|
426
|
+
#
|
357
427
|
# @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
|
358
428
|
# conditional on the selected representation's modification date being more
|
359
429
|
# recent than the date provided in the field-value. Transfer of the
|
360
430
|
# selected representation's data is avoided if that data has not changed.
|
361
|
-
#
|
431
|
+
#
|
362
432
|
# @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
|
363
433
|
# (default to 50)
|
364
434
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
365
|
-
#
|
435
|
+
#
|
366
436
|
# @option opts [String] :zone_version The version of the zone for which data is requested.
|
367
|
-
#
|
437
|
+
#
|
368
438
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
369
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::RRSet
|
439
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::RRSet RRSet}
|
370
440
|
def get_rr_set(zone_name_or_id, domain, rtype, opts = {})
|
371
|
-
logger.debug
|
441
|
+
logger.debug 'Calling operation DnsClient#get_rr_set.' if logger
|
372
442
|
|
373
443
|
raise "Missing the required parameter 'zone_name_or_id' when calling get_rr_set." if zone_name_or_id.nil?
|
374
444
|
raise "Missing the required parameter 'domain' when calling get_rr_set." if domain.nil?
|
375
445
|
raise "Missing the required parameter 'rtype' when calling get_rr_set." if rtype.nil?
|
376
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
377
|
-
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util
|
378
|
-
raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util
|
446
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
447
|
+
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
|
448
|
+
raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util.blank_string?(rtype)
|
379
449
|
|
380
|
-
path =
|
450
|
+
path = '/zones/{zoneNameOrId}/records/{domain}/{rtype}'.sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s).sub('{rtype}', rtype.to_s)
|
451
|
+
operation_signing_strategy = :standard
|
381
452
|
|
382
453
|
# Query Params
|
383
454
|
query_params = {}
|
384
|
-
query_params[:
|
385
|
-
query_params[:
|
386
|
-
query_params[:
|
387
|
-
query_params[:
|
455
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
456
|
+
query_params[:page] = opts[:page] if opts[:page]
|
457
|
+
query_params[:zoneVersion] = opts[:zone_version] if opts[:zone_version]
|
458
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
388
459
|
|
389
460
|
# Header Params
|
390
461
|
header_params = {}
|
391
462
|
header_params['accept'] = 'application/json'
|
392
463
|
header_params['content-type'] = 'application/json'
|
393
|
-
header_params[:'
|
394
|
-
header_params[:'
|
464
|
+
header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
|
465
|
+
header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
|
395
466
|
|
396
467
|
post_body = nil
|
397
468
|
|
398
|
-
|
469
|
+
@api_client.call_api(
|
399
470
|
:GET,
|
400
471
|
path,
|
401
472
|
endpoint,
|
402
|
-
:
|
403
|
-
:
|
404
|
-
:
|
405
|
-
:
|
473
|
+
header_params: header_params,
|
474
|
+
query_params: query_params,
|
475
|
+
operation_signing_strategy: operation_signing_strategy,
|
476
|
+
body: post_body,
|
477
|
+
return_type: 'OCI::Dns::Models::RRSet'
|
478
|
+
)
|
406
479
|
end
|
480
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
481
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
482
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
483
|
+
|
484
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
485
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
486
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
487
|
+
|
407
488
|
|
408
489
|
# Gets information about the specified zone, including its creation date,
|
409
490
|
# zone type, and serial.
|
410
|
-
#
|
491
|
+
#
|
411
492
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
412
493
|
# @param [Hash] opts the optional parameters
|
413
494
|
# @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
|
414
495
|
# the absence of any current representation of the target resource, when
|
415
496
|
# the field-value is `*`, or having a selected representation with an
|
416
497
|
# entity-tag that does not match any of those listed in the field-value.
|
417
|
-
#
|
498
|
+
#
|
418
499
|
# @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
|
419
500
|
# conditional on the selected representation's modification date being more
|
420
501
|
# recent than the date provided in the field-value. Transfer of the
|
421
502
|
# selected representation's data is avoided if that data has not changed.
|
422
|
-
#
|
503
|
+
#
|
423
504
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
424
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::Zone
|
505
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::Zone Zone}
|
425
506
|
def get_zone(zone_name_or_id, opts = {})
|
426
|
-
logger.debug
|
507
|
+
logger.debug 'Calling operation DnsClient#get_zone.' if logger
|
427
508
|
|
428
509
|
raise "Missing the required parameter 'zone_name_or_id' when calling get_zone." if zone_name_or_id.nil?
|
429
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
510
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
430
511
|
|
431
|
-
path =
|
512
|
+
path = '/zones/{zoneNameOrId}'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
513
|
+
operation_signing_strategy = :standard
|
432
514
|
|
433
515
|
# Query Params
|
434
516
|
query_params = {}
|
435
|
-
query_params[:
|
517
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
436
518
|
|
437
519
|
# Header Params
|
438
520
|
header_params = {}
|
439
521
|
header_params['accept'] = 'application/json'
|
440
522
|
header_params['content-type'] = 'application/json'
|
441
|
-
header_params[:'
|
442
|
-
header_params[:'
|
523
|
+
header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
|
524
|
+
header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
|
443
525
|
|
444
526
|
post_body = nil
|
445
527
|
|
446
|
-
|
528
|
+
@api_client.call_api(
|
447
529
|
:GET,
|
448
530
|
path,
|
449
531
|
endpoint,
|
450
|
-
:
|
451
|
-
:
|
452
|
-
:
|
453
|
-
:
|
532
|
+
header_params: header_params,
|
533
|
+
query_params: query_params,
|
534
|
+
operation_signing_strategy: operation_signing_strategy,
|
535
|
+
body: post_body,
|
536
|
+
return_type: 'OCI::Dns::Models::Zone'
|
537
|
+
)
|
454
538
|
end
|
539
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
540
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
541
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
542
|
+
|
543
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
544
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
545
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
546
|
+
|
455
547
|
|
456
548
|
# Gets all records in the specified zone. The results are
|
457
549
|
# sorted by `domain` in alphabetical order by default. For more
|
458
550
|
# information about records, please see [Resource Record (RR) TYPEs](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
|
459
|
-
#
|
551
|
+
#
|
460
552
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
461
553
|
# @param [Hash] opts the optional parameters
|
462
554
|
# @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
|
463
555
|
# the absence of any current representation of the target resource, when
|
464
556
|
# the field-value is `*`, or having a selected representation with an
|
465
557
|
# entity-tag that does not match any of those listed in the field-value.
|
466
|
-
#
|
558
|
+
#
|
467
559
|
# @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
|
468
560
|
# conditional on the selected representation's modification date being more
|
469
561
|
# recent than the date provided in the field-value. Transfer of the
|
470
562
|
# selected representation's data is avoided if that data has not changed.
|
471
|
-
#
|
563
|
+
#
|
472
564
|
# @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
|
473
565
|
# (default to 50)
|
474
566
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
475
|
-
#
|
567
|
+
#
|
476
568
|
# @option opts [String] :zone_version The version of the zone for which data is requested.
|
477
|
-
#
|
569
|
+
#
|
478
570
|
# @option opts [String] :domain Search by domain.
|
479
571
|
# Will match any record whose domain (case-insensitive) equals the provided value.
|
480
|
-
#
|
572
|
+
#
|
481
573
|
# @option opts [String] :domain_contains Search by domain.
|
482
574
|
# Will match any record whose domain (case-insensitive) contains the provided value.
|
483
|
-
#
|
575
|
+
#
|
484
576
|
# @option opts [String] :rtype Search by record type.
|
485
577
|
# Will match any record whose [type](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value.
|
486
|
-
#
|
578
|
+
#
|
487
579
|
# @option opts [String] :sort_by The field by which to sort records. (default to domain)
|
488
580
|
# Allowed values are: domain, rtype, ttl
|
489
581
|
# @option opts [String] :sort_order The order to sort the resources.
|
490
|
-
#
|
582
|
+
#
|
491
583
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
492
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::RecordCollection
|
584
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
|
493
585
|
def get_zone_records(zone_name_or_id, opts = {})
|
494
|
-
logger.debug
|
586
|
+
logger.debug 'Calling operation DnsClient#get_zone_records.' if logger
|
495
587
|
|
496
588
|
raise "Missing the required parameter 'zone_name_or_id' when calling get_zone_records." if zone_name_or_id.nil?
|
497
589
|
|
498
|
-
if opts[:
|
590
|
+
if opts[:sort_by] && !%w[domain rtype ttl].include?(opts[:sort_by])
|
499
591
|
raise 'Invalid value for "sort_by", must be one of domain, rtype, ttl.'
|
500
592
|
end
|
501
593
|
|
502
|
-
if opts[:
|
594
|
+
if opts[:sort_order] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
503
595
|
raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
|
504
596
|
end
|
505
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
597
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
506
598
|
|
507
|
-
path =
|
599
|
+
path = '/zones/{zoneNameOrId}/records'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
600
|
+
operation_signing_strategy = :standard
|
508
601
|
|
509
602
|
# Query Params
|
510
603
|
query_params = {}
|
511
|
-
query_params[:
|
512
|
-
query_params[:
|
513
|
-
query_params[:
|
514
|
-
query_params[:
|
515
|
-
query_params[:
|
516
|
-
query_params[:
|
517
|
-
query_params[:
|
518
|
-
query_params[:
|
519
|
-
query_params[:
|
604
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
605
|
+
query_params[:page] = opts[:page] if opts[:page]
|
606
|
+
query_params[:zoneVersion] = opts[:zone_version] if opts[:zone_version]
|
607
|
+
query_params[:domain] = opts[:domain] if opts[:domain]
|
608
|
+
query_params[:domainContains] = opts[:domain_contains] if opts[:domain_contains]
|
609
|
+
query_params[:rtype] = opts[:rtype] if opts[:rtype]
|
610
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
611
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
612
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
520
613
|
|
521
614
|
# Header Params
|
522
615
|
header_params = {}
|
523
616
|
header_params['accept'] = 'application/json'
|
524
617
|
header_params['content-type'] = 'application/json'
|
525
|
-
header_params[:'
|
526
|
-
header_params[:'
|
618
|
+
header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
|
619
|
+
header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
|
527
620
|
|
528
621
|
post_body = nil
|
529
622
|
|
530
|
-
|
623
|
+
@api_client.call_api(
|
531
624
|
:GET,
|
532
625
|
path,
|
533
626
|
endpoint,
|
534
|
-
:
|
535
|
-
:
|
536
|
-
:
|
537
|
-
:
|
627
|
+
header_params: header_params,
|
628
|
+
query_params: query_params,
|
629
|
+
operation_signing_strategy: operation_signing_strategy,
|
630
|
+
body: post_body,
|
631
|
+
return_type: 'OCI::Dns::Models::RecordCollection'
|
632
|
+
)
|
538
633
|
end
|
634
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
635
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
636
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
637
|
+
|
638
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
639
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
640
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
641
|
+
|
539
642
|
|
540
643
|
# Gets a list of all zones in the specified compartment. The collection
|
541
644
|
# can be filtered by name, time created, and zone type.
|
542
|
-
#
|
645
|
+
#
|
543
646
|
# @param [String] compartment_id The OCID of the compartment the resource belongs to.
|
544
647
|
# @param [Hash] opts the optional parameters
|
545
648
|
# @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
|
546
649
|
# (default to 50)
|
547
650
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
548
|
-
#
|
651
|
+
#
|
549
652
|
# @option opts [String] :name A case-sensitive filter for zone names.
|
550
653
|
# Will match any zone with a name that equals the provided value.
|
551
|
-
#
|
654
|
+
#
|
552
655
|
# @option opts [String] :name_contains Search by zone name.
|
553
656
|
# Will match any zone whose name (case-insensitive) contains the provided value.
|
554
|
-
#
|
657
|
+
#
|
555
658
|
# @option opts [String] :zone_type Search by zone type, `PRIMARY` or `SECONDARY`.
|
556
659
|
# Will match any zone whose type equals the provided value.
|
557
|
-
#
|
660
|
+
#
|
558
661
|
# Allowed values are: PRIMARY, SECONDARY
|
559
662
|
# @option opts [DateTime] :time_created_greater_than_or_equal_to An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
|
560
663
|
# all returned resources were created on or after the indicated time.
|
561
|
-
#
|
664
|
+
#
|
562
665
|
# @option opts [DateTime] :time_created_less_than An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
|
563
666
|
# all returned resources were created before the indicated time.
|
564
|
-
#
|
667
|
+
#
|
565
668
|
# @option opts [String] :sort_by The field by which to sort zones. (default to timeCreated)
|
566
669
|
# Allowed values are: name, zoneType, timeCreated
|
567
670
|
# @option opts [String] :sort_order The order to sort the resources.
|
568
|
-
#
|
671
|
+
#
|
569
672
|
# @option opts [String] :lifecycle_state The state of a resource.
|
570
673
|
# Allowed values are: ACTIVE, CREATING, DELETED, DELETING, FAILED
|
571
|
-
# @return [Response] A Response object with data of type Array<OCI::Dns::Models::ZoneSummary>
|
674
|
+
# @return [Response] A Response object with data of type Array<{OCI::Dns::Models::ZoneSummary ZoneSummary}>
|
572
675
|
def list_zones(compartment_id, opts = {})
|
573
|
-
logger.debug
|
676
|
+
logger.debug 'Calling operation DnsClient#list_zones.' if logger
|
574
677
|
|
575
678
|
raise "Missing the required parameter 'compartment_id' when calling list_zones." if compartment_id.nil?
|
576
679
|
|
577
|
-
if opts[:
|
680
|
+
if opts[:zone_type] && !%w[PRIMARY SECONDARY].include?(opts[:zone_type])
|
578
681
|
raise 'Invalid value for "zone_type", must be one of PRIMARY, SECONDARY.'
|
579
682
|
end
|
580
683
|
|
581
|
-
if opts[:
|
684
|
+
if opts[:sort_by] && !%w[name zoneType timeCreated].include?(opts[:sort_by])
|
582
685
|
raise 'Invalid value for "sort_by", must be one of name, zoneType, timeCreated.'
|
583
686
|
end
|
584
687
|
|
585
|
-
if opts[:
|
688
|
+
if opts[:sort_order] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
586
689
|
raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
|
587
690
|
end
|
588
691
|
|
589
|
-
if opts[:
|
692
|
+
if opts[:lifecycle_state] && !%w[ACTIVE CREATING DELETED DELETING FAILED].include?(opts[:lifecycle_state])
|
590
693
|
raise 'Invalid value for "lifecycle_state", must be one of ACTIVE, CREATING, DELETED, DELETING, FAILED.'
|
591
694
|
end
|
592
695
|
|
593
|
-
path =
|
696
|
+
path = '/zones'
|
697
|
+
operation_signing_strategy = :standard
|
594
698
|
|
595
699
|
# Query Params
|
596
700
|
query_params = {}
|
597
|
-
query_params[:
|
598
|
-
query_params[:
|
599
|
-
query_params[:
|
600
|
-
query_params[:
|
601
|
-
query_params[:
|
602
|
-
query_params[:
|
603
|
-
query_params[:
|
604
|
-
query_params[:
|
605
|
-
query_params[:
|
606
|
-
query_params[:
|
607
|
-
query_params[:
|
701
|
+
query_params[:compartmentId] = compartment_id
|
702
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
703
|
+
query_params[:page] = opts[:page] if opts[:page]
|
704
|
+
query_params[:name] = opts[:name] if opts[:name]
|
705
|
+
query_params[:nameContains] = opts[:name_contains] if opts[:name_contains]
|
706
|
+
query_params[:zoneType] = opts[:zone_type] if opts[:zone_type]
|
707
|
+
query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to]
|
708
|
+
query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than]
|
709
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
710
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
711
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
608
712
|
|
609
713
|
# Header Params
|
610
714
|
header_params = {}
|
@@ -613,179 +717,222 @@ module OCI
|
|
613
717
|
|
614
718
|
post_body = nil
|
615
719
|
|
616
|
-
|
720
|
+
@api_client.call_api(
|
617
721
|
:GET,
|
618
722
|
path,
|
619
723
|
endpoint,
|
620
|
-
:
|
621
|
-
:
|
622
|
-
:
|
623
|
-
:
|
724
|
+
header_params: header_params,
|
725
|
+
query_params: query_params,
|
726
|
+
operation_signing_strategy: operation_signing_strategy,
|
727
|
+
body: post_body,
|
728
|
+
return_type: 'Array<OCI::Dns::Models::ZoneSummary>'
|
729
|
+
)
|
624
730
|
end
|
731
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
732
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
733
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
734
|
+
|
735
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
736
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
737
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
738
|
+
|
625
739
|
|
626
740
|
# Replaces records in the specified zone at a domain. You can update one record or all records for the specified zone depending on the changes provided in the request body. You can also add or remove records using this function.
|
627
741
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
628
742
|
# @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
|
629
|
-
# @param [PatchDomainRecordsDetails] patch_domain_records_details Operations describing how to modify the collection of records.
|
743
|
+
# @param [OCI::Dns::Models::PatchDomainRecordsDetails] patch_domain_records_details Operations describing how to modify the collection of records.
|
630
744
|
# @param [Hash] opts the optional parameters
|
631
745
|
# @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
|
632
746
|
# existence of at least one current representation of the target resource,
|
633
747
|
# when the field-value is `*`, or having a current representation of the
|
634
748
|
# target resource that has an entity-tag matching a member of the list of
|
635
749
|
# entity-tags provided in the field-value.
|
636
|
-
#
|
750
|
+
#
|
637
751
|
# @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
|
638
752
|
# conditional on the selected representation's last modification date being
|
639
753
|
# earlier than or equal to the date provided in the field-value. This
|
640
754
|
# field accomplishes the same purpose as If-Match for cases where the user
|
641
755
|
# agent does not have an entity-tag for the representation.
|
642
|
-
#
|
756
|
+
#
|
643
757
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
644
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::RecordCollection
|
758
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
|
645
759
|
def patch_domain_records(zone_name_or_id, domain, patch_domain_records_details, opts = {})
|
646
|
-
logger.debug
|
760
|
+
logger.debug 'Calling operation DnsClient#patch_domain_records.' if logger
|
647
761
|
|
648
762
|
raise "Missing the required parameter 'zone_name_or_id' when calling patch_domain_records." if zone_name_or_id.nil?
|
649
763
|
raise "Missing the required parameter 'domain' when calling patch_domain_records." if domain.nil?
|
650
764
|
raise "Missing the required parameter 'patch_domain_records_details' when calling patch_domain_records." if patch_domain_records_details.nil?
|
651
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
652
|
-
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util
|
765
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
766
|
+
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
|
653
767
|
|
654
|
-
path =
|
768
|
+
path = '/zones/{zoneNameOrId}/records/{domain}'.sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
|
769
|
+
operation_signing_strategy = :standard
|
655
770
|
|
656
771
|
# Query Params
|
657
772
|
query_params = {}
|
658
|
-
query_params[:
|
773
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
659
774
|
|
660
775
|
# Header Params
|
661
776
|
header_params = {}
|
662
777
|
header_params['accept'] = 'application/json'
|
663
778
|
header_params['content-type'] = 'application/json'
|
664
|
-
header_params[:'
|
665
|
-
header_params[:'
|
779
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
780
|
+
header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
|
666
781
|
|
667
782
|
post_body = @api_client.object_to_http_body(patch_domain_records_details)
|
668
783
|
|
669
|
-
|
784
|
+
@api_client.call_api(
|
670
785
|
:PATCH,
|
671
786
|
path,
|
672
787
|
endpoint,
|
673
|
-
:
|
674
|
-
:
|
675
|
-
:
|
676
|
-
:
|
788
|
+
header_params: header_params,
|
789
|
+
query_params: query_params,
|
790
|
+
operation_signing_strategy: operation_signing_strategy,
|
791
|
+
body: post_body,
|
792
|
+
return_type: 'OCI::Dns::Models::RecordCollection'
|
793
|
+
)
|
677
794
|
end
|
795
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
796
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
797
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
798
|
+
|
799
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
800
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
801
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
802
|
+
|
678
803
|
|
679
804
|
# Updates records in the specified RRSet.
|
680
805
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
681
806
|
# @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
|
682
807
|
# @param [String] rtype The type of the target RRSet within the target zone.
|
683
|
-
# @param [PatchRRSetDetails] patch_rr_set_details Operations describing how to modify the collection of records.
|
808
|
+
# @param [OCI::Dns::Models::PatchRRSetDetails] patch_rr_set_details Operations describing how to modify the collection of records.
|
684
809
|
# @param [Hash] opts the optional parameters
|
685
810
|
# @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
|
686
811
|
# existence of at least one current representation of the target resource,
|
687
812
|
# when the field-value is `*`, or having a current representation of the
|
688
813
|
# target resource that has an entity-tag matching a member of the list of
|
689
814
|
# entity-tags provided in the field-value.
|
690
|
-
#
|
815
|
+
#
|
691
816
|
# @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
|
692
817
|
# conditional on the selected representation's last modification date being
|
693
818
|
# earlier than or equal to the date provided in the field-value. This
|
694
819
|
# field accomplishes the same purpose as If-Match for cases where the user
|
695
820
|
# agent does not have an entity-tag for the representation.
|
696
|
-
#
|
821
|
+
#
|
697
822
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
698
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::RecordCollection
|
823
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
|
699
824
|
def patch_rr_set(zone_name_or_id, domain, rtype, patch_rr_set_details, opts = {})
|
700
|
-
logger.debug
|
825
|
+
logger.debug 'Calling operation DnsClient#patch_rr_set.' if logger
|
701
826
|
|
702
827
|
raise "Missing the required parameter 'zone_name_or_id' when calling patch_rr_set." if zone_name_or_id.nil?
|
703
828
|
raise "Missing the required parameter 'domain' when calling patch_rr_set." if domain.nil?
|
704
829
|
raise "Missing the required parameter 'rtype' when calling patch_rr_set." if rtype.nil?
|
705
830
|
raise "Missing the required parameter 'patch_rr_set_details' when calling patch_rr_set." if patch_rr_set_details.nil?
|
706
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
707
|
-
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util
|
708
|
-
raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util
|
831
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
832
|
+
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
|
833
|
+
raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util.blank_string?(rtype)
|
709
834
|
|
710
|
-
path =
|
835
|
+
path = '/zones/{zoneNameOrId}/records/{domain}/{rtype}'.sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s).sub('{rtype}', rtype.to_s)
|
836
|
+
operation_signing_strategy = :standard
|
711
837
|
|
712
838
|
# Query Params
|
713
839
|
query_params = {}
|
714
|
-
query_params[:
|
840
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
715
841
|
|
716
842
|
# Header Params
|
717
843
|
header_params = {}
|
718
844
|
header_params['accept'] = 'application/json'
|
719
845
|
header_params['content-type'] = 'application/json'
|
720
|
-
header_params[:'
|
721
|
-
header_params[:'
|
846
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
847
|
+
header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
|
722
848
|
|
723
849
|
post_body = @api_client.object_to_http_body(patch_rr_set_details)
|
724
850
|
|
725
|
-
|
851
|
+
@api_client.call_api(
|
726
852
|
:PATCH,
|
727
853
|
path,
|
728
854
|
endpoint,
|
729
|
-
:
|
730
|
-
:
|
731
|
-
:
|
732
|
-
:
|
855
|
+
header_params: header_params,
|
856
|
+
query_params: query_params,
|
857
|
+
operation_signing_strategy: operation_signing_strategy,
|
858
|
+
body: post_body,
|
859
|
+
return_type: 'OCI::Dns::Models::RecordCollection'
|
860
|
+
)
|
733
861
|
end
|
862
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
863
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
864
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
865
|
+
|
866
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
867
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
868
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
869
|
+
|
734
870
|
|
735
871
|
# Updates a collection of records in the specified zone. You can update
|
736
872
|
# one record or all records for the specified zone depending on the
|
737
873
|
# changes provided in the request body. You can also add or remove records
|
738
874
|
# using this function.
|
739
|
-
#
|
875
|
+
#
|
740
876
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
741
|
-
# @param [PatchZoneRecordsDetails] patch_zone_records_details The operations describing how to modify the collection of records.
|
742
|
-
#
|
877
|
+
# @param [OCI::Dns::Models::PatchZoneRecordsDetails] patch_zone_records_details The operations describing how to modify the collection of records.
|
878
|
+
#
|
743
879
|
# @param [Hash] opts the optional parameters
|
744
880
|
# @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
|
745
881
|
# existence of at least one current representation of the target resource,
|
746
882
|
# when the field-value is `*`, or having a current representation of the
|
747
883
|
# target resource that has an entity-tag matching a member of the list of
|
748
884
|
# entity-tags provided in the field-value.
|
749
|
-
#
|
885
|
+
#
|
750
886
|
# @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
|
751
887
|
# conditional on the selected representation's last modification date being
|
752
888
|
# earlier than or equal to the date provided in the field-value. This
|
753
889
|
# field accomplishes the same purpose as If-Match for cases where the user
|
754
890
|
# agent does not have an entity-tag for the representation.
|
755
|
-
#
|
891
|
+
#
|
756
892
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
757
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::RecordCollection
|
893
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
|
758
894
|
def patch_zone_records(zone_name_or_id, patch_zone_records_details, opts = {})
|
759
|
-
logger.debug
|
895
|
+
logger.debug 'Calling operation DnsClient#patch_zone_records.' if logger
|
760
896
|
|
761
897
|
raise "Missing the required parameter 'zone_name_or_id' when calling patch_zone_records." if zone_name_or_id.nil?
|
762
898
|
raise "Missing the required parameter 'patch_zone_records_details' when calling patch_zone_records." if patch_zone_records_details.nil?
|
763
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
899
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
764
900
|
|
765
|
-
path =
|
901
|
+
path = '/zones/{zoneNameOrId}/records'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
902
|
+
operation_signing_strategy = :standard
|
766
903
|
|
767
904
|
# Query Params
|
768
905
|
query_params = {}
|
769
|
-
query_params[:
|
906
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
770
907
|
|
771
908
|
# Header Params
|
772
909
|
header_params = {}
|
773
910
|
header_params['accept'] = 'application/json'
|
774
911
|
header_params['content-type'] = 'application/json'
|
775
|
-
header_params[:'
|
776
|
-
header_params[:'
|
912
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
913
|
+
header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
|
777
914
|
|
778
915
|
post_body = @api_client.object_to_http_body(patch_zone_records_details)
|
779
916
|
|
780
|
-
|
917
|
+
@api_client.call_api(
|
781
918
|
:PATCH,
|
782
919
|
path,
|
783
920
|
endpoint,
|
784
|
-
:
|
785
|
-
:
|
786
|
-
:
|
787
|
-
:
|
921
|
+
header_params: header_params,
|
922
|
+
query_params: query_params,
|
923
|
+
operation_signing_strategy: operation_signing_strategy,
|
924
|
+
body: post_body,
|
925
|
+
return_type: 'OCI::Dns::Models::RecordCollection'
|
926
|
+
)
|
788
927
|
end
|
928
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
929
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
930
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
931
|
+
|
932
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
933
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
934
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
935
|
+
|
789
936
|
|
790
937
|
# Replaces records in the specified zone at a domain with the records
|
791
938
|
# specified in the request body. If a specified record does not exist,
|
@@ -793,221 +940,261 @@ module OCI
|
|
793
940
|
# represent the record in the body of the request. If a record in the zone
|
794
941
|
# does not exist in the request body, the record will be removed from the
|
795
942
|
# zone.
|
796
|
-
#
|
943
|
+
#
|
797
944
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
798
945
|
# @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
|
799
|
-
# @param [UpdateDomainRecordsDetails] update_domain_records_details A full list of records for the domain.
|
946
|
+
# @param [OCI::Dns::Models::UpdateDomainRecordsDetails] update_domain_records_details A full list of records for the domain.
|
800
947
|
# @param [Hash] opts the optional parameters
|
801
948
|
# @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
|
802
949
|
# existence of at least one current representation of the target resource,
|
803
950
|
# when the field-value is `*`, or having a current representation of the
|
804
951
|
# target resource that has an entity-tag matching a member of the list of
|
805
952
|
# entity-tags provided in the field-value.
|
806
|
-
#
|
953
|
+
#
|
807
954
|
# @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
|
808
955
|
# conditional on the selected representation's last modification date being
|
809
956
|
# earlier than or equal to the date provided in the field-value. This
|
810
957
|
# field accomplishes the same purpose as If-Match for cases where the user
|
811
958
|
# agent does not have an entity-tag for the representation.
|
812
|
-
#
|
959
|
+
#
|
813
960
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
814
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::RecordCollection
|
961
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
|
815
962
|
def update_domain_records(zone_name_or_id, domain, update_domain_records_details, opts = {})
|
816
|
-
logger.debug
|
963
|
+
logger.debug 'Calling operation DnsClient#update_domain_records.' if logger
|
817
964
|
|
818
965
|
raise "Missing the required parameter 'zone_name_or_id' when calling update_domain_records." if zone_name_or_id.nil?
|
819
966
|
raise "Missing the required parameter 'domain' when calling update_domain_records." if domain.nil?
|
820
967
|
raise "Missing the required parameter 'update_domain_records_details' when calling update_domain_records." if update_domain_records_details.nil?
|
821
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
822
|
-
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util
|
968
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
969
|
+
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
|
823
970
|
|
824
|
-
path =
|
971
|
+
path = '/zones/{zoneNameOrId}/records/{domain}'.sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
|
972
|
+
operation_signing_strategy = :standard
|
825
973
|
|
826
974
|
# Query Params
|
827
975
|
query_params = {}
|
828
|
-
query_params[:
|
976
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
829
977
|
|
830
978
|
# Header Params
|
831
979
|
header_params = {}
|
832
980
|
header_params['accept'] = 'application/json'
|
833
981
|
header_params['content-type'] = 'application/json'
|
834
|
-
header_params[:'
|
835
|
-
header_params[:'
|
982
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
983
|
+
header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
|
836
984
|
|
837
985
|
post_body = @api_client.object_to_http_body(update_domain_records_details)
|
838
986
|
|
839
|
-
|
987
|
+
@api_client.call_api(
|
840
988
|
:PUT,
|
841
989
|
path,
|
842
990
|
endpoint,
|
843
|
-
:
|
844
|
-
:
|
845
|
-
:
|
846
|
-
:
|
991
|
+
header_params: header_params,
|
992
|
+
query_params: query_params,
|
993
|
+
operation_signing_strategy: operation_signing_strategy,
|
994
|
+
body: post_body,
|
995
|
+
return_type: 'OCI::Dns::Models::RecordCollection'
|
996
|
+
)
|
847
997
|
end
|
998
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
999
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1000
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1001
|
+
|
1002
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1003
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1004
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1005
|
+
|
848
1006
|
|
849
1007
|
# Replaces records in the specified RRSet.
|
850
1008
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
851
1009
|
# @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
|
852
1010
|
# @param [String] rtype The type of the target RRSet within the target zone.
|
853
|
-
# @param [UpdateRRSetDetails] update_rr_set_details A full list of records for the RRSet.
|
1011
|
+
# @param [OCI::Dns::Models::UpdateRRSetDetails] update_rr_set_details A full list of records for the RRSet.
|
854
1012
|
# @param [Hash] opts the optional parameters
|
855
1013
|
# @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
|
856
1014
|
# existence of at least one current representation of the target resource,
|
857
1015
|
# when the field-value is `*`, or having a current representation of the
|
858
1016
|
# target resource that has an entity-tag matching a member of the list of
|
859
1017
|
# entity-tags provided in the field-value.
|
860
|
-
#
|
1018
|
+
#
|
861
1019
|
# @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
|
862
1020
|
# conditional on the selected representation's last modification date being
|
863
1021
|
# earlier than or equal to the date provided in the field-value. This
|
864
1022
|
# field accomplishes the same purpose as If-Match for cases where the user
|
865
1023
|
# agent does not have an entity-tag for the representation.
|
866
|
-
#
|
1024
|
+
#
|
867
1025
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
868
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::RecordCollection
|
1026
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
|
869
1027
|
def update_rr_set(zone_name_or_id, domain, rtype, update_rr_set_details, opts = {})
|
870
|
-
logger.debug
|
1028
|
+
logger.debug 'Calling operation DnsClient#update_rr_set.' if logger
|
871
1029
|
|
872
1030
|
raise "Missing the required parameter 'zone_name_or_id' when calling update_rr_set." if zone_name_or_id.nil?
|
873
1031
|
raise "Missing the required parameter 'domain' when calling update_rr_set." if domain.nil?
|
874
1032
|
raise "Missing the required parameter 'rtype' when calling update_rr_set." if rtype.nil?
|
875
1033
|
raise "Missing the required parameter 'update_rr_set_details' when calling update_rr_set." if update_rr_set_details.nil?
|
876
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
877
|
-
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util
|
878
|
-
raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util
|
1034
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
1035
|
+
raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
|
1036
|
+
raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util.blank_string?(rtype)
|
879
1037
|
|
880
|
-
path =
|
1038
|
+
path = '/zones/{zoneNameOrId}/records/{domain}/{rtype}'.sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s).sub('{rtype}', rtype.to_s)
|
1039
|
+
operation_signing_strategy = :standard
|
881
1040
|
|
882
1041
|
# Query Params
|
883
1042
|
query_params = {}
|
884
|
-
query_params[:
|
1043
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
885
1044
|
|
886
1045
|
# Header Params
|
887
1046
|
header_params = {}
|
888
1047
|
header_params['accept'] = 'application/json'
|
889
1048
|
header_params['content-type'] = 'application/json'
|
890
|
-
header_params[:'
|
891
|
-
header_params[:'
|
1049
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1050
|
+
header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
|
892
1051
|
|
893
1052
|
post_body = @api_client.object_to_http_body(update_rr_set_details)
|
894
1053
|
|
895
|
-
|
1054
|
+
@api_client.call_api(
|
896
1055
|
:PUT,
|
897
1056
|
path,
|
898
1057
|
endpoint,
|
899
|
-
:
|
900
|
-
:
|
901
|
-
:
|
902
|
-
:
|
1058
|
+
header_params: header_params,
|
1059
|
+
query_params: query_params,
|
1060
|
+
operation_signing_strategy: operation_signing_strategy,
|
1061
|
+
body: post_body,
|
1062
|
+
return_type: 'OCI::Dns::Models::RecordCollection'
|
1063
|
+
)
|
903
1064
|
end
|
1065
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1066
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1067
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1068
|
+
|
1069
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1070
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1071
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1072
|
+
|
904
1073
|
|
905
1074
|
# Updates the specified secondary zone with your new external master
|
906
1075
|
# server information. For more information about secondary zone, see
|
907
1076
|
# [Manage DNS Service Zone](https://docs.us-phoenix-1.oraclecloud.com/Content/DNS/Tasks/managingdnszones.htm).
|
908
|
-
#
|
1077
|
+
#
|
909
1078
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
910
|
-
# @param [UpdateZoneDetails] update_zone_details New data for the zone.
|
1079
|
+
# @param [OCI::Dns::Models::UpdateZoneDetails] update_zone_details New data for the zone.
|
911
1080
|
# @param [Hash] opts the optional parameters
|
912
1081
|
# @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
|
913
1082
|
# existence of at least one current representation of the target resource,
|
914
1083
|
# when the field-value is `*`, or having a current representation of the
|
915
1084
|
# target resource that has an entity-tag matching a member of the list of
|
916
1085
|
# entity-tags provided in the field-value.
|
917
|
-
#
|
1086
|
+
#
|
918
1087
|
# @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
|
919
1088
|
# conditional on the selected representation's last modification date being
|
920
1089
|
# earlier than or equal to the date provided in the field-value. This
|
921
1090
|
# field accomplishes the same purpose as If-Match for cases where the user
|
922
1091
|
# agent does not have an entity-tag for the representation.
|
923
|
-
#
|
1092
|
+
#
|
924
1093
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
925
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::Zone
|
1094
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::Zone Zone}
|
926
1095
|
def update_zone(zone_name_or_id, update_zone_details, opts = {})
|
927
|
-
logger.debug
|
1096
|
+
logger.debug 'Calling operation DnsClient#update_zone.' if logger
|
928
1097
|
|
929
1098
|
raise "Missing the required parameter 'zone_name_or_id' when calling update_zone." if zone_name_or_id.nil?
|
930
1099
|
raise "Missing the required parameter 'update_zone_details' when calling update_zone." if update_zone_details.nil?
|
931
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
1100
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
932
1101
|
|
933
|
-
path =
|
1102
|
+
path = '/zones/{zoneNameOrId}'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
1103
|
+
operation_signing_strategy = :standard
|
934
1104
|
|
935
1105
|
# Query Params
|
936
1106
|
query_params = {}
|
937
|
-
query_params[:
|
1107
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
938
1108
|
|
939
1109
|
# Header Params
|
940
1110
|
header_params = {}
|
941
1111
|
header_params['accept'] = 'application/json'
|
942
1112
|
header_params['content-type'] = 'application/json'
|
943
|
-
header_params[:'
|
944
|
-
header_params[:'
|
1113
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1114
|
+
header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
|
945
1115
|
|
946
1116
|
post_body = @api_client.object_to_http_body(update_zone_details)
|
947
1117
|
|
948
|
-
|
1118
|
+
@api_client.call_api(
|
949
1119
|
:PUT,
|
950
1120
|
path,
|
951
1121
|
endpoint,
|
952
|
-
:
|
953
|
-
:
|
954
|
-
:
|
955
|
-
:
|
1122
|
+
header_params: header_params,
|
1123
|
+
query_params: query_params,
|
1124
|
+
operation_signing_strategy: operation_signing_strategy,
|
1125
|
+
body: post_body,
|
1126
|
+
return_type: 'OCI::Dns::Models::Zone'
|
1127
|
+
)
|
956
1128
|
end
|
1129
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1130
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1131
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1132
|
+
|
1133
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1134
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1135
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1136
|
+
|
957
1137
|
|
958
1138
|
# Replaces records in the specified zone with the records specified in the
|
959
1139
|
# request body. If a specified record does not exist, it will be created.
|
960
1140
|
# If the record exists, then it will be updated to represent the record in
|
961
1141
|
# the body of the request. If a record in the zone does not exist in the
|
962
1142
|
# request body, the record will be removed from the zone.
|
963
|
-
#
|
1143
|
+
#
|
964
1144
|
# @param [String] zone_name_or_id The name or OCID of the target zone.
|
965
|
-
# @param [UpdateZoneRecordsDetails] update_zone_records_details A full list of records for the zone.
|
1145
|
+
# @param [OCI::Dns::Models::UpdateZoneRecordsDetails] update_zone_records_details A full list of records for the zone.
|
966
1146
|
# @param [Hash] opts the optional parameters
|
967
1147
|
# @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
|
968
1148
|
# existence of at least one current representation of the target resource,
|
969
1149
|
# when the field-value is `*`, or having a current representation of the
|
970
1150
|
# target resource that has an entity-tag matching a member of the list of
|
971
1151
|
# entity-tags provided in the field-value.
|
972
|
-
#
|
1152
|
+
#
|
973
1153
|
# @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
|
974
1154
|
# conditional on the selected representation's last modification date being
|
975
1155
|
# earlier than or equal to the date provided in the field-value. This
|
976
1156
|
# field accomplishes the same purpose as If-Match for cases where the user
|
977
1157
|
# agent does not have an entity-tag for the representation.
|
978
|
-
#
|
1158
|
+
#
|
979
1159
|
# @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
|
980
|
-
# @return [Response] A Response object with data of type OCI::Dns::Models::RecordCollection
|
1160
|
+
# @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
|
981
1161
|
def update_zone_records(zone_name_or_id, update_zone_records_details, opts = {})
|
982
|
-
logger.debug
|
1162
|
+
logger.debug 'Calling operation DnsClient#update_zone_records.' if logger
|
983
1163
|
|
984
1164
|
raise "Missing the required parameter 'zone_name_or_id' when calling update_zone_records." if zone_name_or_id.nil?
|
985
1165
|
raise "Missing the required parameter 'update_zone_records_details' when calling update_zone_records." if update_zone_records_details.nil?
|
986
|
-
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util
|
1166
|
+
raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
|
987
1167
|
|
988
|
-
path =
|
1168
|
+
path = '/zones/{zoneNameOrId}/records'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
1169
|
+
operation_signing_strategy = :standard
|
989
1170
|
|
990
1171
|
# Query Params
|
991
1172
|
query_params = {}
|
992
|
-
query_params[:
|
1173
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
993
1174
|
|
994
1175
|
# Header Params
|
995
1176
|
header_params = {}
|
996
1177
|
header_params['accept'] = 'application/json'
|
997
1178
|
header_params['content-type'] = 'application/json'
|
998
|
-
header_params[:'
|
999
|
-
header_params[:'
|
1179
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1180
|
+
header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
|
1000
1181
|
|
1001
1182
|
post_body = @api_client.object_to_http_body(update_zone_records_details)
|
1002
1183
|
|
1003
|
-
|
1184
|
+
@api_client.call_api(
|
1004
1185
|
:PUT,
|
1005
1186
|
path,
|
1006
1187
|
endpoint,
|
1007
|
-
:
|
1008
|
-
:
|
1009
|
-
:
|
1010
|
-
:
|
1188
|
+
header_params: header_params,
|
1189
|
+
query_params: query_params,
|
1190
|
+
operation_signing_strategy: operation_signing_strategy,
|
1191
|
+
body: post_body,
|
1192
|
+
return_type: 'OCI::Dns::Models::RecordCollection'
|
1193
|
+
)
|
1011
1194
|
end
|
1195
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1196
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1197
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1012
1198
|
end
|
1013
1199
|
end
|
1200
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|