oci 2.0.7 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (297) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/oci.rb +1 -0
  4. data/lib/oci/api_client.rb +21 -11
  5. data/lib/oci/audit/models/audit_event.rb +133 -19
  6. data/lib/oci/audit/models/configuration.rb +7 -1
  7. data/lib/oci/audit/models/update_configuration_details.rb +7 -1
  8. data/lib/oci/base_signer.rb +1 -2
  9. data/lib/oci/core/models/attach_boot_volume_details.rb +21 -3
  10. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +11 -5
  11. data/lib/oci/core/models/attach_vnic_details.rb +28 -4
  12. data/lib/oci/core/models/attach_volume_details.rb +28 -4
  13. data/lib/oci/core/models/boot_volume.rb +56 -8
  14. data/lib/oci/core/models/boot_volume_attachment.rb +49 -7
  15. data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +7 -1
  16. data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +7 -1
  17. data/lib/oci/core/models/capture_console_history_details.rb +28 -4
  18. data/lib/oci/core/models/connect_local_peering_gateways_details.rb +7 -1
  19. data/lib/oci/core/models/console_history.rb +56 -8
  20. data/lib/oci/core/models/cpe.rb +28 -4
  21. data/lib/oci/core/models/create_cpe_details.rb +21 -3
  22. data/lib/oci/core/models/create_cross_connect_details.rb +49 -7
  23. data/lib/oci/core/models/create_cross_connect_group_details.rb +14 -2
  24. data/lib/oci/core/models/create_dhcp_details.rb +35 -5
  25. data/lib/oci/core/models/create_drg_attachment_details.rb +21 -3
  26. data/lib/oci/core/models/create_drg_details.rb +14 -2
  27. data/lib/oci/core/models/create_image_details.rb +49 -7
  28. data/lib/oci/core/models/create_instance_console_connection_details.rb +28 -4
  29. data/lib/oci/core/models/create_internet_gateway_details.rb +28 -4
  30. data/lib/oci/core/models/create_ip_sec_connection_details.rb +35 -5
  31. data/lib/oci/core/models/create_local_peering_gateway_details.rb +21 -3
  32. data/lib/oci/core/models/create_private_ip_details.rb +42 -6
  33. data/lib/oci/core/models/create_public_ip_details.rb +21 -3
  34. data/lib/oci/core/models/create_route_table_details.rb +42 -6
  35. data/lib/oci/core/models/create_security_list_details.rb +49 -7
  36. data/lib/oci/core/models/create_subnet_details.rb +84 -12
  37. data/lib/oci/core/models/create_vcn_details.rb +42 -6
  38. data/lib/oci/core/models/create_virtual_circuit_details.rb +70 -10
  39. data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +7 -1
  40. data/lib/oci/core/models/create_vnic_details.rb +42 -6
  41. data/lib/oci/core/models/create_volume_backup_details.rb +28 -4
  42. data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +14 -2
  43. data/lib/oci/core/models/create_volume_details.rb +70 -10
  44. data/lib/oci/core/models/cross_connect.rb +56 -8
  45. data/lib/oci/core/models/cross_connect_group.rb +28 -4
  46. data/lib/oci/core/models/cross_connect_mapping.rb +28 -4
  47. data/lib/oci/core/models/cross_connect_port_speed_shape.rb +7 -1
  48. data/lib/oci/core/models/cross_connect_status.rb +28 -4
  49. data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +7 -1
  50. data/lib/oci/core/models/dhcp_dns_option.rb +14 -2
  51. data/lib/oci/core/models/dhcp_options.rb +49 -7
  52. data/lib/oci/core/models/dhcp_search_domain_option.rb +7 -1
  53. data/lib/oci/core/models/drg.rb +28 -4
  54. data/lib/oci/core/models/drg_attachment.rb +42 -6
  55. data/lib/oci/core/models/egress_security_rule.rb +28 -4
  56. data/lib/oci/core/models/export_image_details.rb +7 -1
  57. data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +21 -3
  58. data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +7 -1
  59. data/lib/oci/core/models/fast_connect_provider_service.rb +35 -5
  60. data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +7 -1
  61. data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +7 -1
  62. data/lib/oci/core/models/i_scsi_volume_attachment.rb +22 -10
  63. data/lib/oci/core/models/image.rb +84 -12
  64. data/lib/oci/core/models/image_source_details.rb +14 -2
  65. data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +22 -4
  66. data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +8 -2
  67. data/lib/oci/core/models/ingress_security_rule.rb +28 -4
  68. data/lib/oci/core/models/instance.rb +91 -13
  69. data/lib/oci/core/models/instance_console_connection.rb +49 -7
  70. data/lib/oci/core/models/instance_source_details.rb +7 -1
  71. data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +7 -1
  72. data/lib/oci/core/models/instance_source_via_image_details.rb +7 -1
  73. data/lib/oci/core/models/internet_gateway.rb +42 -6
  74. data/lib/oci/core/models/ip_sec_connection.rb +49 -7
  75. data/lib/oci/core/models/ip_sec_connection_device_config.rb +14 -2
  76. data/lib/oci/core/models/ip_sec_connection_device_status.rb +14 -2
  77. data/lib/oci/core/models/launch_instance_details.rb +84 -12
  78. data/lib/oci/core/models/launch_options.rb +21 -3
  79. data/lib/oci/core/models/letter_of_authority.rb +49 -7
  80. data/lib/oci/core/models/local_peering_gateway.rb +63 -9
  81. data/lib/oci/core/models/private_ip.rb +77 -11
  82. data/lib/oci/core/models/public_ip.rb +49 -7
  83. data/lib/oci/core/models/route_rule.rb +14 -2
  84. data/lib/oci/core/models/route_table.rb +56 -8
  85. data/lib/oci/core/models/security_list.rb +63 -9
  86. data/lib/oci/core/models/subnet.rb +119 -17
  87. data/lib/oci/core/models/tcp_options.rb +14 -2
  88. data/lib/oci/core/models/tunnel_config.rb +21 -3
  89. data/lib/oci/core/models/tunnel_status.rb +28 -4
  90. data/lib/oci/core/models/udp_options.rb +14 -2
  91. data/lib/oci/core/models/update_boot_volume_details.rb +7 -1
  92. data/lib/oci/core/models/update_console_history_details.rb +21 -3
  93. data/lib/oci/core/models/update_cpe_details.rb +7 -1
  94. data/lib/oci/core/models/update_cross_connect_details.rb +14 -2
  95. data/lib/oci/core/models/update_cross_connect_group_details.rb +7 -1
  96. data/lib/oci/core/models/update_dhcp_details.rb +21 -3
  97. data/lib/oci/core/models/update_drg_attachment_details.rb +7 -1
  98. data/lib/oci/core/models/update_drg_details.rb +7 -1
  99. data/lib/oci/core/models/update_image_details.rb +21 -3
  100. data/lib/oci/core/models/update_instance_details.rb +21 -3
  101. data/lib/oci/core/models/update_internet_gateway_details.rb +14 -2
  102. data/lib/oci/core/models/update_ip_sec_connection_details.rb +7 -1
  103. data/lib/oci/core/models/update_local_peering_gateway_details.rb +7 -1
  104. data/lib/oci/core/models/update_private_ip_details.rb +35 -5
  105. data/lib/oci/core/models/update_public_ip_details.rb +14 -2
  106. data/lib/oci/core/models/update_route_table_details.rb +28 -4
  107. data/lib/oci/core/models/update_security_list_details.rb +35 -5
  108. data/lib/oci/core/models/update_subnet_details.rb +21 -3
  109. data/lib/oci/core/models/update_vcn_details.rb +21 -3
  110. data/lib/oci/core/models/update_virtual_circuit_details.rb +49 -7
  111. data/lib/oci/core/models/update_vnic_details.rb +21 -3
  112. data/lib/oci/core/models/update_volume_backup_details.rb +21 -3
  113. data/lib/oci/core/models/update_volume_details.rb +21 -3
  114. data/lib/oci/core/models/vcn.rb +84 -12
  115. data/lib/oci/core/models/virtual_circuit.rb +126 -18
  116. data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +7 -1
  117. data/lib/oci/core/models/virtual_circuit_public_prefix.rb +14 -2
  118. data/lib/oci/core/models/vnic.rb +84 -12
  119. data/lib/oci/core/models/vnic_attachment.rb +70 -10
  120. data/lib/oci/core/models/volume.rb +77 -11
  121. data/lib/oci/core/models/volume_attachment.rb +63 -9
  122. data/lib/oci/core/models/volume_backup.rb +98 -14
  123. data/lib/oci/core/models/volume_backup_policy.rb +14 -2
  124. data/lib/oci/core/models/volume_backup_policy_assignment.rb +21 -3
  125. data/lib/oci/core/models/volume_backup_schedule.rb +21 -3
  126. data/lib/oci/database/database_client.rb +2 -2
  127. data/lib/oci/database/models/backup.rb +56 -8
  128. data/lib/oci/database/models/backup_summary.rb +56 -8
  129. data/lib/oci/database/models/create_backup_details.rb +14 -2
  130. data/lib/oci/database/models/create_data_guard_association_details.rb +28 -4
  131. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +10 -4
  132. data/lib/oci/database/models/create_database_details.rb +49 -7
  133. data/lib/oci/database/models/create_database_from_backup_details.rb +21 -3
  134. data/lib/oci/database/models/create_db_home_details.rb +14 -2
  135. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +14 -2
  136. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +9 -3
  137. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +2 -2
  138. data/lib/oci/database/models/data_guard_association.rb +91 -13
  139. data/lib/oci/database/models/data_guard_association_summary.rb +91 -13
  140. data/lib/oci/database/models/database.rb +84 -12
  141. data/lib/oci/database/models/database_summary.rb +84 -12
  142. data/lib/oci/database/models/db_backup_config.rb +7 -1
  143. data/lib/oci/database/models/db_home.rb +49 -7
  144. data/lib/oci/database/models/db_home_summary.rb +49 -7
  145. data/lib/oci/database/models/db_node.rb +42 -6
  146. data/lib/oci/database/models/db_node_summary.rb +42 -6
  147. data/lib/oci/database/models/db_system.rb +161 -23
  148. data/lib/oci/database/models/db_system_shape_summary.rb +7 -1
  149. data/lib/oci/database/models/db_system_summary.rb +161 -23
  150. data/lib/oci/database/models/db_version_summary.rb +7 -1
  151. data/lib/oci/database/models/failover_data_guard_association_details.rb +7 -1
  152. data/lib/oci/database/models/launch_db_system_details.rb +105 -15
  153. data/lib/oci/database/models/patch.rb +35 -5
  154. data/lib/oci/database/models/patch_details.rb +7 -1
  155. data/lib/oci/database/models/patch_history_entry.rb +35 -5
  156. data/lib/oci/database/models/patch_history_entry_summary.rb +35 -5
  157. data/lib/oci/database/models/patch_summary.rb +35 -5
  158. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +7 -1
  159. data/lib/oci/database/models/restore_database_details.rb +7 -1
  160. data/lib/oci/database/models/switchover_data_guard_association_details.rb +7 -1
  161. data/lib/oci/database/models/update_database_details.rb +7 -1
  162. data/lib/oci/database/models/update_db_home_details.rb +7 -1
  163. data/lib/oci/database/models/update_db_system_details.rb +21 -3
  164. data/lib/oci/dns/models/create_zone_details.rb +21 -3
  165. data/lib/oci/dns/models/record.rb +21 -3
  166. data/lib/oci/dns/models/record_details.rb +21 -3
  167. data/lib/oci/dns/models/record_operation.rb +21 -3
  168. data/lib/oci/dns/models/update_zone_details.rb +7 -1
  169. data/lib/oci/dns/models/zone.rb +42 -6
  170. data/lib/oci/dns/models/zone_summary.rb +28 -4
  171. data/lib/oci/file_storage/file_storage.rb +33 -0
  172. data/lib/oci/file_storage/file_storage_client.rb +1117 -0
  173. data/lib/oci/file_storage/models/create_export_details.rb +162 -0
  174. data/lib/oci/file_storage/models/create_file_system_details.rb +170 -0
  175. data/lib/oci/file_storage/models/create_mount_target_details.rb +242 -0
  176. data/lib/oci/file_storage/models/create_snapshot_details.rb +146 -0
  177. data/lib/oci/file_storage/models/export.rb +261 -0
  178. data/lib/oci/file_storage/models/export_set.rb +315 -0
  179. data/lib/oci/file_storage/models/export_set_summary.rb +260 -0
  180. data/lib/oci/file_storage/models/export_summary.rb +233 -0
  181. data/lib/oci/file_storage/models/file_system.rb +273 -0
  182. data/lib/oci/file_storage/models/file_system_summary.rb +265 -0
  183. data/lib/oci/file_storage/models/mount_target.rb +320 -0
  184. data/lib/oci/file_storage/models/mount_target_summary.rb +300 -0
  185. data/lib/oci/file_storage/models/snapshot.rb +217 -0
  186. data/lib/oci/file_storage/models/snapshot_summary.rb +217 -0
  187. data/lib/oci/file_storage/models/update_export_set_details.rb +185 -0
  188. data/lib/oci/file_storage/models/update_file_system_details.rb +131 -0
  189. data/lib/oci/file_storage/models/update_mount_target_details.rb +131 -0
  190. data/lib/oci/file_storage/util.rb +2 -0
  191. data/lib/oci/identity/models/add_user_to_group_details.rb +14 -2
  192. data/lib/oci/identity/models/api_key.rb +42 -6
  193. data/lib/oci/identity/models/availability_domain.rb +7 -1
  194. data/lib/oci/identity/models/compartment.rb +42 -6
  195. data/lib/oci/identity/models/create_compartment_details.rb +21 -3
  196. data/lib/oci/identity/models/create_customer_secret_key_details.rb +7 -1
  197. data/lib/oci/identity/models/create_dynamic_group_details.rb +14 -2
  198. data/lib/oci/identity/models/create_group_details.rb +21 -3
  199. data/lib/oci/identity/models/create_identity_provider_details.rb +28 -4
  200. data/lib/oci/identity/models/create_idp_group_mapping_details.rb +14 -2
  201. data/lib/oci/identity/models/create_policy_details.rb +28 -4
  202. data/lib/oci/identity/models/create_region_subscription_details.rb +7 -1
  203. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +11 -5
  204. data/lib/oci/identity/models/create_tag_details.rb +14 -2
  205. data/lib/oci/identity/models/create_tag_namespace_details.rb +21 -3
  206. data/lib/oci/identity/models/create_user_details.rb +21 -3
  207. data/lib/oci/identity/models/customer_secret_key.rb +42 -6
  208. data/lib/oci/identity/models/customer_secret_key_summary.rb +42 -6
  209. data/lib/oci/identity/models/dynamic_group.rb +35 -5
  210. data/lib/oci/identity/models/group.rb +42 -6
  211. data/lib/oci/identity/models/identity_provider.rb +49 -7
  212. data/lib/oci/identity/models/idp_group_mapping.rb +49 -7
  213. data/lib/oci/identity/models/policy.rb +49 -7
  214. data/lib/oci/identity/models/region_subscription.rb +21 -3
  215. data/lib/oci/identity/models/saml2_identity_provider.rb +28 -10
  216. data/lib/oci/identity/models/swift_password.rb +35 -5
  217. data/lib/oci/identity/models/tag.rb +49 -7
  218. data/lib/oci/identity/models/tag_namespace.rb +35 -5
  219. data/lib/oci/identity/models/tag_namespace_summary.rb +35 -5
  220. data/lib/oci/identity/models/tag_summary.rb +35 -5
  221. data/lib/oci/identity/models/tenancy.rb +21 -3
  222. data/lib/oci/identity/models/ui_password.rb +28 -4
  223. data/lib/oci/identity/models/update_compartment_details.rb +14 -2
  224. data/lib/oci/identity/models/update_customer_secret_key_details.rb +7 -1
  225. data/lib/oci/identity/models/update_dynamic_group_details.rb +7 -1
  226. data/lib/oci/identity/models/update_group_details.rb +14 -2
  227. data/lib/oci/identity/models/update_identity_provider_details.rb +14 -2
  228. data/lib/oci/identity/models/update_idp_group_mapping_details.rb +14 -2
  229. data/lib/oci/identity/models/update_policy_details.rb +21 -3
  230. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +9 -3
  231. data/lib/oci/identity/models/update_tag_details.rb +21 -3
  232. data/lib/oci/identity/models/update_tag_namespace_details.rb +21 -3
  233. data/lib/oci/identity/models/update_user_details.rb +14 -2
  234. data/lib/oci/identity/models/user.rb +42 -6
  235. data/lib/oci/identity/models/user_group_membership.rb +42 -6
  236. data/lib/oci/load_balancer/models/backend.rb +7 -1
  237. data/lib/oci/load_balancer/models/backend_details.rb +7 -1
  238. data/lib/oci/load_balancer/models/backend_health.rb +7 -1
  239. data/lib/oci/load_balancer/models/backend_set.rb +21 -3
  240. data/lib/oci/load_balancer/models/backend_set_details.rb +21 -3
  241. data/lib/oci/load_balancer/models/backend_set_health.rb +28 -4
  242. data/lib/oci/load_balancer/models/certificate.rb +21 -3
  243. data/lib/oci/load_balancer/models/certificate_details.rb +28 -4
  244. data/lib/oci/load_balancer/models/connection_configuration.rb +7 -1
  245. data/lib/oci/load_balancer/models/create_backend_details.rb +7 -1
  246. data/lib/oci/load_balancer/models/create_backend_set_details.rb +21 -3
  247. data/lib/oci/load_balancer/models/create_certificate_details.rb +28 -4
  248. data/lib/oci/load_balancer/models/create_listener_details.rb +28 -4
  249. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +51 -7
  250. data/lib/oci/load_balancer/models/create_path_route_set_details.rb +7 -1
  251. data/lib/oci/load_balancer/models/health_check_result.rb +21 -3
  252. data/lib/oci/load_balancer/models/health_checker.rb +35 -5
  253. data/lib/oci/load_balancer/models/health_checker_details.rb +35 -5
  254. data/lib/oci/load_balancer/models/ip_address.rb +14 -2
  255. data/lib/oci/load_balancer/models/listener.rb +28 -4
  256. data/lib/oci/load_balancer/models/listener_details.rb +28 -4
  257. data/lib/oci/load_balancer/models/load_balancer.rb +70 -10
  258. data/lib/oci/load_balancer/models/load_balancer_health.rb +28 -4
  259. data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +7 -1
  260. data/lib/oci/load_balancer/models/path_match_type.rb +7 -1
  261. data/lib/oci/load_balancer/models/path_route.rb +14 -2
  262. data/lib/oci/load_balancer/models/path_route_set.rb +7 -1
  263. data/lib/oci/load_balancer/models/path_route_set_details.rb +7 -1
  264. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +16 -2
  265. data/lib/oci/load_balancer/models/ssl_configuration.rb +23 -3
  266. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +23 -3
  267. data/lib/oci/load_balancer/models/update_backend_set_details.rb +21 -3
  268. data/lib/oci/load_balancer/models/update_health_checker_details.rb +35 -5
  269. data/lib/oci/load_balancer/models/update_listener_details.rb +28 -4
  270. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +7 -1
  271. data/lib/oci/load_balancer/models/update_path_route_set_details.rb +7 -1
  272. data/lib/oci/load_balancer/models/work_request.rb +35 -5
  273. data/lib/oci/load_balancer/models/work_request_error.rb +7 -1
  274. data/lib/oci/object_storage/models/bucket.rb +83 -11
  275. data/lib/oci/object_storage/models/bucket_summary.rb +67 -7
  276. data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +14 -2
  277. data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +7 -1
  278. data/lib/oci/object_storage/models/create_bucket_details.rb +67 -7
  279. data/lib/oci/object_storage/models/create_multipart_upload_details.rb +21 -3
  280. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +21 -3
  281. data/lib/oci/object_storage/models/list_objects.rb +7 -1
  282. data/lib/oci/object_storage/models/multipart_upload.rb +14 -2
  283. data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +7 -1
  284. data/lib/oci/object_storage/models/namespace_metadata.rb +14 -2
  285. data/lib/oci/object_storage/models/object_summary.rb +7 -1
  286. data/lib/oci/object_storage/models/preauthenticated_request.rb +35 -5
  287. data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +28 -4
  288. data/lib/oci/object_storage/models/rename_object_details.rb +35 -5
  289. data/lib/oci/object_storage/models/restore_objects_details.rb +25 -5
  290. data/lib/oci/object_storage/models/update_bucket_details.rb +60 -6
  291. data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +14 -2
  292. data/lib/oci/object_storage/object_storage_client.rb +17 -5
  293. data/lib/oci/object_storage/transfer/multipart/multipart_object_assembler.rb +11 -3
  294. data/lib/oci/signer.rb +0 -8
  295. data/lib/oci/version.rb +1 -1
  296. data/lib/oci/waiter.rb +1 -0
  297. metadata +22 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38997be752356f7675ae441e8484117e64d915db
