oci 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,18 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
|
5
6
|
module OCI
|
|
6
|
-
|
|
7
|
+
# CreateVolumeDetails model.
|
|
8
|
+
class Core::Models::CreateVolumeDetails # rubocop:disable Metrics/LineLength
|
|
7
9
|
# **[Required]** The Availability Domain of the volume.
|
|
8
|
-
#
|
|
10
|
+
#
|
|
9
11
|
# Example: `Uocm:PHX-AD-1`
|
|
10
|
-
#
|
|
12
|
+
#
|
|
11
13
|
# @return [String]
|
|
12
14
|
attr_accessor :availability_domain
|
|
13
15
|
|
|
14
16
|
# If provided, specifies the ID of the volume backup policy to assign to the newly
|
|
15
17
|
# created volume. If omitted, no policy will be assigned.
|
|
16
|
-
#
|
|
18
|
+
#
|
|
17
19
|
# @return [String]
|
|
18
20
|
attr_accessor :backup_policy_id
|
|
19
21
|
|
|
@@ -23,24 +25,24 @@ module OCI
|
|
|
23
25
|
|
|
24
26
|
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
25
27
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
26
|
-
#
|
|
28
|
+
#
|
|
27
29
|
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
28
|
-
#
|
|
30
|
+
#
|
|
29
31
|
# @return [Hash<String, Hash<String, Object>>]
|
|
30
32
|
attr_accessor :defined_tags
|
|
31
33
|
|
|
32
34
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
|
33
35
|
# Avoid entering confidential information.
|
|
34
|
-
#
|
|
36
|
+
#
|
|
35
37
|
# @return [String]
|
|
36
38
|
attr_accessor :display_name
|
|
37
39
|
|
|
38
40
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
39
41
|
# predefined name, type, or namespace. For more information, see
|
|
40
42
|
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
41
|
-
#
|
|
43
|
+
#
|
|
42
44
|
# Example: `{\"Department\": \"Finance\"}`
|
|
43
|
-
#
|
|
45
|
+
#
|
|
44
46
|
# @return [Hash<String, String>]
|
|
45
47
|
attr_accessor :freeform_tags
|
|
46
48
|
|
|
@@ -50,24 +52,63 @@ module OCI
|
|
|
50
52
|
|
|
51
53
|
# The size of the volume in MBs. The value must be a multiple of 1024.
|
|
52
54
|
# This field is deprecated. Use sizeInGBs instead.
|
|
53
|
-
#
|
|
55
|
+
#
|
|
54
56
|
# @return [Integer]
|
|
55
57
|
attr_accessor :size_in_mbs
|
|
56
58
|
|
|
57
59
|
# Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup.
|
|
58
60
|
# This is an optional field. If not specified or set to null, the new Block volume will be empty.
|
|
59
61
|
# When specified, the new Block volume will contain data from the source volume or backup.
|
|
60
|
-
#
|
|
62
|
+
#
|
|
61
63
|
# @return [OCI::Core::Models::VolumeSourceDetails]
|
|
62
64
|
attr_accessor :source_details
|
|
63
65
|
|
|
64
66
|
# The OCID of the volume backup from which the data should be restored on the newly created volume.
|
|
65
67
|
# This field is deprecated. Use the sourceDetails field instead to specify the
|
|
66
68
|
# backup for the volume.
|
|
67
|
-
#
|
|
69
|
+
#
|
|
68
70
|
# @return [String]
|
|
69
71
|
attr_accessor :volume_backup_id
|
|
70
72
|
|
|
73
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
74
|
+
def self.attribute_map
|
|
75
|
+
{
|
|
76
|
+
# rubocop:disable Style/SymbolLiteral
|
|
77
|
+
'availability_domain': :'availabilityDomain',
|
|
78
|
+
'backup_policy_id': :'backupPolicyId',
|
|
79
|
+
'compartment_id': :'compartmentId',
|
|
80
|
+
'defined_tags': :'definedTags',
|
|
81
|
+
'display_name': :'displayName',
|
|
82
|
+
'freeform_tags': :'freeformTags',
|
|
83
|
+
'size_in_gbs': :'sizeInGBs',
|
|
84
|
+
'size_in_mbs': :'sizeInMBs',
|
|
85
|
+
'source_details': :'sourceDetails',
|
|
86
|
+
'volume_backup_id': :'volumeBackupId'
|
|
87
|
+
# rubocop:enable Style/SymbolLiteral
|
|
88
|
+
}
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Attribute type mapping.
|
|
92
|
+
def self.swagger_types
|
|
93
|
+
{
|
|
94
|
+
# rubocop:disable Style/SymbolLiteral
|
|
95
|
+
'availability_domain': :'String',
|
|
96
|
+
'backup_policy_id': :'String',
|
|
97
|
+
'compartment_id': :'String',
|
|
98
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
99
|
+
'display_name': :'String',
|
|
100
|
+
'freeform_tags': :'Hash<String, String>',
|
|
101
|
+
'size_in_gbs': :'Integer',
|
|
102
|
+
'size_in_mbs': :'Integer',
|
|
103
|
+
'source_details': :'OCI::Core::Models::VolumeSourceDetails',
|
|
104
|
+
'volume_backup_id': :'String'
|
|
105
|
+
# rubocop:enable Style/SymbolLiteral
|
|
106
|
+
}
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
110
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
111
|
+
|
|
71
112
|
|
|
72
113
|
# Initializes the object
|
|
73
114
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -85,138 +126,110 @@ module OCI
|
|
|
85
126
|
return unless attributes.is_a?(Hash)
|
|
86
127
|
|
|
87
128
|
# convert string to symbol for hash key
|
|
88
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
129
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
89
130
|
|
|
90
|
-
if attributes[:'availabilityDomain']
|
|
91
|
-
self.availability_domain = attributes[:'availabilityDomain']
|
|
92
|
-
end
|
|
131
|
+
self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain']
|
|
93
132
|
|
|
94
133
|
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
|
95
134
|
|
|
96
|
-
if attributes[:'availability_domain']
|
|
97
|
-
self.availability_domain = attributes[:'availability_domain']
|
|
98
|
-
end
|
|
135
|
+
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
|
99
136
|
|
|
100
|
-
if attributes[:'backupPolicyId']
|
|
101
|
-
self.backup_policy_id = attributes[:'backupPolicyId']
|
|
102
|
-
end
|
|
137
|
+
self.backup_policy_id = attributes[:'backupPolicyId'] if attributes[:'backupPolicyId']
|
|
103
138
|
|
|
104
139
|
raise 'You cannot provide both :backupPolicyId and :backup_policy_id' if attributes.key?(:'backupPolicyId') && attributes.key?(:'backup_policy_id')
|
|
105
140
|
|
|
106
|
-
if attributes[:'backup_policy_id']
|
|
107
|
-
self.backup_policy_id = attributes[:'backup_policy_id']
|
|
108
|
-
end
|
|
141
|
+
self.backup_policy_id = attributes[:'backup_policy_id'] if attributes[:'backup_policy_id']
|
|
109
142
|
|
|
110
|
-
if attributes[:'compartmentId']
|
|
111
|
-
self.compartment_id = attributes[:'compartmentId']
|
|
112
|
-
end
|
|
143
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
113
144
|
|
|
114
145
|
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
115
146
|
|
|
116
|
-
if attributes[:'compartment_id']
|
|
117
|
-
self.compartment_id = attributes[:'compartment_id']
|
|
118
|
-
end
|
|
147
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
119
148
|
|
|
120
|
-
if attributes[:'definedTags']
|
|
121
|
-
self.defined_tags = attributes[:'definedTags']
|
|
122
|
-
end
|
|
149
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
123
150
|
|
|
124
151
|
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
125
152
|
|
|
126
|
-
if attributes[:'defined_tags']
|
|
127
|
-
self.defined_tags = attributes[:'defined_tags']
|
|
128
|
-
end
|
|
153
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
129
154
|
|
|
130
|
-
if attributes[:'displayName']
|
|
131
|
-
self.display_name = attributes[:'displayName']
|
|
132
|
-
end
|
|
155
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
133
156
|
|
|
134
157
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
135
158
|
|
|
136
|
-
if attributes[:'display_name']
|
|
137
|
-
self.display_name = attributes[:'display_name']
|
|
138
|
-
end
|
|
159
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
139
160
|
|
|
140
|
-
if attributes[:'freeformTags']
|
|
141
|
-
self.freeform_tags = attributes[:'freeformTags']
|
|
142
|
-
end
|
|
161
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
143
162
|
|
|
144
163
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
145
164
|
|
|
146
|
-
if attributes[:'freeform_tags']
|
|
147
|
-
self.freeform_tags = attributes[:'freeform_tags']
|
|
148
|
-
end
|
|
165
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
149
166
|
|
|
150
|
-
if attributes[:'sizeInGBs']
|
|
151
|
-
self.size_in_gbs = attributes[:'sizeInGBs']
|
|
152
|
-
end
|
|
167
|
+
self.size_in_gbs = attributes[:'sizeInGBs'] if attributes[:'sizeInGBs']
|
|
153
168
|
|
|
154
169
|
raise 'You cannot provide both :sizeInGBs and :size_in_gbs' if attributes.key?(:'sizeInGBs') && attributes.key?(:'size_in_gbs')
|
|
155
170
|
|
|
156
|
-
if attributes[:'size_in_gbs']
|
|
157
|
-
self.size_in_gbs = attributes[:'size_in_gbs']
|
|
158
|
-
end
|
|
171
|
+
self.size_in_gbs = attributes[:'size_in_gbs'] if attributes[:'size_in_gbs']
|
|
159
172
|
|
|
160
|
-
if attributes[:'sizeInMBs']
|
|
161
|
-
self.size_in_mbs = attributes[:'sizeInMBs']
|
|
162
|
-
end
|
|
173
|
+
self.size_in_mbs = attributes[:'sizeInMBs'] if attributes[:'sizeInMBs']
|
|
163
174
|
|
|
164
175
|
raise 'You cannot provide both :sizeInMBs and :size_in_mbs' if attributes.key?(:'sizeInMBs') && attributes.key?(:'size_in_mbs')
|
|
165
176
|
|
|
166
|
-
if attributes[:'size_in_mbs']
|
|
167
|
-
self.size_in_mbs = attributes[:'size_in_mbs']
|
|
168
|
-
end
|
|
177
|
+
self.size_in_mbs = attributes[:'size_in_mbs'] if attributes[:'size_in_mbs']
|
|
169
178
|
|
|
170
|
-
if attributes[:'sourceDetails']
|
|
171
|
-
self.source_details = attributes[:'sourceDetails']
|
|
172
|
-
end
|
|
179
|
+
self.source_details = attributes[:'sourceDetails'] if attributes[:'sourceDetails']
|
|
173
180
|
|
|
174
181
|
raise 'You cannot provide both :sourceDetails and :source_details' if attributes.key?(:'sourceDetails') && attributes.key?(:'source_details')
|
|
175
182
|
|
|
176
|
-
if attributes[:'source_details']
|
|
177
|
-
self.source_details = attributes[:'source_details']
|
|
178
|
-
end
|
|
183
|
+
self.source_details = attributes[:'source_details'] if attributes[:'source_details']
|
|
179
184
|
|
|
180
|
-
if attributes[:'volumeBackupId']
|
|
181
|
-
self.volume_backup_id = attributes[:'volumeBackupId']
|
|
182
|
-
end
|
|
185
|
+
self.volume_backup_id = attributes[:'volumeBackupId'] if attributes[:'volumeBackupId']
|
|
183
186
|
|
|
184
187
|
raise 'You cannot provide both :volumeBackupId and :volume_backup_id' if attributes.key?(:'volumeBackupId') && attributes.key?(:'volume_backup_id')
|
|
185
188
|
|
|
186
|
-
if attributes[:'volume_backup_id']
|
|
187
|
-
self.volume_backup_id = attributes[:'volume_backup_id']
|
|
188
|
-
end
|
|
189
|
-
|
|
189
|
+
self.volume_backup_id = attributes[:'volume_backup_id'] if attributes[:'volume_backup_id']
|
|
190
190
|
end
|
|
191
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
192
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
193
|
+
|
|
194
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
195
|
+
|
|
191
196
|
|
|
192
197
|
# Checks equality by comparing each attribute.
|
|
193
|
-
# @param [Object]
|
|
194
|
-
def ==(
|
|
195
|
-
return true if
|
|
196
|
-
self.class ==
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
198
|
+
# @param [Object] other the other object to be compared
|
|
199
|
+
def ==(other)
|
|
200
|
+
return true if equal?(other)
|
|
201
|
+
self.class == other.class &&
|
|
202
|
+
availability_domain == other.availability_domain &&
|
|
203
|
+
backup_policy_id == other.backup_policy_id &&
|
|
204
|
+
compartment_id == other.compartment_id &&
|
|
205
|
+
defined_tags == other.defined_tags &&
|
|
206
|
+
display_name == other.display_name &&
|
|
207
|
+
freeform_tags == other.freeform_tags &&
|
|
208
|
+
size_in_gbs == other.size_in_gbs &&
|
|
209
|
+
size_in_mbs == other.size_in_mbs &&
|
|
210
|
+
source_details == other.source_details &&
|
|
211
|
+
volume_backup_id == other.volume_backup_id
|
|
207
212
|
end
|
|
213
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
208
214
|
|
|
209
215
|
# @see the `==` method
|
|
210
|
-
# @param [Object]
|
|
211
|
-
def eql?(
|
|
212
|
-
self ==
|
|
216
|
+
# @param [Object] other the other object to be compared
|
|
217
|
+
def eql?(other)
|
|
218
|
+
self == other
|
|
213
219
|
end
|
|
214
220
|
|
|
221
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
222
|
+
|
|
223
|
+
|
|
215
224
|
# Calculates hash code according to all attributes.
|
|
216
225
|
# @return [Fixnum] Hash code
|
|
217
226
|
def hash
|
|
218
227
|
[availability_domain, backup_policy_id, compartment_id, defined_tags, display_name, freeform_tags, size_in_gbs, size_in_mbs, source_details, volume_backup_id].hash
|
|
219
228
|
end
|
|
229
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
230
|
+
|
|
231
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
232
|
+
|
|
220
233
|
|
|
221
234
|
# Builds the object from hash
|
|
222
235
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -228,15 +241,22 @@ module OCI
|
|
|
228
241
|
# check to ensure the input is an array given that the the attribute
|
|
229
242
|
# is documented as an array but the input is not
|
|
230
243
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
231
|
-
|
|
244
|
+
public_method("#{key}=").call(
|
|
245
|
+
attributes[self.class.attribute_map[key]]
|
|
246
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
247
|
+
)
|
|
232
248
|
end
|
|
233
249
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
234
|
-
|
|
235
|
-
|
|
250
|
+
public_method("#{key}=").call(
|
|
251
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
252
|
+
)
|
|
253
|
+
end
|
|
254
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
236
255
|
end
|
|
237
256
|
|
|
238
257
|
self
|
|
239
258
|
end
|
|
259
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
240
260
|
|
|
241
261
|
# Returns the string representation of the object
|
|
242
262
|
# @return [String] String presentation of the object
|
|
@@ -260,11 +280,11 @@ module OCI
|
|
|
260
280
|
|
|
261
281
|
# Outputs non-array value in the form of hash
|
|
262
282
|
# For object, use to_hash. Otherwise, just return the value
|
|
263
|
-
# @param [Object] value Any valid value
|
|
283
|
+
# @param [Object] value Any valid value
|
|
264
284
|
# @return [Hash] Returns the value in the form of hash
|
|
265
285
|
def _to_hash(value)
|
|
266
286
|
if value.is_a?(Array)
|
|
267
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
287
|
+
value.compact.map { |v| _to_hash(v) }
|
|
268
288
|
elsif value.is_a?(Hash)
|
|
269
289
|
{}.tap do |hash|
|
|
270
290
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -275,39 +295,6 @@ module OCI
|
|
|
275
295
|
value
|
|
276
296
|
end
|
|
277
297
|
end
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
282
|
-
def self.attribute_map
|
|
283
|
-
{
|
|
284
|
-
:'availability_domain' => :'availabilityDomain',
|
|
285
|
-
:'backup_policy_id' => :'backupPolicyId',
|
|
286
|
-
:'compartment_id' => :'compartmentId',
|
|
287
|
-
:'defined_tags' => :'definedTags',
|
|
288
|
-
:'display_name' => :'displayName',
|
|
289
|
-
:'freeform_tags' => :'freeformTags',
|
|
290
|
-
:'size_in_gbs' => :'sizeInGBs',
|
|
291
|
-
:'size_in_mbs' => :'sizeInMBs',
|
|
292
|
-
:'source_details' => :'sourceDetails',
|
|
293
|
-
:'volume_backup_id' => :'volumeBackupId'
|
|
294
|
-
}
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
# Attribute type mapping.
|
|
298
|
-
def self.swagger_types
|
|
299
|
-
{
|
|
300
|
-
:'availability_domain' => :'String',
|
|
301
|
-
:'backup_policy_id' => :'String',
|
|
302
|
-
:'compartment_id' => :'String',
|
|
303
|
-
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
|
304
|
-
:'display_name' => :'String',
|
|
305
|
-
:'freeform_tags' => :'Hash<String, String>',
|
|
306
|
-
:'size_in_gbs' => :'Integer',
|
|
307
|
-
:'size_in_mbs' => :'Integer',
|
|
308
|
-
:'source_details' => :'OCI::Core::Models::VolumeSourceDetails',
|
|
309
|
-
:'volume_backup_id' => :'String'
|
|
310
|
-
}
|
|
311
|
-
end
|
|
312
298
|
end
|
|
313
299
|
end
|
|
300
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|
|
@@ -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. A cross-connect represents a
|
|
7
9
|
# physical connection between an existing network and Oracle. Customers who are colocated
|
|
@@ -20,15 +22,16 @@ module OCI
|
|
|
20
22
|
# talk to an administrator. If you're an administrator who needs to write policies to give users access, see
|
|
21
23
|
# [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
22
24
|
#
|
|
23
|
-
class Core::Models::CrossConnect
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
class Core::Models::CrossConnect # rubocop:disable Metrics/LineLength
|
|
26
|
+
LIFECYCLE_STATE_ENUM = [
|
|
27
|
+
LIFECYCLE_STATE_PENDING_CUSTOMER = 'PENDING_CUSTOMER'.freeze,
|
|
28
|
+
LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
|
|
29
|
+
LIFECYCLE_STATE_PROVISIONED = 'PROVISIONED'.freeze,
|
|
30
|
+
LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze,
|
|
31
|
+
LIFECYCLE_STATE_TERMINATING = 'TERMINATING'.freeze,
|
|
32
|
+
LIFECYCLE_STATE_TERMINATED = 'TERMINATED'.freeze,
|
|
33
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
34
|
+
].freeze
|
|
32
35
|
|
|
33
36
|
# The OCID of the compartment containing the cross-connect group.
|
|
34
37
|
# @return [String]
|
|
@@ -40,7 +43,7 @@ module OCI
|
|
|
40
43
|
|
|
41
44
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
|
42
45
|
# Avoid entering confidential information.
|
|
43
|
-
#
|
|
46
|
+
#
|
|
44
47
|
# @return [String]
|
|
45
48
|
attr_accessor :display_name
|
|
46
49
|
|
|
@@ -50,7 +53,7 @@ module OCI
|
|
|
50
53
|
|
|
51
54
|
# The cross-connect's current state.
|
|
52
55
|
# @return [String]
|
|
53
|
-
|
|
56
|
+
attr_reader :lifecycle_state
|
|
54
57
|
|
|
55
58
|
# The name of the FastConnect location where this cross-connect is installed.
|
|
56
59
|
# @return [String]
|
|
@@ -61,19 +64,56 @@ module OCI
|
|
|
61
64
|
attr_accessor :port_name
|
|
62
65
|
|
|
63
66
|
# The port speed for this cross-connect.
|
|
64
|
-
#
|
|
67
|
+
#
|
|
65
68
|
# Example: `10 Gbps`
|
|
66
|
-
#
|
|
69
|
+
#
|
|
67
70
|
# @return [String]
|
|
68
71
|
attr_accessor :port_speed_shape_name
|
|
69
72
|
|
|
70
73
|
# The date and time the cross-connect was created, in the format defined by RFC3339.
|
|
71
|
-
#
|
|
74
|
+
#
|
|
72
75
|
# Example: `2016-08-25T21:10:29.600Z`
|
|
73
|
-
#
|
|
76
|
+
#
|
|
74
77
|
# @return [DateTime]
|
|
75
78
|
attr_accessor :time_created
|
|
76
79
|
|
|
80
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
81
|
+
def self.attribute_map
|
|
82
|
+
{
|
|
83
|
+
# rubocop:disable Style/SymbolLiteral
|
|
84
|
+
'compartment_id': :'compartmentId',
|
|
85
|
+
'cross_connect_group_id': :'crossConnectGroupId',
|
|
86
|
+
'display_name': :'displayName',
|
|
87
|
+
'id': :'id',
|
|
88
|
+
'lifecycle_state': :'lifecycleState',
|
|
89
|
+
'location_name': :'locationName',
|
|
90
|
+
'port_name': :'portName',
|
|
91
|
+
'port_speed_shape_name': :'portSpeedShapeName',
|
|
92
|
+
'time_created': :'timeCreated'
|
|
93
|
+
# rubocop:enable Style/SymbolLiteral
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Attribute type mapping.
|
|
98
|
+
def self.swagger_types
|
|
99
|
+
{
|
|
100
|
+
# rubocop:disable Style/SymbolLiteral
|
|
101
|
+
'compartment_id': :'String',
|
|
102
|
+
'cross_connect_group_id': :'String',
|
|
103
|
+
'display_name': :'String',
|
|
104
|
+
'id': :'String',
|
|
105
|
+
'lifecycle_state': :'String',
|
|
106
|
+
'location_name': :'String',
|
|
107
|
+
'port_name': :'String',
|
|
108
|
+
'port_speed_shape_name': :'String',
|
|
109
|
+
'time_created': :'DateTime'
|
|
110
|
+
# rubocop:enable Style/SymbolLiteral
|
|
111
|
+
}
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
115
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
116
|
+
|
|
77
117
|
|
|
78
118
|
# Initializes the object
|
|
79
119
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -90,131 +130,114 @@ module OCI
|
|
|
90
130
|
return unless attributes.is_a?(Hash)
|
|
91
131
|
|
|
92
132
|
# convert string to symbol for hash key
|
|
93
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
133
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
94
134
|
|
|
95
|
-
if attributes[:'compartmentId']
|
|
96
|
-
self.compartment_id = attributes[:'compartmentId']
|
|
97
|
-
end
|
|
135
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
98
136
|
|
|
99
137
|
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
100
138
|
|
|
101
|
-
if attributes[:'compartment_id']
|
|
102
|
-
self.compartment_id = attributes[:'compartment_id']
|
|
103
|
-
end
|
|
139
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
104
140
|
|
|
105
|
-
if attributes[:'crossConnectGroupId']
|
|
106
|
-
self.cross_connect_group_id = attributes[:'crossConnectGroupId']
|
|
107
|
-
end
|
|
141
|
+
self.cross_connect_group_id = attributes[:'crossConnectGroupId'] if attributes[:'crossConnectGroupId']
|
|
108
142
|
|
|
109
143
|
raise 'You cannot provide both :crossConnectGroupId and :cross_connect_group_id' if attributes.key?(:'crossConnectGroupId') && attributes.key?(:'cross_connect_group_id')
|
|
110
144
|
|
|
111
|
-
if attributes[:'cross_connect_group_id']
|
|
112
|
-
self.cross_connect_group_id = attributes[:'cross_connect_group_id']
|
|
113
|
-
end
|
|
145
|
+
self.cross_connect_group_id = attributes[:'cross_connect_group_id'] if attributes[:'cross_connect_group_id']
|
|
114
146
|
|
|
115
|
-
if attributes[:'displayName']
|
|
116
|
-
self.display_name = attributes[:'displayName']
|
|
117
|
-
end
|
|
147
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
118
148
|
|
|
119
149
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
120
150
|
|
|
121
|
-
if attributes[:'display_name']
|
|
122
|
-
self.display_name = attributes[:'display_name']
|
|
123
|
-
end
|
|
151
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
124
152
|
|
|
125
|
-
if attributes[:'id']
|
|
126
|
-
self.id = attributes[:'id']
|
|
127
|
-
end
|
|
153
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
|
128
154
|
|
|
129
|
-
if attributes[:'lifecycleState']
|
|
130
|
-
self.lifecycle_state = attributes[:'lifecycleState']
|
|
131
|
-
end
|
|
155
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
|
132
156
|
|
|
133
157
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
134
158
|
|
|
135
|
-
if attributes[:'lifecycle_state']
|
|
136
|
-
self.lifecycle_state = attributes[:'lifecycle_state']
|
|
137
|
-
end
|
|
159
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
|
138
160
|
|
|
139
|
-
if attributes[:'locationName']
|
|
140
|
-
self.location_name = attributes[:'locationName']
|
|
141
|
-
end
|
|
161
|
+
self.location_name = attributes[:'locationName'] if attributes[:'locationName']
|
|
142
162
|
|
|
143
163
|
raise 'You cannot provide both :locationName and :location_name' if attributes.key?(:'locationName') && attributes.key?(:'location_name')
|
|
144
164
|
|
|
145
|
-
if attributes[:'location_name']
|
|
146
|
-
self.location_name = attributes[:'location_name']
|
|
147
|
-
end
|
|
165
|
+
self.location_name = attributes[:'location_name'] if attributes[:'location_name']
|
|
148
166
|
|
|
149
|
-
if attributes[:'portName']
|
|
150
|
-
self.port_name = attributes[:'portName']
|
|
151
|
-
end
|
|
167
|
+
self.port_name = attributes[:'portName'] if attributes[:'portName']
|
|
152
168
|
|
|
153
169
|
raise 'You cannot provide both :portName and :port_name' if attributes.key?(:'portName') && attributes.key?(:'port_name')
|
|
154
170
|
|
|
155
|
-
if attributes[:'port_name']
|
|
156
|
-
self.port_name = attributes[:'port_name']
|
|
157
|
-
end
|
|
171
|
+
self.port_name = attributes[:'port_name'] if attributes[:'port_name']
|
|
158
172
|
|
|
159
|
-
if attributes[:'portSpeedShapeName']
|
|
160
|
-
self.port_speed_shape_name = attributes[:'portSpeedShapeName']
|
|
161
|
-
end
|
|
173
|
+
self.port_speed_shape_name = attributes[:'portSpeedShapeName'] if attributes[:'portSpeedShapeName']
|
|
162
174
|
|
|
163
175
|
raise 'You cannot provide both :portSpeedShapeName and :port_speed_shape_name' if attributes.key?(:'portSpeedShapeName') && attributes.key?(:'port_speed_shape_name')
|
|
164
176
|
|
|
165
|
-
if attributes[:'port_speed_shape_name']
|
|
166
|
-
self.port_speed_shape_name = attributes[:'port_speed_shape_name']
|
|
167
|
-
end
|
|
177
|
+
self.port_speed_shape_name = attributes[:'port_speed_shape_name'] if attributes[:'port_speed_shape_name']
|
|
168
178
|
|
|
169
|
-
if attributes[:'timeCreated']
|
|
170
|
-
self.time_created = attributes[:'timeCreated']
|
|
171
|
-
end
|
|
179
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
|
172
180
|
|
|
173
181
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
|
174
182
|
|
|
175
|
-
if attributes[:'time_created']
|
|
176
|
-
self.time_created = attributes[:'time_created']
|
|
177
|
-
end
|
|
178
|
-
|
|
183
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
|
179
184
|
end
|
|
185
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
186
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
180
187
|
|
|
181
188
|
# Custom attribute writer method checking allowed values (enum).
|
|
182
189
|
# @param [Object] lifecycle_state Object to be assigned
|
|
183
190
|
def lifecycle_state=(lifecycle_state)
|
|
191
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
184
192
|
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
|
193
|
+
# rubocop: disable Metrics/LineLength
|
|
194
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
|
195
|
+
# rubocop: enable Metrics/LineLength
|
|
185
196
|
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
|
186
197
|
else
|
|
187
198
|
@lifecycle_state = lifecycle_state
|
|
188
199
|
end
|
|
200
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
189
201
|
end
|
|
190
202
|
|
|
203
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
204
|
+
|
|
205
|
+
|
|
191
206
|
# Checks equality by comparing each attribute.
|
|
192
|
-
# @param [Object]
|
|
193
|
-
def ==(
|
|
194
|
-
return true if
|
|
195
|
-
self.class ==
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
207
|
+
# @param [Object] other the other object to be compared
|
|
208
|
+
def ==(other)
|
|
209
|
+
return true if equal?(other)
|
|
210
|
+
self.class == other.class &&
|
|
211
|
+
compartment_id == other.compartment_id &&
|
|
212
|
+
cross_connect_group_id == other.cross_connect_group_id &&
|
|
213
|
+
display_name == other.display_name &&
|
|
214
|
+
id == other.id &&
|
|
215
|
+
lifecycle_state == other.lifecycle_state &&
|
|
216
|
+
location_name == other.location_name &&
|
|
217
|
+
port_name == other.port_name &&
|
|
218
|
+
port_speed_shape_name == other.port_speed_shape_name &&
|
|
219
|
+
time_created == other.time_created
|
|
205
220
|
end
|
|
221
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
206
222
|
|
|
207
223
|
# @see the `==` method
|
|
208
|
-
# @param [Object]
|
|
209
|
-
def eql?(
|
|
210
|
-
self ==
|
|
224
|
+
# @param [Object] other the other object to be compared
|
|
225
|
+
def eql?(other)
|
|
226
|
+
self == other
|
|
211
227
|
end
|
|
212
228
|
|
|
229
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
230
|
+
|
|
231
|
+
|
|
213
232
|
# Calculates hash code according to all attributes.
|
|
214
233
|
# @return [Fixnum] Hash code
|
|
215
234
|
def hash
|
|
216
235
|
[compartment_id, cross_connect_group_id, display_name, id, lifecycle_state, location_name, port_name, port_speed_shape_name, time_created].hash
|
|
217
236
|
end
|
|
237
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
238
|
+
|
|
239
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
240
|
+
|
|
218
241
|
|
|
219
242
|
# Builds the object from hash
|
|
220
243
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -226,15 +249,22 @@ module OCI
|
|
|
226
249
|
# check to ensure the input is an array given that the the attribute
|
|
227
250
|
# is documented as an array but the input is not
|
|
228
251
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
229
|
-
|
|
252
|
+
public_method("#{key}=").call(
|
|
253
|
+
attributes[self.class.attribute_map[key]]
|
|
254
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
255
|
+
)
|
|
230
256
|
end
|
|
231
257
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
232
|
-
|
|
233
|
-
|
|
258
|
+
public_method("#{key}=").call(
|
|
259
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
260
|
+
)
|
|
261
|
+
end
|
|
262
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
234
263
|
end
|
|
235
264
|
|
|
236
265
|
self
|
|
237
266
|
end
|
|
267
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
238
268
|
|
|
239
269
|
# Returns the string representation of the object
|
|
240
270
|
# @return [String] String presentation of the object
|
|
@@ -258,11 +288,11 @@ module OCI
|
|
|
258
288
|
|
|
259
289
|
# Outputs non-array value in the form of hash
|
|
260
290
|
# For object, use to_hash. Otherwise, just return the value
|
|
261
|
-
# @param [Object] value Any valid value
|
|
291
|
+
# @param [Object] value Any valid value
|
|
262
292
|
# @return [Hash] Returns the value in the form of hash
|
|
263
293
|
def _to_hash(value)
|
|
264
294
|
if value.is_a?(Array)
|
|
265
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
295
|
+
value.compact.map { |v| _to_hash(v) }
|
|
266
296
|
elsif value.is_a?(Hash)
|
|
267
297
|
{}.tap do |hash|
|
|
268
298
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -273,37 +303,6 @@ module OCI
|
|
|
273
303
|
value
|
|
274
304
|
end
|
|
275
305
|
end
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
280
|
-
def self.attribute_map
|
|
281
|
-
{
|
|
282
|
-
:'compartment_id' => :'compartmentId',
|
|
283
|
-
:'cross_connect_group_id' => :'crossConnectGroupId',
|
|
284
|
-
:'display_name' => :'displayName',
|
|
285
|
-
:'id' => :'id',
|
|
286
|
-
:'lifecycle_state' => :'lifecycleState',
|
|
287
|
-
:'location_name' => :'locationName',
|
|
288
|
-
:'port_name' => :'portName',
|
|
289
|
-
:'port_speed_shape_name' => :'portSpeedShapeName',
|
|
290
|
-
:'time_created' => :'timeCreated'
|
|
291
|
-
}
|
|
292
|
-
end
|
|
293
|
-
|
|
294
|
-
# Attribute type mapping.
|
|
295
|
-
def self.swagger_types
|
|
296
|
-
{
|
|
297
|
-
:'compartment_id' => :'String',
|
|
298
|
-
:'cross_connect_group_id' => :'String',
|
|
299
|
-
:'display_name' => :'String',
|
|
300
|
-
:'id' => :'String',
|
|
301
|
-
:'lifecycle_state' => :'String',
|
|
302
|
-
:'location_name' => :'String',
|
|
303
|
-
:'port_name' => :'String',
|
|
304
|
-
:'port_speed_shape_name' => :'String',
|
|
305
|
-
:'time_created' => :'DateTime'
|
|
306
|
-
}
|
|
307
|
-
end
|
|
308
306
|
end
|
|
309
307
|
end
|
|
308
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|