oci 2.0.5 → 2.0.6

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.
Files changed (290) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/oci.rb +3 -0
  4. data/lib/oci/api_client.rb +24 -3
  5. data/lib/oci/audit/audit_client.rb +19 -5
  6. data/lib/oci/audit/models/audit_event.rb +19 -0
  7. data/lib/oci/audit/models/configuration.rb +1 -0
  8. data/lib/oci/audit/models/update_configuration_details.rb +1 -0
  9. data/lib/oci/auth/auth.rb +16 -0
  10. data/lib/oci/auth/federation_client.rb +125 -0
  11. data/lib/oci/auth/internal/auth_token_request_signer.rb +20 -0
  12. data/lib/oci/auth/security_token_container.rb +25 -0
  13. data/lib/oci/auth/session_key_supplier.rb +37 -0
  14. data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +83 -0
  15. data/lib/oci/auth/signers/security_token_signer.rb +32 -0
  16. data/lib/oci/auth/signers/x509_federation_client_based_security_token_signer.rb +70 -0
  17. data/lib/oci/auth/url_based_certificate_retriever.rb +104 -0
  18. data/lib/oci/auth/util.rb +33 -0
  19. data/lib/oci/base_signer.rb +154 -0
  20. data/lib/oci/core/blockstorage_client.rb +19 -5
  21. data/lib/oci/core/compute_client.rb +19 -5
  22. data/lib/oci/core/models/attach_boot_volume_details.rb +5 -2
  23. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +5 -1
  24. data/lib/oci/core/models/attach_vnic_details.rb +6 -2
  25. data/lib/oci/core/models/attach_volume_details.rb +8 -3
  26. data/lib/oci/core/models/boot_volume.rb +22 -6
  27. data/lib/oci/core/models/boot_volume_attachment.rb +17 -7
  28. data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +2 -1
  29. data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +2 -1
  30. data/lib/oci/core/models/capture_console_history_details.rb +5 -1
  31. data/lib/oci/core/models/connect_local_peering_gateways_details.rb +3 -1
  32. data/lib/oci/core/models/console_history.rb +19 -6
  33. data/lib/oci/core/models/cpe.rb +18 -3
  34. data/lib/oci/core/models/create_cpe_details.rb +5 -2
  35. data/lib/oci/core/models/create_cross_connect_details.rb +10 -3
  36. data/lib/oci/core/models/create_cross_connect_group_details.rb +3 -1
  37. data/lib/oci/core/models/create_dhcp_details.rb +9 -3
  38. data/lib/oci/core/models/create_drg_attachment_details.rb +5 -2
  39. data/lib/oci/core/models/create_drg_details.rb +3 -1
  40. data/lib/oci/core/models/create_image_details.rb +9 -1
  41. data/lib/oci/core/models/create_instance_console_connection_details.rb +9 -2
  42. data/lib/oci/core/models/create_internet_gateway_details.rb +8 -4
  43. data/lib/oci/core/models/create_ip_sec_connection_details.rb +9 -4
  44. data/lib/oci/core/models/create_local_peering_gateway_details.rb +5 -2
  45. data/lib/oci/core/models/create_private_ip_details.rb +7 -1
  46. data/lib/oci/core/models/create_route_table_details.rb +9 -3
  47. data/lib/oci/core/models/create_security_list_details.rb +11 -4
  48. data/lib/oci/core/models/create_subnet_details.rb +17 -5
  49. data/lib/oci/core/models/create_vcn_details.rb +8 -2
  50. data/lib/oci/core/models/create_virtual_circuit_details.rb +14 -2
  51. data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +2 -1
  52. data/lib/oci/core/models/create_vnic_details.rb +14 -3
  53. data/lib/oci/core/models/create_volume_backup_details.rb +5 -1
  54. data/lib/oci/core/models/create_volume_details.rb +11 -2
  55. data/lib/oci/core/models/cross_connect.rb +26 -0
  56. data/lib/oci/core/models/cross_connect_group.rb +19 -0
  57. data/lib/oci/core/models/cross_connect_location.rb +5 -2
  58. data/lib/oci/core/models/cross_connect_mapping.rb +31 -0
  59. data/lib/oci/core/models/cross_connect_port_speed_shape.rb +6 -2
  60. data/lib/oci/core/models/cross_connect_status.rb +6 -1
  61. data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +2 -1
  62. data/lib/oci/core/models/dhcp_dns_option.rb +7 -1
  63. data/lib/oci/core/models/dhcp_option.rb +9 -1
  64. data/lib/oci/core/models/dhcp_options.rb +31 -6
  65. data/lib/oci/core/models/dhcp_search_domain_option.rb +5 -1
  66. data/lib/oci/core/models/drg.rb +18 -3
  67. data/lib/oci/core/models/drg_attachment.rb +15 -5
  68. data/lib/oci/core/models/egress_security_rule.rb +10 -3
  69. data/lib/oci/core/models/export_image_details.rb +13 -1
  70. data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +3 -0
  71. data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +2 -1
  72. data/lib/oci/core/models/fast_connect_provider_service.rb +17 -6
  73. data/lib/oci/core/models/i_scsi_volume_attachment.rb +17 -3
  74. data/lib/oci/core/models/icmp_options.rb +11 -1
  75. data/lib/oci/core/models/image.rb +28 -7
  76. data/lib/oci/core/models/image_source_details.rb +4 -1
  77. data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +7 -3
  78. data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +3 -1
  79. data/lib/oci/core/models/ingress_security_rule.rb +10 -3
  80. data/lib/oci/core/models/instance.rb +33 -7
  81. data/lib/oci/core/models/instance_console_connection.rb +15 -0
  82. data/lib/oci/core/models/instance_credentials.rb +5 -2
  83. data/lib/oci/core/models/instance_source_details.rb +3 -1
  84. data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +2 -1
  85. data/lib/oci/core/models/instance_source_via_image_details.rb +2 -1
  86. data/lib/oci/core/models/internet_gateway.rb +20 -5
  87. data/lib/oci/core/models/ip_sec_connection.rb +23 -6
  88. data/lib/oci/core/models/ip_sec_connection_device_config.rb +7 -2
  89. data/lib/oci/core/models/ip_sec_connection_device_status.rb +7 -2
  90. data/lib/oci/core/models/launch_instance_details.rb +20 -3
  91. data/lib/oci/core/models/launch_options.rb +10 -4
  92. data/lib/oci/core/models/letter_of_authority.rb +10 -0
  93. data/lib/oci/core/models/local_peering_gateway.rb +29 -9
  94. data/lib/oci/core/models/port_range.rb +4 -2
  95. data/lib/oci/core/models/private_ip.rb +41 -1
  96. data/lib/oci/core/models/route_rule.rb +7 -2
  97. data/lib/oci/core/models/route_table.rb +22 -5
  98. data/lib/oci/core/models/security_list.rb +32 -8
  99. data/lib/oci/core/models/shape.rb +5 -1
  100. data/lib/oci/core/models/subnet.rb +38 -10
  101. data/lib/oci/core/models/tcp_options.rb +5 -0
  102. data/lib/oci/core/models/tunnel_config.rb +6 -2
  103. data/lib/oci/core/models/tunnel_status.rb +7 -1
  104. data/lib/oci/core/models/udp_options.rb +5 -0
  105. data/lib/oci/core/models/update_boot_volume_details.rb +1 -0
  106. data/lib/oci/core/models/update_console_history_details.rb +3 -0
  107. data/lib/oci/core/models/update_cpe_details.rb +1 -0
  108. data/lib/oci/core/models/update_cross_connect_details.rb +5 -1
  109. data/lib/oci/core/models/update_cross_connect_group_details.rb +1 -0
  110. data/lib/oci/core/models/update_dhcp_details.rb +4 -0
  111. data/lib/oci/core/models/update_drg_attachment_details.rb +1 -0
  112. data/lib/oci/core/models/update_drg_details.rb +1 -0
  113. data/lib/oci/core/models/update_image_details.rb +3 -0
  114. data/lib/oci/core/models/update_instance_details.rb +3 -0
  115. data/lib/oci/core/models/update_internet_gateway_details.rb +3 -1
  116. data/lib/oci/core/models/update_ip_sec_connection_details.rb +1 -0
  117. data/lib/oci/core/models/update_local_peering_gateway_details.rb +1 -0
  118. data/lib/oci/core/models/update_private_ip_details.rb +5 -0
  119. data/lib/oci/core/models/update_route_table_details.rb +4 -0
  120. data/lib/oci/core/models/update_security_list_details.rb +5 -0
  121. data/lib/oci/core/models/update_subnet_details.rb +3 -0
  122. data/lib/oci/core/models/update_vcn_details.rb +3 -0
  123. data/lib/oci/core/models/update_virtual_circuit_details.rb +7 -0
  124. data/lib/oci/core/models/update_vnic_details.rb +4 -1
  125. data/lib/oci/core/models/update_volume_backup_details.rb +3 -0
  126. data/lib/oci/core/models/update_volume_details.rb +3 -0
  127. data/lib/oci/core/models/vcn.rb +24 -4
  128. data/lib/oci/core/models/virtual_circuit.rb +41 -0
  129. data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +5 -1
  130. data/lib/oci/core/models/virtual_circuit_public_prefix.rb +8 -2
  131. data/lib/oci/core/models/vnic.rb +38 -9
  132. data/lib/oci/core/models/vnic_attachment.rb +21 -7
  133. data/lib/oci/core/models/volume.rb +28 -8
  134. data/lib/oci/core/models/volume_attachment.rb +25 -8
  135. data/lib/oci/core/models/volume_backup.rb +26 -5
  136. data/lib/oci/core/models/volume_source_details.rb +3 -0
  137. data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +3 -1
  138. data/lib/oci/core/models/volume_source_from_volume_details.rb +3 -1
  139. data/lib/oci/core/virtual_network_client.rb +19 -5
  140. data/lib/oci/database/database_client.rb +19 -5
  141. data/lib/oci/database/models/backup.rb +13 -0
  142. data/lib/oci/database/models/backup_summary.rb +13 -0
  143. data/lib/oci/database/models/create_backup_details.rb +4 -2
  144. data/lib/oci/database/models/create_data_guard_association_details.rb +18 -4
  145. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -0
  146. data/lib/oci/database/models/create_database_details.rb +9 -2
  147. data/lib/oci/database/models/create_database_from_backup_details.rb +6 -3
  148. data/lib/oci/database/models/create_db_home_details.rb +5 -1
  149. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +5 -1
  150. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +6 -1
  151. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +4 -0
  152. data/lib/oci/database/models/data_guard_association.rb +32 -7
  153. data/lib/oci/database/models/data_guard_association_summary.rb +32 -7
  154. data/lib/oci/database/models/database.rb +22 -5
  155. data/lib/oci/database/models/database_summary.rb +22 -5
  156. data/lib/oci/database/models/db_backup_config.rb +5 -1
  157. data/lib/oci/database/models/db_home.rb +22 -5
  158. data/lib/oci/database/models/db_home_summary.rb +22 -5
  159. data/lib/oci/database/models/db_node.rb +17 -5
  160. data/lib/oci/database/models/db_node_summary.rb +17 -5
  161. data/lib/oci/database/models/db_system.rb +56 -12
  162. data/lib/oci/database/models/db_system_shape_summary.rb +11 -2
  163. data/lib/oci/database/models/db_system_summary.rb +56 -12
  164. data/lib/oci/database/models/db_version_summary.rb +8 -2
  165. data/lib/oci/database/models/failover_data_guard_association_details.rb +4 -1
  166. data/lib/oci/database/models/launch_db_system_details.rb +27 -8
  167. data/lib/oci/database/models/patch.rb +18 -4
  168. data/lib/oci/database/models/patch_details.rb +6 -0
  169. data/lib/oci/database/models/patch_history_entry.rb +12 -4
  170. data/lib/oci/database/models/patch_history_entry_summary.rb +12 -4
  171. data/lib/oci/database/models/patch_summary.rb +18 -4
  172. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +4 -1
  173. data/lib/oci/database/models/restore_database_details.rb +4 -1
  174. data/lib/oci/database/models/switchover_data_guard_association_details.rb +4 -1
  175. data/lib/oci/database/models/update_database_details.rb +1 -0
  176. data/lib/oci/database/models/update_db_home_details.rb +3 -0
  177. data/lib/oci/database/models/update_db_system_details.rb +6 -0
  178. data/lib/oci/identity/identity.rb +3 -0
  179. data/lib/oci/identity/identity_client.rb +290 -70
  180. data/lib/oci/identity/models/add_user_to_group_details.rb +4 -2
  181. data/lib/oci/identity/models/api_key.rb +18 -0
  182. data/lib/oci/identity/models/availability_domain.rb +6 -0
  183. data/lib/oci/identity/models/compartment.rb +38 -10
  184. data/lib/oci/identity/models/create_api_key_details.rb +2 -1
  185. data/lib/oci/identity/models/create_compartment_details.rb +14 -7
  186. data/lib/oci/identity/models/create_customer_secret_key_details.rb +2 -1
  187. data/lib/oci/identity/models/create_dynamic_group_details.rb +160 -0
  188. data/lib/oci/identity/models/create_group_details.rb +14 -7
  189. data/lib/oci/identity/models/create_identity_provider_details.rb +19 -9
  190. data/lib/oci/identity/models/create_idp_group_mapping_details.rb +4 -2
  191. data/lib/oci/identity/models/create_policy_details.rb +18 -9
  192. data/lib/oci/identity/models/create_region_subscription_details.rb +2 -1
  193. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +10 -2
  194. data/lib/oci/identity/models/create_swift_password_details.rb +2 -1
  195. data/lib/oci/identity/models/create_tag_details.rb +12 -6
  196. data/lib/oci/identity/models/create_tag_namespace_details.rb +14 -7
  197. data/lib/oci/identity/models/create_user_details.rb +14 -7
  198. data/lib/oci/identity/models/customer_secret_key.rb +16 -0
  199. data/lib/oci/identity/models/customer_secret_key_summary.rb +10 -0
  200. data/lib/oci/identity/models/dynamic_group.rb +239 -0
  201. data/lib/oci/identity/models/group.rb +35 -11
  202. data/lib/oci/identity/models/identity_provider.rb +36 -12
  203. data/lib/oci/identity/models/idp_group_mapping.rb +27 -7
  204. data/lib/oci/identity/models/policy.rb +38 -11
  205. data/lib/oci/identity/models/region.rb +10 -0
  206. data/lib/oci/identity/models/region_subscription.rb +16 -5
  207. data/lib/oci/identity/models/saml2_identity_provider.rb +20 -3
  208. data/lib/oci/identity/models/swift_password.rb +17 -1
  209. data/lib/oci/identity/models/tag.rb +30 -13
  210. data/lib/oci/identity/models/tag_namespace.rb +25 -11
  211. data/lib/oci/identity/models/tag_namespace_summary.rb +23 -10
  212. data/lib/oci/identity/models/tag_summary.rb +21 -8
  213. data/lib/oci/identity/models/tenancy.rb +21 -4
  214. data/lib/oci/identity/models/ui_password.rb +10 -0
  215. data/lib/oci/identity/models/update_compartment_details.rb +10 -4
  216. data/lib/oci/identity/models/update_customer_secret_key_details.rb +1 -0
  217. data/lib/oci/identity/models/update_dynamic_group_details.rb +134 -0
  218. data/lib/oci/identity/models/update_group_details.rb +9 -4
  219. data/lib/oci/identity/models/update_identity_provider_details.rb +12 -5
  220. data/lib/oci/identity/models/update_idp_group_mapping_details.rb +2 -0
  221. data/lib/oci/identity/models/update_policy_details.rb +12 -5
  222. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +5 -0
  223. data/lib/oci/identity/models/update_state_details.rb +2 -1
  224. data/lib/oci/identity/models/update_swift_password_details.rb +1 -0
  225. data/lib/oci/identity/models/update_tag_details.rb +15 -7
  226. data/lib/oci/identity/models/update_tag_namespace_details.rb +15 -7
  227. data/lib/oci/identity/models/update_user_details.rb +9 -4
  228. data/lib/oci/identity/models/user.rb +38 -11
  229. data/lib/oci/identity/models/user_group_membership.rb +16 -6
  230. data/lib/oci/load_balancer/load_balancer.rb +1 -0
  231. data/lib/oci/load_balancer/load_balancer_client.rb +24 -9
  232. data/lib/oci/load_balancer/models/backend.rb +20 -10
  233. data/lib/oci/load_balancer/models/backend_details.rb +12 -5
  234. data/lib/oci/load_balancer/models/backend_health.rb +6 -2
  235. data/lib/oci/load_balancer/models/backend_set.rb +14 -2
  236. data/lib/oci/load_balancer/models/backend_set_details.rb +11 -1
  237. data/lib/oci/load_balancer/models/backend_set_health.rb +15 -5
  238. data/lib/oci/load_balancer/models/certificate.rb +10 -3
  239. data/lib/oci/load_balancer/models/certificate_details.rb +10 -1
  240. data/lib/oci/load_balancer/models/connection_configuration.rb +157 -0
  241. data/lib/oci/load_balancer/models/create_backend_details.rb +15 -5
  242. data/lib/oci/load_balancer/models/create_backend_set_details.rb +13 -2
  243. data/lib/oci/load_balancer/models/create_certificate_details.rb +10 -1
  244. data/lib/oci/load_balancer/models/create_listener_details.rb +28 -5
  245. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +14 -5
  246. data/lib/oci/load_balancer/models/health_check_result.rb +10 -4
  247. data/lib/oci/load_balancer/models/health_checker.rb +15 -4
  248. data/lib/oci/load_balancer/models/health_checker_details.rb +10 -1
  249. data/lib/oci/load_balancer/models/ip_address.rb +5 -2
  250. data/lib/oci/load_balancer/models/listener.rb +28 -5
  251. data/lib/oci/load_balancer/models/listener_details.rb +23 -4
  252. data/lib/oci/load_balancer/models/load_balancer.rb +30 -7
  253. data/lib/oci/load_balancer/models/load_balancer_health.rb +15 -5
  254. data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +5 -2
  255. data/lib/oci/load_balancer/models/load_balancer_policy.rb +6 -1
  256. data/lib/oci/load_balancer/models/load_balancer_protocol.rb +3 -1
  257. data/lib/oci/load_balancer/models/load_balancer_shape.rb +8 -1
  258. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +14 -2
  259. data/lib/oci/load_balancer/models/ssl_configuration.rb +11 -4
  260. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +6 -2
  261. data/lib/oci/load_balancer/models/update_backend_details.rb +12 -7
  262. data/lib/oci/load_balancer/models/update_backend_set_details.rb +12 -1
  263. data/lib/oci/load_balancer/models/update_health_checker_details.rb +16 -7
  264. data/lib/oci/load_balancer/models/update_listener_details.rb +23 -4
  265. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +3 -1
  266. data/lib/oci/load_balancer/models/work_request.rb +20 -6
  267. data/lib/oci/load_balancer/models/work_request_error.rb +5 -1
  268. data/lib/oci/object_storage/models/bucket.rb +27 -8
  269. data/lib/oci/object_storage/models/bucket_summary.rb +16 -6
  270. data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +7 -1
  271. data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +8 -2
  272. data/lib/oci/object_storage/models/create_bucket_details.rb +15 -4
  273. data/lib/oci/object_storage/models/create_multipart_upload_details.rb +10 -1
  274. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +7 -3
  275. data/lib/oci/object_storage/models/list_objects.rb +8 -1
  276. data/lib/oci/object_storage/models/multipart_upload.rb +20 -5
  277. data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +13 -4
  278. data/lib/oci/object_storage/models/namespace_metadata.rb +8 -3
  279. data/lib/oci/object_storage/models/object_summary.rb +9 -1
  280. data/lib/oci/object_storage/models/preauthenticated_request.rb +20 -6
  281. data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +13 -5
  282. data/lib/oci/object_storage/models/rename_object_details.rb +11 -2
  283. data/lib/oci/object_storage/models/restore_objects_details.rb +2 -1
  284. data/lib/oci/object_storage/models/update_bucket_details.rb +13 -2
  285. data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +5 -0
  286. data/lib/oci/object_storage/object_storage_client.rb +26 -12
  287. data/lib/oci/regions.rb +8 -1
  288. data/lib/oci/signer.rb +5 -124
  289. data/lib/oci/version.rb +1 -1
  290. metadata +31 -2
