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
@@ -1,7 +1,9 @@
|
|
1
1
|
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
|
+
require 'logger'
|
4
5
|
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
5
7
|
module OCI
|
6
8
|
# For use with Oracle Cloud Infrastructure FastConnect.
|
7
9
|
#
|
@@ -23,57 +25,63 @@ module OCI
|
|
23
25
|
# talk to an administrator. If you're an administrator who needs to write policies to give users access, see
|
24
26
|
# [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
25
27
|
#
|
26
|
-
class Core::Models::VirtualCircuit
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
BGP_SESSION_STATE_ENUM = [
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
28
|
+
class Core::Models::VirtualCircuit # rubocop:disable Metrics/LineLength
|
29
|
+
BGP_MANAGEMENT_ENUM = [
|
30
|
+
BGP_MANAGEMENT_CUSTOMER_MANAGED = 'CUSTOMER_MANAGED'.freeze,
|
31
|
+
BGP_MANAGEMENT_PROVIDER_MANAGED = 'PROVIDER_MANAGED'.freeze,
|
32
|
+
BGP_MANAGEMENT_ORACLE_MANAGED = 'ORACLE_MANAGED'.freeze,
|
33
|
+
BGP_MANAGEMENT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
34
|
+
].freeze
|
35
|
+
|
36
|
+
BGP_SESSION_STATE_ENUM = [
|
37
|
+
BGP_SESSION_STATE_UP = 'UP'.freeze,
|
38
|
+
BGP_SESSION_STATE_DOWN = 'DOWN'.freeze,
|
39
|
+
BGP_SESSION_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
40
|
+
].freeze
|
41
|
+
|
42
|
+
LIFECYCLE_STATE_ENUM = [
|
43
|
+
LIFECYCLE_STATE_PENDING_PROVIDER = 'PENDING_PROVIDER'.freeze,
|
44
|
+
LIFECYCLE_STATE_VERIFYING = 'VERIFYING'.freeze,
|
45
|
+
LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
|
46
|
+
LIFECYCLE_STATE_PROVISIONED = 'PROVISIONED'.freeze,
|
47
|
+
LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
|
48
|
+
LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze,
|
49
|
+
LIFECYCLE_STATE_TERMINATING = 'TERMINATING'.freeze,
|
50
|
+
LIFECYCLE_STATE_TERMINATED = 'TERMINATED'.freeze,
|
51
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
52
|
+
].freeze
|
53
|
+
|
54
|
+
PROVIDER_STATE_ENUM = [
|
55
|
+
PROVIDER_STATE_ACTIVE = 'ACTIVE'.freeze,
|
56
|
+
PROVIDER_STATE_INACTIVE = 'INACTIVE'.freeze,
|
57
|
+
PROVIDER_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
58
|
+
].freeze
|
59
|
+
|
60
|
+
SERVICE_TYPE_ENUM = [
|
61
|
+
SERVICE_TYPE_COLOCATED = 'COLOCATED'.freeze,
|
62
|
+
SERVICE_TYPE_LAYER2 = 'LAYER2'.freeze,
|
63
|
+
SERVICE_TYPE_LAYER3 = 'LAYER3'.freeze,
|
64
|
+
SERVICE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
65
|
+
].freeze
|
66
|
+
|
67
|
+
TYPE_ENUM = [
|
68
|
+
TYPE_PUBLIC = 'PUBLIC'.freeze,
|
69
|
+
TYPE_PRIVATE = 'PRIVATE'.freeze,
|
70
|
+
TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
71
|
+
].freeze
|
64
72
|
|
65
73
|
# The provisioned data rate of the connection.
|
66
74
|
# @return [String]
|
67
75
|
attr_accessor :bandwidth_shape_name
|
68
76
|
|
69
77
|
# BGP management option.
|
70
|
-
#
|
78
|
+
#
|
71
79
|
# @return [String]
|
72
|
-
|
80
|
+
attr_reader :bgp_management
|
73
81
|
|
74
82
|
# The state of the BGP session associated with the virtual circuit.
|
75
83
|
# @return [String]
|
76
|
-
|
84
|
+
attr_reader :bgp_session_state
|
77
85
|
|
78
86
|
# The OCID of the compartment containing the virtual circuit.
|
79
87
|
# @return [String]
|
@@ -82,7 +90,7 @@ module OCI
|
|
82
90
|
# An array of mappings, each containing properties for a
|
83
91
|
# cross-connect or cross-connect group that is associated with this
|
84
92
|
# virtual circuit.
|
85
|
-
#
|
93
|
+
#
|
86
94
|
# @return [Array<OCI::Core::Models::CrossConnectMapping>]
|
87
95
|
attr_accessor :cross_connect_mappings
|
88
96
|
|
@@ -91,19 +99,19 @@ module OCI
|
|
91
99
|
# edge router and Oracle, the value is the customer's ASN. If the BGP
|
92
100
|
# session is between the provider's edge router and Oracle, the value
|
93
101
|
# is the provider's ASN.
|
94
|
-
#
|
102
|
+
#
|
95
103
|
# @return [Integer]
|
96
104
|
attr_accessor :customer_bgp_asn
|
97
105
|
|
98
106
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
99
107
|
# Avoid entering confidential information.
|
100
|
-
#
|
108
|
+
#
|
101
109
|
# @return [String]
|
102
110
|
attr_accessor :display_name
|
103
111
|
|
104
112
|
# The OCID of the customer's {Drg}
|
105
113
|
# that this virtual circuit uses. Applicable only to private virtual circuits.
|
106
|
-
#
|
114
|
+
#
|
107
115
|
# @return [String]
|
108
116
|
attr_accessor :gateway_id
|
109
117
|
|
@@ -114,26 +122,26 @@ module OCI
|
|
114
122
|
# The virtual circuit's current state. For information about
|
115
123
|
# the different states, see
|
116
124
|
# [FastConnect Overview](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
|
117
|
-
#
|
125
|
+
#
|
118
126
|
# @return [String]
|
119
|
-
|
127
|
+
attr_reader :lifecycle_state
|
120
128
|
|
121
129
|
# The Oracle BGP ASN.
|
122
130
|
# @return [Integer]
|
123
131
|
attr_accessor :oracle_bgp_asn
|
124
132
|
|
125
133
|
# Deprecated. Instead use `providerServiceId`.
|
126
|
-
#
|
134
|
+
#
|
127
135
|
# @return [String]
|
128
136
|
attr_accessor :provider_name
|
129
137
|
|
130
138
|
# The OCID of the service offered by the provider (if the customer is connecting via a provider).
|
131
|
-
#
|
139
|
+
#
|
132
140
|
# @return [String]
|
133
141
|
attr_accessor :provider_service_id
|
134
142
|
|
135
143
|
# Deprecated. Instead use `providerServiceId`.
|
136
|
-
#
|
144
|
+
#
|
137
145
|
# @return [String]
|
138
146
|
attr_accessor :provider_service_name
|
139
147
|
|
@@ -142,46 +150,107 @@ module OCI
|
|
142
150
|
# the provider has provisioned the virtual circuit from their end.
|
143
151
|
# INACTIVE means the provider has not yet provisioned the virtual
|
144
152
|
# circuit, or has de-provisioned it.
|
145
|
-
#
|
153
|
+
#
|
146
154
|
# @return [String]
|
147
|
-
|
155
|
+
attr_reader :provider_state
|
148
156
|
|
149
157
|
# For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to
|
150
158
|
# advertise across the connection. Each prefix must be /24 or less specific.
|
151
|
-
#
|
159
|
+
#
|
152
160
|
# @return [Array<String>]
|
153
161
|
attr_accessor :public_prefixes
|
154
162
|
|
155
163
|
# Provider-supplied reference information about this virtual circuit
|
156
164
|
# (if the customer is connecting via a provider).
|
157
|
-
#
|
165
|
+
#
|
158
166
|
# @return [String]
|
159
167
|
attr_accessor :reference_comment
|
160
168
|
|
161
169
|
# The Oracle Cloud Infrastructure region where this virtual
|
162
170
|
# circuit is located.
|
163
|
-
#
|
171
|
+
#
|
164
172
|
# @return [String]
|
165
173
|
attr_accessor :region
|
166
174
|
|
167
175
|
# Provider service type.
|
168
|
-
#
|
176
|
+
#
|
169
177
|
# @return [String]
|
170
|
-
|
178
|
+
attr_reader :service_type
|
171
179
|
|
172
180
|
# The date and time the virtual circuit was created,
|
173
181
|
# in the format defined by RFC3339.
|
174
|
-
#
|
182
|
+
#
|
175
183
|
# Example: `2016-08-25T21:10:29.600Z`
|
176
|
-
#
|
184
|
+
#
|
177
185
|
# @return [DateTime]
|
178
186
|
attr_accessor :time_created
|
179
187
|
|
180
188
|
# Whether the virtual circuit supports private or public peering. For more information,
|
181
189
|
# see [FastConnect Overview](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
|
182
|
-
#
|
190
|
+
#
|
183
191
|
# @return [String]
|
184
|
-
|
192
|
+
attr_reader :type
|
193
|
+
|
194
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
195
|
+
def self.attribute_map
|
196
|
+
{
|
197
|
+
# rubocop:disable Style/SymbolLiteral
|
198
|
+
'bandwidth_shape_name': :'bandwidthShapeName',
|
199
|
+
'bgp_management': :'bgpManagement',
|
200
|
+
'bgp_session_state': :'bgpSessionState',
|
201
|
+
'compartment_id': :'compartmentId',
|
202
|
+
'cross_connect_mappings': :'crossConnectMappings',
|
203
|
+
'customer_bgp_asn': :'customerBgpAsn',
|
204
|
+
'display_name': :'displayName',
|
205
|
+
'gateway_id': :'gatewayId',
|
206
|
+
'id': :'id',
|
207
|
+
'lifecycle_state': :'lifecycleState',
|
208
|
+
'oracle_bgp_asn': :'oracleBgpAsn',
|
209
|
+
'provider_name': :'providerName',
|
210
|
+
'provider_service_id': :'providerServiceId',
|
211
|
+
'provider_service_name': :'providerServiceName',
|
212
|
+
'provider_state': :'providerState',
|
213
|
+
'public_prefixes': :'publicPrefixes',
|
214
|
+
'reference_comment': :'referenceComment',
|
215
|
+
'region': :'region',
|
216
|
+
'service_type': :'serviceType',
|
217
|
+
'time_created': :'timeCreated',
|
218
|
+
'type': :'type'
|
219
|
+
# rubocop:enable Style/SymbolLiteral
|
220
|
+
}
|
221
|
+
end
|
222
|
+
|
223
|
+
# Attribute type mapping.
|
224
|
+
def self.swagger_types
|
225
|
+
{
|
226
|
+
# rubocop:disable Style/SymbolLiteral
|
227
|
+
'bandwidth_shape_name': :'String',
|
228
|
+
'bgp_management': :'String',
|
229
|
+
'bgp_session_state': :'String',
|
230
|
+
'compartment_id': :'String',
|
231
|
+
'cross_connect_mappings': :'Array<OCI::Core::Models::CrossConnectMapping>',
|
232
|
+
'customer_bgp_asn': :'Integer',
|
233
|
+
'display_name': :'String',
|
234
|
+
'gateway_id': :'String',
|
235
|
+
'id': :'String',
|
236
|
+
'lifecycle_state': :'String',
|
237
|
+
'oracle_bgp_asn': :'Integer',
|
238
|
+
'provider_name': :'String',
|
239
|
+
'provider_service_id': :'String',
|
240
|
+
'provider_service_name': :'String',
|
241
|
+
'provider_state': :'String',
|
242
|
+
'public_prefixes': :'Array<String>',
|
243
|
+
'reference_comment': :'String',
|
244
|
+
'region': :'String',
|
245
|
+
'service_type': :'String',
|
246
|
+
'time_created': :'DateTime',
|
247
|
+
'type': :'String'
|
248
|
+
# rubocop:enable Style/SymbolLiteral
|
249
|
+
}
|
250
|
+
end
|
251
|
+
|
252
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
253
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
185
254
|
|
186
255
|
|
187
256
|
# Initializes the object
|
@@ -211,301 +280,265 @@ module OCI
|
|
211
280
|
return unless attributes.is_a?(Hash)
|
212
281
|
|
213
282
|
# convert string to symbol for hash key
|
214
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
283
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
215
284
|
|
216
|
-
if attributes[:'bandwidthShapeName']
|
217
|
-
self.bandwidth_shape_name = attributes[:'bandwidthShapeName']
|
218
|
-
end
|
285
|
+
self.bandwidth_shape_name = attributes[:'bandwidthShapeName'] if attributes[:'bandwidthShapeName']
|
219
286
|
|
220
287
|
raise 'You cannot provide both :bandwidthShapeName and :bandwidth_shape_name' if attributes.key?(:'bandwidthShapeName') && attributes.key?(:'bandwidth_shape_name')
|
221
288
|
|
222
|
-
if attributes[:'bandwidth_shape_name']
|
223
|
-
self.bandwidth_shape_name = attributes[:'bandwidth_shape_name']
|
224
|
-
end
|
289
|
+
self.bandwidth_shape_name = attributes[:'bandwidth_shape_name'] if attributes[:'bandwidth_shape_name']
|
225
290
|
|
226
|
-
if attributes[:'bgpManagement']
|
227
|
-
self.bgp_management = attributes[:'bgpManagement']
|
228
|
-
end
|
291
|
+
self.bgp_management = attributes[:'bgpManagement'] if attributes[:'bgpManagement']
|
229
292
|
|
230
293
|
raise 'You cannot provide both :bgpManagement and :bgp_management' if attributes.key?(:'bgpManagement') && attributes.key?(:'bgp_management')
|
231
294
|
|
232
|
-
if attributes[:'bgp_management']
|
233
|
-
self.bgp_management = attributes[:'bgp_management']
|
234
|
-
end
|
295
|
+
self.bgp_management = attributes[:'bgp_management'] if attributes[:'bgp_management']
|
235
296
|
|
236
|
-
if attributes[:'bgpSessionState']
|
237
|
-
self.bgp_session_state = attributes[:'bgpSessionState']
|
238
|
-
end
|
297
|
+
self.bgp_session_state = attributes[:'bgpSessionState'] if attributes[:'bgpSessionState']
|
239
298
|
|
240
299
|
raise 'You cannot provide both :bgpSessionState and :bgp_session_state' if attributes.key?(:'bgpSessionState') && attributes.key?(:'bgp_session_state')
|
241
300
|
|
242
|
-
if attributes[:'bgp_session_state']
|
243
|
-
self.bgp_session_state = attributes[:'bgp_session_state']
|
244
|
-
end
|
301
|
+
self.bgp_session_state = attributes[:'bgp_session_state'] if attributes[:'bgp_session_state']
|
245
302
|
|
246
|
-
if attributes[:'compartmentId']
|
247
|
-
self.compartment_id = attributes[:'compartmentId']
|
248
|
-
end
|
303
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
249
304
|
|
250
305
|
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
251
306
|
|
252
|
-
if attributes[:'compartment_id']
|
253
|
-
self.compartment_id = attributes[:'compartment_id']
|
254
|
-
end
|
307
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
255
308
|
|
256
|
-
if attributes[:'crossConnectMappings']
|
257
|
-
self.cross_connect_mappings = attributes[:'crossConnectMappings']
|
258
|
-
end
|
309
|
+
self.cross_connect_mappings = attributes[:'crossConnectMappings'] if attributes[:'crossConnectMappings']
|
259
310
|
|
260
311
|
raise 'You cannot provide both :crossConnectMappings and :cross_connect_mappings' if attributes.key?(:'crossConnectMappings') && attributes.key?(:'cross_connect_mappings')
|
261
312
|
|
262
|
-
if attributes[:'cross_connect_mappings']
|
263
|
-
self.cross_connect_mappings = attributes[:'cross_connect_mappings']
|
264
|
-
end
|
313
|
+
self.cross_connect_mappings = attributes[:'cross_connect_mappings'] if attributes[:'cross_connect_mappings']
|
265
314
|
|
266
|
-
if attributes[:'customerBgpAsn']
|
267
|
-
self.customer_bgp_asn = attributes[:'customerBgpAsn']
|
268
|
-
end
|
315
|
+
self.customer_bgp_asn = attributes[:'customerBgpAsn'] if attributes[:'customerBgpAsn']
|
269
316
|
|
270
317
|
raise 'You cannot provide both :customerBgpAsn and :customer_bgp_asn' if attributes.key?(:'customerBgpAsn') && attributes.key?(:'customer_bgp_asn')
|
271
318
|
|
272
|
-
if attributes[:'customer_bgp_asn']
|
273
|
-
self.customer_bgp_asn = attributes[:'customer_bgp_asn']
|
274
|
-
end
|
319
|
+
self.customer_bgp_asn = attributes[:'customer_bgp_asn'] if attributes[:'customer_bgp_asn']
|
275
320
|
|
276
|
-
if attributes[:'displayName']
|
277
|
-
self.display_name = attributes[:'displayName']
|
278
|
-
end
|
321
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
279
322
|
|
280
323
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
281
324
|
|
282
|
-
if attributes[:'display_name']
|
283
|
-
self.display_name = attributes[:'display_name']
|
284
|
-
end
|
325
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
285
326
|
|
286
|
-
if attributes[:'gatewayId']
|
287
|
-
self.gateway_id = attributes[:'gatewayId']
|
288
|
-
end
|
327
|
+
self.gateway_id = attributes[:'gatewayId'] if attributes[:'gatewayId']
|
289
328
|
|
290
329
|
raise 'You cannot provide both :gatewayId and :gateway_id' if attributes.key?(:'gatewayId') && attributes.key?(:'gateway_id')
|
291
330
|
|
292
|
-
if attributes[:'gateway_id']
|
293
|
-
self.gateway_id = attributes[:'gateway_id']
|
294
|
-
end
|
331
|
+
self.gateway_id = attributes[:'gateway_id'] if attributes[:'gateway_id']
|
295
332
|
|
296
|
-
if attributes[:'id']
|
297
|
-
self.id = attributes[:'id']
|
298
|
-
end
|
333
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
299
334
|
|
300
|
-
if attributes[:'lifecycleState']
|
301
|
-
self.lifecycle_state = attributes[:'lifecycleState']
|
302
|
-
end
|
335
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
303
336
|
|
304
337
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
305
338
|
|
306
|
-
if attributes[:'lifecycle_state']
|
307
|
-
self.lifecycle_state = attributes[:'lifecycle_state']
|
308
|
-
end
|
339
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
309
340
|
|
310
|
-
if attributes[:'oracleBgpAsn']
|
311
|
-
self.oracle_bgp_asn = attributes[:'oracleBgpAsn']
|
312
|
-
end
|
341
|
+
self.oracle_bgp_asn = attributes[:'oracleBgpAsn'] if attributes[:'oracleBgpAsn']
|
313
342
|
|
314
343
|
raise 'You cannot provide both :oracleBgpAsn and :oracle_bgp_asn' if attributes.key?(:'oracleBgpAsn') && attributes.key?(:'oracle_bgp_asn')
|
315
344
|
|
316
|
-
if attributes[:'oracle_bgp_asn']
|
317
|
-
self.oracle_bgp_asn = attributes[:'oracle_bgp_asn']
|
318
|
-
end
|
345
|
+
self.oracle_bgp_asn = attributes[:'oracle_bgp_asn'] if attributes[:'oracle_bgp_asn']
|
319
346
|
|
320
|
-
if attributes[:'providerName']
|
321
|
-
self.provider_name = attributes[:'providerName']
|
322
|
-
end
|
347
|
+
self.provider_name = attributes[:'providerName'] if attributes[:'providerName']
|
323
348
|
|
324
349
|
raise 'You cannot provide both :providerName and :provider_name' if attributes.key?(:'providerName') && attributes.key?(:'provider_name')
|
325
350
|
|
326
|
-
if attributes[:'provider_name']
|
327
|
-
self.provider_name = attributes[:'provider_name']
|
328
|
-
end
|
351
|
+
self.provider_name = attributes[:'provider_name'] if attributes[:'provider_name']
|
329
352
|
|
330
|
-
if attributes[:'providerServiceId']
|
331
|
-
self.provider_service_id = attributes[:'providerServiceId']
|
332
|
-
end
|
353
|
+
self.provider_service_id = attributes[:'providerServiceId'] if attributes[:'providerServiceId']
|
333
354
|
|
334
355
|
raise 'You cannot provide both :providerServiceId and :provider_service_id' if attributes.key?(:'providerServiceId') && attributes.key?(:'provider_service_id')
|
335
356
|
|
336
|
-
if attributes[:'provider_service_id']
|
337
|
-
self.provider_service_id = attributes[:'provider_service_id']
|
338
|
-
end
|
357
|
+
self.provider_service_id = attributes[:'provider_service_id'] if attributes[:'provider_service_id']
|
339
358
|
|
340
|
-
if attributes[:'providerServiceName']
|
341
|
-
self.provider_service_name = attributes[:'providerServiceName']
|
342
|
-
end
|
359
|
+
self.provider_service_name = attributes[:'providerServiceName'] if attributes[:'providerServiceName']
|
343
360
|
|
344
361
|
raise 'You cannot provide both :providerServiceName and :provider_service_name' if attributes.key?(:'providerServiceName') && attributes.key?(:'provider_service_name')
|
345
362
|
|
346
|
-
if attributes[:'provider_service_name']
|
347
|
-
self.provider_service_name = attributes[:'provider_service_name']
|
348
|
-
end
|
363
|
+
self.provider_service_name = attributes[:'provider_service_name'] if attributes[:'provider_service_name']
|
349
364
|
|
350
|
-
if attributes[:'providerState']
|
351
|
-
self.provider_state = attributes[:'providerState']
|
352
|
-
end
|
365
|
+
self.provider_state = attributes[:'providerState'] if attributes[:'providerState']
|
353
366
|
|
354
367
|
raise 'You cannot provide both :providerState and :provider_state' if attributes.key?(:'providerState') && attributes.key?(:'provider_state')
|
355
368
|
|
356
|
-
if attributes[:'provider_state']
|
357
|
-
self.provider_state = attributes[:'provider_state']
|
358
|
-
end
|
369
|
+
self.provider_state = attributes[:'provider_state'] if attributes[:'provider_state']
|
359
370
|
|
360
|
-
if attributes[:'publicPrefixes']
|
361
|
-
self.public_prefixes = attributes[:'publicPrefixes']
|
362
|
-
end
|
371
|
+
self.public_prefixes = attributes[:'publicPrefixes'] if attributes[:'publicPrefixes']
|
363
372
|
|
364
373
|
raise 'You cannot provide both :publicPrefixes and :public_prefixes' if attributes.key?(:'publicPrefixes') && attributes.key?(:'public_prefixes')
|
365
374
|
|
366
|
-
if attributes[:'public_prefixes']
|
367
|
-
self.public_prefixes = attributes[:'public_prefixes']
|
368
|
-
end
|
375
|
+
self.public_prefixes = attributes[:'public_prefixes'] if attributes[:'public_prefixes']
|
369
376
|
|
370
|
-
if attributes[:'referenceComment']
|
371
|
-
self.reference_comment = attributes[:'referenceComment']
|
372
|
-
end
|
377
|
+
self.reference_comment = attributes[:'referenceComment'] if attributes[:'referenceComment']
|
373
378
|
|
374
379
|
raise 'You cannot provide both :referenceComment and :reference_comment' if attributes.key?(:'referenceComment') && attributes.key?(:'reference_comment')
|
375
380
|
|
376
|
-
if attributes[:'reference_comment']
|
377
|
-
self.reference_comment = attributes[:'reference_comment']
|
378
|
-
end
|
381
|
+
self.reference_comment = attributes[:'reference_comment'] if attributes[:'reference_comment']
|
379
382
|
|
380
|
-
if attributes[:'region']
|
381
|
-
self.region = attributes[:'region']
|
382
|
-
end
|
383
|
+
self.region = attributes[:'region'] if attributes[:'region']
|
383
384
|
|
384
|
-
if attributes[:'serviceType']
|
385
|
-
self.service_type = attributes[:'serviceType']
|
386
|
-
end
|
385
|
+
self.service_type = attributes[:'serviceType'] if attributes[:'serviceType']
|
387
386
|
|
388
387
|
raise 'You cannot provide both :serviceType and :service_type' if attributes.key?(:'serviceType') && attributes.key?(:'service_type')
|
389
388
|
|
390
|
-
if attributes[:'service_type']
|
391
|
-
self.service_type = attributes[:'service_type']
|
392
|
-
end
|
389
|
+
self.service_type = attributes[:'service_type'] if attributes[:'service_type']
|
393
390
|
|
394
|
-
if attributes[:'timeCreated']
|
395
|
-
self.time_created = attributes[:'timeCreated']
|
396
|
-
end
|
391
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
397
392
|
|
398
393
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
399
394
|
|
400
|
-
if attributes[:'time_created']
|
401
|
-
self.time_created = attributes[:'time_created']
|
402
|
-
end
|
403
|
-
|
404
|
-
if attributes[:'type']
|
405
|
-
self.type = attributes[:'type']
|
406
|
-
end
|
395
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
407
396
|
|
397
|
+
self.type = attributes[:'type'] if attributes[:'type']
|
408
398
|
end
|
399
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
400
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
409
401
|
|
410
402
|
# Custom attribute writer method checking allowed values (enum).
|
411
403
|
# @param [Object] bgp_management Object to be assigned
|
412
404
|
def bgp_management=(bgp_management)
|
405
|
+
# rubocop:disable Style/ConditionalAssignment
|
413
406
|
if bgp_management && !BGP_MANAGEMENT_ENUM.include?(bgp_management)
|
407
|
+
# rubocop: disable Metrics/LineLength
|
408
|
+
OCI.logger.debug("Unknown value for 'bgp_management' [" + bgp_management + "]. Mapping to 'BGP_MANAGEMENT_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
409
|
+
# rubocop: enable Metrics/LineLength
|
414
410
|
@bgp_management = BGP_MANAGEMENT_UNKNOWN_ENUM_VALUE
|
415
411
|
else
|
416
412
|
@bgp_management = bgp_management
|
417
413
|
end
|
414
|
+
# rubocop:enable Style/ConditionalAssignment
|
418
415
|
end
|
419
416
|
|
420
417
|
# Custom attribute writer method checking allowed values (enum).
|
421
418
|
# @param [Object] bgp_session_state Object to be assigned
|
422
419
|
def bgp_session_state=(bgp_session_state)
|
420
|
+
# rubocop:disable Style/ConditionalAssignment
|
423
421
|
if bgp_session_state && !BGP_SESSION_STATE_ENUM.include?(bgp_session_state)
|
422
|
+
# rubocop: disable Metrics/LineLength
|
423
|
+
OCI.logger.debug("Unknown value for 'bgp_session_state' [" + bgp_session_state + "]. Mapping to 'BGP_SESSION_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
424
|
+
# rubocop: enable Metrics/LineLength
|
424
425
|
@bgp_session_state = BGP_SESSION_STATE_UNKNOWN_ENUM_VALUE
|
425
426
|
else
|
426
427
|
@bgp_session_state = bgp_session_state
|
427
428
|
end
|
429
|
+
# rubocop:enable Style/ConditionalAssignment
|
428
430
|
end
|
429
431
|
|
430
432
|
# Custom attribute writer method checking allowed values (enum).
|
431
433
|
# @param [Object] lifecycle_state Object to be assigned
|
432
434
|
def lifecycle_state=(lifecycle_state)
|
435
|
+
# rubocop:disable Style/ConditionalAssignment
|
433
436
|
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
437
|
+
# rubocop: disable Metrics/LineLength
|
438
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
439
|
+
# rubocop: enable Metrics/LineLength
|
434
440
|
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
435
441
|
else
|
436
442
|
@lifecycle_state = lifecycle_state
|
437
443
|
end
|
444
|
+
# rubocop:enable Style/ConditionalAssignment
|
438
445
|
end
|
439
446
|
|
440
447
|
# Custom attribute writer method checking allowed values (enum).
|
441
448
|
# @param [Object] provider_state Object to be assigned
|
442
449
|
def provider_state=(provider_state)
|
450
|
+
# rubocop:disable Style/ConditionalAssignment
|
443
451
|
if provider_state && !PROVIDER_STATE_ENUM.include?(provider_state)
|
452
|
+
# rubocop: disable Metrics/LineLength
|
453
|
+
OCI.logger.debug("Unknown value for 'provider_state' [" + provider_state + "]. Mapping to 'PROVIDER_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
454
|
+
# rubocop: enable Metrics/LineLength
|
444
455
|
@provider_state = PROVIDER_STATE_UNKNOWN_ENUM_VALUE
|
445
456
|
else
|
446
457
|
@provider_state = provider_state
|
447
458
|
end
|
459
|
+
# rubocop:enable Style/ConditionalAssignment
|
448
460
|
end
|
449
461
|
|
450
462
|
# Custom attribute writer method checking allowed values (enum).
|
451
463
|
# @param [Object] service_type Object to be assigned
|
452
464
|
def service_type=(service_type)
|
465
|
+
# rubocop:disable Style/ConditionalAssignment
|
453
466
|
if service_type && !SERVICE_TYPE_ENUM.include?(service_type)
|
467
|
+
# rubocop: disable Metrics/LineLength
|
468
|
+
OCI.logger.debug("Unknown value for 'service_type' [" + service_type + "]. Mapping to 'SERVICE_TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
469
|
+
# rubocop: enable Metrics/LineLength
|
454
470
|
@service_type = SERVICE_TYPE_UNKNOWN_ENUM_VALUE
|
455
471
|
else
|
456
472
|
@service_type = service_type
|
457
473
|
end
|
474
|
+
# rubocop:enable Style/ConditionalAssignment
|
458
475
|
end
|
459
476
|
|
460
477
|
# Custom attribute writer method checking allowed values (enum).
|
461
478
|
# @param [Object] type Object to be assigned
|
462
479
|
def type=(type)
|
480
|
+
# rubocop:disable Style/ConditionalAssignment
|
463
481
|
if type && !TYPE_ENUM.include?(type)
|
482
|
+
# rubocop: disable Metrics/LineLength
|
483
|
+
OCI.logger.debug("Unknown value for 'type' [" + type + "]. Mapping to 'TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
484
|
+
# rubocop: enable Metrics/LineLength
|
464
485
|
@type = TYPE_UNKNOWN_ENUM_VALUE
|
465
486
|
else
|
466
487
|
@type = type
|
467
488
|
end
|
489
|
+
# rubocop:enable Style/ConditionalAssignment
|
468
490
|
end
|
469
491
|
|
492
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
493
|
+
|
494
|
+
|
470
495
|
# Checks equality by comparing each attribute.
|
471
|
-
# @param [Object]
|
472
|
-
def ==(
|
473
|
-
return true if
|
474
|
-
self.class ==
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
+
# @param [Object] other the other object to be compared
|
497
|
+
def ==(other)
|
498
|
+
return true if equal?(other)
|
499
|
+
self.class == other.class &&
|
500
|
+
bandwidth_shape_name == other.bandwidth_shape_name &&
|
501
|
+
bgp_management == other.bgp_management &&
|
502
|
+
bgp_session_state == other.bgp_session_state &&
|
503
|
+
compartment_id == other.compartment_id &&
|
504
|
+
cross_connect_mappings == other.cross_connect_mappings &&
|
505
|
+
customer_bgp_asn == other.customer_bgp_asn &&
|
506
|
+
display_name == other.display_name &&
|
507
|
+
gateway_id == other.gateway_id &&
|
508
|
+
id == other.id &&
|
509
|
+
lifecycle_state == other.lifecycle_state &&
|
510
|
+
oracle_bgp_asn == other.oracle_bgp_asn &&
|
511
|
+
provider_name == other.provider_name &&
|
512
|
+
provider_service_id == other.provider_service_id &&
|
513
|
+
provider_service_name == other.provider_service_name &&
|
514
|
+
provider_state == other.provider_state &&
|
515
|
+
public_prefixes == other.public_prefixes &&
|
516
|
+
reference_comment == other.reference_comment &&
|
517
|
+
region == other.region &&
|
518
|
+
service_type == other.service_type &&
|
519
|
+
time_created == other.time_created &&
|
520
|
+
type == other.type
|
496
521
|
end
|
522
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
497
523
|
|
498
524
|
# @see the `==` method
|
499
|
-
# @param [Object]
|
500
|
-
def eql?(
|
501
|
-
self ==
|
525
|
+
# @param [Object] other the other object to be compared
|
526
|
+
def eql?(other)
|
527
|
+
self == other
|
502
528
|
end
|
503
529
|
|
530
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
531
|
+
|
532
|
+
|
504
533
|
# Calculates hash code according to all attributes.
|
505
534
|
# @return [Fixnum] Hash code
|
506
535
|
def hash
|
507
536
|
[bandwidth_shape_name, bgp_management, bgp_session_state, compartment_id, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, id, lifecycle_state, oracle_bgp_asn, provider_name, provider_service_id, provider_service_name, provider_state, public_prefixes, reference_comment, region, service_type, time_created, type].hash
|
508
537
|
end
|
538
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
539
|
+
|
540
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
541
|
+
|
509
542
|
|
510
543
|
# Builds the object from hash
|
511
544
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -517,15 +550,22 @@ module OCI
|
|
517
550
|
# check to ensure the input is an array given that the the attribute
|
518
551
|
# is documented as an array but the input is not
|
519
552
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
520
|
-
|
553
|
+
public_method("#{key}=").call(
|
554
|
+
attributes[self.class.attribute_map[key]]
|
555
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
556
|
+
)
|
521
557
|
end
|
522
558
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
523
|
-
|
524
|
-
|
559
|
+
public_method("#{key}=").call(
|
560
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
561
|
+
)
|
562
|
+
end
|
563
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
525
564
|
end
|
526
565
|
|
527
566
|
self
|
528
567
|
end
|
568
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
529
569
|
|
530
570
|
# Returns the string representation of the object
|
531
571
|
# @return [String] String presentation of the object
|
@@ -549,11 +589,11 @@ module OCI
|
|
549
589
|
|
550
590
|
# Outputs non-array value in the form of hash
|
551
591
|
# For object, use to_hash. Otherwise, just return the value
|
552
|
-
# @param [Object] value Any valid value
|
592
|
+
# @param [Object] value Any valid value
|
553
593
|
# @return [Hash] Returns the value in the form of hash
|
554
594
|
def _to_hash(value)
|
555
595
|
if value.is_a?(Array)
|
556
|
-
value.compact.map{ |v| _to_hash(v) }
|
596
|
+
value.compact.map { |v| _to_hash(v) }
|
557
597
|
elsif value.is_a?(Hash)
|
558
598
|
{}.tap do |hash|
|
559
599
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -564,61 +604,6 @@ module OCI
|
|
564
604
|
value
|
565
605
|
end
|
566
606
|
end
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
571
|
-
def self.attribute_map
|
572
|
-
{
|
573
|
-
:'bandwidth_shape_name' => :'bandwidthShapeName',
|
574
|
-
:'bgp_management' => :'bgpManagement',
|
575
|
-
:'bgp_session_state' => :'bgpSessionState',
|
576
|
-
:'compartment_id' => :'compartmentId',
|
577
|
-
:'cross_connect_mappings' => :'crossConnectMappings',
|
578
|
-
:'customer_bgp_asn' => :'customerBgpAsn',
|
579
|
-
:'display_name' => :'displayName',
|
580
|
-
:'gateway_id' => :'gatewayId',
|
581
|
-
:'id' => :'id',
|
582
|
-
:'lifecycle_state' => :'lifecycleState',
|
583
|
-
:'oracle_bgp_asn' => :'oracleBgpAsn',
|
584
|
-
:'provider_name' => :'providerName',
|
585
|
-
:'provider_service_id' => :'providerServiceId',
|
586
|
-
:'provider_service_name' => :'providerServiceName',
|
587
|
-
:'provider_state' => :'providerState',
|
588
|
-
:'public_prefixes' => :'publicPrefixes',
|
589
|
-
:'reference_comment' => :'referenceComment',
|
590
|
-
:'region' => :'region',
|
591
|
-
:'service_type' => :'serviceType',
|
592
|
-
:'time_created' => :'timeCreated',
|
593
|
-
:'type' => :'type'
|
594
|
-
}
|
595
|
-
end
|
596
|
-
|
597
|
-
# Attribute type mapping.
|
598
|
-
def self.swagger_types
|
599
|
-
{
|
600
|
-
:'bandwidth_shape_name' => :'String',
|
601
|
-
:'bgp_management' => :'String',
|
602
|
-
:'bgp_session_state' => :'String',
|
603
|
-
:'compartment_id' => :'String',
|
604
|
-
:'cross_connect_mappings' => :'Array<OCI::Core::Models::CrossConnectMapping>',
|
605
|
-
:'customer_bgp_asn' => :'Integer',
|
606
|
-
:'display_name' => :'String',
|
607
|
-
:'gateway_id' => :'String',
|
608
|
-
:'id' => :'String',
|
609
|
-
:'lifecycle_state' => :'String',
|
610
|
-
:'oracle_bgp_asn' => :'Integer',
|
611
|
-
:'provider_name' => :'String',
|
612
|
-
:'provider_service_id' => :'String',
|
613
|
-
:'provider_service_name' => :'String',
|
614
|
-
:'provider_state' => :'String',
|
615
|
-
:'public_prefixes' => :'Array<String>',
|
616
|
-
:'reference_comment' => :'String',
|
617
|
-
:'region' => :'String',
|
618
|
-
:'service_type' => :'String',
|
619
|
-
:'time_created' => :'DateTime',
|
620
|
-
:'type' => :'String'
|
621
|
-
}
|
622
|
-
end
|
623
607
|
end
|
624
608
|
end
|
609
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|