4
- data.tar.gz: a69876808a735db9203b22f513c5001f87c1dd6d
3
+ metadata.gz: aa73e09ea6e6897641631122359ccf2354069ad5
4
+ data.tar.gz: b0b3fe78647c5982a3b354c143ad36f672d8f2e2
5
5
  SHA512:
6
- metadata.gz: 2576ec59cbd7d9add589c6ec00d8c710804bfec442b89cb361cfd091a0e41e7fe1ca46ddbd882136378acc751794ef2ecec709d40f404d90584e992721f949a0
7
- data.tar.gz: 45c2aa5111c5fc29fc99acfe918b5f7c8ce66a815df125e472b99801f9083b5229dcf0c7d71cd9be959b09fb240f1b18fe0637e0cc18fdb4d80e286e8d3172e5
6
+ metadata.gz: 13d661686c77600dbb899e7f2739ff01f7d2708a11c99d7295d7bcde69c359d695d54705e50af380eca956ed897d12a8ba6164a8b9400305bacc7bf1c66b0faf
7
+ data.tar.gz: 0ec6c7af0092462718ed58e4637c5c59d6509c0411619daf33fca72b2fbf3e6628388a7d5e9c16d2c058202e9d4ebd8ac228a574a10f0e14832d550e415e8d52
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Oracle Cloud Infrastructure Ruby SDK
2
- **Version 2.0.7**
2
+ **Version 2.0.8**
3
3
 
