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,12 +2,14 @@
|
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
5
6
|
module OCI
|
6
|
-
|
7
|
+
# CreateVcnDetails model.
|
8
|
+
class Core::Models::CreateVcnDetails # rubocop:disable Metrics/LineLength
|
7
9
|
# **[Required]** The CIDR IP address block of the VCN.
|
8
|
-
#
|
10
|
+
#
|
9
11
|
# Example: `172.16.0.0/16`
|
10
|
-
#
|
12
|
+
#
|
11
13
|
# @return [String]
|
12
14
|
attr_accessor :cidr_block
|
13
15
|
|
@@ -17,9 +19,9 @@ module OCI
|
|
17
19
|
|
18
20
|
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
19
21
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
20
|
-
#
|
22
|
+
#
|
21
23
|
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
22
|
-
#
|
24
|
+
#
|
23
25
|
# @return [Hash<String, Hash<String, Object>>]
|
24
26
|
attr_accessor :defined_tags
|
25
27
|
|
@@ -33,28 +35,59 @@ module OCI
|
|
33
35
|
# Not required to be unique, but it's a best practice to set unique DNS labels
|
34
36
|
# for VCNs in your tenancy. Must be an alphanumeric string that begins with a letter.
|
35
37
|
# The value cannot be changed.
|
36
|
-
#
|
38
|
+
#
|
37
39
|
# You must set this value if you want instances to be able to use hostnames to
|
38
40
|
# resolve other instances in the VCN. Otherwise the Internet and VCN Resolver
|
39
41
|
# will not work.
|
40
|
-
#
|
42
|
+
#
|
41
43
|
# For more information, see
|
42
44
|
# [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
|
43
|
-
#
|
45
|
+
#
|
44
46
|
# Example: `vcn1`
|
45
|
-
#
|
47
|
+
#
|
46
48
|
# @return [String]
|
47
49
|
attr_accessor :dns_label
|
48
50
|
|
49
51
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
50
52
|
# predefined name, type, or namespace. For more information, see
|
51
53
|
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
52
|
-
#
|
54
|
+
#
|
53
55
|
# Example: `{\"Department\": \"Finance\"}`
|
54
|
-
#
|
56
|
+
#
|
55
57
|
# @return [Hash<String, String>]
|
56
58
|
attr_accessor :freeform_tags
|
57
59
|
|
60
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
61
|
+
def self.attribute_map
|
62
|
+
{
|
63
|
+
# rubocop:disable Style/SymbolLiteral
|
64
|
+
'cidr_block': :'cidrBlock',
|
65
|
+
'compartment_id': :'compartmentId',
|
66
|
+
'defined_tags': :'definedTags',
|
67
|
+
'display_name': :'displayName',
|
68
|
+
'dns_label': :'dnsLabel',
|
69
|
+
'freeform_tags': :'freeformTags'
|
70
|
+
# rubocop:enable Style/SymbolLiteral
|
71
|
+
}
|
72
|
+
end
|
73
|
+
|
74
|
+
# Attribute type mapping.
|
75
|
+
def self.swagger_types
|
76
|
+
{
|
77
|
+
# rubocop:disable Style/SymbolLiteral
|
78
|
+
'cidr_block': :'String',
|
79
|
+
'compartment_id': :'String',
|
80
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
81
|
+
'display_name': :'String',
|
82
|
+
'dns_label': :'String',
|
83
|
+
'freeform_tags': :'Hash<String, String>'
|
84
|
+
# rubocop:enable Style/SymbolLiteral
|
85
|
+
}
|
86
|
+
end
|
87
|
+
|
88
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
89
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
90
|
+
|
58
91
|
|
59
92
|
# Initializes the object
|
60
93
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -68,94 +101,82 @@ module OCI
|
|
68
101
|
return unless attributes.is_a?(Hash)
|
69
102
|
|
70
103
|
# convert string to symbol for hash key
|
71
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
104
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
72
105
|
|
73
|
-
if attributes[:'cidrBlock']
|
74
|
-
self.cidr_block = attributes[:'cidrBlock']
|
75
|
-
end
|
106
|
+
self.cidr_block = attributes[:'cidrBlock'] if attributes[:'cidrBlock']
|
76
107
|
|
77
108
|
raise 'You cannot provide both :cidrBlock and :cidr_block' if attributes.key?(:'cidrBlock') && attributes.key?(:'cidr_block')
|
78
109
|
|
79
|
-
if attributes[:'cidr_block']
|
80
|
-
self.cidr_block = attributes[:'cidr_block']
|
81
|
-
end
|
110
|
+
self.cidr_block = attributes[:'cidr_block'] if attributes[:'cidr_block']
|
82
111
|
|
83
|
-
if attributes[:'compartmentId']
|
84
|
-
self.compartment_id = attributes[:'compartmentId']
|
85
|
-
end
|
112
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
86
113
|
|
87
114
|
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
88
115
|
|
89
|
-
if attributes[:'compartment_id']
|
90
|
-
self.compartment_id = attributes[:'compartment_id']
|
91
|
-
end
|
116
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
92
117
|
|
93
|
-
if attributes[:'definedTags']
|
94
|
-
self.defined_tags = attributes[:'definedTags']
|
95
|
-
end
|
118
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
96
119
|
|
97
120
|
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
98
121
|
|
99
|
-
if attributes[:'defined_tags']
|
100
|
-
self.defined_tags = attributes[:'defined_tags']
|
101
|
-
end
|
122
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
102
123
|
|
103
|
-
if attributes[:'displayName']
|
104
|
-
self.display_name = attributes[:'displayName']
|
105
|
-
end
|
124
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
106
125
|
|
107
126
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
108
127
|
|
109
|
-
if attributes[:'display_name']
|
110
|
-
self.display_name = attributes[:'display_name']
|
111
|
-
end
|
128
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
112
129
|
|
113
|
-
if attributes[:'dnsLabel']
|
114
|
-
self.dns_label = attributes[:'dnsLabel']
|
115
|
-
end
|
130
|
+
self.dns_label = attributes[:'dnsLabel'] if attributes[:'dnsLabel']
|
116
131
|
|
117
132
|
raise 'You cannot provide both :dnsLabel and :dns_label' if attributes.key?(:'dnsLabel') && attributes.key?(:'dns_label')
|
118
133
|
|
119
|
-
if attributes[:'dns_label']
|
120
|
-
self.dns_label = attributes[:'dns_label']
|
121
|
-
end
|
134
|
+
self.dns_label = attributes[:'dns_label'] if attributes[:'dns_label']
|
122
135
|
|
123
|
-
if attributes[:'freeformTags']
|
124
|
-
self.freeform_tags = attributes[:'freeformTags']
|
125
|
-
end
|
136
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
126
137
|
|
127
138
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
128
139
|
|
129
|
-
if attributes[:'freeform_tags']
|
130
|
-
self.freeform_tags = attributes[:'freeform_tags']
|
131
|
-
end
|
132
|
-
|
140
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
133
141
|
end
|
142
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
143
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
144
|
+
|
145
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
146
|
+
|
134
147
|
|
135
148
|
# Checks equality by comparing each attribute.
|
136
|
-
# @param [Object]
|
137
|
-
def ==(
|
138
|
-
return true if
|
139
|
-
self.class ==
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
149
|
+
# @param [Object] other the other object to be compared
|
150
|
+
def ==(other)
|
151
|
+
return true if equal?(other)
|
152
|
+
self.class == other.class &&
|
153
|
+
cidr_block == other.cidr_block &&
|
154
|
+
compartment_id == other.compartment_id &&
|
155
|
+
defined_tags == other.defined_tags &&
|
156
|
+
display_name == other.display_name &&
|
157
|
+
dns_label == other.dns_label &&
|
158
|
+
freeform_tags == other.freeform_tags
|
146
159
|
end
|
160
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
147
161
|
|
148
162
|
# @see the `==` method
|
149
|
-
# @param [Object]
|
150
|
-
def eql?(
|
151
|
-
self ==
|
163
|
+
# @param [Object] other the other object to be compared
|
164
|
+
def eql?(other)
|
165
|
+
self == other
|
152
166
|
end
|
153
167
|
|
168
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
169
|
+
|
170
|
+
|
154
171
|
# Calculates hash code according to all attributes.
|
155
172
|
# @return [Fixnum] Hash code
|
156
173
|
def hash
|
157
174
|
[cidr_block, compartment_id, defined_tags, display_name, dns_label, freeform_tags].hash
|
158
175
|
end
|
176
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
177
|
+
|
178
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
179
|
+
|
159
180
|
|
160
181
|
# Builds the object from hash
|
161
182
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -167,15 +188,22 @@ module OCI
|
|
167
188
|
# check to ensure the input is an array given that the the attribute
|
168
189
|
# is documented as an array but the input is not
|
169
190
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
170
|
-
|
191
|
+
public_method("#{key}=").call(
|
192
|
+
attributes[self.class.attribute_map[key]]
|
193
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
194
|
+
)
|
171
195
|
end
|
172
196
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
173
|
-
|
174
|
-
|
197
|
+
public_method("#{key}=").call(
|
198
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
199
|
+
)
|
200
|
+
end
|
201
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
175
202
|
end
|
176
203
|
|
177
204
|
self
|
178
205
|
end
|
206
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
179
207
|
|
180
208
|
# Returns the string representation of the object
|
181
209
|
# @return [String] String presentation of the object
|
@@ -199,11 +227,11 @@ module OCI
|
|
199
227
|
|
200
228
|
# Outputs non-array value in the form of hash
|
201
229
|
# For object, use to_hash. Otherwise, just return the value
|
202
|
-
# @param [Object] value Any valid value
|
230
|
+
# @param [Object] value Any valid value
|
203
231
|
# @return [Hash] Returns the value in the form of hash
|
204
232
|
def _to_hash(value)
|
205
233
|
if value.is_a?(Array)
|
206
|
-
value.compact.map{ |v| _to_hash(v) }
|
234
|
+
value.compact.map { |v| _to_hash(v) }
|
207
235
|
elsif value.is_a?(Hash)
|
208
236
|
{}.tap do |hash|
|
209
237
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -214,31 +242,6 @@ module OCI
|
|
214
242
|
value
|
215
243
|
end
|
216
244
|
end
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
221
|
-
def self.attribute_map
|
222
|
-
{
|
223
|
-
:'cidr_block' => :'cidrBlock',
|
224
|
-
:'compartment_id' => :'compartmentId',
|
225
|
-
:'defined_tags' => :'definedTags',
|
226
|
-
:'display_name' => :'displayName',
|
227
|
-
:'dns_label' => :'dnsLabel',
|
228
|
-
:'freeform_tags' => :'freeformTags'
|
229
|
-
}
|
230
|
-
end
|
231
|
-
|
232
|
-
# Attribute type mapping.
|
233
|
-
def self.swagger_types
|
234
|
-
{
|
235
|
-
:'cidr_block' => :'String',
|
236
|
-
:'compartment_id' => :'String',
|
237
|
-
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
238
|
-
:'display_name' => :'String',
|
239
|
-
:'dns_label' => :'String',
|
240
|
-
:'freeform_tags' => :'Hash<String, String>'
|
241
|
-
}
|
242
|
-
end
|
243
245
|
end
|
244
246
|
end
|
247
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|
@@ -2,90 +2,136 @@
|
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
5
6
|
module OCI
|
6
|
-
|
7
|
-
|
8
|
-
TYPE_ENUM = [
|
9
|
-
|
7
|
+
# CreateVirtualCircuitDetails model.
|
8
|
+
class Core::Models::CreateVirtualCircuitDetails # rubocop:disable Metrics/LineLength
|
9
|
+
TYPE_ENUM = [
|
10
|
+
TYPE_PUBLIC = 'PUBLIC'.freeze,
|
11
|
+
TYPE_PRIVATE = 'PRIVATE'.freeze
|
12
|
+
].freeze
|
10
13
|
|
11
14
|
# The provisioned data rate of the connection. To get a list of the
|
12
15
|
# available bandwidth levels (that is, shapes), see
|
13
16
|
# {#list_fast_connect_provider_virtual_circuit_bandwidth_shapes list_fast_connect_provider_virtual_circuit_bandwidth_shapes}.
|
14
|
-
#
|
17
|
+
#
|
15
18
|
# Example: `10 Gbps`
|
16
|
-
#
|
19
|
+
#
|
17
20
|
# @return [String]
|
18
21
|
attr_accessor :bandwidth_shape_name
|
19
22
|
|
20
23
|
# **[Required]** The OCID of the compartment to contain the virtual circuit.
|
21
|
-
#
|
24
|
+
#
|
22
25
|
# @return [String]
|
23
26
|
attr_accessor :compartment_id
|
24
27
|
|
25
28
|
# Create a `CrossConnectMapping` for each cross-connect or cross-connect
|
26
29
|
# group this virtual circuit will run on.
|
27
|
-
#
|
30
|
+
#
|
28
31
|
# @return [Array<OCI::Core::Models::CrossConnectMapping>]
|
29
32
|
attr_accessor :cross_connect_mappings
|
30
33
|
|
31
34
|
# Your BGP ASN (either public or private). Provide this value only if
|
32
35
|
# there's a BGP session that goes from your edge router to Oracle.
|
33
36
|
# Otherwise, leave this empty or null.
|
34
|
-
#
|
37
|
+
#
|
35
38
|
# @return [Integer]
|
36
39
|
attr_accessor :customer_bgp_asn
|
37
40
|
|
38
41
|
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
39
|
-
#
|
42
|
+
#
|
40
43
|
# @return [String]
|
41
44
|
attr_accessor :display_name
|
42
45
|
|
43
46
|
# For private virtual circuits only. The OCID of the {Drg}
|
44
47
|
# that this virtual circuit uses.
|
45
|
-
#
|
48
|
+
#
|
46
49
|
# @return [String]
|
47
50
|
attr_accessor :gateway_id
|
48
51
|
|
49
52
|
# Deprecated. Instead use `providerServiceId`.
|
50
53
|
# To get a list of the provider names, see
|
51
54
|
# {#list_fast_connect_provider_services list_fast_connect_provider_services}.
|
52
|
-
#
|
55
|
+
#
|
53
56
|
# @return [String]
|
54
57
|
attr_accessor :provider_name
|
55
58
|
|
56
59
|
# The OCID of the service offered by the provider (if you're connecting
|
57
60
|
# via a provider). To get a list of the available service offerings, see
|
58
61
|
# {#list_fast_connect_provider_services list_fast_connect_provider_services}.
|
59
|
-
#
|
62
|
+
#
|
60
63
|
# @return [String]
|
61
64
|
attr_accessor :provider_service_id
|
62
65
|
|
63
66
|
# Deprecated. Instead use `providerServiceId`.
|
64
67
|
# To get a list of the provider names, see
|
65
68
|
# {#list_fast_connect_provider_services list_fast_connect_provider_services}.
|
66
|
-
#
|
69
|
+
#
|
67
70
|
# @return [String]
|
68
71
|
attr_accessor :provider_service_name
|
69
72
|
|
70
73
|
# For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to
|
71
74
|
# advertise across the connection.
|
72
|
-
#
|
75
|
+
#
|
73
76
|
# @return [Array<OCI::Core::Models::CreateVirtualCircuitPublicPrefixDetails>]
|
74
77
|
attr_accessor :public_prefixes
|
75
78
|
|
76
79
|
# The Oracle Cloud Infrastructure region where this virtual
|
77
80
|
# circuit is located.
|
78
81
|
# Example: `phx`
|
79
|
-
#
|
82
|
+
#
|
80
83
|
# @return [String]
|
81
84
|
attr_accessor :region
|
82
85
|
|
83
86
|
# **[Required]** The type of IP addresses used in this virtual circuit. PRIVATE
|
84
87
|
# means [RFC 1918](https://tools.ietf.org/html/rfc1918) addresses
|
85
88
|
# (10.0.0.0/8, 172.16/12, and 192.168/16). Only PRIVATE is supported.
|
86
|
-
#
|
89
|
+
#
|
87
90
|
# @return [String]
|
88
|
-
|
91
|
+
attr_reader :type
|
92
|
+
|
93
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
94
|
+
def self.attribute_map
|
95
|
+
{
|
96
|
+
# rubocop:disable Style/SymbolLiteral
|
97
|
+
'bandwidth_shape_name': :'bandwidthShapeName',
|
98
|
+
'compartment_id': :'compartmentId',
|
99
|
+
'cross_connect_mappings': :'crossConnectMappings',
|
100
|
+
'customer_bgp_asn': :'customerBgpAsn',
|
101
|
+
'display_name': :'displayName',
|
102
|
+
'gateway_id': :'gatewayId',
|
103
|
+
'provider_name': :'providerName',
|
104
|
+
'provider_service_id': :'providerServiceId',
|
105
|
+
'provider_service_name': :'providerServiceName',
|
106
|
+
'public_prefixes': :'publicPrefixes',
|
107
|
+
'region': :'region',
|
108
|
+
'type': :'type'
|
109
|
+
# rubocop:enable Style/SymbolLiteral
|
110
|
+
}
|
111
|
+
end
|
112
|
+
|
113
|
+
# Attribute type mapping.
|
114
|
+
def self.swagger_types
|
115
|
+
{
|
116
|
+
# rubocop:disable Style/SymbolLiteral
|
117
|
+
'bandwidth_shape_name': :'String',
|
118
|
+
'compartment_id': :'String',
|
119
|
+
'cross_connect_mappings': :'Array<OCI::Core::Models::CrossConnectMapping>',
|
120
|
+
'customer_bgp_asn': :'Integer',
|
121
|
+
'display_name': :'String',
|
122
|
+
'gateway_id': :'String',
|
123
|
+
'provider_name': :'String',
|
124
|
+
'provider_service_id': :'String',
|
125
|
+
'provider_service_name': :'String',
|
126
|
+
'public_prefixes': :'Array<OCI::Core::Models::CreateVirtualCircuitPublicPrefixDetails>',
|
127
|
+
'region': :'String',
|
128
|
+
'type': :'String'
|
129
|
+
# rubocop:enable Style/SymbolLiteral
|
130
|
+
}
|
131
|
+
end
|
132
|
+
|
133
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
134
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
89
135
|
|
90
136
|
|
91
137
|
# Initializes the object
|
@@ -106,158 +152,125 @@ module OCI
|
|
106
152
|
return unless attributes.is_a?(Hash)
|
107
153
|
|
108
154
|
# convert string to symbol for hash key
|
109
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
155
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
110
156
|
|
111
|
-
if attributes[:'bandwidthShapeName']
|
112
|
-
self.bandwidth_shape_name = attributes[:'bandwidthShapeName']
|
113
|
-
end
|
157
|
+
self.bandwidth_shape_name = attributes[:'bandwidthShapeName'] if attributes[:'bandwidthShapeName']
|
114
158
|
|
115
159
|
raise 'You cannot provide both :bandwidthShapeName and :bandwidth_shape_name' if attributes.key?(:'bandwidthShapeName') && attributes.key?(:'bandwidth_shape_name')
|
116
160
|
|
117
|
-
if attributes[:'bandwidth_shape_name']
|
118
|
-
self.bandwidth_shape_name = attributes[:'bandwidth_shape_name']
|
119
|
-
end
|
161
|
+
self.bandwidth_shape_name = attributes[:'bandwidth_shape_name'] if attributes[:'bandwidth_shape_name']
|
120
162
|
|
121
|
-
if attributes[:'compartmentId']
|
122
|
-
self.compartment_id = attributes[:'compartmentId']
|
123
|
-
end
|
163
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
124
164
|
|
125
165
|
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
126
166
|
|
127
|
-
if attributes[:'compartment_id']
|
128
|
-
self.compartment_id = attributes[:'compartment_id']
|
129
|
-
end
|
167
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
130
168
|
|
131
|
-
if attributes[:'crossConnectMappings']
|
132
|
-
self.cross_connect_mappings = attributes[:'crossConnectMappings']
|
133
|
-
end
|
169
|
+
self.cross_connect_mappings = attributes[:'crossConnectMappings'] if attributes[:'crossConnectMappings']
|
134
170
|
|
135
171
|
raise 'You cannot provide both :crossConnectMappings and :cross_connect_mappings' if attributes.key?(:'crossConnectMappings') && attributes.key?(:'cross_connect_mappings')
|
136
172
|
|
137
|
-
if attributes[:'cross_connect_mappings']
|
138
|
-
self.cross_connect_mappings = attributes[:'cross_connect_mappings']
|
139
|
-
end
|
173
|
+
self.cross_connect_mappings = attributes[:'cross_connect_mappings'] if attributes[:'cross_connect_mappings']
|
140
174
|
|
141
|
-
if attributes[:'customerBgpAsn']
|
142
|
-
self.customer_bgp_asn = attributes[:'customerBgpAsn']
|
143
|
-
end
|
175
|
+
self.customer_bgp_asn = attributes[:'customerBgpAsn'] if attributes[:'customerBgpAsn']
|
144
176
|
|
145
177
|
raise 'You cannot provide both :customerBgpAsn and :customer_bgp_asn' if attributes.key?(:'customerBgpAsn') && attributes.key?(:'customer_bgp_asn')
|
146
178
|
|
147
|
-
if attributes[:'customer_bgp_asn']
|
148
|
-
self.customer_bgp_asn = attributes[:'customer_bgp_asn']
|
149
|
-
end
|
179
|
+
self.customer_bgp_asn = attributes[:'customer_bgp_asn'] if attributes[:'customer_bgp_asn']
|
150
180
|
|
151
|
-
if attributes[:'displayName']
|
152
|
-
self.display_name = attributes[:'displayName']
|
153
|
-
end
|
181
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
154
182
|
|
155
183
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
156
184
|
|
157
|
-
if attributes[:'display_name']
|
158
|
-
self.display_name = attributes[:'display_name']
|
159
|
-
end
|
185
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
160
186
|
|
161
|
-
if attributes[:'gatewayId']
|
162
|
-
self.gateway_id = attributes[:'gatewayId']
|
163
|
-
end
|
187
|
+
self.gateway_id = attributes[:'gatewayId'] if attributes[:'gatewayId']
|
164
188
|
|
165
189
|
raise 'You cannot provide both :gatewayId and :gateway_id' if attributes.key?(:'gatewayId') && attributes.key?(:'gateway_id')
|
166
190
|
|
167
|
-
if attributes[:'gateway_id']
|
168
|
-
self.gateway_id = attributes[:'gateway_id']
|
169
|
-
end
|
191
|
+
self.gateway_id = attributes[:'gateway_id'] if attributes[:'gateway_id']
|
170
192
|
|
171
|
-
if attributes[:'providerName']
|
172
|
-
self.provider_name = attributes[:'providerName']
|
173
|
-
end
|
193
|
+
self.provider_name = attributes[:'providerName'] if attributes[:'providerName']
|
174
194
|
|
175
195
|
raise 'You cannot provide both :providerName and :provider_name' if attributes.key?(:'providerName') && attributes.key?(:'provider_name')
|
176
196
|
|
177
|
-
if attributes[:'provider_name']
|
178
|
-
self.provider_name = attributes[:'provider_name']
|
179
|
-
end
|
197
|
+
self.provider_name = attributes[:'provider_name'] if attributes[:'provider_name']
|
180
198
|
|
181
|
-
if attributes[:'providerServiceId']
|
182
|
-
self.provider_service_id = attributes[:'providerServiceId']
|
183
|
-
end
|
199
|
+
self.provider_service_id = attributes[:'providerServiceId'] if attributes[:'providerServiceId']
|
184
200
|
|
185
201
|
raise 'You cannot provide both :providerServiceId and :provider_service_id' if attributes.key?(:'providerServiceId') && attributes.key?(:'provider_service_id')
|
186
202
|
|
187
|
-
if attributes[:'provider_service_id']
|
188
|
-
self.provider_service_id = attributes[:'provider_service_id']
|
189
|
-
end
|
203
|
+
self.provider_service_id = attributes[:'provider_service_id'] if attributes[:'provider_service_id']
|
190
204
|
|
191
|
-
if attributes[:'providerServiceName']
|
192
|
-
self.provider_service_name = attributes[:'providerServiceName']
|
193
|
-
end
|
205
|
+
self.provider_service_name = attributes[:'providerServiceName'] if attributes[:'providerServiceName']
|
194
206
|
|
195
207
|
raise 'You cannot provide both :providerServiceName and :provider_service_name' if attributes.key?(:'providerServiceName') && attributes.key?(:'provider_service_name')
|
196
208
|
|
197
|
-
if attributes[:'provider_service_name']
|
198
|
-
self.provider_service_name = attributes[:'provider_service_name']
|
199
|
-
end
|
209
|
+
self.provider_service_name = attributes[:'provider_service_name'] if attributes[:'provider_service_name']
|
200
210
|
|
201
|
-
if attributes[:'publicPrefixes']
|
202
|
-
self.public_prefixes = attributes[:'publicPrefixes']
|
203
|
-
end
|
211
|
+
self.public_prefixes = attributes[:'publicPrefixes'] if attributes[:'publicPrefixes']
|
204
212
|
|
205
213
|
raise 'You cannot provide both :publicPrefixes and :public_prefixes' if attributes.key?(:'publicPrefixes') && attributes.key?(:'public_prefixes')
|
206
214
|
|
207
|
-
if attributes[:'public_prefixes']
|
208
|
-
self.public_prefixes = attributes[:'public_prefixes']
|
209
|
-
end
|
215
|
+
self.public_prefixes = attributes[:'public_prefixes'] if attributes[:'public_prefixes']
|
210
216
|
|
211
|
-
if attributes[:'region']
|
212
|
-
self.region = attributes[:'region']
|
213
|
-
end
|
214
|
-
|
215
|
-
if attributes[:'type']
|
216
|
-
self.type = attributes[:'type']
|
217
|
-
end
|
217
|
+
self.region = attributes[:'region'] if attributes[:'region']
|
218
218
|
|
219
|
+
self.type = attributes[:'type'] if attributes[:'type']
|
219
220
|
end
|
221
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
222
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
220
223
|
|
221
224
|
# Custom attribute writer method checking allowed values (enum).
|
222
225
|
# @param [Object] type Object to be assigned
|
223
226
|
def type=(type)
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
end
|
227
|
+
# rubocop: disable Metrics/LineLength
|
228
|
+
raise "Invalid value for 'type': this must be one of the values in TYPE_ENUM." if type && !TYPE_ENUM.include?(type)
|
229
|
+
# rubocop: enable Metrics/LineLength
|
230
|
+
@type = type
|
229
231
|
end
|
230
232
|
|
233
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
234
|
+
|
235
|
+
|
231
236
|
# Checks equality by comparing each attribute.
|
232
|
-
# @param [Object]
|
233
|
-
def ==(
|
234
|
-
return true if
|
235
|
-
self.class ==
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
237
|
+
# @param [Object] other the other object to be compared
|
238
|
+
def ==(other)
|
239
|
+
return true if equal?(other)
|
240
|
+
self.class == other.class &&
|
241
|
+
bandwidth_shape_name == other.bandwidth_shape_name &&
|
242
|
+
compartment_id == other.compartment_id &&
|
243
|
+
cross_connect_mappings == other.cross_connect_mappings &&
|
244
|
+
customer_bgp_asn == other.customer_bgp_asn &&
|
245
|
+
display_name == other.display_name &&
|
246
|
+
gateway_id == other.gateway_id &&
|
247
|
+
provider_name == other.provider_name &&
|
248
|
+
provider_service_id == other.provider_service_id &&
|
249
|
+
provider_service_name == other.provider_service_name &&
|
250
|
+
public_prefixes == other.public_prefixes &&
|
251
|
+
region == other.region &&
|
252
|
+
type == other.type
|
248
253
|
end
|
254
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
249
255
|
|
250
256
|
# @see the `==` method
|
251
|
-
# @param [Object]
|
252
|
-
def eql?(
|
253
|
-
self ==
|
257
|
+
# @param [Object] other the other object to be compared
|
258
|
+
def eql?(other)
|
259
|
+
self == other
|
254
260
|
end
|
255
261
|
|
262
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
263
|
+
|
264
|
+
|
256
265
|
# Calculates hash code according to all attributes.
|
257
266
|
# @return [Fixnum] Hash code
|
258
267
|
def hash
|
259
268
|
[bandwidth_shape_name, compartment_id, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, provider_name, provider_service_id, provider_service_name, public_prefixes, region, type].hash
|
260
269
|
end
|
270
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
271
|
+
|
272
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
273
|
+
|
261
274
|
|
262
275
|
# Builds the object from hash
|
263
276
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -269,15 +282,22 @@ module OCI
|
|
269
282
|
# check to ensure the input is an array given that the the attribute
|
270
283
|
# is documented as an array but the input is not
|
271
284
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
272
|
-
|
285
|
+
public_method("#{key}=").call(
|
286
|
+
attributes[self.class.attribute_map[key]]
|
287
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
288
|
+
)
|
273
289
|
end
|
274
290
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
275
|
-
|
276
|
-
|
291
|
+
public_method("#{key}=").call(
|
292
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
293
|
+
)
|
294
|
+
end
|
295
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
277
296
|
end
|
278
297
|
|
279
298
|
self
|
280
299
|
end
|
300
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
281
301
|
|
282
302
|
# Returns the string representation of the object
|
283
303
|
# @return [String] String presentation of the object
|
@@ -301,11 +321,11 @@ module OCI
|
|
301
321
|
|
302
322
|
# Outputs non-array value in the form of hash
|
303
323
|
# For object, use to_hash. Otherwise, just return the value
|
304
|
-
# @param [Object] value Any valid value
|
324
|
+
# @param [Object] value Any valid value
|
305
325
|
# @return [Hash] Returns the value in the form of hash
|
306
326
|
def _to_hash(value)
|
307
327
|
if value.is_a?(Array)
|
308
|
-
value.compact.map{ |v| _to_hash(v) }
|
328
|
+
value.compact.map { |v| _to_hash(v) }
|
309
329
|
elsif value.is_a?(Hash)
|
310
330
|
{}.tap do |hash|
|
311
331
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -316,43 +336,6 @@ module OCI
|
|
316
336
|
value
|
317
337
|
end
|
318
338
|
end
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
323
|
-
def self.attribute_map
|
324
|
-
{
|
325
|
-
:'bandwidth_shape_name' => :'bandwidthShapeName',
|
326
|
-
:'compartment_id' => :'compartmentId',
|
327
|
-
:'cross_connect_mappings' => :'crossConnectMappings',
|
328
|
-
:'customer_bgp_asn' => :'customerBgpAsn',
|
329
|
-
:'display_name' => :'displayName',
|
330
|
-
:'gateway_id' => :'gatewayId',
|
331
|
-
:'provider_name' => :'providerName',
|
332
|
-
:'provider_service_id' => :'providerServiceId',
|
333
|
-
:'provider_service_name' => :'providerServiceName',
|
334
|
-
:'public_prefixes' => :'publicPrefixes',
|
335
|
-
:'region' => :'region',
|
336
|
-
:'type' => :'type'
|
337
|
-
}
|
338
|
-
end
|
339
|
-
|
340
|
-
# Attribute type mapping.
|
341
|
-
def self.swagger_types
|
342
|
-
{
|
343
|
-
:'bandwidth_shape_name' => :'String',
|
344
|
-
:'compartment_id' => :'String',
|
345
|
-
:'cross_connect_mappings' => :'Array<OCI::Core::Models::CrossConnectMapping>',
|
346
|
-
:'customer_bgp_asn' => :'Integer',
|
347
|
-
:'display_name' => :'String',
|
348
|
-
:'gateway_id' => :'String',
|
349
|
-
:'provider_name' => :'String',
|
350
|
-
:'provider_service_id' => :'String',
|
351
|
-
:'provider_service_name' => :'String',
|
352
|
-
:'public_prefixes' => :'Array<OCI::Core::Models::CreateVirtualCircuitPublicPrefixDetails>',
|
353
|
-
:'region' => :'String',
|
354
|
-
:'type' => :'String'
|
355
|
-
}
|
356
|
-
end
|
357
339
|
end
|
358
340
|
end
|
341
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|