@@ -3,19 +3,26 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # The listener's configuration details.
6
7
  class LoadBalancer::Models::ListenerDetails
7
- # The name of the associated backend set.
8
+ # @return [OCI::LoadBalancer::Models::ConnectionConfiguration]
9
+ attr_accessor :connection_configuration
10
+
11
+ # **[Required]** The name of the associated backend set.
12
+ #
13
+ # Example: `My_backend_set`
14
+ #
8
15
  # @return [String]
9
16
  attr_accessor :default_backend_set_name
10
17
 
11
- # The communication port for the listener.
18
+ # **[Required]** The communication port for the listener.
12
19
  #
13
20
  # Example: `80`
14
21
  #
15
22
  # @return [Integer]
16
23
  attr_accessor :port
17
24
 
18
- # The protocol on which the listener accepts connection requests.
25
+ # **[Required]** The protocol on which the listener accepts connection requests.
19
26
  # To get a list of valid protocols, use the {#list_protocols list_protocols}
20
27
  # operation.
21
28
  #
@@ -30,12 +37,21 @@ module OCI
30
37
 
31
38
  # Initializes the object
32
39
  # @param [Hash] attributes Model attributes in the form of hash
40
+ # @option attributes [OCI::LoadBalancer::Models::ConnectionConfiguration] :connectionConfiguration The value to assign to the {#connection_configuration} property
41
+ # @option attributes [String] :defaultBackendSetName The value to assign to the {#default_backend_set_name} property
42
+ # @option attributes [Integer] :port The value to assign to the {#port} property
43
+ # @option attributes [String] :protocol The value to assign to the {#protocol} property
44
+ # @option attributes [OCI::LoadBalancer::Models::SSLConfigurationDetails] :sslConfiguration The value to assign to the {#ssl_configuration} property
33
45
  def initialize(attributes = {})
