oci 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (370) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -3
  3. data/lib/oci.rb +6 -0
  4. data/lib/oci/api_client.rb +159 -134
  5. data/lib/oci/audit/audit.rb +3 -0
  6. data/lib/oci/audit/audit_client.rb +88 -40
  7. data/lib/oci/audit/audit_client_composite_operations.rb +64 -0
  8. data/lib/oci/audit/models/audit_event.rb +151 -200
  9. data/lib/oci/audit/models/configuration.rb +61 -38
  10. data/lib/oci/audit/models/update_configuration_details.rb +61 -38
  11. data/lib/oci/auth/util.rb +1 -1
  12. data/lib/oci/base_signer.rb +20 -29
  13. data/lib/oci/config.rb +9 -3
  14. data/lib/oci/core/blockstorage_client.rb +512 -269
  15. data/lib/oci/core/blockstorage_client_composite_operations.rb +342 -0
  16. data/lib/oci/core/compute_client.rb +959 -536
  17. data/lib/oci/core/compute_client_composite_operations.rb +738 -0
  18. data/lib/oci/core/core.rb +5 -0
  19. data/lib/oci/core/models/attach_boot_volume_details.rb +72 -57
  20. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +76 -53
  21. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +69 -45
  22. data/lib/oci/core/models/attach_vnic_details.rb +79 -68
  23. data/lib/oci/core/models/attach_volume_details.rb +83 -74
  24. data/lib/oci/core/models/boot_volume.rb +119 -120
  25. data/lib/oci/core/models/boot_volume_attachment.rb +114 -111
  26. data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +61 -38
  27. data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +61 -38
  28. data/lib/oci/core/models/capture_console_history_details.rb +81 -70
  29. data/lib/oci/core/models/connect_local_peering_gateways_details.rb +60 -38
  30. data/lib/oci/core/models/connect_remote_peering_connections_details.rb +67 -49
  31. data/lib/oci/core/models/console_history.rb +122 -123
  32. data/lib/oci/core/models/cpe.rb +82 -74
  33. data/lib/oci/core/models/create_cpe_details.rb +73 -58
  34. data/lib/oci/core/models/create_cross_connect_details.rb +98 -99
  35. data/lib/oci/core/models/create_cross_connect_group_details.rb +67 -48
  36. data/lib/oci/core/models/create_dhcp_details.rb +89 -84
  37. data/lib/oci/core/models/create_drg_attachment_details.rb +71 -56
  38. data/lib/oci/core/models/create_drg_details.rb +66 -47
  39. data/lib/oci/core/models/create_image_details.rb +108 -110
  40. data/lib/oci/core/models/create_instance_console_connection_details.rb +79 -69
  41. data/lib/oci/core/models/create_internet_gateway_details.rb +76 -65
  42. data/lib/oci/core/models/create_ip_sec_connection_details.rb +83 -76
  43. data/lib/oci/core/models/create_local_peering_gateway_details.rb +72 -57
  44. data/lib/oci/core/models/create_private_ip_details.rb +97 -94
  45. data/lib/oci/core/models/create_public_ip_details.rb +90 -77
  46. data/lib/oci/core/models/create_remote_peering_connection_details.rb +72 -57
  47. data/lib/oci/core/models/create_route_table_details.rb +90 -87
  48. data/lib/oci/core/models/create_security_list_details.rb +95 -96
  49. data/lib/oci/core/models/create_subnet_details.rb +133 -154
  50. data/lib/oci/core/models/create_vcn_details.rb +96 -93
  51. data/lib/oci/core/models/create_virtual_circuit_details.rb +136 -153
  52. data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +62 -39
  53. data/lib/oci/core/models/create_vnic_details.rb +99 -97
  54. data/lib/oci/core/models/create_volume_backup_details.rb +94 -85
  55. data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +66 -47
  56. data/lib/oci/core/models/create_volume_details.rb +117 -130
  57. data/lib/oci/core/models/cross_connect.rb +120 -121
  58. data/lib/oci/core/models/cross_connect_group.rb +97 -82
  59. data/lib/oci/core/models/cross_connect_location.rb +65 -43
  60. data/lib/oci/core/models/cross_connect_mapping.rb +89 -81
  61. data/lib/oci/core/models/cross_connect_port_speed_shape.rb +68 -48
  62. data/lib/oci/core/models/cross_connect_status.rb +110 -87
  63. data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +61 -38
  64. data/lib/oci/core/models/dhcp_dns_option.rb +85 -60
  65. data/lib/oci/core/models/dhcp_option.rb +62 -38
  66. data/lib/oci/core/models/dhcp_options.rb +119 -118
  67. data/lib/oci/core/models/dhcp_search_domain_option.rb +66 -44
  68. data/lib/oci/core/models/drg.rb +96 -81
  69. data/lib/oci/core/models/drg_attachment.rb +106 -99
  70. data/lib/oci/core/models/egress_security_rule.rb +89 -83
  71. data/lib/oci/core/models/export_image_details.rb +63 -41
  72. data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +74 -59
  73. data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +65 -42
  74. data/lib/oci/core/models/fast_connect_provider_service.rb +155 -126
  75. data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +61 -39
  76. data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +61 -39
  77. data/lib/oci/core/models/i_scsi_volume_attachment.rb +117 -105
  78. data/lib/oci/core/models/icmp_options.rb +63 -41
  79. data/lib/oci/core/models/image.rb +170 -185
  80. data/lib/oci/core/models/image_source_details.rb +79 -60
  81. data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +77 -62
  82. data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +67 -44
  83. data/lib/oci/core/models/ingress_security_rule.rb +89 -83
  84. data/lib/oci/core/models/instance.rb +190 -211
  85. data/lib/oci/core/models/instance_console_connection.rb +118 -117
  86. data/lib/oci/core/models/instance_credentials.rb +63 -41
  87. data/lib/oci/core/models/instance_source_details.rb +64 -41
  88. data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +64 -41
  89. data/lib/oci/core/models/instance_source_via_image_details.rb +70 -51
  90. data/lib/oci/core/models/internet_gateway.rb +107 -100
  91. data/lib/oci/core/models/ip_sec_connection.rb +113 -110
  92. data/lib/oci/core/models/ip_sec_connection_device_config.rb +73 -59
  93. data/lib/oci/core/models/ip_sec_connection_device_status.rb +75 -61
  94. data/lib/oci/core/models/launch_instance_details.rb +163 -189
  95. data/lib/oci/core/models/launch_options.rb +130 -93
  96. data/lib/oci/core/models/letter_of_authority.rb +105 -100
  97. data/lib/oci/core/models/local_peering_gateway.rb +141 -140
  98. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +83 -60
  99. data/lib/oci/core/models/peer_region_for_remote_peering.rb +61 -37
  100. data/lib/oci/core/models/port_range.rb +65 -42
  101. data/lib/oci/core/models/private_ip.rb +131 -151
  102. data/lib/oci/core/models/public_ip.rb +160 -149
  103. data/lib/oci/core/models/remote_peering_connection.rb +148 -151
  104. data/lib/oci/core/models/route_rule.rb +68 -50
  105. data/lib/oci/core/models/route_table.rb +120 -121
  106. data/lib/oci/core/models/security_list.rb +125 -130
  107. data/lib/oci/core/models/shape.rb +60 -36
  108. data/lib/oci/core/models/subnet.rb +183 -220
  109. data/lib/oci/core/models/tcp_options.rb +67 -49
  110. data/lib/oci/core/models/tunnel_config.rb +76 -62
  111. data/lib/oci/core/models/tunnel_status.rb +94 -77
  112. data/lib/oci/core/models/udp_options.rb +67 -49
  113. data/lib/oci/core/models/update_boot_volume_details.rb +62 -39
  114. data/lib/oci/core/models/update_console_history_details.rb +76 -61
  115. data/lib/oci/core/models/update_cpe_details.rb +62 -39
  116. data/lib/oci/core/models/update_cross_connect_details.rb +68 -50
  117. data/lib/oci/core/models/update_cross_connect_group_details.rb +62 -39
  118. data/lib/oci/core/models/update_dhcp_details.rb +80 -67
  119. data/lib/oci/core/models/update_drg_attachment_details.rb +62 -39
  120. data/lib/oci/core/models/update_drg_details.rb +62 -39
  121. data/lib/oci/core/models/update_image_details.rb +77 -62
  122. data/lib/oci/core/models/update_instance_details.rb +77 -62
  123. data/lib/oci/core/models/update_internet_gateway_details.rb +67 -48
  124. data/lib/oci/core/models/update_ip_sec_connection_details.rb +62 -39
  125. data/lib/oci/core/models/update_local_peering_gateway_details.rb +62 -39
  126. data/lib/oci/core/models/update_private_ip_details.rb +90 -83
  127. data/lib/oci/core/models/update_public_ip_details.rb +68 -49
  128. data/lib/oci/core/models/update_remote_peering_connection_details.rb +62 -39
  129. data/lib/oci/core/models/update_route_table_details.rb +81 -70
  130. data/lib/oci/core/models/update_security_list_details.rb +86 -79
  131. data/lib/oci/core/models/update_subnet_details.rb +76 -61
  132. data/lib/oci/core/models/update_vcn_details.rb +76 -61
  133. data/lib/oci/core/models/update_virtual_circuit_details.rb +114 -115
  134. data/lib/oci/core/models/update_vnic_details.rb +75 -60
  135. data/lib/oci/core/models/update_volume_backup_details.rb +76 -61
  136. data/lib/oci/core/models/update_volume_details.rb +76 -61
  137. data/lib/oci/core/models/vcn.rb +150 -167
  138. data/lib/oci/core/models/virtual_circuit.rb +254 -269
  139. data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +68 -48
  140. data/lib/oci/core/models/virtual_circuit_public_prefix.rb +79 -54
  141. data/lib/oci/core/models/vnic.rb +149 -166
  142. data/lib/oci/core/models/vnic_attachment.rb +132 -141
  143. data/lib/oci/core/models/volume.rb +138 -151
  144. data/lib/oci/core/models/volume_attachment.rb +126 -131
  145. data/lib/oci/core/models/volume_backup.rb +185 -200
  146. data/lib/oci/core/models/volume_backup_policy.rb +75 -61
  147. data/lib/oci/core/models/volume_backup_policy_assignment.rb +75 -63
  148. data/lib/oci/core/models/volume_backup_schedule.rb +101 -76
  149. data/lib/oci/core/models/volume_source_details.rb +62 -37
  150. data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +62 -38
  151. data/lib/oci/core/models/volume_source_from_volume_details.rb +62 -38
  152. data/lib/oci/core/virtual_network_client.rb +2683 -1457
  153. data/lib/oci/core/virtual_network_client_composite_operations.rb +1849 -0
  154. data/lib/oci/database/database.rb +3 -0
  155. data/lib/oci/database/database_client.rb +894 -454
  156. data/lib/oci/database/database_client_composite_operations.rb +462 -0
  157. data/lib/oci/database/models/backup.rb +131 -128
  158. data/lib/oci/database/models/backup_summary.rb +131 -128
  159. data/lib/oci/database/models/create_backup_details.rb +66 -47
  160. data/lib/oci/database/models/create_data_guard_association_details.rb +112 -102
  161. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +73 -51
  162. data/lib/oci/database/models/create_database_details.rb +140 -105
  163. data/lib/oci/database/models/create_database_from_backup_details.rb +71 -56
  164. data/lib/oci/database/models/create_db_home_details.rb +70 -53
  165. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +83 -67
  166. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +74 -53
  167. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +69 -44
  168. data/lib/oci/database/models/data_guard_association.rb +205 -204
  169. data/lib/oci/database/models/data_guard_association_summary.rb +205 -204
  170. data/lib/oci/database/models/database.rb +175 -156
  171. data/lib/oci/database/models/database_summary.rb +175 -156
  172. data/lib/oci/database/models/db_backup_config.rb +60 -38
  173. data/lib/oci/database/models/db_home.rb +110 -107
  174. data/lib/oci/database/models/db_home_summary.rb +110 -107
  175. data/lib/oci/database/models/db_node.rb +113 -108
  176. data/lib/oci/database/models/db_node_summary.rb +113 -108
  177. data/lib/oci/database/models/db_system.rb +299 -314
  178. data/lib/oci/database/models/db_system_shape_summary.rb +88 -86
  179. data/lib/oci/database/models/db_system_summary.rb +299 -314
  180. data/lib/oci/database/models/db_version_summary.rb +64 -44
  181. data/lib/oci/database/models/failover_data_guard_association_details.rb +60 -38
  182. data/lib/oci/database/models/launch_db_system_details.rb +231 -234
  183. data/lib/oci/database/models/patch.rb +136 -113
  184. data/lib/oci/database/models/patch_details.rb +73 -53
  185. data/lib/oci/database/models/patch_history_entry.rb +114 -99
  186. data/lib/oci/database/models/patch_history_entry_summary.rb +114 -99
  187. data/lib/oci/database/models/patch_summary.rb +136 -113
  188. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +60 -38
  189. data/lib/oci/database/models/restore_database_details.rb +72 -53
  190. data/lib/oci/database/models/switchover_data_guard_association_details.rb +60 -38
  191. data/lib/oci/database/models/update_database_details.rb +97 -38
  192. data/lib/oci/database/models/update_db_home_details.rb +60 -38
  193. data/lib/oci/database/models/update_db_system_details.rb +112 -64
  194. data/lib/oci/dns/dns.rb +3 -0
  195. data/lib/oci/dns/dns_client.rb +489 -302
  196. data/lib/oci/dns/dns_client_composite_operations.rb +143 -0
  197. data/lib/oci/dns/models/create_zone_details.rb +84 -72
  198. data/lib/oci/dns/models/external_master.rb +67 -47
  199. data/lib/oci/dns/models/patch_domain_records_details.rb +60 -35
  200. data/lib/oci/dns/models/patch_rr_set_details.rb +60 -35
  201. data/lib/oci/dns/models/patch_zone_records_details.rb +60 -35
  202. data/lib/oci/dns/models/record.rb +92 -86
  203. data/lib/oci/dns/models/record_collection.rb +59 -35
  204. data/lib/oci/dns/models/record_details.rb +92 -86
  205. data/lib/oci/dns/models/record_operation.rb +113 -110
  206. data/lib/oci/dns/models/rr_set.rb +59 -35
  207. data/lib/oci/dns/models/sort_order.rb +0 -2
  208. data/lib/oci/dns/models/tsig.rb +68 -48
  209. data/lib/oci/dns/models/update_domain_records_details.rb +60 -35
  210. data/lib/oci/dns/models/update_rr_set_details.rb +60 -35
  211. data/lib/oci/dns/models/update_zone_details.rb +60 -38
  212. data/lib/oci/dns/models/update_zone_records_details.rb +60 -35
  213. data/lib/oci/dns/models/zone.rb +133 -126
  214. data/lib/oci/dns/models/zone_summary.rb +108 -99
  215. data/lib/oci/email/email.rb +3 -0
  216. data/lib/oci/email/email_client.rb +223 -112
  217. data/lib/oci/email/email_client_composite_operations.rb +103 -0
  218. data/lib/oci/email/models/create_sender_details.rb +65 -47
  219. data/lib/oci/email/models/create_suppression_details.rb +66 -48
  220. data/lib/oci/email/models/sender.rb +97 -84
  221. data/lib/oci/email/models/sender_summary.rb +89 -70
  222. data/lib/oci/email/models/suppression.rb +90 -69
  223. data/lib/oci/email/models/suppression_summary.rb +90 -69
  224. data/lib/oci/errors.rb +16 -0
  225. data/lib/oci/file_storage/file_storage.rb +3 -0
  226. data/lib/oci/file_storage/file_storage_client.rb +587 -333
  227. data/lib/oci/file_storage/file_storage_client_composite_operations.rb +460 -0
  228. data/lib/oci/file_storage/models/create_export_details.rb +73 -56
  229. data/lib/oci/file_storage/models/create_file_system_details.rb +75 -60
  230. data/lib/oci/file_storage/models/create_mount_target_details.rb +96 -93
  231. data/lib/oci/file_storage/models/create_snapshot_details.rb +68 -47
  232. data/lib/oci/file_storage/models/export.rb +102 -89
  233. data/lib/oci/file_storage/models/export_set.rb +121 -122
  234. data/lib/oci/file_storage/models/export_set_summary.rb +109 -102
  235. data/lib/oci/file_storage/models/export_summary.rb +102 -89
  236. data/lib/oci/file_storage/models/file_system.rb +110 -103
  237. data/lib/oci/file_storage/models/file_system_summary.rb +110 -103
  238. data/lib/oci/file_storage/models/mount_target.rb +126 -131
  239. data/lib/oci/file_storage/models/mount_target_summary.rb +121 -122
  240. data/lib/oci/file_storage/models/snapshot.rb +98 -81
  241. data/lib/oci/file_storage/models/snapshot_summary.rb +98 -81
  242. data/lib/oci/file_storage/models/update_export_set_details.rb +75 -60
  243. data/lib/oci/file_storage/models/update_file_system_details.rb +63 -40
  244. data/lib/oci/file_storage/models/update_mount_target_details.rb +63 -40
  245. data/lib/oci/identity/identity.rb +3 -0
  246. data/lib/oci/identity/identity_client.rb +1671 -872
  247. data/lib/oci/identity/identity_client_composite_operations.rb +818 -0
  248. data/lib/oci/identity/models/add_user_to_group_details.rb +66 -47
  249. data/lib/oci/identity/models/api_key.rb +108 -101
  250. data/lib/oci/identity/models/availability_domain.rb +64 -44
  251. data/lib/oci/identity/models/compartment.rb +118 -115
  252. data/lib/oci/identity/models/create_api_key_details.rb +60 -35
  253. data/lib/oci/identity/models/create_compartment_details.rb +83 -72
  254. data/lib/oci/identity/models/create_customer_secret_key_details.rb +62 -39
  255. data/lib/oci/identity/models/create_dynamic_group_details.rb +75 -61
  256. data/lib/oci/identity/models/create_group_details.rb +82 -71
  257. data/lib/oci/identity/models/create_identity_provider_details.rb +115 -110
  258. data/lib/oci/identity/models/create_idp_group_mapping_details.rb +67 -48
  259. data/lib/oci/identity/models/create_policy_details.rb +94 -89
  260. data/lib/oci/identity/models/create_region_subscription_details.rb +64 -41
  261. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +88 -67
  262. data/lib/oci/identity/models/create_smtp_credential_details.rb +61 -36
  263. data/lib/oci/identity/models/create_swift_password_details.rb +61 -36
  264. data/lib/oci/identity/models/create_tag_details.rb +77 -62
  265. data/lib/oci/identity/models/create_tag_namespace_details.rb +82 -71
  266. data/lib/oci/identity/models/create_user_details.rb +82 -71
  267. data/lib/oci/identity/models/customer_secret_key.rb +114 -109
  268. data/lib/oci/identity/models/customer_secret_key_summary.rb +109 -102
  269. data/lib/oci/identity/models/dynamic_group.rb +112 -105
  270. data/lib/oci/identity/models/group.rb +118 -115
  271. data/lib/oci/identity/models/identity_provider.rb +135 -138
  272. data/lib/oci/identity/models/idp_group_mapping.rb +112 -109
  273. data/lib/oci/identity/models/policy.rb +129 -132
  274. data/lib/oci/identity/models/region.rb +67 -45
  275. data/lib/oci/identity/models/region_subscription.rb +90 -71
  276. data/lib/oci/identity/models/saml2_identity_provider.rb +106 -92
  277. data/lib/oci/identity/models/smtp_credential.rb +118 -113
  278. data/lib/oci/identity/models/smtp_credential_summary.rb +113 -106
  279. data/lib/oci/identity/models/swift_password.rb +113 -106
  280. data/lib/oci/identity/models/tag.rb +108 -116
  281. data/lib/oci/identity/models/tag_namespace.rb +97 -97
  282. data/lib/oci/identity/models/tag_namespace_summary.rb +97 -97
  283. data/lib/oci/identity/models/tag_summary.rb +97 -97
  284. data/lib/oci/identity/models/tenancy.rb +86 -78
  285. data/lib/oci/identity/models/ui_password.rb +97 -82
  286. data/lib/oci/identity/models/update_compartment_details.rb +77 -62
  287. data/lib/oci/identity/models/update_customer_secret_key_details.rb +61 -38
  288. data/lib/oci/identity/models/update_dynamic_group_details.rb +65 -45
  289. data/lib/oci/identity/models/update_group_details.rb +72 -55
  290. data/lib/oci/identity/models/update_identity_provider_details.rb +89 -74
  291. data/lib/oci/identity/models/update_idp_group_mapping_details.rb +66 -47
  292. data/lib/oci/identity/models/update_policy_details.rb +83 -72
  293. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +79 -58
  294. data/lib/oci/identity/models/update_smtp_credential_details.rb +60 -35
  295. data/lib/oci/identity/models/update_state_details.rb +61 -36
  296. data/lib/oci/identity/models/update_swift_password_details.rb +60 -35
  297. data/lib/oci/identity/models/update_tag_details.rb +78 -65
  298. data/lib/oci/identity/models/update_tag_namespace_details.rb +78 -65
  299. data/lib/oci/identity/models/update_user_details.rb +72 -55
  300. data/lib/oci/identity/models/user.rb +120 -117
  301. data/lib/oci/identity/models/user_group_membership.rb +107 -100
  302. data/lib/oci/load_balancer/load_balancer.rb +3 -0
  303. data/lib/oci/load_balancer/load_balancer_client.rb +918 -500
  304. data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +795 -0
  305. data/lib/oci/load_balancer/models/backend.rb +101 -94
  306. data/lib/oci/load_balancer/models/backend_details.rb +95 -86
  307. data/lib/oci/load_balancer/models/backend_health.rb +84 -57
  308. data/lib/oci/load_balancer/models/backend_set.rb +87 -79
  309. data/lib/oci/load_balancer/models/backend_set_details.rb +80 -70
  310. data/lib/oci/load_balancer/models/backend_set_health.rb +106 -91
  311. data/lib/oci/load_balancer/models/certificate.rb +78 -64
  312. data/lib/oci/load_balancer/models/certificate_details.rb +92 -84
  313. data/lib/oci/load_balancer/models/connection_configuration.rb +73 -51
  314. data/lib/oci/load_balancer/models/create_backend_details.rb +95 -86
  315. data/lib/oci/load_balancer/models/create_backend_set_details.rb +87 -79
  316. data/lib/oci/load_balancer/models/create_certificate_details.rb +92 -84
  317. data/lib/oci/load_balancer/models/create_listener_details.rb +97 -93
  318. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +109 -117
  319. data/lib/oci/load_balancer/models/create_path_route_set_details.rb +66 -46
  320. data/lib/oci/load_balancer/models/health_check_result.rb +98 -79
  321. data/lib/oci/load_balancer/models/health_checker.rb +108 -108
  322. data/lib/oci/load_balancer/models/health_checker_details.rb +108 -108
  323. data/lib/oci/load_balancer/models/ip_address.rb +70 -52
  324. data/lib/oci/load_balancer/models/listener.rb +97 -93
  325. data/lib/oci/load_balancer/models/listener_details.rb +91 -85
  326. data/lib/oci/load_balancer/models/load_balancer.rb +144 -157
  327. data/lib/oci/load_balancer/models/load_balancer_health.rb +110 -95
  328. data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +88 -61
  329. data/lib/oci/load_balancer/models/load_balancer_policy.rb +59 -35
  330. data/lib/oci/load_balancer/models/load_balancer_protocol.rb +59 -35
  331. data/lib/oci/load_balancer/models/load_balancer_shape.rb +59 -35
  332. data/lib/oci/load_balancer/models/path_match_type.rb +80 -51
  333. data/lib/oci/load_balancer/models/path_route.rb +76 -60
  334. data/lib/oci/load_balancer/models/path_route_set.rb +66 -46
  335. data/lib/oci/load_balancer/models/path_route_set_details.rb +60 -38
  336. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +71 -55
  337. data/lib/oci/load_balancer/models/ssl_configuration.rb +78 -66
  338. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +78 -66
  339. data/lib/oci/load_balancer/models/update_backend_details.rb +82 -67
  340. data/lib/oci/load_balancer/models/update_backend_set_details.rb +80 -70
  341. data/lib/oci/load_balancer/models/update_health_checker_details.rb +108 -108
  342. data/lib/oci/load_balancer/models/update_listener_details.rb +91 -85
  343. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +62 -40
  344. data/lib/oci/load_balancer/models/update_path_route_set_details.rb +60 -38
  345. data/lib/oci/load_balancer/models/work_request.rb +115 -108
  346. data/lib/oci/load_balancer/models/work_request_error.rb +76 -49
  347. data/lib/oci/object_storage/models/bucket.rb +136 -133
  348. data/lib/oci/object_storage/models/bucket_summary.rb +95 -95
  349. data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +66 -48
  350. data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +64 -44
  351. data/lib/oci/object_storage/models/create_bucket_details.rb +113 -111
  352. data/lib/oci/object_storage/models/create_multipart_upload_details.rb +80 -70
  353. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +87 -74
  354. data/lib/oci/object_storage/models/list_objects.rb +71 -53
  355. data/lib/oci/object_storage/models/multipart_upload.rb +77 -65
  356. data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +72 -56
  357. data/lib/oci/object_storage/models/namespace_metadata.rb +69 -53
  358. data/lib/oci/object_storage/models/object_summary.rb +73 -57
  359. data/lib/oci/object_storage/models/preauthenticated_request.rb +105 -96
  360. data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +99 -86
  361. data/lib/oci/object_storage/models/rename_object_details.rb +80 -74
  362. data/lib/oci/object_storage/models/restore_objects_details.rb +66 -45
  363. data/lib/oci/object_storage/models/update_bucket_details.rb +101 -97
  364. data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +65 -47
  365. data/lib/oci/object_storage/object_storage.rb +2 -0
  366. data/lib/oci/object_storage/object_storage_client.rb +737 -435
  367. data/lib/oci/object_storage/object_storage_client_composite_operations.rb +24 -0
  368. data/lib/oci/signer.rb +20 -7
  369. data/lib/oci/version.rb +1 -1
  370. metadata +13 -2