4
4
  This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
5
5
 
@@ -14,6 +14,7 @@ The Ruby SDK supports the following services:
14
14
  * Load Balancing Service
15
15
  * Object Storage Service
16
16
  * Domain Name System Service
17
+ * File Storage Service
17
18
 
18
19
  **Licensing:** This SDK and sample is dual licensed under the Universal Permissive License 1.0 and the Apache License.
19
20
 
data/lib/oci.rb CHANGED
@@ -19,6 +19,7 @@ require 'oci/audit/audit'
19
19
  require 'oci/core/core'
20
20
  require 'oci/database/database'
21
21
  require 'oci/dns/dns'
22
+ require 'oci/file_storage/file_storage'
22
23
  require 'oci/identity/identity'
23
24
  require 'oci/load_balancer/load_balancer'
24
25
  require 'oci/object_storage/object_storage'
@@ -21,9 +21,9 @@ module OCI
21
21
  # The :multi type contains no delimiter because this means we should preserve values as
22
22
  # a collection rather than transforming them into a single string
23
23
  VALID_COLLECTION_FORMATS = {
24
- multi: nil,
24
+ multi: nil,
25
25
  csv: ',',
26
- ssv: ' ',
26
+ ssv: ' ',
27
27
  tsv: "\t", # this is double quoted so it is interpreted as a tab rather than as a literal slash ('\') followed by a 't'
28
28
  pipes: '|'
29
29
  }