34
46
  return unless attributes.is_a?(Hash)
35
47
 
36
48
  # convert string to symbol for hash key
37
49
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
38
50
 
51
+ if attributes[:'connectionConfiguration']
52
+ self.connection_configuration = attributes[:'connectionConfiguration']
53
+ end
54
+
39
55
  if attributes[:'defaultBackendSetName']
40
56
  self.default_backend_set_name = attributes[:'defaultBackendSetName']
41
57
  end
@@ -59,6 +75,7 @@ module OCI
59
75
  def ==(other_object)
60
76
  return true if self.equal?(other_object)
61
77
  self.class == other_object.class &&
78
+ connection_configuration == other_object.connection_configuration &&
62
79
  default_backend_set_name == other_object.default_backend_set_name &&
63
80
  port == other_object.port &&
64
81
  protocol == other_object.protocol &&
@@ -74,7 +91,7 @@ module OCI
74
91
  # Calculates hash code according to all attributes.
75
92
  # @return [Fixnum] Hash code
76
93
  def hash
77
- [default_backend_set_name, port, protocol, ssl_configuration].hash
94
+ [connection_configuration, default_backend_set_name, port, protocol, ssl_configuration].hash
78
95
  end
79
96
 
80
97
  # Builds the object from hash
@@ -140,6 +157,7 @@ module OCI
140
157
  # Attribute mapping from ruby-style variable name to JSON key.