data/lib/oci/errors.rb CHANGED
@@ -189,5 +189,21 @@ module OCI
189
189
  @upload_id = upload_id
190
190
  end
191
191
  end
192
+
193
+ # This error is used by the CompositeOperation classes to flag when part of an operation succeeded. For
194
+ # example, creating a resource succeeded but waiting for it to move into a given state failed. This
195
+ # error will contain any results of the composite operation which are available.
196
+ #
197
+ # The {#cause} of the error should be inspected for the original error which resulted
198
+ # in this one being thrown.
199
+ class CompositeOperationError < StandardError
200
+ # An array containing any successful {OCI::Response} from the composite operation
201
+ # @return [Array<Response>]
202
+ attr_reader :partial_results
203
+
204
+ def initialize(partial_results:)
205
+ @partial_results = partial_results
206
+ end
207
+ end
192
208
  end
193
209
  end
@@ -2,6 +2,8 @@
2
2
 
3
3
  module OCI
4
4
  module FileStorage
5
+ # Module containing models for requests made to, and responses received from,
6
+ # OCI FileStorage services
5
7
  module Models
6
8
  end
7
9
  end
@@ -28,6 +30,7 @@ require 'oci/file_storage/models/update_mount_target_details'
28
30
 
29
31
  # Require generated clients