@@ -87,7 +87,7 @@ module OCI
87
87
 
88
88
  response = proc.call(nil) if !using_instance_principals?
89
89
  response = instance_principals_signer_wrapped_call { proc.call(nil) } if using_instance_principals?
90
-
90
+
91
91
  response.api_call = proc
92
92
  response
93
93
  end
@@ -98,6 +98,16 @@ module OCI
98
98
  def object_to_http_body(model)
99
99
  # to support IO-like object as well like StringIO
100
100
  return model if model.nil? || model.is_a?(String) || (model.respond_to?(:read) && model.respond_to?(:write))
101
+
102
+ # Supports IO-wrapping objects we can convert to an IO. An example is Rails'
103
+ # ActionDispatch::Http::UploadedFile, which wraps an IO (a Tempfile) but
104
+ # doesn't expose all the IO operations directly (e.g. you can't write to it, it's not seekable)
105
+ #
106
+ # This should be safe to use with IO and its subclasses as well as to_io is a method on IO:
107
+ # http://ruby-doc.org/core-2.3.1/IO.html#method-i-to_io and returns itself if called on
108
+ # an IO
109
+ return model.to_io if (model.respond_to?(:read) || model.respond_to?(:write)) && model.respond_to?(:to_io)
110
+
101
111
  if model.is_a?(Array)
