oci 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/oci/audit/models/audit_event.rb +3 -3
- data/lib/oci/audit/models/configuration.rb +3 -3
- data/lib/oci/audit/models/update_configuration_details.rb +3 -3
- data/lib/oci/core/blockstorage_client.rb +155 -0
- data/lib/oci/core/compute_client.rb +176 -12
- data/lib/oci/core/core.rb +11 -0
- data/lib/oci/core/models/attach_boot_volume_details.rb +143 -0
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +3 -3
- data/lib/oci/core/models/attach_vnic_details.rb +23 -7
- data/lib/oci/core/models/attach_volume_details.rb +3 -3
- data/lib/oci/core/models/boot_volume.rb +234 -0
- data/lib/oci/core/models/boot_volume_attachment.rb +224 -0
- data/lib/oci/core/models/capture_console_history_details.rb +3 -3
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +120 -0
- data/lib/oci/core/models/console_history.rb +3 -3
- data/lib/oci/core/models/cpe.rb +3 -3
- data/lib/oci/core/models/create_cpe_details.rb +3 -3
- data/lib/oci/core/models/create_cross_connect_details.rb +3 -3
- data/lib/oci/core/models/create_cross_connect_group_details.rb +3 -3
- data/lib/oci/core/models/create_dhcp_details.rb +3 -3
- data/lib/oci/core/models/create_drg_attachment_details.rb +3 -3
- data/lib/oci/core/models/create_drg_details.rb +3 -3
- data/lib/oci/core/models/create_image_details.rb +3 -3
- data/lib/oci/core/models/create_instance_console_connection_details.rb +5 -5
- data/lib/oci/core/models/create_internet_gateway_details.rb +3 -3
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +3 -3
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +144 -0
- data/lib/oci/core/models/create_private_ip_details.rb +3 -3
- data/lib/oci/core/models/create_route_table_details.rb +3 -3
- data/lib/oci/core/models/create_security_list_details.rb +3 -3
- data/lib/oci/core/models/create_subnet_details.rb +3 -3
- data/lib/oci/core/models/create_vcn_details.rb +3 -3
- data/lib/oci/core/models/create_virtual_circuit_details.rb +3 -3
- data/lib/oci/core/models/create_vnic_details.rb +3 -3
- data/lib/oci/core/models/create_volume_backup_details.rb +3 -3
- data/lib/oci/core/models/create_volume_details.rb +3 -3
- data/lib/oci/core/models/cross_connect.rb +3 -3
- data/lib/oci/core/models/cross_connect_group.rb +3 -3
- data/lib/oci/core/models/cross_connect_location.rb +3 -3
- data/lib/oci/core/models/cross_connect_mapping.rb +3 -3
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +3 -3
- data/lib/oci/core/models/cross_connect_status.rb +3 -3
- data/lib/oci/core/models/dhcp_dns_option.rb +3 -3
- data/lib/oci/core/models/dhcp_option.rb +3 -3
- data/lib/oci/core/models/dhcp_options.rb +3 -3
- data/lib/oci/core/models/dhcp_search_domain_option.rb +3 -3
- data/lib/oci/core/models/drg.rb +3 -3
- data/lib/oci/core/models/drg_attachment.rb +3 -3
- data/lib/oci/core/models/egress_security_rule.rb +3 -3
- data/lib/oci/core/models/export_image_details.rb +3 -3
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +3 -3
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +3 -3
- data/lib/oci/core/models/fast_connect_provider_service.rb +3 -3
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +3 -3
- data/lib/oci/core/models/icmp_options.rb +3 -3
- data/lib/oci/core/models/image.rb +3 -3
- data/lib/oci/core/models/image_source_details.rb +3 -3
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +3 -3
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +3 -3
- data/lib/oci/core/models/ingress_security_rule.rb +3 -3
- data/lib/oci/core/models/instance.rb +16 -6
- data/lib/oci/core/models/instance_console_connection.rb +9 -9
- data/lib/oci/core/models/instance_credentials.rb +3 -3
- data/lib/oci/core/models/instance_source_details.rb +135 -0
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +128 -0
- data/lib/oci/core/models/instance_source_via_image_details.rb +128 -0
- data/lib/oci/core/models/internet_gateway.rb +3 -3
- data/lib/oci/core/models/ip_sec_connection.rb +3 -3
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +3 -3
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +3 -3
- data/lib/oci/core/models/launch_instance_details.rb +19 -6
- data/lib/oci/core/models/letter_of_authority.rb +3 -3
- data/lib/oci/core/models/local_peering_gateway.rb +271 -0
- data/lib/oci/core/models/port_range.rb +3 -3
- data/lib/oci/core/models/private_ip.rb +3 -3
- data/lib/oci/core/models/route_rule.rb +3 -3
- data/lib/oci/core/models/route_table.rb +3 -3
- data/lib/oci/core/models/security_list.rb +3 -3
- data/lib/oci/core/models/shape.rb +3 -3
- data/lib/oci/core/models/subnet.rb +3 -3
- data/lib/oci/core/models/tcp_options.rb +3 -3
- data/lib/oci/core/models/tunnel_config.rb +3 -3
- data/lib/oci/core/models/tunnel_status.rb +3 -3
- data/lib/oci/core/models/udp_options.rb +3 -3
- data/lib/oci/core/models/update_boot_volume_details.rb +122 -0
- data/lib/oci/core/models/update_console_history_details.rb +3 -3
- data/lib/oci/core/models/update_cpe_details.rb +3 -3
- data/lib/oci/core/models/update_cross_connect_details.rb +3 -3
- data/lib/oci/core/models/update_cross_connect_group_details.rb +3 -3
- data/lib/oci/core/models/update_dhcp_details.rb +3 -3
- data/lib/oci/core/models/update_drg_attachment_details.rb +3 -3
- data/lib/oci/core/models/update_drg_details.rb +3 -3
- data/lib/oci/core/models/update_image_details.rb +3 -3
- data/lib/oci/core/models/update_instance_details.rb +3 -3
- data/lib/oci/core/models/update_internet_gateway_details.rb +3 -3
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +3 -3
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +122 -0
- data/lib/oci/core/models/update_private_ip_details.rb +3 -3
- data/lib/oci/core/models/update_route_table_details.rb +3 -3
- data/lib/oci/core/models/update_security_list_details.rb +3 -3
- data/lib/oci/core/models/update_subnet_details.rb +3 -3
- data/lib/oci/core/models/update_vcn_details.rb +3 -3
- data/lib/oci/core/models/update_virtual_circuit_details.rb +3 -3
- data/lib/oci/core/models/update_vnic_details.rb +3 -3
- data/lib/oci/core/models/update_volume_backup_details.rb +3 -3
- data/lib/oci/core/models/update_volume_details.rb +3 -3
- data/lib/oci/core/models/vcn.rb +3 -3
- data/lib/oci/core/models/virtual_circuit.rb +3 -3
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +3 -3
- data/lib/oci/core/models/vnic.rb +3 -3
- data/lib/oci/core/models/vnic_attachment.rb +20 -4
- data/lib/oci/core/models/volume.rb +3 -3
- data/lib/oci/core/models/volume_attachment.rb +3 -3
- data/lib/oci/core/models/volume_backup.rb +3 -3
- data/lib/oci/core/models/volume_source_details.rb +3 -3
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +3 -3
- data/lib/oci/core/models/volume_source_from_volume_details.rb +3 -3
- data/lib/oci/core/virtual_network_client.rb +233 -0
- data/lib/oci/database/database.rb +3 -0
- data/lib/oci/database/database_client.rb +1 -1
- data/lib/oci/database/models/backup.rb +3 -3
- data/lib/oci/database/models/backup_summary.rb +3 -3
- data/lib/oci/database/models/create_backup_details.rb +3 -3
- data/lib/oci/database/models/create_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +3 -3
- data/lib/oci/database/models/create_database_details.rb +3 -3
- data/lib/oci/database/models/create_database_from_backup_details.rb +142 -0
- data/lib/oci/database/models/create_db_home_details.rb +3 -3
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +173 -0
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +22 -30
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +133 -0
- data/lib/oci/database/models/data_guard_association.rb +3 -3
- data/lib/oci/database/models/data_guard_association_summary.rb +3 -3
- data/lib/oci/database/models/database.rb +3 -3
- data/lib/oci/database/models/database_summary.rb +3 -3
- data/lib/oci/database/models/db_backup_config.rb +3 -3
- data/lib/oci/database/models/db_home.rb +3 -3
- data/lib/oci/database/models/db_home_summary.rb +3 -3
- data/lib/oci/database/models/db_node.rb +3 -3
- data/lib/oci/database/models/db_node_summary.rb +3 -3
- data/lib/oci/database/models/db_system.rb +3 -3
- data/lib/oci/database/models/db_system_shape_summary.rb +3 -3
- data/lib/oci/database/models/db_system_summary.rb +3 -3
- data/lib/oci/database/models/db_version_summary.rb +3 -3
- data/lib/oci/database/models/failover_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/launch_db_system_details.rb +3 -3
- data/lib/oci/database/models/patch.rb +3 -3
- data/lib/oci/database/models/patch_details.rb +3 -3
- data/lib/oci/database/models/patch_history_entry.rb +3 -3
- data/lib/oci/database/models/patch_history_entry_summary.rb +3 -3
- data/lib/oci/database/models/patch_summary.rb +3 -3
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/restore_database_details.rb +3 -3
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/update_database_details.rb +3 -3
- data/lib/oci/database/models/update_db_home_details.rb +3 -3
- data/lib/oci/database/models/update_db_system_details.rb +3 -3
- data/lib/oci/identity/models/add_user_to_group_details.rb +3 -3
- data/lib/oci/identity/models/api_key.rb +3 -3
- data/lib/oci/identity/models/availability_domain.rb +3 -3
- data/lib/oci/identity/models/compartment.rb +3 -3
- data/lib/oci/identity/models/create_api_key_details.rb +3 -3
- data/lib/oci/identity/models/create_compartment_details.rb +3 -3
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +3 -3
- data/lib/oci/identity/models/create_group_details.rb +3 -3
- data/lib/oci/identity/models/create_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +3 -3
- data/lib/oci/identity/models/create_policy_details.rb +3 -3
- data/lib/oci/identity/models/create_region_subscription_details.rb +3 -3
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/create_swift_password_details.rb +3 -3
- data/lib/oci/identity/models/create_user_details.rb +3 -3
- data/lib/oci/identity/models/customer_secret_key.rb +3 -3
- data/lib/oci/identity/models/customer_secret_key_summary.rb +3 -3
- data/lib/oci/identity/models/group.rb +3 -3
- data/lib/oci/identity/models/identity_provider.rb +3 -3
- data/lib/oci/identity/models/idp_group_mapping.rb +3 -3
- data/lib/oci/identity/models/policy.rb +3 -3
- data/lib/oci/identity/models/region.rb +3 -3
- data/lib/oci/identity/models/region_subscription.rb +3 -3
- data/lib/oci/identity/models/saml2_identity_provider.rb +3 -3
- data/lib/oci/identity/models/swift_password.rb +3 -3
- data/lib/oci/identity/models/tenancy.rb +3 -3
- data/lib/oci/identity/models/ui_password.rb +3 -3
- data/lib/oci/identity/models/update_compartment_details.rb +3 -3
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +3 -3
- data/lib/oci/identity/models/update_group_details.rb +3 -3
- data/lib/oci/identity/models/update_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +3 -3
- data/lib/oci/identity/models/update_policy_details.rb +3 -3
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/update_state_details.rb +3 -3
- data/lib/oci/identity/models/update_swift_password_details.rb +3 -3
- data/lib/oci/identity/models/update_user_details.rb +3 -3
- data/lib/oci/identity/models/user.rb +3 -3
- data/lib/oci/identity/models/user_group_membership.rb +3 -3
- data/lib/oci/load_balancer/load_balancer_client.rb +27 -1
- data/lib/oci/load_balancer/models/backend.rb +3 -3
- data/lib/oci/load_balancer/models/backend_details.rb +3 -3
- data/lib/oci/load_balancer/models/backend_health.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set.rb +5 -6
- data/lib/oci/load_balancer/models/backend_set_details.rb +5 -6
- data/lib/oci/load_balancer/models/backend_set_health.rb +3 -3
- data/lib/oci/load_balancer/models/certificate.rb +3 -3
- data/lib/oci/load_balancer/models/certificate_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_backend_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +5 -5
- data/lib/oci/load_balancer/models/create_certificate_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_listener_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/health_check_result.rb +3 -3
- data/lib/oci/load_balancer/models/health_checker.rb +3 -3
- data/lib/oci/load_balancer/models/health_checker_details.rb +3 -3
- data/lib/oci/load_balancer/models/ip_address.rb +3 -3
- data/lib/oci/load_balancer/models/listener.rb +3 -3
- data/lib/oci/load_balancer/models/listener_details.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer.rb +6 -4
- data/lib/oci/load_balancer/models/load_balancer_health.rb +5 -5
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +3 -3
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +3 -3
- data/lib/oci/load_balancer/models/ssl_configuration.rb +3 -3
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_backend_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +5 -6
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_listener_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +3 -3
- data/lib/oci/load_balancer/models/work_request.rb +5 -3
- data/lib/oci/load_balancer/models/work_request_error.rb +3 -3
- data/lib/oci/object_storage/models/bucket.rb +3 -3
- data/lib/oci/object_storage/models/bucket_summary.rb +3 -3
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +3 -3
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +3 -3
- data/lib/oci/object_storage/models/create_bucket_details.rb +3 -3
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +3 -3
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +3 -3
- data/lib/oci/object_storage/models/list_objects.rb +3 -3
- data/lib/oci/object_storage/models/multipart_upload.rb +3 -3
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +3 -3
- data/lib/oci/object_storage/models/namespace_metadata.rb +3 -3
- data/lib/oci/object_storage/models/object_summary.rb +3 -3
- data/lib/oci/object_storage/models/preauthenticated_request.rb +3 -3
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +3 -3
- data/lib/oci/object_storage/models/rename_object_details.rb +3 -3
- data/lib/oci/object_storage/models/restore_objects_details.rb +3 -3
- data/lib/oci/object_storage/models/update_bucket_details.rb +3 -3
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +3 -3
- data/lib/oci/version.rb +1 -1
- metadata +16 -2
@@ -86,10 +86,10 @@ module OCI
|
|
86
86
|
# check to ensure the input is an array given that the the attribute
|
87
87
|
# is documented as an array but the input is not
|
88
88
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
89
|
-
self.
|
89
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
90
90
|
end
|
91
91
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
92
|
-
self.
|
92
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
93
93
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
94
94
|
end
|
95
95
|
|
@@ -107,7 +107,7 @@ module OCI
|
|
107
107
|
def to_hash
|
108
108
|
hash = {}
|
109
109
|
self.class.attribute_map.each_pair do |attr, param|
|
110
|
-
value =
|
110
|
+
value = public_send(attr)
|
111
111
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
112
112
|
hash[param] = _to_hash(value)
|
113
113
|
end
|
@@ -112,10 +112,10 @@ module OCI
|
|
112
112
|
# check to ensure the input is an array given that the the attribute
|
113
113
|
# is documented as an array but the input is not
|
114
114
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
115
|
-
self.
|
115
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
116
116
|
end
|
117
117
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
118
|
-
self.
|
118
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
119
119
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
120
120
|
end
|
121
121
|
|
@@ -133,7 +133,7 @@ module OCI
|
|
133
133
|
def to_hash
|
134
134
|
hash = {}
|
135
135
|
self.class.attribute_map.each_pair do |attr, param|
|
136
|
-
value =
|
136
|
+
value = public_send(attr)
|
137
137
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
138
138
|
hash[param] = _to_hash(value)
|
139
139
|
end
|
@@ -63,10 +63,10 @@ module OCI
|
|
63
63
|
# check to ensure the input is an array given that the the attribute
|
64
64
|
# is documented as an array but the input is not
|
65
65
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
66
|
-
self.
|
66
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
67
67
|
end
|
68
68
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
69
|
-
self.
|
69
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
70
70
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
71
71
|
end
|
72
72
|
|
@@ -84,7 +84,7 @@ module OCI
|
|
84
84
|
def to_hash
|
85
85
|
hash = {}
|
86
86
|
self.class.attribute_map.each_pair do |attr, param|
|
87
|
-
value =
|
87
|
+
value = public_send(attr)
|
88
88
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
89
89
|
hash[param] = _to_hash(value)
|
90
90
|
end
|
@@ -53,10 +53,10 @@ module OCI
|
|
53
53
|
# check to ensure the input is an array given that the the attribute
|
54
54
|
# is documented as an array but the input is not
|
55
55
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
56
|
-
self.
|
56
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
57
57
|
end
|
58
58
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
59
|
-
self.
|
59
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
60
60
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
61
61
|
end
|
62
62
|
|
@@ -74,7 +74,7 @@ module OCI
|
|
74
74
|
def to_hash
|
75
75
|
hash = {}
|
76
76
|
self.class.attribute_map.each_pair do |attr, param|
|
77
|
-
value =
|
77
|
+
value = public_send(attr)
|
78
78
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
79
79
|
hash[param] = _to_hash(value)
|
80
80
|
end
|
@@ -53,10 +53,10 @@ module OCI
|
|
53
53
|
# check to ensure the input is an array given that the the attribute
|
54
54
|
# is documented as an array but the input is not
|
55
55
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
56
|
-
self.
|
56
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
57
57
|
end
|
58
58
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
59
|
-
self.
|
59
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
60
60
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
61
61
|
end
|
62
62
|
|
@@ -74,7 +74,7 @@ module OCI
|
|
74
74
|
def to_hash
|
75
75
|
hash = {}
|
76
76
|
self.class.attribute_map.each_pair do |attr, param|
|
77
|
-
value =
|
77
|
+
value = public_send(attr)
|
78
78
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
79
79
|
hash[param] = _to_hash(value)
|
80
80
|
end
|
@@ -91,10 +91,10 @@ module OCI
|
|
91
91
|
# check to ensure the input is an array given that the the attribute
|
92
92
|
# is documented as an array but the input is not
|
93
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
|
-
self.
|
94
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
95
95
|
end
|
96
96
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
97
|
-
self.
|
97
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
98
98
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
99
99
|
end
|
100
100
|
|
@@ -112,7 +112,7 @@ module OCI
|
|
112
112
|
def to_hash
|
113
113
|
hash = {}
|
114
114
|
self.class.attribute_map.each_pair do |attr, param|
|
115
|
-
value =
|
115
|
+
value = public_send(attr)
|
116
116
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
117
117
|
hash[param] = _to_hash(value)
|
118
118
|
end
|
@@ -62,10 +62,10 @@ module OCI
|
|
62
62
|
# check to ensure the input is an array given that the the attribute
|
63
63
|
# is documented as an array but the input is not
|
64
64
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
65
|
-
self.
|
65
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
66
66
|
end
|
67
67
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
68
|
-
self.
|
68
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
69
69
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
70
70
|
end
|
71
71
|
|
@@ -83,7 +83,7 @@ module OCI
|
|
83
83
|
def to_hash
|
84
84
|
hash = {}
|
85
85
|
self.class.attribute_map.each_pair do |attr, param|
|
86
|
-
value =
|
86
|
+
value = public_send(attr)
|
87
87
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
88
88
|
hash[param] = _to_hash(value)
|
89
89
|
end
|
@@ -77,10 +77,10 @@ module OCI
|
|
77
77
|
# check to ensure the input is an array given that the the attribute
|
78
78
|
# is documented as an array but the input is not
|
79
79
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
80
|
-
self.
|
80
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
81
81
|
end
|
82
82
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
83
|
-
self.
|
83
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
84
84
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
85
85
|
end
|
86
86
|
|
@@ -98,7 +98,7 @@ module OCI
|
|
98
98
|
def to_hash
|
99
99
|
hash = {}
|
100
100
|
self.class.attribute_map.each_pair do |attr, param|
|
101
|
-
value =
|
101
|
+
value = public_send(attr)
|
102
102
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
103
103
|
hash[param] = _to_hash(value)
|
104
104
|
end
|
@@ -72,10 +72,10 @@ module OCI
|
|
72
72
|
# check to ensure the input is an array given that the the attribute
|
73
73
|
# is documented as an array but the input is not
|
74
74
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
75
|
-
self.
|
75
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
76
76
|
end
|
77
77
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
78
|
-
self.
|
78
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
79
79
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
80
80
|
end
|
81
81
|
|
@@ -93,7 +93,7 @@ module OCI
|
|
93
93
|
def to_hash
|
94
94
|
hash = {}
|
95
95
|
self.class.attribute_map.each_pair do |attr, param|
|
96
|
-
value =
|
96
|
+
value = public_send(attr)
|
97
97
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
98
98
|
hash[param] = _to_hash(value)
|
99
99
|
end
|
@@ -54,10 +54,10 @@ module OCI
|
|
54
54
|
# check to ensure the input is an array given that the the attribute
|
55
55
|
# is documented as an array but the input is not
|
56
56
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
57
|
-
self.
|
57
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
58
58
|
end
|
59
59
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
60
|
-
self.
|
60
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
61
61
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
62
62
|
end
|
63
63
|
|
@@ -75,7 +75,7 @@ module OCI
|
|
75
75
|
def to_hash
|
76
76
|
hash = {}
|
77
77
|
self.class.attribute_map.each_pair do |attr, param|
|
78
|
-
value =
|
78
|
+
value = public_send(attr)
|
79
79
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
80
80
|
hash[param] = _to_hash(value)
|
81
81
|
end
|
@@ -53,10 +53,10 @@ module OCI
|
|
53
53
|
# check to ensure the input is an array given that the the attribute
|
54
54
|
# is documented as an array but the input is not
|
55
55
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
56
|
-
self.
|
56
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
57
57
|
end
|
58
58
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
59
|
-
self.
|
59
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
60
60
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
61
61
|
end
|
62
62
|
|
@@ -74,7 +74,7 @@ module OCI
|
|
74
74
|
def to_hash
|
75
75
|
hash = {}
|
76
76
|
self.class.attribute_map.each_pair do |attr, param|
|
77
|
-
value =
|
77
|
+
value = public_send(attr)
|
78
78
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
79
79
|
hash[param] = _to_hash(value)
|
80
80
|
end
|
@@ -53,10 +53,10 @@ module OCI
|
|
53
53
|
# check to ensure the input is an array given that the the attribute
|
54
54
|
# is documented as an array but the input is not
|
55
55
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
56
|
-
self.
|
56
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
57
57
|
end
|
58
58
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
59
|
-
self.
|
59
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
60
60
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
61
61
|
end
|
62
62
|
|
@@ -74,7 +74,7 @@ module OCI
|
|
74
74
|
def to_hash
|
75
75
|
hash = {}
|
76
76
|
self.class.attribute_map.each_pair do |attr, param|
|
77
|
-
value =
|
77
|
+
value = public_send(attr)
|
78
78
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
79
79
|
hash[param] = _to_hash(value)
|
80
80
|
end
|
@@ -138,10 +138,10 @@ module OCI
|
|
138
138
|
# check to ensure the input is an array given that the the attribute
|
139
139
|
# is documented as an array but the input is not
|
140
140
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
141
|
-
self.
|
141
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
142
142
|
end
|
143
143
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
144
|
-
self.
|
144
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
145
145
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
146
146
|
end
|
147
147
|
|
@@ -159,7 +159,7 @@ module OCI
|
|
159
159
|
def to_hash
|
160
160
|
hash = {}
|
161
161
|
self.class.attribute_map.each_pair do |attr, param|
|
162
|
-
value =
|
162
|
+
value = public_send(attr)
|
163
163
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
164
164
|
hash[param] = _to_hash(value)
|
165
165
|
end
|
@@ -130,10 +130,10 @@ module OCI
|
|
130
130
|
# check to ensure the input is an array given that the the attribute
|
131
131
|
# is documented as an array but the input is not
|
132
132
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
133
|
-
self.
|
133
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
134
134
|
end
|
135
135
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
136
|
-
self.
|
136
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
137
137
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
138
138
|
end
|
139
139
|
|
@@ -151,7 +151,7 @@ module OCI
|
|
151
151
|
def to_hash
|
152
152
|
hash = {}
|
153
153
|
self.class.attribute_map.each_pair do |attr, param|
|
154
|
-
value =
|
154
|
+
value = public_send(attr)
|
155
155
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
156
156
|
hash[param] = _to_hash(value)
|
157
157
|
end
|
@@ -251,7 +251,7 @@ module OCI
|
|
251
251
|
# To get a list of Availability Domains, use the `ListAvailabilityDomains` operation
|
252
252
|
# in the Identity and Access Management Service API.
|
253
253
|
#
|
254
|
-
# All Oracle
|
254
|
+
# All Oracle Cloud Infrastructure resources, including load balancers, get an Oracle-assigned,
|
255
255
|
# unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID
|
256
256
|
# in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type,
|
257
257
|
# or by viewing the resource in the Console. Fore more information, see
|
@@ -990,12 +990,34 @@ module OCI
|
|
990
990
|
#
|
991
991
|
# Example: `full`
|
992
992
|
# (default to full)
|
993
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Time created is default ordered as descending. Display name is default ordered as ascending.
|
994
|
+
#
|
995
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
996
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'
|
997
|
+
#
|
998
|
+
# Allowed values are: ASC, DESC
|
999
|
+
# @option opts [String] :display_name A filter to only return resources that match the given display name exactly.
|
1000
|
+
#
|
1001
|
+
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state.
|
1002
|
+
#
|
993
1003
|
# @return [Response] A Response object with data of type Array<OCI::LoadBalancer::Models::LoadBalancer>
|
994
1004
|
def list_load_balancers(compartment_id, opts = {})
|
995
1005
|
logger.debug "Calling operation LoadBalancerClient#list_load_balancers." if logger
|
996
1006
|
|
997
1007
|
fail "Missing the required parameter 'compartment_id' when calling list_load_balancers." if compartment_id.nil?
|
998
1008
|
|
1009
|
+
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
1010
|
+
fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
1014
|
+
fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
if opts[:'lifecycle_state'] && !OCI::LoadBalancer::Models::LoadBalancer::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
|
1018
|
+
fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::LoadBalancer::Models::LoadBalancer::LIFECYCLE_STATE_ENUM.'
|
1019
|
+
end
|
1020
|
+
|
999
1021
|
path = "/loadBalancers"
|
1000
1022
|
|
1001
1023
|
# Query Params
|
@@ -1004,6 +1026,10 @@ module OCI
|
|
1004
1026
|
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
1005
1027
|
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
1006
1028
|
query_params[:'detail'] = opts[:'detail'] if opts[:'detail']
|
1029
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
1030
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
|
1031
|
+
query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
|
1032
|
+
query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
|
1007
1033
|
|
1008
1034
|
# Header Params
|
1009
1035
|
header_params = {}
|
@@ -141,10 +141,10 @@ module OCI
|
|
141
141
|
# check to ensure the input is an array given that the the attribute
|
142
142
|
# is documented as an array but the input is not
|
143
143
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
144
|
-
self.
|
144
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
145
145
|
end
|
146
146
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
147
|
-
self.
|
147
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
148
148
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
149
149
|
end
|
150
150
|
|
@@ -162,7 +162,7 @@ module OCI
|
|
162
162
|
def to_hash
|
163
163
|
hash = {}
|
164
164
|
self.class.attribute_map.each_pair do |attr, param|
|
165
|
-
value =
|
165
|
+
value = public_send(attr)
|
166
166
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
167
167
|
hash[param] = _to_hash(value)
|
168
168
|
end
|
@@ -129,10 +129,10 @@ module OCI
|
|
129
129
|
# check to ensure the input is an array given that the the attribute
|
130
130
|
# is documented as an array but the input is not
|
131
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
132
|
-
self.
|
132
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
133
133
|
end
|
134
134
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
135
|
-
self.
|
135
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
136
136
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
137
137
|
end
|
138
138
|
|
@@ -150,7 +150,7 @@ module OCI
|
|
150
150
|
def to_hash
|
151
151
|
hash = {}
|
152
152
|
self.class.attribute_map.each_pair do |attr, param|
|
153
|
-
value =
|
153
|
+
value = public_send(attr)
|
154
154
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
155
155
|
hash[param] = _to_hash(value)
|
156
156
|
end
|
@@ -16,7 +16,7 @@ module OCI
|
|
16
16
|
# @return [Array<OCI::LoadBalancer::Models::HealthCheckResult>]
|
17
17
|
attr_accessor :health_check_results
|
18
18
|
|
19
|
-
# The general health status of the specified backend server as reported by the primary and
|
19
|
+
# The general health status of the specified backend server as reported by the primary and standby load balancers.
|
20
20
|
#
|
21
21
|
# * **OK:** Both health checks returned `OK`.
|
22
22
|
#
|
@@ -89,10 +89,10 @@ module OCI
|
|
89
89
|
# check to ensure the input is an array given that the the attribute
|
90
90
|
# is documented as an array but the input is not
|
91
91
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
92
|
-
self.
|
92
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
93
93
|
end
|
94
94
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
|
-
self.
|
95
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
96
96
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
97
97
|
end
|
98
98
|
|
@@ -110,7 +110,7 @@ module OCI
|
|
110
110
|
def to_hash
|
111
111
|
hash = {}
|
112
112
|
self.class.attribute_map.each_pair do |attr, param|
|
113
|
-
value =
|
113
|
+
value = public_send(attr)
|
114
114
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
115
115
|
hash[param] = _to_hash(value)
|
116
116
|
end
|
@@ -20,9 +20,8 @@ module OCI
|
|
20
20
|
# @return [String]
|
21
21
|
attr_accessor :name
|
22
22
|
|
23
|
-
# The load balancer policy for the backend set.
|
24
|
-
#
|
25
|
-
# operation.
|
23
|
+
# The load balancer policy for the backend set. To get a list of available policies, use the
|
24
|
+
# {#list_policies list_policies} operation.
|
26
25
|
#
|
27
26
|
# Example: `LEAST_CONNECTIONS`
|
28
27
|
#
|
@@ -105,10 +104,10 @@ module OCI
|
|
105
104
|
# check to ensure the input is an array given that the the attribute
|
106
105
|
# is documented as an array but the input is not
|
107
106
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
108
|
-
self.
|
107
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
109
108
|
end
|
110
109
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
111
|
-
self.
|
110
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
112
111
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
113
112
|
end
|
114
113
|
|
@@ -126,7 +125,7 @@ module OCI
|
|
126
125
|
def to_hash
|
127
126
|
hash = {}
|
128
127
|
self.class.attribute_map.each_pair do |attr, param|
|
129
|
-
value =
|
128
|
+
value = public_send(attr)
|
130
129
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
131
130
|
hash[param] = _to_hash(value)
|
132
131
|
end
|