30
32
  require 'oci/file_storage/file_storage_client'
33
+ require 'oci/file_storage/file_storage_client_composite_operations'
31
34
 
32
35
  # Require service utilities
33
36
  require 'oci/file_storage/util'
@@ -1,12 +1,14 @@
1
1
  # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
- require "uri"
4
- require "logger"
3
+ require 'uri'
4
+ require 'logger'
5
5
 
6
+ # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
6
7
  module OCI
7
-
8
+ # The API for the File Storage Service.
9
+ #
10
+ # You can use the table of contents or the version selector and search tool to explore the File Storage Service API.
8
11
  class FileStorage::FileStorageClient
9
-
10
12
  # Client used to make HTTP requests.
11
13
  # @return [OCI::ApiClient]
12
14
  attr_reader :api_client
@@ -17,7 +19,10 @@ module OCI
17
19
 
18
20
  # The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
19
21
  # @return [String]
20
- attr_accessor :region
22
+ attr_reader :region
23
+
24
+ # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines
25
+
21
26
 
22
27
  # Creates a new FileStorageClient.
23
28
  # If a config is not specified, then the global OCI.config will be used.
@@ -46,15 +51,23 @@ module OCI
46
51
  config.validate unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
47
52
 
48
53
  if signer.nil?
49
- signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content, signing_strategy: Signer::STANDARD)
54
+ signer = OCI::Signer.new(
55
+ config.user,
56
+ config.fingerprint,
57
+ config.tenancy,
58
+ config.key_file,
59
+ pass_phrase: config.pass_phrase,
60
+ private_key_content: config.key_content
61
+ )
50
62
  end
51
63
 
52
- @api_client = ApiClient.new(config, signer, proxy_settings: proxy_settings)
64
+ @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
53
65
 
54
66
  region ||= config.region
55
67
  region ||= signer.region if signer.respond_to?(:region)
56
68
  self.region = region
57
69
  end
70
+ # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines
58
71
 
59
72
  # Set the region that will be used to determine the service endpoint.
60
73
  # This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
@@ -73,25 +86,30 @@ module OCI
73
86
  @api_client.config.logger
74
87
  end
75
88
 
89
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
90
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
91
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
92
+
76
93
 
77
94
  # Creates a new export in the specified export set, path, and
78
95
  # file system.
79
- #
80
- # @param [CreateExportDetails] create_export_details Details for creating a new export.
96
+ #
97
+ # @param [OCI::FileStorage::Models::CreateExportDetails] create_export_details Details for creating a new export.
81
98
  # @param [Hash] opts the optional parameters
82
99
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
83
100
  # server error without risk of executing that same action again. Retry tokens expire after 24
84
101
  # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
85
102
  # has been deleted and purged from the system, then a retry of the original creation request
86
103
  # might be rejected.
87
- #
88
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::Export
104
+ #
105
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::Export Export}
89
106
  def create_export(create_export_details, opts = {})
90
- logger.debug "Calling operation FileStorageClient#create_export." if logger
107
+ logger.debug 'Calling operation FileStorageClient#create_export.' if logger
91
108
 
92
109
  raise "Missing the required parameter 'create_export_details' when calling create_export." if create_export_details.nil?
93
110
 
94
- path = "/exports"
111
+ path = '/exports'
112
+ operation_signing_strategy = :standard
95
113
 
96
114
  # Query Params
97
115
  query_params = {}
@@ -100,62 +118,73 @@ module OCI
100
118
  header_params = {}
101
119
  header_params['accept'] = 'application/json'
102
120
  header_params['content-type'] = 'application/json'
103
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
121
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
104
122
 
105
123
  post_body = @api_client.object_to_http_body(create_export_details)
106
124
 
107
- return @api_client.call_api(
125
+ @api_client.call_api(
108
126
  :POST,
109
127
  path,
110
128
  endpoint,
111
- :header_params => header_params,
112
- :query_params => query_params,
113
- :body => post_body,
114
- :return_type => 'OCI::FileStorage::Models::Export')
129
+ header_params: header_params,
130
+ query_params: query_params,
131
+ operation_signing_strategy: operation_signing_strategy,
132
+ body: post_body,
133
+ return_type: 'OCI::FileStorage::Models::Export'
134
+ )
115
135
  end
136
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
137
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
138
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
139
+
140
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
141
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
142
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
143
+
116
144
 
117
145
  # Creates a new file system in the specified compartment and
118
146
  # availability domain. Instances can mount file systems in
119
147
  # another availability domain, but doing so might increase
120
148
  # latency when compared to mounting instances in the same
121
149
  # availability domain.
122
- #
150
+ #
123
151
  # After you create a file system, you can associate it with a mount
124
152
  # target. Instances can then mount the file system by connecting to the
125
153
  # mount target's IP address. You can associate a file system with
126
154
  # more than one mount target at a time.
127
- #
155
+ #
128
156
  # For information about access control and compartments, see
129
157
  # [Overview of the IAM Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm).
130
- #
158
+ #
131
159
  # For information about availability domains, see [Regions and
132
160
  # Availability Domains](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm).
133
161
  # To get a list of availability domains, use the
134
162
  # `ListAvailabilityDomains` operation in the Identity and Access
135
163
  # Management Service API.
136
- #
164
+ #
137
165
  # All Oracle Cloud Infrastructure resources, including
138
166
  # file systems, get an Oracle-assigned, unique ID called an Oracle
139
167
  # Cloud Identifier (OCID). When you create a resource, you can
140
168
  # find its OCID in the response. You can also retrieve a
141
169
  # resource's OCID by using a List API operation on that resource
142
170
  # type or by viewing the resource in the Console.
143
- #
144
- # @param [CreateFileSystemDetails] create_file_system_details Details for creating a new file system.
171
+ #
172
+ # @param [OCI::FileStorage::Models::CreateFileSystemDetails] create_file_system_details Details for creating a new file system.
145
173
  # @param [Hash] opts the optional parameters
146
174
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
147
175
  # server error without risk of executing that same action again. Retry tokens expire after 24
148
176
  # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
149
177
  # has been deleted and purged from the system, then a retry of the original creation request
150
178
  # might be rejected.
151
- #
152
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::FileSystem
179
+ #
180
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::FileSystem FileSystem}
153
181
  def create_file_system(create_file_system_details, opts = {})
154
- logger.debug "Calling operation FileStorageClient#create_file_system." if logger
182
+ logger.debug 'Calling operation FileStorageClient#create_file_system.' if logger
155
183
 
156
184
  raise "Missing the required parameter 'create_file_system_details' when calling create_file_system." if create_file_system_details.nil?
157
185
 
158
- path = "/fileSystems"
186
+ path = '/fileSystems'
187
+ operation_signing_strategy = :standard
159
188
 
160
189
  # Query Params
161
190
  query_params = {}
@@ -164,19 +193,29 @@ module OCI
164
193
  header_params = {}
165
194
  header_params['accept'] = 'application/json'
166
195
  header_params['content-type'] = 'application/json'
167
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
196
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
168
197
 
169
198
  post_body = @api_client.object_to_http_body(create_file_system_details)
170
199
 
171
- return @api_client.call_api(
200
+ @api_client.call_api(
172
201
  :POST,
173
202
  path,
174
203
  endpoint,
175
- :header_params => header_params,
176
- :query_params => query_params,
177
- :body => post_body,
178
- :return_type => 'OCI::FileStorage::Models::FileSystem')
204
+ header_params: header_params,
205
+ query_params: query_params,
206
+ operation_signing_strategy: operation_signing_strategy,
207
+ body: post_body,
208
+ return_type: 'OCI::FileStorage::Models::FileSystem'
209
+ )
179
210
  end