102
112
  local_body = model.map{|m| object_to_hash(m) }
103
113
  else
@@ -279,14 +289,14 @@ module OCI
279
289
  if query_params.empty?
280
290
  url
281
291
  else
282
- # First divide our query params into ones where the param value is a simple value (e.g. a string), an array or a hash.
283
- # The params where the value is a hash are, for example, tags we need to handle differently for inclusion in the query
292
+ # First divide our query params into ones where the param value is a simple value (e.g. a string), an array or a hash.
293
+ # The params where the value is a hash are, for example, tags we need to handle differently for inclusion in the query
284
294
  # string. We also need to handle array params differently in the query string since the values should appear as separate entries
285
295
  # in the query string with the same key (this corresponds to using collectionFormat=multi in Swagger)
286
296
  #
287
297
  # An example query_params is:
288
298
  #
289
- # {
299
+ # {
290
300
  # "stuff" => "things",
291
301
  # "anArrayType" => ["hello", "world"]
292
302
  # "definedTags" => { "tag1" => ["val1", "val2", "val3"], "tag2" => ["val1"] },
@@ -333,7 +343,7 @@ module OCI
333
343
  # to_s tag_key to avoid errors around implicit conversion of symbols to strings
334
344
  tag_val.map { |tv| "#{k}.#{CGI.escape(tag_key.to_s)}=#{CGI.escape(tv.to_s)}" }.join('&')
335
345
  else
336
- "#{k}.#{CGI.escape(tag_key.to_s)}=#{CGI.escape(tag_val.to_s)}"
346
+ "#{k}.#{CGI.escape(tag_key.to_s)}=#{CGI.escape(tag_val.to_s)}"
337
347
  end
338
348
  base_query_string << '&' unless base_query_string.empty?
339
349
  base_query_string << query_string_val
@@ -412,8 +422,8 @@ module OCI
412
422
  data = {}
413
423
  form_params.each do |key, value|
414
424
  case value
415
- when File, Array, nil
416
- # let typhoeus handle File, Array and nil parameters
425
+ when File, Tempfile, Array, nil
426
+ # let Net::HTTP handle File, Tempfile, Array and nil parameters
417
427
  data[key] = value
418
428
  else
419
429
  data[key] = value.to_s
@@ -444,14 +454,14 @@ module OCI
444
454
 
445
455
  def instance_principals_signer_wrapped_call
446
456
  max_attempts = 2
447
-
457
+
448
458
  max_attempts.times do |attempt|