141
158
  def self.attribute_map
142
159
  {
160
+ :'connection_configuration' => :'connectionConfiguration',
143
161
  :'default_backend_set_name' => :'defaultBackendSetName',
144
162
  :'port' => :'port',
145
163
  :'protocol' => :'protocol',
@@ -150,6 +168,7 @@ module OCI
150
168
  # Attribute type mapping.
151
169
  def self.swagger_types
152
170
  {
171
+ :'connection_configuration' => :'OCI::LoadBalancer::Models::ConnectionConfiguration',
153
172
  :'default_backend_set_name' => :'String',
154
173
  :'port' => :'Integer',
155
174
  :'protocol' => :'String',
@@ -3,6 +3,17 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # The properties that define a load balancer. For more information, see
7
+ # [Managing a Load Balancer](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingloadbalancer.htm).
8
+ #
9
+ # To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
10
+ # talk to an administrator. If you're an administrator who needs to write policies to give users access, see
11
+ # [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
12
+ #
13
+ # For information about endpoints and signing API requests, see
14
+ # [About the API](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see
15
+ # [SDKS and Other Tools](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdks.htm).
16
+ #
6
17
  class LoadBalancer::Models::LoadBalancer
7
18
 
8
19
  LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_CREATING = 'CREATING',
@@ -18,18 +29,18 @@ module OCI
18
29
  # @return [Hash<String, OCI::LoadBalancer::Models::Certificate>]
19
30
  attr_accessor :certificates
20
31
 
21
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer.
32
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer.
22
33
  # @return [String]
23
34
  attr_accessor :compartment_id
24
35
 
25
- # A user-friendly name. It does not have to be unique, and it is changeable.
36
+ # **[Required]** A user-friendly name. It does not have to be unique, and it is changeable.
26
37
  #
27
38
  # Example: `My load balancer`
28
39
  #
29
40
  # @return [String]
30
41
  attr_accessor :display_name
31
42
 
32
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer.
43
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer.
33
44
  # @return [String]
34
45
  attr_accessor :id
35
46
 
@@ -55,7 +66,7 @@ module OCI
55
66
  # @return [BOOLEAN]
56
67
  attr_accessor :is_private
57
68
 
58
- # The current state of the load balancer.
69
+ # **[Required]** The current state of the load balancer.
59
70
  #
60
71
  # @return [String]
61
72
  attr_accessor :lifecycle_state
@@ -63,7 +74,7 @@ module OCI
63
74
  # @return [Hash<String, OCI::LoadBalancer::Models::Listener>]
64
75
  attr_accessor :listeners
65
76
 
66
- # A template that determines the total pre-provisioned bandwidth (ingress plus egress).
77
+ # **[Required]** A template that determines the total pre-provisioned bandwidth (ingress plus egress).
67
78
  # To get a list of available shapes, use the {#list_shapes list_shapes}
68
79
  # operation.
69
80
  #
@@ -76,7 +87,7 @@ module OCI
76
87
  # @return [Array<String>]
77
88
  attr_accessor :subnet_ids
78
89
 
79
- # The date and time the load balancer was created, in the format defined by RFC3339.
90
+ # **[Required]** The date and time the load balancer was created, in the format defined by RFC3339.
80
91
  #
81
92
  # Example: `2016-08-25T21:10:29.600Z`
82
93
  #
@@ -86,6 +97,18 @@ module OCI
86
97
 
87
98
  # Initializes the object
88
99
  # @param [Hash] attributes Model attributes in the form of hash
100
+ # @option attributes [Hash<String, OCI::LoadBalancer::Models::BackendSet>] :backendSets The value to assign to the {#backend_sets} property
101
+ # @option attributes [Hash<String, OCI::LoadBalancer::Models::Certificate>] :certificates The value to assign to the {#certificates} property
102
+ # @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
103
+ # @option attributes [String] :displayName The value to assign to the {#display_name} property
104
+ # @option attributes [String] :id The value to assign to the {#id} property
105
+ # @option attributes [Array<OCI::LoadBalancer::Models::IpAddress>] :ipAddresses The value to assign to the {#ip_addresses} property
106
+ # @option attributes [BOOLEAN] :isPrivate The value to assign to the {#is_private} property
107
+ # @option attributes [String] :lifecycleState The value to assign to the {#lifecycle_state} property
108
+ # @option attributes [Hash<String, OCI::LoadBalancer::Models::Listener>] :listeners The value to assign to the {#listeners} property
109
+ # @option attributes [String] :shapeName The value to assign to the {#shape_name} property
110
+ # @option attributes [Array<String>] :subnetIds The value to assign to the {#subnet_ids} property
111
+ # @option attributes [DateTime] :timeCreated The value to assign to the {#time_created} property
89
112
  def initialize(attributes = {})
90
113
  return unless attributes.is_a?(Hash)
91
114
 
@@ -116,7 +139,7 @@ module OCI
116
139
  self.ip_addresses = attributes[:'ipAddresses']
117
140
  end
118
141
 
119
- if attributes[:'isPrivate']
142
+ unless attributes[:'isPrivate'].nil?
120
143
  self.is_private = attributes[:'isPrivate']
121
144
  end
122
145
 
@@ -3,6 +3,11 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # The health status details for the specified load balancer.
7
+ #
8
+ # This object does not explicitly enumerate backend sets with a status of `OK`. However, they are included in the
9
+ # `totalBackendSetCount` sum.
10
+ #
6
11
  class LoadBalancer::Models::LoadBalancerHealth
7
12
 
8
13
  STATUS_ENUM = [STATUS_OK = 'OK',
@@ -11,7 +16,7 @@ module OCI
11
16
  STATUS_UNKNOWN = 'UNKNOWN',
12
17
  STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
18
 
14
- # A list of backend sets that are currently in the `CRITICAL` health state. The list identifies each backend set by the
19
+ # **[Required]** A list of backend sets that are currently in the `CRITICAL` health state. The list identifies each backend set by the
15
20
  # friendly name you assigned when you created it.
16
21
  #
17
22
  # Example: `My_backend_set`
@@ -19,7 +24,7 @@ module OCI
19
24
  # @return [Array<String>]
20
25
  attr_accessor :critical_state_backend_set_names
21
26
 
22
- # The overall health status of the load balancer.
27
+ # **[Required]** The overall health status of the load balancer.
23
28
  #
24
29
  # * **OK:** All backend sets associated with the load balancer return a status of `OK`.
25
30
  #
@@ -42,14 +47,14 @@ module OCI
42
47
  # @return [String]
43
48
  attr_accessor :status
44
49
 
45
- # The total number of backend sets associated with this load balancer.
50
+ # **[Required]** The total number of backend sets associated with this load balancer.
46
51
  #
47
52
  # Example: `4`
48
53
  #
49
54
  # @return [Integer]
50
55
  attr_accessor :total_backend_set_count
51
56
 
52
- # A list of backend sets that are currently in the `UNKNOWN` health state. The list identifies each backend set by the
57
+ # **[Required]** A list of backend sets that are currently in the `UNKNOWN` health state. The list identifies each backend set by the
53
58
  # friendly name you assigned when you created it.
54
59
  #
55
60
  # Example: `Backend_set2`
@@ -57,7 +62,7 @@ module OCI
57
62
  # @return [Array<String>]
58
63
  attr_accessor :unknown_state_backend_set_names
59
64
 
60
- # A list of backend sets that are currently in the `WARNING` health state. The list identifies each backend set by the
65
+ # **[Required]** A list of backend sets that are currently in the `WARNING` health state. The list identifies each backend set by the
61
66
  # friendly name you assigned when you created it.
62
67
  #
63
68
  # Example: `Backend_set3`
@@ -68,6 +73,11 @@ module OCI
68
73
 
69
74
  # Initializes the object
70
75
  # @param [Hash] attributes Model attributes in the form of hash
76
+ # @option attributes [Array<String>] :criticalStateBackendSetNames The value to assign to the {#critical_state_backend_set_names} property
77
+ # @option attributes [String] :status The value to assign to the {#status} property
78
+ # @option attributes [Integer] :totalBackendSetCount The value to assign to the {#total_backend_set_count} property
79
+ # @option attributes [Array<String>] :unknownStateBackendSetNames The value to assign to the {#unknown_state_backend_set_names} property
80
+ # @option attributes [Array<String>] :warningStateBackendSetNames The value to assign to the {#warning_state_backend_set_names} property
71
81
  def initialize(attributes = {})
72
82
  return unless attributes.is_a?(Hash)
73
83
 
@@ -3,6 +3,7 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # A health status summary for the specified load balancer.
6
7
  class LoadBalancer::Models::LoadBalancerHealthSummary
7
8
 
8
9
  STATUS_ENUM = [STATUS_OK = 'OK',
@@ -11,12 +12,12 @@ module OCI
11
12
  STATUS_UNKNOWN = 'UNKNOWN',
12
13
  STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
14
 
14
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer the health status is associated with.
15
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer the health status is associated with.
15
16
  #
16
17
  # @return [String]
17
18
  attr_accessor :load_balancer_id
18
19
 
19
- # The overall health status of the load balancer.
20
+ # **[Required]** The overall health status of the load balancer.
20
21
  #
21
22
  # * **OK:** All backend sets associated with the load balancer return a status of `OK`.
22
23
  #
@@ -42,6 +43,8 @@ module OCI
42
43
 
43
44
  # Initializes the object
44
45
  # @param [Hash] attributes Model attributes in the form of hash
46
+ # @option attributes [String] :loadBalancerId The value to assign to the {#load_balancer_id} property
47
+ # @option attributes [String] :status The value to assign to the {#status} property
45
48
  def initialize(attributes = {})
46
49
  return unless attributes.is_a?(Hash)
47
50
 
@@ -3,14 +3,19 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # A policy that determines how traffic is distributed among backend servers.
7
+ # For more information on load balancing policies, see
8
+ # [How Load Balancing Policies Work](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/lbpolicies.htm).
9
+ #
6
10
  class LoadBalancer::Models::LoadBalancerPolicy
7
- # The name of the load balancing policy.
11
+ # **[Required]** The name of the load balancing policy.
8
12
  # @return [String]
9
13
  attr_accessor :name
10
14
 
11
15
 
12
16
  # Initializes the object
13
17
  # @param [Hash] attributes Model attributes in the form of hash
18
+ # @option attributes [String] :name The value to assign to the {#name} property
14
19
  def initialize(attributes = {})
15
20
  return unless attributes.is_a?(Hash)
16
21
 
@@ -3,14 +3,16 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # The protocol that defines the type of traffic accepted by a listener.
6
7
  class LoadBalancer::Models::LoadBalancerProtocol
7
- # The name of the protocol.
8
+ # **[Required]** The name of the protocol.
8
9
  # @return [String]
9
10
  attr_accessor :name
10
11
 
11
12
 
12
13
  # Initializes the object
13
14
  # @param [Hash] attributes Model attributes in the form of hash
15
+ # @option attributes [String] :name The value to assign to the {#name} property
14
16
  def initialize(attributes = {})
15
17
  return unless attributes.is_a?(Hash)
16
18
 
@@ -3,14 +3,21 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # A shape is a template that determines the total pre-provisioned bandwidth (ingress plus egress) for the
7
+ # load balancer.
8
+ #
9
+ # Note that the pre-provisioned maximum capacity applies to aggregated connections, not to a single client
10
+ # attempting to use the full bandwidth.
11
+ #
6
12
  class LoadBalancer::Models::LoadBalancerShape
7
- # The name of the shape.
13
+ # **[Required]** The name of the shape.
8
14
  # @return [String]
9
15
  attr_accessor :name
10
16
 
11
17
 
12
18
  # Initializes the object
13
19
  # @param [Hash] attributes Model attributes in the form of hash
20
+ # @option attributes [String] :name The value to assign to the {#name} property
14
21
  def initialize(attributes = {})
15
22
  return unless attributes.is_a?(Hash)
16
23
 
@@ -3,8 +3,18 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # The configuration details for implementing session persistence. Session persistence enables the Load Balancing
7
+ # Service to direct any number of requests that originate from a single logical client to a single backend web server.
8
+ # For more information, see [Session Persistence](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/sessionpersistence.htm).
9
+ #
10
+ # To disable session persistence on a running load balancer, use the
11
+ # {#update_backend_set update_backend_set} operation and specify \"null\" for the
12
+ # `SessionPersistenceConfigurationDetails` object.
13
+ #
14
+ # Example: `SessionPersistenceConfigurationDetails: null`
15
+ #
6
16
  class LoadBalancer::Models::SessionPersistenceConfigurationDetails
7
- # The name of the cookie used to detect a session initiated by the backend server. Use '*' to specify
17
+ # **[Required]** The name of the cookie used to detect a session initiated by the backend server. Use '*' to specify
8
18
  # that any cookie set by the backend causes the session to persist.
9
19
  #
10
20
  # Example: `myCookieName`
@@ -23,6 +33,8 @@ module OCI
23
33
 
24
34
  # Initializes the object
25
35
  # @param [Hash] attributes Model attributes in the form of hash
36
+ # @option attributes [String] :cookieName The value to assign to the {#cookie_name} property
37
+ # @option attributes [BOOLEAN] :disableFallback The value to assign to the {#disable_fallback} property
26
38
  def initialize(attributes = {})
27
39
  return unless attributes.is_a?(Hash)
28
40
 
@@ -33,7 +45,7 @@ module OCI
33
45
  self.cookie_name = attributes[:'cookieName']
34
46
  end
35
47
 
36
- if attributes[:'disableFallback']
48
+ unless attributes[:'disableFallback'].nil?
37
49
  self.disable_fallback = attributes[:'disableFallback']
38
50
  else
39
51
  self.disable_fallback = false
@@ -3,8 +3,12 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # A listener's SSL handling configuration.
7
+ #
8
+ # To use SSL, a listener must be associated with a {Certificate}.
9
+ #
6
10
  class LoadBalancer::Models::SSLConfiguration
7
- # A friendly name for the certificate bundle. It must be unique and it cannot be changed.
11
+ # **[Required]** A friendly name for the certificate bundle. It must be unique and it cannot be changed.
8
12
  # Valid certificate bundle names include only alphanumeric characters, dashes, and underscores.
9
13
  # Certificate bundle names cannot contain spaces. Avoid entering confidential information.
10
14
  #
@@ -13,14 +17,14 @@ module OCI
13
17
  # @return [String]
14
18
  attr_accessor :certificate_name
15
19
 
16
- # The maximum depth for peer certificate chain verification.
20
+ # **[Required]** The maximum depth for peer certificate chain verification.
17
21
  #
18
22
  # Example: `3`
19
23
  #
20
24
  # @return [Integer]
21
25
  attr_accessor :verify_depth
22
26
 
23
- # Whether the load balancer listener should verify peer certificates.
27
+ # **[Required]** Whether the load balancer listener should verify peer certificates.
24
28
  #
25
29
  # Example: `true`
26
30
  #
@@ -30,6 +34,9 @@ module OCI
30
34
 
31
35
  # Initializes the object
32
36
  # @param [Hash] attributes Model attributes in the form of hash
37
+ # @option attributes [String] :certificateName The value to assign to the {#certificate_name} property
38
+ # @option attributes [Integer] :verifyDepth The value to assign to the {#verify_depth} property
39
+ # @option attributes [BOOLEAN] :verifyPeerCertificate The value to assign to the {#verify_peer_certificate} property
33
40
  def initialize(attributes = {})
34
41
  return unless attributes.is_a?(Hash)
35
42
 
@@ -44,7 +51,7 @@ module OCI
44
51
  self.verify_depth = attributes[:'verifyDepth']
45
52
  end
46
53
 
47
- if attributes[:'verifyPeerCertificate']
54
+ unless attributes[:'verifyPeerCertificate'].nil?
48
55
  self.verify_peer_certificate = attributes[:'verifyPeerCertificate']
49
56
  else
50
57
  self.verify_peer_certificate = false
@@ -3,8 +3,9 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # The load balancer's SSL handling configuration details.
6
7
  class LoadBalancer::Models::SSLConfigurationDetails
7
- # A friendly name for the certificate bundle. It must be unique and it cannot be changed.
8
+ # **[Required]** A friendly name for the certificate bundle. It must be unique and it cannot be changed.
8
9
  # Valid certificate bundle names include only alphanumeric characters, dashes, and underscores.
9
10
  # Certificate bundle names cannot contain spaces. Avoid entering confidential information.
10
11
  #
@@ -30,6 +31,9 @@ module OCI
30
31
 
31
32
  # Initializes the object
32
33
  # @param [Hash] attributes Model attributes in the form of hash
34
+ # @option attributes [String] :certificateName The value to assign to the {#certificate_name} property
35
+ # @option attributes [Integer] :verifyDepth The value to assign to the {#verify_depth} property
36
+ # @option attributes [BOOLEAN] :verifyPeerCertificate The value to assign to the {#verify_peer_certificate} property
33
37
  def initialize(attributes = {})
34
38
  return unless attributes.is_a?(Hash)
35
39
 
@@ -44,7 +48,7 @@ module OCI
44
48
  self.verify_depth = attributes[:'verifyDepth']
45
49
  end
46
50
 
47
- if attributes[:'verifyPeerCertificate']
51
+ unless attributes[:'verifyPeerCertificate'].nil?
48
52
  self.verify_peer_certificate = attributes[:'verifyPeerCertificate']
49
53
  else
50
54
  self.verify_peer_certificate = false