211
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
212
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
213
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
214
+
215
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
216
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
217
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
218
+
180
219
 
181
220
  # Creates a new mount target in the specified compartment and
182
221
  # subnet. You can associate a file system with a mount
@@ -184,45 +223,46 @@ module OCI
184
223
  # can connect to mount targets in another availablity domain, but
185
224
  # you might see higher latency than with instances in the same
186
225
  # availability domain as the mount target.
187
- #
226
+ #
188
227
  # Mount targets have one or more private IP addresses that you can
189
228
  # provide as the host portion of remote target parameters in
190
229
  # client mount commands. These private IP addresses are listed
191
230
  # in the privateIpIds property of the mount target and are highly available. Mount
192
231
  # targets also consume additional IP addresses in their subnet.
193
- #
232
+ #
194
233
  # For information about access control and compartments, see
195
234
  # [Overview of the IAM
196
235
  # Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm).
197
- #
236
+ #
198
237
  # For information about availability domains, see [Regions and
199
238
  # Availability Domains](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm).
200
239
  # To get a list of availability domains, use the
201
240
  # `ListAvailabilityDomains` operation in the Identity and Access
202
241
  # Management Service API.
203
- #
242
+ #
204
243
  # All Oracle Cloud Infrastructure Services resources, including
205
244
  # mount targets, get an Oracle-assigned, unique ID called an
206
245
  # Oracle Cloud Identifier (OCID). When you create a resource,
207
246
  # you can find its OCID in the response. You can also retrieve a
208
247
  # resource's OCID by using a List API operation on that resource
209
248
  # type, or by viewing the resource in the Console.
210
- #
211
- # @param [CreateMountTargetDetails] create_mount_target_details Details for creating a new mount target.
249
+ #
250
+ # @param [OCI::FileStorage::Models::CreateMountTargetDetails] create_mount_target_details Details for creating a new mount target.
212
251
  # @param [Hash] opts the optional parameters
213
252
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
214
253
  # server error without risk of executing that same action again. Retry tokens expire after 24
215
254
  # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
216
255
  # has been deleted and purged from the system, then a retry of the original creation request
217
256
  # might be rejected.
218
- #
219
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::MountTarget
257
+ #
258
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::MountTarget MountTarget}
220
259
  def create_mount_target(create_mount_target_details, opts = {})
221
- logger.debug "Calling operation FileStorageClient#create_mount_target." if logger
260
+ logger.debug 'Calling operation FileStorageClient#create_mount_target.' if logger
222
261
 
223
262
  raise "Missing the required parameter 'create_mount_target_details' when calling create_mount_target." if create_mount_target_details.nil?
224
263
 
225
- path = "/mountTargets"
264
+ path = '/mountTargets'
265
+ operation_signing_strategy = :standard
226
266
 
227
267
  # Query Params
228
268
  query_params = {}
@@ -231,38 +271,49 @@ module OCI
231
271
  header_params = {}
232
272
  header_params['accept'] = 'application/json'
233
273
  header_params['content-type'] = 'application/json'
234
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
274
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
235
275
 
236
276
  post_body = @api_client.object_to_http_body(create_mount_target_details)
237
277
 
238
- return @api_client.call_api(
278
+ @api_client.call_api(
239
279
  :POST,
240
280
  path,
241
281
  endpoint,
242
- :header_params => header_params,
243
- :query_params => query_params,
244
- :body => post_body,
245
- :return_type => 'OCI::FileStorage::Models::MountTarget')
282
+ header_params: header_params,
283
+ query_params: query_params,
284
+ operation_signing_strategy: operation_signing_strategy,
285
+ body: post_body,
286
+ return_type: 'OCI::FileStorage::Models::MountTarget'
287
+ )
246
288
  end
289
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
290
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
291
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
292
+
293
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
294
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
295
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
296
+
247
297
 
248
298
  # Creates a new snapshot of the specified file system. You
249
299
  # can access the snapshot at `.snapshot/<name>`.
250
- #
251
- # @param [CreateSnapshotDetails] create_snapshot_details Details for creating a new snapshot.
300
+ #
301
+ # @param [OCI::FileStorage::Models::CreateSnapshotDetails] create_snapshot_details Details for creating a new snapshot.
252
302
  # @param [Hash] opts the optional parameters
253
303
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
254
304
  # server error without risk of executing that same action again. Retry tokens expire after 24
255
305
  # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
256
306
  # has been deleted and purged from the system, then a retry of the original creation request
257
307
  # might be rejected.
258
- #
259
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::Snapshot
308
+ #
309
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::Snapshot Snapshot}
260
310
  def create_snapshot(create_snapshot_details, opts = {})
261
- logger.debug "Calling operation FileStorageClient#create_snapshot." if logger
311
+ logger.debug 'Calling operation FileStorageClient#create_snapshot.' if logger
262
312
 
263
313
  raise "Missing the required parameter 'create_snapshot_details' when calling create_snapshot." if create_snapshot_details.nil?
264
314
 
265
- path = "/snapshots"
315
+ path = '/snapshots'
316
+ operation_signing_strategy = :standard
266
317
 
267
318
  # Query Params
268
319
  query_params = {}
@@ -271,22 +322,32 @@ module OCI
271
322
  header_params = {}
272
323
  header_params['accept'] = 'application/json'
273
324
  header_params['content-type'] = 'application/json'
274
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
325
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
275
326
 
276
327
  post_body = @api_client.object_to_http_body(create_snapshot_details)
277
328
 
278
- return @api_client.call_api(
329
+ @api_client.call_api(
279
330
  :POST,
280
331
  path,
281
332
  endpoint,
282
- :header_params => header_params,
283
- :query_params => query_params,
284
- :body => post_body,
285
- :return_type => 'OCI::FileStorage::Models::Snapshot')
333
+ header_params: header_params,
334
+ query_params: query_params,
335
+ operation_signing_strategy: operation_signing_strategy,
336
+ body: post_body,
337
+ return_type: 'OCI::FileStorage::Models::Snapshot'
338
+ )
286
339
  end
340
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
341
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
342
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
343
+
344
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
345
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
346
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
347
+
287
348
 
288
349
  # Deletes the specified export.
289
- #
350
+ #
290
351
  # @param [String] export_id The OCID of the export.
291
352
  # @param [Hash] opts the optional parameters
292
353
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
@@ -294,15 +355,16 @@ module OCI
294
355
  # etag from a previous GET or POST response for that resource.
295
356
  # The resource will be updated or deleted only if the etag you
296
357
  # provide matches the resource's current etag value.
297
- #
358
+ #
298
359
  # @return [Response] A Response object with data of type nil
299
360
  def delete_export(export_id, opts = {})
300
- logger.debug "Calling operation FileStorageClient#delete_export." if logger
361
+ logger.debug 'Calling operation FileStorageClient#delete_export.' if logger
301
362
 
302
363
  raise "Missing the required parameter 'export_id' when calling delete_export." if export_id.nil?
303
- raise "Parameter value for 'export_id' must not be blank" if OCI::Internal::Util::blank_string?(export_id)
364
+ raise "Parameter value for 'export_id' must not be blank" if OCI::Internal::Util.blank_string?(export_id)
304
365
 
305
- path = "/exports/{exportId}".sub('{exportId}', export_id.to_s)
366
+ path = '/exports/{exportId}'.sub('{exportId}', export_id.to_s)
367
+ operation_signing_strategy = :standard
306
368
 
307
369
  # Query Params
308
370
  query_params = {}
@@ -311,23 +373,33 @@ module OCI
311
373
  header_params = {}
312
374
  header_params['accept'] = 'application/json'
313
375
  header_params['content-type'] = 'application/json'
314
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
376
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
315
377
 
316
378
  post_body = nil
317
379
 
318
- return @api_client.call_api(
380
+ @api_client.call_api(
319
381
  :DELETE,
320
382
  path,
321
383
  endpoint,
322
- :header_params => header_params,
323
- :query_params => query_params,
324
- :body => post_body)
384
+ header_params: header_params,
385
+ query_params: query_params,
386
+ operation_signing_strategy: operation_signing_strategy,
387
+ body: post_body
388
+ )
325
389
  end
390
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
391
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
392
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
393
+
394
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
395
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
396
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
397
+
326
398
 
327
399
  # Deletes the specified file system. Before you delete the file system,
328
400
  # verify that no remaining export resources still reference it. Deleting a
329
401
  # file system also deletes all of its snapshots.
330
- #
402
+ #
331
403
  # @param [String] file_system_id The OCID of the file system.
332
404
  # @param [Hash] opts the optional parameters
333
405
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
@@ -335,15 +407,16 @@ module OCI
335
407
  # etag from a previous GET or POST response for that resource.
336
408
  # The resource will be updated or deleted only if the etag you
337
409
  # provide matches the resource's current etag value.
338
- #
410
+ #
339
411
  # @return [Response] A Response object with data of type nil
340
412
  def delete_file_system(file_system_id, opts = {})
341
- logger.debug "Calling operation FileStorageClient#delete_file_system." if logger
413
+ logger.debug 'Calling operation FileStorageClient#delete_file_system.' if logger
342
414
 
343
415
  raise "Missing the required parameter 'file_system_id' when calling delete_file_system." if file_system_id.nil?
344
- raise "Parameter value for 'file_system_id' must not be blank" if OCI::Internal::Util::blank_string?(file_system_id)
416
+ raise "Parameter value for 'file_system_id' must not be blank" if OCI::Internal::Util.blank_string?(file_system_id)
345
417
 
346
- path = "/fileSystems/{fileSystemId}".sub('{fileSystemId}', file_system_id.to_s)
418
+ path = '/fileSystems/{fileSystemId}'.sub('{fileSystemId}', file_system_id.to_s)
419
+ operation_signing_strategy = :standard
347
420
 
348
421
  # Query Params
349
422
  query_params = {}
@@ -352,22 +425,32 @@ module OCI
352
425
  header_params = {}
353
426
  header_params['accept'] = 'application/json'
354
427
  header_params['content-type'] = 'application/json'
355
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
428
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
356
429
 
357
430
  post_body = nil
358
431
 
359
- return @api_client.call_api(
432
+ @api_client.call_api(
360
433
  :DELETE,
361
434
  path,
362
435
  endpoint,
363
- :header_params => header_params,
364
- :query_params => query_params,
365
- :body => post_body)
436
+ header_params: header_params,
437
+ query_params: query_params,
438
+ operation_signing_strategy: operation_signing_strategy,
439
+ body: post_body
440
+ )
366
441
  end
442
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
443
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
444
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
445
+
446
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
447
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
448
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
449
+
367
450
 
368
451
  # Deletes the specified mount target. This operation also deletes the
369
452
  # mount target's VNICs.
370
- #
453
+ #
371
454
  # @param [String] mount_target_id The OCID of the mount target.
372
455
  # @param [Hash] opts the optional parameters
373
456
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
@@ -375,15 +458,16 @@ module OCI
375
458
  # etag from a previous GET or POST response for that resource.
376
459
  # The resource will be updated or deleted only if the etag you
377
460
  # provide matches the resource's current etag value.
378
- #
461
+ #
379
462
  # @return [Response] A Response object with data of type nil
380
463
  def delete_mount_target(mount_target_id, opts = {})
381
- logger.debug "Calling operation FileStorageClient#delete_mount_target." if logger
464
+ logger.debug 'Calling operation FileStorageClient#delete_mount_target.' if logger
382
465
 
383
466
  raise "Missing the required parameter 'mount_target_id' when calling delete_mount_target." if mount_target_id.nil?