449
459
  begin
450
460
  return yield
451
461
  rescue OCI::Errors::ServiceError => e
452
462
  raise if attempt >= (max_attempts - 1) # .times is zero-based
453
463
  raise if e.status != 401
454
-
464
+
455
465
  @signer.refresh_security_token
456
466
  retry
457
467
  end
@@ -83,25 +83,25 @@ module OCI
83
83
 
84
84
  # Initializes the object
85
85
  # @param [Hash] attributes Model attributes in the form of hash
86
- # @option attributes [String] :tenantId The value to assign to the {#tenant_id} property
87
- # @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
88
- # @option attributes [String] :eventId The value to assign to the {#event_id} property
89
- # @option attributes [String] :eventSource The value to assign to the {#event_source} property
90
- # @option attributes [String] :eventType The value to assign to the {#event_type} property
91
- # @option attributes [DateTime] :eventTime The value to assign to the {#event_time} property
92
- # @option attributes [String] :principalId The value to assign to the {#principal_id} property
93
- # @option attributes [String] :credentialId The value to assign to the {#credential_id} property
94
- # @option attributes [String] :requestAction The value to assign to the {#request_action} property
95
- # @option attributes [String] :requestId The value to assign to the {#request_id} property
96
- # @option attributes [String] :requestAgent The value to assign to the {#request_agent} property
97
- # @option attributes [Hash<String, Array<String>>] :requestHeaders The value to assign to the {#request_headers} property
98
- # @option attributes [String] :requestOrigin The value to assign to the {#request_origin} property
99
- # @option attributes [Hash<String, Array<String>>] :requestParameters The value to assign to the {#request_parameters} property
100
- # @option attributes [String] :requestResource The value to assign to the {#request_resource} property
101
- # @option attributes [Hash<String, Array<String>>] :responseHeaders The value to assign to the {#response_headers} property
102
- # @option attributes [String] :responseStatus The value to assign to the {#response_status} property
103
- # @option attributes [DateTime] :responseTime The value to assign to the {#response_time} property
104
- # @option attributes [Hash<String, Object>] :responsePayload The value to assign to the {#response_payload} property
86
+ # @option attributes [String] :tenant_id The value to assign to the {#tenant_id} property
87
+ # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
88
+ # @option attributes [String] :event_id The value to assign to the {#event_id} property
89
+ # @option attributes [String] :event_source The value to assign to the {#event_source} property
90
+ # @option attributes [String] :event_type The value to assign to the {#event_type} property
91
+ # @option attributes [DateTime] :event_time The value to assign to the {#event_time} property
92
+ # @option attributes [String] :principal_id The value to assign to the {#principal_id} property
93
+ # @option attributes [String] :credential_id The value to assign to the {#credential_id} property
94
+ # @option attributes [String] :request_action The value to assign to the {#request_action} property
95
+ # @option attributes [String] :request_id The value to assign to the {#request_id} property
96
+ # @option attributes [String] :request_agent The value to assign to the {#request_agent} property
97
+ # @option attributes [Hash<String, Array<String>>] :request_headers The value to assign to the {#request_headers} property
98
+ # @option attributes [String] :request_origin The value to assign to the {#request_origin} property
99
+ # @option attributes [Hash<String, Array<String>>] :request_parameters The value to assign to the {#request_parameters} property
100
+ # @option attributes [String] :request_resource The value to assign to the {#request_resource} property
101
+ # @option attributes [Hash<String, Array<String>>] :response_headers The value to assign to the {#response_headers} property
102
+ # @option attributes [String] :response_status The value to assign to the {#response_status} property
103
+ # @option attributes [DateTime] :response_time The value to assign to the {#response_time} property
104
+ # @option attributes [Hash<String, Object>] :response_payload The value to assign to the {#response_payload} property
105
105
  def initialize(attributes = {})
106
106
  return unless attributes.is_a?(Hash)
107
107
 
@@ -112,78 +112,192 @@ module OCI
112
112
  self.tenant_id = attributes[:'tenantId']
113
113
  end
114
114
 
115
+ raise 'You cannot provide both :tenantId and :tenant_id' if attributes.key?(:'tenantId') && attributes.key?(:'tenant_id')
116
+
117
+ if attributes[:'tenant_id']
118
+ self.tenant_id = attributes[:'tenant_id']
119
+ end
120
+
115
121
  if attributes[:'compartmentId']
116
122
  self.compartment_id = attributes[:'compartmentId']
117
123
  end
118
124
 
125
+ raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
126
+
127
+ if attributes[:'compartment_id']
128
+ self.compartment_id = attributes[:'compartment_id']
129
+ end
130
+
119
131
  if attributes[:'eventId']
120
132
  self.event_id = attributes[:'eventId']
121
133
  end
122
134
 
135
+ raise 'You cannot provide both :eventId and :event_id' if attributes.key?(:'eventId') && attributes.key?(:'event_id')
136
+
137
+ if attributes[:'event_id']
138
+ self.event_id = attributes[:'event_id']
139
+ end
140
+
123
141
  if attributes[:'eventSource']
124
142
  self.event_source = attributes[:'eventSource']
125
143
  end
126
144
 
145
+ raise 'You cannot provide both :eventSource and :event_source' if attributes.key?(:'eventSource') && attributes.key?(:'event_source')
146
+
147
+ if attributes[:'event_source']
148
+ self.event_source = attributes[:'event_source']
149
+ end
150
+
127
151
  if attributes[:'eventType']
128
152
  self.event_type = attributes[:'eventType']
129
153
  end
130
154
 