384
- raise "Parameter value for 'mount_target_id' must not be blank" if OCI::Internal::Util::blank_string?(mount_target_id)
467
+ raise "Parameter value for 'mount_target_id' must not be blank" if OCI::Internal::Util.blank_string?(mount_target_id)
385
468
 
386
- path = "/mountTargets/{mountTargetId}".sub('{mountTargetId}', mount_target_id.to_s)
469
+ path = '/mountTargets/{mountTargetId}'.sub('{mountTargetId}', mount_target_id.to_s)
470
+ operation_signing_strategy = :standard
387
471
 
388
472
  # Query Params
389
473
  query_params = {}
@@ -392,21 +476,31 @@ module OCI
392
476
  header_params = {}
393
477
  header_params['accept'] = 'application/json'
394
478
  header_params['content-type'] = 'application/json'
395
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
479
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
396
480
 
397
481
  post_body = nil
398
482
 
399
- return @api_client.call_api(
483
+ @api_client.call_api(
400
484
  :DELETE,
401
485
  path,
402
486
  endpoint,
403
- :header_params => header_params,
404
- :query_params => query_params,
405
- :body => post_body)
487
+ header_params: header_params,
488
+ query_params: query_params,
489
+ operation_signing_strategy: operation_signing_strategy,
490
+ body: post_body
491
+ )
406
492
  end
493
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
494
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
495
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
496
+
497
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
498
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
499
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
500
+
407
501
 
408
502
  # Deletes the specified snapshot.
409
- #
503
+ #
410
504
  # @param [String] snapshot_id The OCID of the snapshot.
411
505
  # @param [Hash] opts the optional parameters
412
506
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
@@ -414,15 +508,16 @@ module OCI
414
508
  # etag from a previous GET or POST response for that resource.
415
509
  # The resource will be updated or deleted only if the etag you
416
510
  # provide matches the resource's current etag value.
417
- #
511
+ #
418
512
  # @return [Response] A Response object with data of type nil
419
513
  def delete_snapshot(snapshot_id, opts = {})
420
- logger.debug "Calling operation FileStorageClient#delete_snapshot." if logger
514
+ logger.debug 'Calling operation FileStorageClient#delete_snapshot.' if logger
421
515
 
422
516
  raise "Missing the required parameter 'snapshot_id' when calling delete_snapshot." if snapshot_id.nil?
423
- raise "Parameter value for 'snapshot_id' must not be blank" if OCI::Internal::Util::blank_string?(snapshot_id)
517
+ raise "Parameter value for 'snapshot_id' must not be blank" if OCI::Internal::Util.blank_string?(snapshot_id)
424
518
 
425
- path = "/snapshots/{snapshotId}".sub('{snapshotId}', snapshot_id.to_s)
519
+ path = '/snapshots/{snapshotId}'.sub('{snapshotId}', snapshot_id.to_s)
520
+ operation_signing_strategy = :standard
426
521
 
427
522
  # Query Params
428
523
  query_params = {}
@@ -431,30 +526,42 @@ module OCI
431
526
  header_params = {}
432
527
  header_params['accept'] = 'application/json'
433
528
  header_params['content-type'] = 'application/json'
434
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
529
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
435
530
 
436
531
  post_body = nil
437
532
 
438
- return @api_client.call_api(
533
+ @api_client.call_api(
439
534
  :DELETE,
440
535
  path,
441
536
  endpoint,
442
- :header_params => header_params,
443
- :query_params => query_params,
444
- :body => post_body)
537
+ header_params: header_params,
538
+ query_params: query_params,
539
+ operation_signing_strategy: operation_signing_strategy,
540
+ body: post_body
541
+ )
445
542
  end
543
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
544
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
545
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
546
+
547
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
548
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
549
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
550
+ # rubocop:disable Lint/UnusedMethodArgument
551
+
446
552
 
447
553
  # Gets the specified export's information.
448
554
  # @param [String] export_id The OCID of the export.
449
555
  # @param [Hash] opts the optional parameters
450
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::Export
556
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::Export Export}
451
557
  def get_export(export_id, opts = {})
452
- logger.debug "Calling operation FileStorageClient#get_export." if logger
558
+ logger.debug 'Calling operation FileStorageClient#get_export.' if logger
453
559
 
454
560
  raise "Missing the required parameter 'export_id' when calling get_export." if export_id.nil?
455
- raise "Parameter value for 'export_id' must not be blank" if OCI::Internal::Util::blank_string?(export_id)
561
+ raise "Parameter value for 'export_id' must not be blank" if OCI::Internal::Util.blank_string?(export_id)
456
562
 
457
- path = "/exports/{exportId}".sub('{exportId}', export_id.to_s)
563
+ path = '/exports/{exportId}'.sub('{exportId}', export_id.to_s)
564
+ operation_signing_strategy = :standard
458
565
 
459
566
  # Query Params
460
567
  query_params = {}
@@ -466,27 +573,40 @@ module OCI
466
573
 
467
574
  post_body = nil
468
575
 
469
- return @api_client.call_api(
576
+ @api_client.call_api(
470
577
  :GET,
471
578
  path,
472
579
  endpoint,
473
- :header_params => header_params,
474
- :query_params => query_params,
475
- :body => post_body,
476
- :return_type => 'OCI::FileStorage::Models::Export')
580
+ header_params: header_params,
581
+ query_params: query_params,
582
+ operation_signing_strategy: operation_signing_strategy,
583
+ body: post_body,
584
+ return_type: 'OCI::FileStorage::Models::Export'
585
+ )
477
586
  end
587
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
588
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
589
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
590
+ # rubocop:enable Lint/UnusedMethodArgument
591
+
592
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
593
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
594
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
595
+ # rubocop:disable Lint/UnusedMethodArgument
596
+
478
597
 
479
598
  # Gets the specified export set's information.
480
599
  # @param [String] export_set_id The OCID of the export set.
481
600
  # @param [Hash] opts the optional parameters
482
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::ExportSet
601
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::ExportSet ExportSet}
483
602
  def get_export_set(export_set_id, opts = {})
484
- logger.debug "Calling operation FileStorageClient#get_export_set." if logger
603
+ logger.debug 'Calling operation FileStorageClient#get_export_set.' if logger
485
604
 
486
605
  raise "Missing the required parameter 'export_set_id' when calling get_export_set." if export_set_id.nil?
487
- raise "Parameter value for 'export_set_id' must not be blank" if OCI::Internal::Util::blank_string?(export_set_id)
606
+ raise "Parameter value for 'export_set_id' must not be blank" if OCI::Internal::Util.blank_string?(export_set_id)
488
607
 
489
- path = "/exportSets/{exportSetId}".sub('{exportSetId}', export_set_id.to_s)
608
+ path = '/exportSets/{exportSetId}'.sub('{exportSetId}', export_set_id.to_s)
609
+ operation_signing_strategy = :standard
490
610
 
491
611
  # Query Params
492
612
  query_params = {}
@@ -498,27 +618,40 @@ module OCI
498
618
 
499
619
  post_body = nil
500
620
 
501
- return @api_client.call_api(
621
+ @api_client.call_api(
502
622
  :GET,
503
623
  path,
504
624
  endpoint,
505
- :header_params => header_params,
506
- :query_params => query_params,
507
- :body => post_body,
508
- :return_type => 'OCI::FileStorage::Models::ExportSet')
625
+ header_params: header_params,
626
+ query_params: query_params,
627
+ operation_signing_strategy: operation_signing_strategy,
628
+ body: post_body,
629
+ return_type: 'OCI::FileStorage::Models::ExportSet'
630
+ )
509
631
  end
632
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
633
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
634
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
635
+ # rubocop:enable Lint/UnusedMethodArgument
636
+
637
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
638
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
639
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
640
+ # rubocop:disable Lint/UnusedMethodArgument
641
+
510
642
 
511
643
  # Gets the specified file system's information.
512
644
  # @param [String] file_system_id The OCID of the file system.
513
645
  # @param [Hash] opts the optional parameters
514
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::FileSystem
646
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::FileSystem FileSystem}
515
647
  def get_file_system(file_system_id, opts = {})
516
- logger.debug "Calling operation FileStorageClient#get_file_system." if logger
648
+ logger.debug 'Calling operation FileStorageClient#get_file_system.' if logger
517
649
 
518
650
  raise "Missing the required parameter 'file_system_id' when calling get_file_system." if file_system_id.nil?
519
- raise "Parameter value for 'file_system_id' must not be blank" if OCI::Internal::Util::blank_string?(file_system_id)
651
+ raise "Parameter value for 'file_system_id' must not be blank" if OCI::Internal::Util.blank_string?(file_system_id)
520
652
 
521
- path = "/fileSystems/{fileSystemId}".sub('{fileSystemId}', file_system_id.to_s)
653
+ path = '/fileSystems/{fileSystemId}'.sub('{fileSystemId}', file_system_id.to_s)
654
+ operation_signing_strategy = :standard
522
655
 
523
656
  # Query Params
524
657
  query_params = {}
@@ -530,27 +663,40 @@ module OCI
530
663
 
531
664
  post_body = nil
532
665
 
533
- return @api_client.call_api(
666
+ @api_client.call_api(
534
667
  :GET,
535
668
  path,
536
669
  endpoint,
537
- :header_params => header_params,
538
- :query_params => query_params,
539
- :body => post_body,
540
- :return_type => 'OCI::FileStorage::Models::FileSystem')
670
+ header_params: header_params,
671
+ query_params: query_params,
672
+ operation_signing_strategy: operation_signing_strategy,
673
+ body: post_body,
674
+ return_type: 'OCI::FileStorage::Models::FileSystem'
675
+ )
541
676
  end
677
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
678
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
679
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
680
+ # rubocop:enable Lint/UnusedMethodArgument
681
+
682
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
683
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
684
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
685
+ # rubocop:disable Lint/UnusedMethodArgument
686
+
542
687
 
543
688
  # Gets the specified mount target's information.
544
689
  # @param [String] mount_target_id The OCID of the mount target.
545
690
  # @param [Hash] opts the optional parameters
546
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::MountTarget
691
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::MountTarget MountTarget}
547
692
  def get_mount_target(mount_target_id, opts = {})
548
- logger.debug "Calling operation FileStorageClient#get_mount_target." if logger
693
+ logger.debug 'Calling operation FileStorageClient#get_mount_target.' if logger
549
694
 
550
695
  raise "Missing the required parameter 'mount_target_id' when calling get_mount_target." if mount_target_id.nil?
551
- raise "Parameter value for 'mount_target_id' must not be blank" if OCI::Internal::Util::blank_string?(mount_target_id)
696
+ raise "Parameter value for 'mount_target_id' must not be blank" if OCI::Internal::Util.blank_string?(mount_target_id)
552
697
 
553
- path = "/mountTargets/{mountTargetId}".sub('{mountTargetId}', mount_target_id.to_s)
698
+ path = '/mountTargets/{mountTargetId}'.sub('{mountTargetId}', mount_target_id.to_s)
699
+ operation_signing_strategy = :standard
554
700
 
555
701
  # Query Params
556
702
  query_params = {}
@@ -562,27 +708,40 @@ module OCI
562
708
 
563
709
  post_body = nil
564
710
 
565
- return @api_client.call_api(
711
+ @api_client.call_api(
566
712
  :GET,
567
713
  path,
568
714
  endpoint,
569
- :header_params => header_params,
570
- :query_params => query_params,
571
- :body => post_body,
572
- :return_type => 'OCI::FileStorage::Models::MountTarget')
715
+ header_params: header_params,
716
+ query_params: query_params,
717
+ operation_signing_strategy: operation_signing_strategy,
718
+ body: post_body,
719
+ return_type: 'OCI::FileStorage::Models::MountTarget'
720
+ )
573
721
  end
722
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
723
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
724
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
725
+ # rubocop:enable Lint/UnusedMethodArgument
726
+
727
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
728
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
729
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
730
+ # rubocop:disable Lint/UnusedMethodArgument
731
+
574
732
 
575
733
  # Gets the specified snapshot's information.
576
734
  # @param [String] snapshot_id The OCID of the snapshot.
577
735
  # @param [Hash] opts the optional parameters
578
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::Snapshot
736
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::Snapshot Snapshot}
579
737
  def get_snapshot(snapshot_id, opts = {})
580
- logger.debug "Calling operation FileStorageClient#get_snapshot." if logger
738
+ logger.debug 'Calling operation FileStorageClient#get_snapshot.' if logger
581
739
 
582
740
  raise "Missing the required parameter 'snapshot_id' when calling get_snapshot." if snapshot_id.nil?
583
- raise "Parameter value for 'snapshot_id' must not be blank" if OCI::Internal::Util::blank_string?(snapshot_id)
741
+ raise "Parameter value for 'snapshot_id' must not be blank" if OCI::Internal::Util.blank_string?(snapshot_id)
584
742
 
585
- path = "/snapshots/{snapshotId}".sub('{snapshotId}', snapshot_id.to_s)
743
+ path = '/snapshots/{snapshotId}'.sub('{snapshotId}', snapshot_id.to_s)
744
+ operation_signing_strategy = :standard
586
745
 
587
746
  # Query Params
588
747
  query_params = {}
@@ -594,83 +753,95 @@ module OCI
594
753
 
595
754
  post_body = nil
596
755
 
597
- return @api_client.call_api(
756
+ @api_client.call_api(
598
757
  :GET,
599
758
  path,
600
759
  endpoint,
601
- :header_params => header_params,
602
- :query_params => query_params,
603
- :body => post_body,
604
- :return_type => 'OCI::FileStorage::Models::Snapshot')
760
+ header_params: header_params,
761
+ query_params: query_params,
762
+ operation_signing_strategy: operation_signing_strategy,
763
+ body: post_body,
764
+ return_type: 'OCI::FileStorage::Models::Snapshot'
765
+ )
605
766
  end
767
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
768
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
769
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
770
+ # rubocop:enable Lint/UnusedMethodArgument
771
+
772
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
773
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
774
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
775
+
606
776
 
607
777
  # Lists the export set resources in the specified compartment.
608
- #
778
+ #
609
779
  # @param [String] compartment_id The OCID of the compartment.
610
780
  # @param [String] availability_domain The name of the availability domain.
611
- #
781
+ #
612
782
  # Example: `Uocm:PHX-AD-1`
613
- #
783
+ #
614
784
  # @param [Hash] opts the optional parameters
615
785
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
616
- #
786
+ #
617
787
  # Example: `500`
618
- #
788
+ #
619
789
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
620
- #
790
+ #
621
791
  # @option opts [String] :display_name A user-friendly name. It does not have to be unique, and it is changeable.
622
- #
792
+ #
623
793
  # Example: `My resource`
624
- #
794
+ #
625
795
  # @option opts [String] :lifecycle_state Filter results by the specified lifecycle state. Must be a valid
626
796
  # state for the resource type.
627
- #
797
+ #
628
798
  # Allowed values are: CREATING, ACTIVE, DELETING, DELETED, FAILED
629
799
  # @option opts [String] :id Filter results by OCID. Must be an OCID of the correct type for
630
800
  # the resouce type.
631
- #
801
+ #
632
802
  # @option opts [String] :sort_by The field to sort by. You can provide either value, but not both.
633
803
  # By default, when you sort by time created, results are shown
634
804
  # in descending order. When you sort by display name, results are
635
805
  # shown in ascending order.
636
- #
806
+ #
637
807
  # Allowed values are: TIMECREATED, DISPLAYNAME
638
808
  # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc', where 'asc' is
639
809
  # ascending and 'desc' is descending.
640
- #
810
+ #
641
811
  # Allowed values are: ASC, DESC
642
- # @return [Response] A Response object with data of type Array<OCI::FileStorage::Models::ExportSetSummary>
812
+ # @return [Response] A Response object with data of type Array<{OCI::FileStorage::Models::ExportSetSummary ExportSetSummary}>
643
813
  def list_export_sets(compartment_id, availability_domain, opts = {})
644
- logger.debug "Calling operation FileStorageClient#list_export_sets." if logger
814
+ logger.debug 'Calling operation FileStorageClient#list_export_sets.' if logger
645
815
 
646
816
  raise "Missing the required parameter 'compartment_id' when calling list_export_sets." if compartment_id.nil?
647
817
  raise "Missing the required parameter 'availability_domain' when calling list_export_sets." if availability_domain.nil?
648
818
 
649
- if opts[:'lifecycle_state'] && !['CREATING', 'ACTIVE', 'DELETING', 'DELETED', 'FAILED'].include?(opts[:'lifecycle_state'])
819
+ if opts[:lifecycle_state] && !%w[CREATING ACTIVE DELETING DELETED FAILED].include?(opts[:lifecycle_state])
650
820
  raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETING, DELETED, FAILED.'
651
821
  end
652
822
 
653
- if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
823
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
654
824
  raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
655
825
  end
656
826
 
657
- if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
827
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
658
828
  raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
659
829
  end
660
830
 
661
- path = "/exportSets"
831
+ path = '/exportSets'
832
+ operation_signing_strategy = :standard
662
833
 
663
834
  # Query Params
664
835
  query_params = {}
665
- query_params[:'compartmentId'] = compartment_id
666
- query_params[:'availabilityDomain'] = availability_domain
667
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
668
- query_params[:'page'] = opts[:'page'] if opts[:'page']
669
- query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
670
- query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
671
- query_params[:'id'] = opts[:'id'] if opts[:'id']
672
- query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
673
- query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
836
+ query_params[:compartmentId] = compartment_id
837
+ query_params[:availabilityDomain] = availability_domain
838
+ query_params[:limit] = opts[:limit] if opts[:limit]
839
+ query_params[:page] = opts[:page] if opts[:page]
840
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
841
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
842
+ query_params[:id] = opts[:id] if opts[:id]
843
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
844
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
674
845
 
675
846
  # Header Params
676
847
  header_params = {}
@@ -679,77 +850,88 @@ module OCI
679
850
 
680
851
  post_body = nil
681
852
 
682
- return @api_client.call_api(
853
+ @api_client.call_api(
683
854
  :GET,
684
855
  path,
685
856
  endpoint,
686
- :header_params => header_params,
687
- :query_params => query_params,
688
- :body => post_body,
689
- :return_type => 'Array<OCI::FileStorage::Models::ExportSetSummary>')
857
+ header_params: header_params,
858
+ query_params: query_params,
859
+ operation_signing_strategy: operation_signing_strategy,
860
+ body: post_body,
861
+ return_type: 'Array<OCI::FileStorage::Models::ExportSetSummary>'
862
+ )
690
863
  end
864
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
865
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
866
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
867
+
868
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
869
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
870
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
871
+
691
872
 
692
873
  # Lists the export resources in the specified compartment. You must
693
874
  # also specify an export set, a file system, or both.
694
- #
875
+ #
695
876
  # @param [String] compartment_id The OCID of the compartment.
696
877
  # @param [Hash] opts the optional parameters
697
878
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
698
- #
879
+ #
699
880
  # Example: `500`
700
- #
881
+ #
701
882
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
702
- #
883
+ #
703
884
  # @option opts [String] :export_set_id The OCID of the export set.
704
885
  # @option opts [String] :file_system_id The OCID of the file system.
705
886
  # @option opts [String] :lifecycle_state Filter results by the specified lifecycle state. Must be a valid
706
887
  # state for the resource type.
707
- #
888
+ #
708
889
  # Allowed values are: CREATING, ACTIVE, DELETING, DELETED, FAILED
709
890
  # @option opts [String] :id Filter results by OCID. Must be an OCID of the correct type for
710
891
  # the resouce type.
711
- #
892
+ #
712
893
  # @option opts [String] :sort_by The field to sort by. You can provide either value, but not both.
713
894
  # By default, when you sort by time created, results are shown
714
895
  # in descending order. When you sort by path, results are
715
896
  # shown in ascending alphanumeric order.
716
- #
897
+ #
717
898
  # Allowed values are: TIMECREATED, PATH
718
899
  # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc', where 'asc' is
719
900
  # ascending and 'desc' is descending.
720
- #
901
+ #
721
902
  # Allowed values are: ASC, DESC
722
- # @return [Response] A Response object with data of type Array<OCI::FileStorage::Models::ExportSummary>
903
+ # @return [Response] A Response object with data of type Array<{OCI::FileStorage::Models::ExportSummary ExportSummary}>
723
904
  def list_exports(compartment_id, opts = {})
724
- logger.debug "Calling operation FileStorageClient#list_exports." if logger
905
+ logger.debug 'Calling operation FileStorageClient#list_exports.' if logger
725
906
 
726
907
  raise "Missing the required parameter 'compartment_id' when calling list_exports." if compartment_id.nil?
727
908
 
728
- if opts[:'lifecycle_state'] && !['CREATING', 'ACTIVE', 'DELETING', 'DELETED', 'FAILED'].include?(opts[:'lifecycle_state'])
909
+ if opts[:lifecycle_state] && !%w[CREATING ACTIVE DELETING DELETED FAILED].include?(opts[:lifecycle_state])
729
910
  raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETING, DELETED, FAILED.'
730
911
  end
731
912
 
732
- if opts[:'sort_by'] && !['TIMECREATED', 'PATH'].include?(opts[:'sort_by'])
913
+ if opts[:sort_by] && !%w[TIMECREATED PATH].include?(opts[:sort_by])
733
914
  raise 'Invalid value for "sort_by", must be one of TIMECREATED, PATH.'
734
915
  end
735
916
 
736
- if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
917
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
737
918
  raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
738
919
  end
739
920
 
740
- path = "/exports"
921
+ path = '/exports'
922
+ operation_signing_strategy = :standard
741
923
 
742
924
  # Query Params
743
925
  query_params = {}
744
- query_params[:'compartmentId'] = compartment_id
745
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
746
- query_params[:'page'] = opts[:'page'] if opts[:'page']
747
- query_params[:'exportSetId'] = opts[:'export_set_id'] if opts[:'export_set_id']
748
- query_params[:'fileSystemId'] = opts[:'file_system_id'] if opts[:'file_system_id']
749
- query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
750
- query_params[:'id'] = opts[:'id'] if opts[:'id']
751
- query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
752
- query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
926
+ query_params[:compartmentId] = compartment_id
927
+ query_params[:limit] = opts[:limit] if opts[:limit]
928
+ query_params[:page] = opts[:page] if opts[:page]
929
+ query_params[:exportSetId] = opts[:export_set_id] if opts[:export_set_id]
930
+ query_params[:fileSystemId] = opts[:file_system_id] if opts[:file_system_id]
931
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
932
+ query_params[:id] = opts[:id] if opts[:id]
933
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
934
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
753
935
 
754
936
  # Header Params
755
937
  header_params = {}
@@ -758,83 +940,94 @@ module OCI
758
940
 
759
941
  post_body = nil
760
942
 
761
- return @api_client.call_api(
943
+ @api_client.call_api(
762
944
  :GET,
763
945
  path,
764
946
  endpoint,
765
- :header_params => header_params,
766
- :query_params => query_params,
767
- :body => post_body,
768
- :return_type => 'Array<OCI::FileStorage::Models::ExportSummary>')
947
+ header_params: header_params,
948
+ query_params: query_params,
949
+ operation_signing_strategy: operation_signing_strategy,
950
+ body: post_body,
951
+ return_type: 'Array<OCI::FileStorage::Models::ExportSummary>'
952
+ )
769
953
  end