155
+ raise 'You cannot provide both :eventType and :event_type' if attributes.key?(:'eventType') && attributes.key?(:'event_type')
156
+
157
+ if attributes[:'event_type']
158
+ self.event_type = attributes[:'event_type']
159
+ end
160
+
131
161
  if attributes[:'eventTime']
132
162
  self.event_time = attributes[:'eventTime']
133
163
  end
134
164
 
165
+ raise 'You cannot provide both :eventTime and :event_time' if attributes.key?(:'eventTime') && attributes.key?(:'event_time')
166
+
167
+ if attributes[:'event_time']
168
+ self.event_time = attributes[:'event_time']
169
+ end
170
+
135
171
  if attributes[:'principalId']
136
172
  self.principal_id = attributes[:'principalId']
137
173
  end
138
174
 
175
+ raise 'You cannot provide both :principalId and :principal_id' if attributes.key?(:'principalId') && attributes.key?(:'principal_id')
176
+
177
+ if attributes[:'principal_id']
178
+ self.principal_id = attributes[:'principal_id']
179
+ end
180
+
139
181
  if attributes[:'credentialId']
140
182
  self.credential_id = attributes[:'credentialId']
141
183
  end
142
184
 
185
+ raise 'You cannot provide both :credentialId and :credential_id' if attributes.key?(:'credentialId') && attributes.key?(:'credential_id')
186
+
187
+ if attributes[:'credential_id']
188
+ self.credential_id = attributes[:'credential_id']
189
+ end
190
+
143
191
  if attributes[:'requestAction']
144
192
  self.request_action = attributes[:'requestAction']
145
193
  end
146
194
 
195
+ raise 'You cannot provide both :requestAction and :request_action' if attributes.key?(:'requestAction') && attributes.key?(:'request_action')
196
+
197
+ if attributes[:'request_action']
198
+ self.request_action = attributes[:'request_action']
199
+ end
200
+
147
201
  if attributes[:'requestId']
148
202
  self.request_id = attributes[:'requestId']
149
203
  end
150
204
 
205
+ raise 'You cannot provide both :requestId and :request_id' if attributes.key?(:'requestId') && attributes.key?(:'request_id')
206
+
207
+ if attributes[:'request_id']
208
+ self.request_id = attributes[:'request_id']
209
+ end
210
+
151
211
  if attributes[:'requestAgent']
152
212
  self.request_agent = attributes[:'requestAgent']
153
213
  end
154
214
 
215
+ raise 'You cannot provide both :requestAgent and :request_agent' if attributes.key?(:'requestAgent') && attributes.key?(:'request_agent')
216
+
217
+ if attributes[:'request_agent']
218
+ self.request_agent = attributes[:'request_agent']
219
+ end
220
+
155
221
  if attributes[:'requestHeaders']
156
222
  self.request_headers = attributes[:'requestHeaders']
157
223
  end
158
224
 
225
+ raise 'You cannot provide both :requestHeaders and :request_headers' if attributes.key?(:'requestHeaders') && attributes.key?(:'request_headers')
226
+
227
+ if attributes[:'request_headers']
228
+ self.request_headers = attributes[:'request_headers']
229
+ end
230
+
159
231
  if attributes[:'requestOrigin']
160
232
  self.request_origin = attributes[:'requestOrigin']
161
233
  end
162
234
 
235
+ raise 'You cannot provide both :requestOrigin and :request_origin' if attributes.key?(:'requestOrigin') && attributes.key?(:'request_origin')
236
+
237
+ if attributes[:'request_origin']
238
+ self.request_origin = attributes[:'request_origin']
239
+ end
240
+
163
241
  if attributes[:'requestParameters']
164
242
  self.request_parameters = attributes[:'requestParameters']
165
243
  end
166
244
 
245
+ raise 'You cannot provide both :requestParameters and :request_parameters' if attributes.key?(:'requestParameters') && attributes.key?(:'request_parameters')
246
+
247
+ if attributes[:'request_parameters']
248
+ self.request_parameters = attributes[:'request_parameters']
249
+ end
250
+
167
251
  if attributes[:'requestResource']
168
252
  self.request_resource = attributes[:'requestResource']
169
253
  end
170
254
 
255
+ raise 'You cannot provide both :requestResource and :request_resource' if attributes.key?(:'requestResource') && attributes.key?(:'request_resource')
256
+
257
+ if attributes[:'request_resource']
258
+ self.request_resource = attributes[:'request_resource']
259
+ end
260
+
171
261
  if attributes[:'responseHeaders']
172
262
  self.response_headers = attributes[:'responseHeaders']
173
263
  end
174
264
 
265
+ raise 'You cannot provide both :responseHeaders and :response_headers' if attributes.key?(:'responseHeaders') && attributes.key?(:'response_headers')
266
+
267
+ if attributes[:'response_headers']
268
+ self.response_headers = attributes[:'response_headers']
269
+ end
270
+
175
271
  if attributes[:'responseStatus']
176
272
  self.response_status = attributes[:'responseStatus']
177
273
  end
178
274
 
275
+ raise 'You cannot provide both :responseStatus and :response_status' if attributes.key?(:'responseStatus') && attributes.key?(:'response_status')
276
+
277
+ if attributes[:'response_status']
278
+ self.response_status = attributes[:'response_status']
279
+ end
280
+
179
281
  if attributes[:'responseTime']
180
282
  self.response_time = attributes[:'responseTime']
181
283
  end
182
284
 
285
+ raise 'You cannot provide both :responseTime and :response_time' if attributes.key?(:'responseTime') && attributes.key?(:'response_time')
286
+
287
+ if attributes[:'response_time']
288
+ self.response_time = attributes[:'response_time']
289
+ end
290
+
183
291
  if attributes[:'responsePayload']
184
292
  self.response_payload = attributes[:'responsePayload']
185
293
  end
186
294
 
295
+ raise 'You cannot provide both :responsePayload and :response_payload' if attributes.key?(:'responsePayload') && attributes.key?(:'response_payload')
296
+
297
+ if attributes[:'response_payload']
298
+ self.response_payload = attributes[:'response_payload']
299
+ end
300
+
187
301
  end
188
302
 
189
303
  # Checks equality by comparing each attribute.
@@ -11,7 +11,7 @@ module OCI
11
11
 
12
12
  # Initializes the object
13
13
  # @param [Hash] attributes Model attributes in the form of hash
14
- # @option attributes [Integer] :retentionPeriodDays The value to assign to the {#retention_period_days} property
14
+ # @option attributes [Integer] :retention_period_days The value to assign to the {#retention_period_days} property
15
15
  def initialize(attributes = {})
16
16
  return unless attributes.is_a?(Hash)
17
17
 
@@ -22,6 +22,12 @@ module OCI
22
22
  self.retention_period_days = attributes[:'retentionPeriodDays']
23
23
  end
24
24
 
25
+ raise 'You cannot provide both :retentionPeriodDays and :retention_period_days' if attributes.key?(:'retentionPeriodDays') && attributes.key?(:'retention_period_days')
26
+
27
+ if attributes[:'retention_period_days']
28
+ self.retention_period_days = attributes[:'retention_period_days']
29
+ end
30
+
25
31
  end
26
32
 
27
33
  # Checks equality by comparing each attribute.
@@ -11,7 +11,7 @@ module OCI
11
11
 
12
12
  # Initializes the object
13
13
  # @param [Hash] attributes Model attributes in the form of hash
14
- # @option attributes [Integer] :retentionPeriodDays The value to assign to the {#retention_period_days} property
14
+ # @option attributes [Integer] :retention_period_days The value to assign to the {#retention_period_days} property
15
15
  def initialize(attributes = {})
16
16
  return unless attributes.is_a?(Hash)
17
17
 
@@ -22,6 +22,12 @@ module OCI
22
22
  self.retention_period_days = attributes[:'retentionPeriodDays']
23
23
  end
24
24
 
25
+ raise 'You cannot provide both :retentionPeriodDays and :retention_period_days' if attributes.key?(:'retentionPeriodDays') && attributes.key?(:'retention_period_days')
26
+
27
+ if attributes[:'retention_period_days']
28
+ self.retention_period_days = attributes[:'retention_period_days']
29
+ end
30
+
25
31
  end
26
32
 
27
33
  # Checks equality by comparing each attribute.
@@ -1,7 +1,6 @@
1
1
  # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  require 'base64'
4
- require 'digest'
5
4
  require 'openssl'
6
5
  require 'securerandom'
7
6
  require 'time'
@@ -95,7 +94,7 @@ module OCI
95
94
  # For object storage service's put method, we don't need to set content length and x-content sha256
96
95
  if method != :put || @signing_strategy != OBJECT_STORAGE
97
96
  headers['content-length'] ||= body.length.to_s
98
- headers['x-content-sha256'] ||= Digest::SHA256.base64digest(body)
97
+ headers['x-content-sha256'] ||= OpenSSL::Digest::SHA256.new.update(body).base64digest
99
98
  else
100
99
  headers['Content-Length'] ||= if body.respond_to?(:read) && body.respond_to?(:write)
101
100
  body.respond_to?('size') ? body.size : body.stat.size
@@ -20,9 +20,9 @@ module OCI
20
20
 
21
21
  # Initializes the object
22
22
  # @param [Hash] attributes Model attributes in the form of hash
23
- # @option attributes [String] :bootVolumeId The value to assign to the {#boot_volume_id} property
24
- # @option attributes [String] :displayName The value to assign to the {#display_name} property
25
- # @option attributes [String] :instanceId The value to assign to the {#instance_id} property
23
+ # @option attributes [String] :boot_volume_id The value to assign to the {#boot_volume_id} property
24
+ # @option attributes [String] :display_name The value to assign to the {#display_name} property
25
+ # @option attributes [String] :instance_id The value to assign to the {#instance_id} property
26
26
  def initialize(attributes = {})
27
27
  return unless attributes.is_a?(Hash)
28
28
 
@@ -33,14 +33,32 @@ module OCI
33
33
  self.boot_volume_id = attributes[:'bootVolumeId']
34
34
  end
35
35
 
36
+ raise 'You cannot provide both :bootVolumeId and :boot_volume_id' if attributes.key?(:'bootVolumeId') && attributes.key?(:'boot_volume_id')
37
+
38
+ if attributes[:'boot_volume_id']
39
+ self.boot_volume_id = attributes[:'boot_volume_id']
40
+ end
41
+
36
42
  if attributes[:'displayName']
37
43
  self.display_name = attributes[:'displayName']
38
44
  end
39
45
 
46
+ raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
47
+
48
+ if attributes[:'display_name']
49
+ self.display_name = attributes[:'display_name']
50
+ end
51
+
40
52
  if attributes[:'instanceId']
41
53
  self.instance_id = attributes[:'instanceId']
42
54
  end
43
55
 
56
+ raise 'You cannot provide both :instanceId and :instance_id' if attributes.key?(:'instanceId') && attributes.key?(:'instance_id')
57
+
58
+ if attributes[:'instance_id']
59
+ self.instance_id = attributes[:'instance_id']
60
+ end
61
+
44
62
  end
45
63
 
46
64
  # Checks equality by comparing each attribute.