954
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
955
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
956
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
957
+
958
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
959
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
960
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
961
+
770
962
 
771
963
  # Lists the file system resources in the specified compartment.
772
- #
964
+ #
773
965
  # @param [String] compartment_id The OCID of the compartment.
774
966
  # @param [String] availability_domain The name of the availability domain.
775
- #
967
+ #
776
968
  # Example: `Uocm:PHX-AD-1`
777
- #
969
+ #
778
970
  # @param [Hash] opts the optional parameters
779
971
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
780
- #
972
+ #
781
973
  # Example: `500`
782
- #
974
+ #
783
975
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
784
- #
976
+ #
785
977
  # @option opts [String] :display_name A user-friendly name. It does not have to be unique, and it is changeable.
786
- #
978
+ #
787
979
  # Example: `My resource`
788
- #
980
+ #
789
981
  # @option opts [String] :lifecycle_state Filter results by the specified lifecycle state. Must be a valid
790
982
  # state for the resource type.
791
- #
983
+ #
792
984
  # Allowed values are: CREATING, ACTIVE, DELETING, DELETED, FAILED
793
985
  # @option opts [String] :id Filter results by OCID. Must be an OCID of the correct type for
794
986
  # the resouce type.
795
- #
987
+ #
796
988
  # @option opts [String] :sort_by The field to sort by. You can provide either value, but not both.
797
989
  # By default, when you sort by time created, results are shown
798
990
  # in descending order. When you sort by display name, results are
799
991
  # shown in ascending order.
800
- #
992
+ #
801
993
  # Allowed values are: TIMECREATED, DISPLAYNAME
802
994
  # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc', where 'asc' is
803
995
  # ascending and 'desc' is descending.
804
- #
996
+ #
805
997
  # Allowed values are: ASC, DESC
806
- # @return [Response] A Response object with data of type Array<OCI::FileStorage::Models::FileSystemSummary>
998
+ # @return [Response] A Response object with data of type Array<{OCI::FileStorage::Models::FileSystemSummary FileSystemSummary}>
807
999
  def list_file_systems(compartment_id, availability_domain, opts = {})
808
- logger.debug "Calling operation FileStorageClient#list_file_systems." if logger
1000
+ logger.debug 'Calling operation FileStorageClient#list_file_systems.' if logger
809
1001
 
810
1002
  raise "Missing the required parameter 'compartment_id' when calling list_file_systems." if compartment_id.nil?
811
1003
  raise "Missing the required parameter 'availability_domain' when calling list_file_systems." if availability_domain.nil?
812
1004
 
813
- if opts[:'lifecycle_state'] && !['CREATING', 'ACTIVE', 'DELETING', 'DELETED', 'FAILED'].include?(opts[:'lifecycle_state'])
1005
+ if opts[:lifecycle_state] && !%w[CREATING ACTIVE DELETING DELETED FAILED].include?(opts[:lifecycle_state])
814
1006
  raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETING, DELETED, FAILED.'
815
1007
  end
816
1008
 
817
- if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
1009
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
818
1010
  raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
819
1011
  end
820
1012
 
821
- if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
1013
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
822
1014
  raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
823
1015
  end
824
1016
 
825
- path = "/fileSystems"
1017
+ path = '/fileSystems'
1018
+ operation_signing_strategy = :standard
826
1019
 
827
1020
  # Query Params
828
1021
  query_params = {}
829
- query_params[:'compartmentId'] = compartment_id
830
- query_params[:'availabilityDomain'] = availability_domain
831
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
832
- query_params[:'page'] = opts[:'page'] if opts[:'page']
833
- query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
834
- query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
835
- query_params[:'id'] = opts[:'id'] if opts[:'id']
836
- query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
837
- query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
1022
+ query_params[:compartmentId] = compartment_id
1023
+ query_params[:availabilityDomain] = availability_domain
1024
+ query_params[:limit] = opts[:limit] if opts[:limit]
1025
+ query_params[:page] = opts[:page] if opts[:page]
1026
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1027
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1028
+ query_params[:id] = opts[:id] if opts[:id]
1029
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1030
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
838
1031
 
839
1032
  # Header Params
840
1033
  header_params = {}
@@ -843,85 +1036,96 @@ module OCI
843
1036
 
844
1037
  post_body = nil
845
1038
 
846
- return @api_client.call_api(
1039
+ @api_client.call_api(
847
1040
  :GET,
848
1041
  path,
849
1042
  endpoint,
850
- :header_params => header_params,
851
- :query_params => query_params,
852
- :body => post_body,
853
- :return_type => 'Array<OCI::FileStorage::Models::FileSystemSummary>')
1043
+ header_params: header_params,
1044
+ query_params: query_params,
1045
+ operation_signing_strategy: operation_signing_strategy,
1046
+ body: post_body,
1047
+ return_type: 'Array<OCI::FileStorage::Models::FileSystemSummary>'
1048
+ )
854
1049
  end
1050
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1051
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1052
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1053
+
1054
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1055
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1056
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1057
+
855
1058
 
856
1059
  # Lists the mount target resources in the specified compartment.
857
- #
1060
+ #
858
1061
  # @param [String] compartment_id The OCID of the compartment.
859
1062
  # @param [String] availability_domain The name of the availability domain.
860
- #
1063
+ #
861
1064
  # Example: `Uocm:PHX-AD-1`
862
- #
1065
+ #
863
1066
  # @param [Hash] opts the optional parameters
864
1067
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
865
- #
1068
+ #
866
1069
  # Example: `500`
867
- #
1070
+ #
868
1071
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
869
- #
1072
+ #
870
1073
  # @option opts [String] :display_name A user-friendly name. It does not have to be unique, and it is changeable.
871
- #
1074
+ #
872
1075
  # Example: `My resource`
873
- #
1076
+ #
874
1077
  # @option opts [String] :export_set_id The OCID of the export set.
875
1078
  # @option opts [String] :lifecycle_state Filter results by the specified lifecycle state. Must be a valid
876
1079
  # state for the resource type.
877
- #
1080
+ #
878
1081
  # Allowed values are: CREATING, ACTIVE, DELETING, DELETED, FAILED
879
1082
  # @option opts [String] :id Filter results by OCID. Must be an OCID of the correct type for
880
1083
  # the resouce type.
881
- #
1084
+ #
882
1085
  # @option opts [String] :sort_by The field to sort by. You can choose either value, but not both.
883
1086
  # By default, when you sort by time created, results are shown
884
1087
  # in descending order. When you sort by display name, results are
885
1088
  # shown in ascending order.
886
- #
1089
+ #
887
1090
  # Allowed values are: TIMECREATED, DISPLAYNAME
888
1091
  # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc', where 'asc' is
889
1092
  # ascending and 'desc' is descending.
890
- #
1093
+ #
891
1094
  # Allowed values are: ASC, DESC
892
- # @return [Response] A Response object with data of type Array<OCI::FileStorage::Models::MountTargetSummary>
1095
+ # @return [Response] A Response object with data of type Array<{OCI::FileStorage::Models::MountTargetSummary MountTargetSummary}>
893
1096
  def list_mount_targets(compartment_id, availability_domain, opts = {})
894
- logger.debug "Calling operation FileStorageClient#list_mount_targets." if logger
1097
+ logger.debug 'Calling operation FileStorageClient#list_mount_targets.' if logger
895
1098
 
896
1099
  raise "Missing the required parameter 'compartment_id' when calling list_mount_targets." if compartment_id.nil?
897
1100
  raise "Missing the required parameter 'availability_domain' when calling list_mount_targets." if availability_domain.nil?
898
1101
 
899
- if opts[:'lifecycle_state'] && !['CREATING', 'ACTIVE', 'DELETING', 'DELETED', 'FAILED'].include?(opts[:'lifecycle_state'])
1102
+ if opts[:lifecycle_state] && !%w[CREATING ACTIVE DELETING DELETED FAILED].include?(opts[:lifecycle_state])
900
1103
  raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETING, DELETED, FAILED.'
901
1104
  end
902
1105
 
903
- if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
1106
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
904
1107
  raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
905
1108
  end
906
1109
 
907
- if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
1110
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
908
1111
  raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
909
1112
  end
910
1113
 
911
- path = "/mountTargets"
1114
+ path = '/mountTargets'
1115
+ operation_signing_strategy = :standard
912
1116
 
913
1117
  # Query Params
914
1118
  query_params = {}
915
- query_params[:'compartmentId'] = compartment_id
916
- query_params[:'availabilityDomain'] = availability_domain
917
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
918
- query_params[:'page'] = opts[:'page'] if opts[:'page']
919
- query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
920
- query_params[:'exportSetId'] = opts[:'export_set_id'] if opts[:'export_set_id']
921
- query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
922
- query_params[:'id'] = opts[:'id'] if opts[:'id']
923
- query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
924
- query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
1119
+ query_params[:compartmentId] = compartment_id
1120
+ query_params[:availabilityDomain] = availability_domain
1121
+ query_params[:limit] = opts[:limit] if opts[:limit]
1122
+ query_params[:page] = opts[:page] if opts[:page]
1123
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1124
+ query_params[:exportSetId] = opts[:export_set_id] if opts[:export_set_id]
1125
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1126
+ query_params[:id] = opts[:id] if opts[:id]
1127
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1128
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
925
1129
 
926
1130
  # Header Params
927
1131
  header_params = {}
@@ -930,61 +1134,72 @@ module OCI
930
1134
 
931
1135
  post_body = nil
932
1136
 
933
- return @api_client.call_api(
1137
+ @api_client.call_api(
934
1138
  :GET,
935
1139
  path,
936
1140
  endpoint,
937
- :header_params => header_params,
938
- :query_params => query_params,
939
- :body => post_body,
940
- :return_type => 'Array<OCI::FileStorage::Models::MountTargetSummary>')
1141
+ header_params: header_params,
1142
+ query_params: query_params,
1143
+ operation_signing_strategy: operation_signing_strategy,
1144
+ body: post_body,
1145
+ return_type: 'Array<OCI::FileStorage::Models::MountTargetSummary>'
1146
+ )
941
1147
  end
1148
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1149
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1150
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1151
+
1152
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1153
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1154
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1155
+
942
1156
 
943
1157
  # Lists snapshots of the specified file system.
944
- #
1158
+ #
945
1159
  # @param [String] file_system_id The OCID of the file system.
946
1160
  # @param [Hash] opts the optional parameters
947
1161
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
948
- #
1162
+ #
949
1163
  # Example: `500`
950
- #
1164
+ #
951
1165
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
952
- #
1166
+ #
953
1167
  # @option opts [String] :lifecycle_state Filter results by the specified lifecycle state. Must be a valid
954
1168
  # state for the resource type.
955
- #
1169
+ #
956
1170
  # Allowed values are: CREATING, ACTIVE, DELETING, DELETED, FAILED
957
1171
  # @option opts [String] :id Filter results by OCID. Must be an OCID of the correct type for
958
1172
  # the resouce type.
959
- #
1173
+ #
960
1174
  # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc', where 'asc' is
961
1175
  # ascending and 'desc' is descending.
962
- #
1176
+ #
963
1177
  # Allowed values are: ASC, DESC
964
- # @return [Response] A Response object with data of type Array<OCI::FileStorage::Models::SnapshotSummary>
1178
+ # @return [Response] A Response object with data of type Array<{OCI::FileStorage::Models::SnapshotSummary SnapshotSummary}>
965
1179
  def list_snapshots(file_system_id, opts = {})
966
- logger.debug "Calling operation FileStorageClient#list_snapshots." if logger
1180
+ logger.debug 'Calling operation FileStorageClient#list_snapshots.' if logger
967
1181
 
968
1182
  raise "Missing the required parameter 'file_system_id' when calling list_snapshots." if file_system_id.nil?
969
1183
 
970
- if opts[:'lifecycle_state'] && !['CREATING', 'ACTIVE', 'DELETING', 'DELETED', 'FAILED'].include?(opts[:'lifecycle_state'])
1184
+ if opts[:lifecycle_state] && !%w[CREATING ACTIVE DELETING DELETED FAILED].include?(opts[:lifecycle_state])
971
1185
  raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETING, DELETED, FAILED.'
972
1186
  end
973
1187
 
974
- if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
1188
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
975
1189
  raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
976
1190
  end
977
1191
 
978
- path = "/snapshots"
1192
+ path = '/snapshots'
1193
+ operation_signing_strategy = :standard
979
1194
 
980
1195
  # Query Params
981
1196
  query_params = {}
982
- query_params[:'fileSystemId'] = file_system_id
983
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
984
- query_params[:'page'] = opts[:'page'] if opts[:'page']
985
- query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
986
- query_params[:'id'] = opts[:'id'] if opts[:'id']
987
- query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
1197
+ query_params[:fileSystemId] = file_system_id
1198
+ query_params[:limit] = opts[:limit] if opts[:limit]
1199
+ query_params[:page] = opts[:page] if opts[:page]
1200
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1201
+ query_params[:id] = opts[:id] if opts[:id]
1202
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
988
1203
 
989
1204
  # Header Params
990
1205
  header_params = {}
@@ -993,35 +1208,46 @@ module OCI
993
1208
 
994
1209
  post_body = nil
995
1210
 
996
- return @api_client.call_api(
1211
+ @api_client.call_api(
997
1212
  :GET,
998
1213
  path,
999
1214
  endpoint,
1000
- :header_params => header_params,
1001
- :query_params => query_params,
1002
- :body => post_body,
1003
- :return_type => 'Array<OCI::FileStorage::Models::SnapshotSummary>')
1215
+ header_params: header_params,
1216
+ query_params: query_params,
1217
+ operation_signing_strategy: operation_signing_strategy,
1218
+ body: post_body,
1219
+ return_type: 'Array<OCI::FileStorage::Models::SnapshotSummary>'
1220
+ )
1004
1221
  end
1222
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1223
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1224
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1225
+
1226
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1227
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1228
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1229
+
1005
1230
 
1006
1231
  # Updates the specified export set's information.
1007
1232
  # @param [String] export_set_id The OCID of the export set.
1008
- # @param [UpdateExportSetDetails] update_export_set_details Details object for updating an export set.
1233
+ # @param [OCI::FileStorage::Models::UpdateExportSetDetails] update_export_set_details Details object for updating an export set.
1009
1234
  # @param [Hash] opts the optional parameters
1010
1235
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
1011
1236
  # for a resource, set the `if-match` parameter to the value of the
1012
1237
  # etag from a previous GET or POST response for that resource.
1013
1238
  # The resource will be updated or deleted only if the etag you
1014
1239
  # provide matches the resource's current etag value.
1015
- #
1016
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::ExportSet
1240
+ #
1241
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::ExportSet ExportSet}
1017
1242
  def update_export_set(export_set_id, update_export_set_details, opts = {})
1018
- logger.debug "Calling operation FileStorageClient#update_export_set." if logger
1243
+ logger.debug 'Calling operation FileStorageClient#update_export_set.' if logger
1019
1244
 
1020
1245
  raise "Missing the required parameter 'export_set_id' when calling update_export_set." if export_set_id.nil?
1021
1246
  raise "Missing the required parameter 'update_export_set_details' when calling update_export_set." if update_export_set_details.nil?
1022
- raise "Parameter value for 'export_set_id' must not be blank" if OCI::Internal::Util::blank_string?(export_set_id)
1247
+ raise "Parameter value for 'export_set_id' must not be blank" if OCI::Internal::Util.blank_string?(export_set_id)
1023
1248
 
1024
- path = "/exportSets/{exportSetId}".sub('{exportSetId}', export_set_id.to_s)
1249
+ path = '/exportSets/{exportSetId}'.sub('{exportSetId}', export_set_id.to_s)
1250
+ operation_signing_strategy = :standard
1025
1251
 
1026
1252
  # Query Params
1027
1253
  query_params = {}
@@ -1030,41 +1256,52 @@ module OCI
1030
1256
  header_params = {}
1031
1257
  header_params['accept'] = 'application/json'
1032
1258
  header_params['content-type'] = 'application/json'
1033
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
1259
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1034
1260
 
1035
1261
  post_body = @api_client.object_to_http_body(update_export_set_details)
1036
1262
 
1037
- return @api_client.call_api(
1263
+ @api_client.call_api(
1038
1264
  :PUT,
1039
1265
  path,
1040
1266
  endpoint,
1041
- :header_params => header_params,
1042
- :query_params => query_params,
1043
- :body => post_body,
1044
- :return_type => 'OCI::FileStorage::Models::ExportSet')
1267
+ header_params: header_params,
1268
+ query_params: query_params,
1269
+ operation_signing_strategy: operation_signing_strategy,
1270
+ body: post_body,
1271
+ return_type: 'OCI::FileStorage::Models::ExportSet'
1272
+ )
1045
1273
  end
1274
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1275
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1276
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1277
+
1278
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1279
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1280
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1281
+
1046
1282
 
1047
1283
  # Updates the specified file system's information.
1048
1284
  # You can use this operation to rename a file system.
1049
- #
1285
+ #
1050
1286
  # @param [String] file_system_id The OCID of the file system.
1051
- # @param [UpdateFileSystemDetails] update_file_system_details Details object for updating a file system.
1287
+ # @param [OCI::FileStorage::Models::UpdateFileSystemDetails] update_file_system_details Details object for updating a file system.
1052
1288
  # @param [Hash] opts the optional parameters
1053
1289
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
1054
1290
  # for a resource, set the `if-match` parameter to the value of the
1055
1291
  # etag from a previous GET or POST response for that resource.
1056
1292
  # The resource will be updated or deleted only if the etag you
1057
1293
  # provide matches the resource's current etag value.
1058
- #
1059
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::FileSystem
1294
+ #
1295
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::FileSystem FileSystem}
1060
1296
  def update_file_system(file_system_id, update_file_system_details, opts = {})
1061
- logger.debug "Calling operation FileStorageClient#update_file_system." if logger
1297
+ logger.debug 'Calling operation FileStorageClient#update_file_system.' if logger
1062
1298
 
1063
1299
  raise "Missing the required parameter 'file_system_id' when calling update_file_system." if file_system_id.nil?
1064
1300
  raise "Missing the required parameter 'update_file_system_details' when calling update_file_system." if update_file_system_details.nil?
1065
- raise "Parameter value for 'file_system_id' must not be blank" if OCI::Internal::Util::blank_string?(file_system_id)
1301
+ raise "Parameter value for 'file_system_id' must not be blank" if OCI::Internal::Util.blank_string?(file_system_id)
1066
1302
 
1067
- path = "/fileSystems/{fileSystemId}".sub('{fileSystemId}', file_system_id.to_s)
1303
+ path = '/fileSystems/{fileSystemId}'.sub('{fileSystemId}', file_system_id.to_s)
1304
+ operation_signing_strategy = :standard
1068
1305
 
1069
1306
  # Query Params
1070
1307
  query_params = {}
@@ -1073,39 +1310,50 @@ module OCI
1073
1310
  header_params = {}
1074
1311
  header_params['accept'] = 'application/json'
1075
1312
  header_params['content-type'] = 'application/json'
1076
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
1313
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1077
1314
 
1078
1315
  post_body = @api_client.object_to_http_body(update_file_system_details)
1079
1316
 
1080
- return @api_client.call_api(
1317
+ @api_client.call_api(
1081
1318
  :PUT,
1082
1319
  path,
1083
1320
  endpoint,
1084
- :header_params => header_params,
1085
- :query_params => query_params,
1086
- :body => post_body,
1087
- :return_type => 'OCI::FileStorage::Models::FileSystem')
1321
+ header_params: header_params,
1322
+ query_params: query_params,
1323
+ operation_signing_strategy: operation_signing_strategy,
1324
+ body: post_body,
1325
+ return_type: 'OCI::FileStorage::Models::FileSystem'
1326
+ )
1088
1327
  end
1328
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1329
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1330
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1331
+
1332
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1333
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1334
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1335
+
1089
1336
 
1090
1337
  # Updates the specified mount target's information.
1091
1338
  # @param [String] mount_target_id The OCID of the mount target.
1092
- # @param [UpdateMountTargetDetails] update_mount_target_details Details object for updating a mount target.
1339
+ # @param [OCI::FileStorage::Models::UpdateMountTargetDetails] update_mount_target_details Details object for updating a mount target.
1093
1340
  # @param [Hash] opts the optional parameters
1094
1341
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
1095
1342
  # for a resource, set the `if-match` parameter to the value of the
1096
1343
  # etag from a previous GET or POST response for that resource.
1097
1344
  # The resource will be updated or deleted only if the etag you
1098
1345
  # provide matches the resource's current etag value.
1099
- #
1100
- # @return [Response] A Response object with data of type OCI::FileStorage::Models::MountTarget
1346
+ #
1347
+ # @return [Response] A Response object with data of type {OCI::FileStorage::Models::MountTarget MountTarget}
1101
1348
  def update_mount_target(mount_target_id, update_mount_target_details, opts = {})
1102
- logger.debug "Calling operation FileStorageClient#update_mount_target." if logger
1349
+ logger.debug 'Calling operation FileStorageClient#update_mount_target.' if logger
1103
1350
 
1104
1351
  raise "Missing the required parameter 'mount_target_id' when calling update_mount_target." if mount_target_id.nil?
1105
1352
  raise "Missing the required parameter 'update_mount_target_details' when calling update_mount_target." if update_mount_target_details.nil?
1106
- raise "Parameter value for 'mount_target_id' must not be blank" if OCI::Internal::Util::blank_string?(mount_target_id)
1353
+ raise "Parameter value for 'mount_target_id' must not be blank" if OCI::Internal::Util.blank_string?(mount_target_id)
1107
1354
 
1108
- path = "/mountTargets/{mountTargetId}".sub('{mountTargetId}', mount_target_id.to_s)
1355
+ path = '/mountTargets/{mountTargetId}'.sub('{mountTargetId}', mount_target_id.to_s)
1356
+ operation_signing_strategy = :standard
1109
1357
 
1110
1358
  # Query Params
1111
1359
  query_params = {}
@@ -1114,18 +1362,24 @@ module OCI
1114
1362
  header_params = {}
1115
1363
  header_params['accept'] = 'application/json'
1116
1364
  header_params['content-type'] = 'application/json'
1117
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
1365
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1118
1366
 
1119
1367
  post_body = @api_client.object_to_http_body(update_mount_target_details)
1120
1368
 
1121
- return @api_client.call_api(
1369
+ @api_client.call_api(
1122
1370
  :PUT,
1123
1371
  path,
1124
1372
  endpoint,
1125
- :header_params => header_params,
1126
- :query_params => query_params,
1127
- :body => post_body,
1128
- :return_type => 'OCI::FileStorage::Models::MountTarget')
1373
+ header_params: header_params,
1374
+ query_params: query_params,
1375
+ operation_signing_strategy: operation_signing_strategy,
1376
+ body: post_body,
1377
+ return_type: 'OCI::FileStorage::Models::MountTarget'
1378
+ )
1129
1379
  end
1380
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1381
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1382
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1130
1383
  end
1131
1384
  end
1385
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength