oci 2.0.5 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (290) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/oci.rb +3 -0
  4. data/lib/oci/api_client.rb +24 -3
  5. data/lib/oci/audit/audit_client.rb +19 -5
  6. data/lib/oci/audit/models/audit_event.rb +19 -0
  7. data/lib/oci/audit/models/configuration.rb +1 -0
  8. data/lib/oci/audit/models/update_configuration_details.rb +1 -0
  9. data/lib/oci/auth/auth.rb +16 -0
  10. data/lib/oci/auth/federation_client.rb +125 -0
  11. data/lib/oci/auth/internal/auth_token_request_signer.rb +20 -0
  12. data/lib/oci/auth/security_token_container.rb +25 -0
  13. data/lib/oci/auth/session_key_supplier.rb +37 -0
  14. data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +83 -0
  15. data/lib/oci/auth/signers/security_token_signer.rb +32 -0
  16. data/lib/oci/auth/signers/x509_federation_client_based_security_token_signer.rb +70 -0
  17. data/lib/oci/auth/url_based_certificate_retriever.rb +104 -0
  18. data/lib/oci/auth/util.rb +33 -0
  19. data/lib/oci/base_signer.rb +154 -0
  20. data/lib/oci/core/blockstorage_client.rb +19 -5
  21. data/lib/oci/core/compute_client.rb +19 -5
  22. data/lib/oci/core/models/attach_boot_volume_details.rb +5 -2
  23. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +5 -1
  24. data/lib/oci/core/models/attach_vnic_details.rb +6 -2
  25. data/lib/oci/core/models/attach_volume_details.rb +8 -3
  26. data/lib/oci/core/models/boot_volume.rb +22 -6
  27. data/lib/oci/core/models/boot_volume_attachment.rb +17 -7
  28. data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +2 -1
  29. data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +2 -1
  30. data/lib/oci/core/models/capture_console_history_details.rb +5 -1
  31. data/lib/oci/core/models/connect_local_peering_gateways_details.rb +3 -1
  32. data/lib/oci/core/models/console_history.rb +19 -6
  33. data/lib/oci/core/models/cpe.rb +18 -3
  34. data/lib/oci/core/models/create_cpe_details.rb +5 -2
  35. data/lib/oci/core/models/create_cross_connect_details.rb +10 -3
  36. data/lib/oci/core/models/create_cross_connect_group_details.rb +3 -1
  37. data/lib/oci/core/models/create_dhcp_details.rb +9 -3
  38. data/lib/oci/core/models/create_drg_attachment_details.rb +5 -2
  39. data/lib/oci/core/models/create_drg_details.rb +3 -1
  40. data/lib/oci/core/models/create_image_details.rb +9 -1
  41. data/lib/oci/core/models/create_instance_console_connection_details.rb +9 -2
  42. data/lib/oci/core/models/create_internet_gateway_details.rb +8 -4
  43. data/lib/oci/core/models/create_ip_sec_connection_details.rb +9 -4
  44. data/lib/oci/core/models/create_local_peering_gateway_details.rb +5 -2
  45. data/lib/oci/core/models/create_private_ip_details.rb +7 -1
  46. data/lib/oci/core/models/create_route_table_details.rb +9 -3
  47. data/lib/oci/core/models/create_security_list_details.rb +11 -4
  48. data/lib/oci/core/models/create_subnet_details.rb +17 -5
  49. data/lib/oci/core/models/create_vcn_details.rb +8 -2
  50. data/lib/oci/core/models/create_virtual_circuit_details.rb +14 -2
  51. data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +2 -1
  52. data/lib/oci/core/models/create_vnic_details.rb +14 -3
  53. data/lib/oci/core/models/create_volume_backup_details.rb +5 -1
  54. data/lib/oci/core/models/create_volume_details.rb +11 -2
  55. data/lib/oci/core/models/cross_connect.rb +26 -0
  56. data/lib/oci/core/models/cross_connect_group.rb +19 -0
  57. data/lib/oci/core/models/cross_connect_location.rb +5 -2
  58. data/lib/oci/core/models/cross_connect_mapping.rb +31 -0
  59. data/lib/oci/core/models/cross_connect_port_speed_shape.rb +6 -2
  60. data/lib/oci/core/models/cross_connect_status.rb +6 -1
  61. data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +2 -1
  62. data/lib/oci/core/models/dhcp_dns_option.rb +7 -1
  63. data/lib/oci/core/models/dhcp_option.rb +9 -1
  64. data/lib/oci/core/models/dhcp_options.rb +31 -6
  65. data/lib/oci/core/models/dhcp_search_domain_option.rb +5 -1
  66. data/lib/oci/core/models/drg.rb +18 -3
  67. data/lib/oci/core/models/drg_attachment.rb +15 -5
  68. data/lib/oci/core/models/egress_security_rule.rb +10 -3
  69. data/lib/oci/core/models/export_image_details.rb +13 -1
  70. data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +3 -0
  71. data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +2 -1
  72. data/lib/oci/core/models/fast_connect_provider_service.rb +17 -6
  73. data/lib/oci/core/models/i_scsi_volume_attachment.rb +17 -3
  74. data/lib/oci/core/models/icmp_options.rb +11 -1
  75. data/lib/oci/core/models/image.rb +28 -7
  76. data/lib/oci/core/models/image_source_details.rb +4 -1
  77. data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +7 -3
  78. data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +3 -1
  79. data/lib/oci/core/models/ingress_security_rule.rb +10 -3
  80. data/lib/oci/core/models/instance.rb +33 -7
  81. data/lib/oci/core/models/instance_console_connection.rb +15 -0
  82. data/lib/oci/core/models/instance_credentials.rb +5 -2
  83. data/lib/oci/core/models/instance_source_details.rb +3 -1
  84. data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +2 -1
  85. data/lib/oci/core/models/instance_source_via_image_details.rb +2 -1
  86. data/lib/oci/core/models/internet_gateway.rb +20 -5
  87. data/lib/oci/core/models/ip_sec_connection.rb +23 -6
  88. data/lib/oci/core/models/ip_sec_connection_device_config.rb +7 -2
  89. data/lib/oci/core/models/ip_sec_connection_device_status.rb +7 -2
  90. data/lib/oci/core/models/launch_instance_details.rb +20 -3
  91. data/lib/oci/core/models/launch_options.rb +10 -4
  92. data/lib/oci/core/models/letter_of_authority.rb +10 -0
  93. data/lib/oci/core/models/local_peering_gateway.rb +29 -9
  94. data/lib/oci/core/models/port_range.rb +4 -2
  95. data/lib/oci/core/models/private_ip.rb +41 -1
  96. data/lib/oci/core/models/route_rule.rb +7 -2
  97. data/lib/oci/core/models/route_table.rb +22 -5
  98. data/lib/oci/core/models/security_list.rb +32 -8
  99. data/lib/oci/core/models/shape.rb +5 -1
  100. data/lib/oci/core/models/subnet.rb +38 -10
  101. data/lib/oci/core/models/tcp_options.rb +5 -0
  102. data/lib/oci/core/models/tunnel_config.rb +6 -2
  103. data/lib/oci/core/models/tunnel_status.rb +7 -1
  104. data/lib/oci/core/models/udp_options.rb +5 -0
  105. data/lib/oci/core/models/update_boot_volume_details.rb +1 -0
  106. data/lib/oci/core/models/update_console_history_details.rb +3 -0
  107. data/lib/oci/core/models/update_cpe_details.rb +1 -0
  108. data/lib/oci/core/models/update_cross_connect_details.rb +5 -1
  109. data/lib/oci/core/models/update_cross_connect_group_details.rb +1 -0
  110. data/lib/oci/core/models/update_dhcp_details.rb +4 -0
  111. data/lib/oci/core/models/update_drg_attachment_details.rb +1 -0
  112. data/lib/oci/core/models/update_drg_details.rb +1 -0
  113. data/lib/oci/core/models/update_image_details.rb +3 -0
  114. data/lib/oci/core/models/update_instance_details.rb +3 -0
  115. data/lib/oci/core/models/update_internet_gateway_details.rb +3 -1
  116. data/lib/oci/core/models/update_ip_sec_connection_details.rb +1 -0
  117. data/lib/oci/core/models/update_local_peering_gateway_details.rb +1 -0
  118. data/lib/oci/core/models/update_private_ip_details.rb +5 -0
  119. data/lib/oci/core/models/update_route_table_details.rb +4 -0
  120. data/lib/oci/core/models/update_security_list_details.rb +5 -0
  121. data/lib/oci/core/models/update_subnet_details.rb +3 -0
  122. data/lib/oci/core/models/update_vcn_details.rb +3 -0
  123. data/lib/oci/core/models/update_virtual_circuit_details.rb +7 -0
  124. data/lib/oci/core/models/update_vnic_details.rb +4 -1
  125. data/lib/oci/core/models/update_volume_backup_details.rb +3 -0
  126. data/lib/oci/core/models/update_volume_details.rb +3 -0
  127. data/lib/oci/core/models/vcn.rb +24 -4
  128. data/lib/oci/core/models/virtual_circuit.rb +41 -0
  129. data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +5 -1
  130. data/lib/oci/core/models/virtual_circuit_public_prefix.rb +8 -2
  131. data/lib/oci/core/models/vnic.rb +38 -9
  132. data/lib/oci/core/models/vnic_attachment.rb +21 -7
  133. data/lib/oci/core/models/volume.rb +28 -8
  134. data/lib/oci/core/models/volume_attachment.rb +25 -8
  135. data/lib/oci/core/models/volume_backup.rb +26 -5
  136. data/lib/oci/core/models/volume_source_details.rb +3 -0
  137. data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +3 -1
  138. data/lib/oci/core/models/volume_source_from_volume_details.rb +3 -1
  139. data/lib/oci/core/virtual_network_client.rb +19 -5
  140. data/lib/oci/database/database_client.rb +19 -5
  141. data/lib/oci/database/models/backup.rb +13 -0
  142. data/lib/oci/database/models/backup_summary.rb +13 -0
  143. data/lib/oci/database/models/create_backup_details.rb +4 -2
  144. data/lib/oci/database/models/create_data_guard_association_details.rb +18 -4
  145. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -0
  146. data/lib/oci/database/models/create_database_details.rb +9 -2
  147. data/lib/oci/database/models/create_database_from_backup_details.rb +6 -3
  148. data/lib/oci/database/models/create_db_home_details.rb +5 -1
  149. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +5 -1
  150. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +6 -1
  151. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +4 -0
  152. data/lib/oci/database/models/data_guard_association.rb +32 -7
  153. data/lib/oci/database/models/data_guard_association_summary.rb +32 -7
  154. data/lib/oci/database/models/database.rb +22 -5
  155. data/lib/oci/database/models/database_summary.rb +22 -5
  156. data/lib/oci/database/models/db_backup_config.rb +5 -1
  157. data/lib/oci/database/models/db_home.rb +22 -5
  158. data/lib/oci/database/models/db_home_summary.rb +22 -5
  159. data/lib/oci/database/models/db_node.rb +17 -5
  160. data/lib/oci/database/models/db_node_summary.rb +17 -5
  161. data/lib/oci/database/models/db_system.rb +56 -12
  162. data/lib/oci/database/models/db_system_shape_summary.rb +11 -2
  163. data/lib/oci/database/models/db_system_summary.rb +56 -12
  164. data/lib/oci/database/models/db_version_summary.rb +8 -2
  165. data/lib/oci/database/models/failover_data_guard_association_details.rb +4 -1
  166. data/lib/oci/database/models/launch_db_system_details.rb +27 -8
  167. data/lib/oci/database/models/patch.rb +18 -4
  168. data/lib/oci/database/models/patch_details.rb +6 -0
  169. data/lib/oci/database/models/patch_history_entry.rb +12 -4
  170. data/lib/oci/database/models/patch_history_entry_summary.rb +12 -4
  171. data/lib/oci/database/models/patch_summary.rb +18 -4
  172. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +4 -1
  173. data/lib/oci/database/models/restore_database_details.rb +4 -1
  174. data/lib/oci/database/models/switchover_data_guard_association_details.rb +4 -1
  175. data/lib/oci/database/models/update_database_details.rb +1 -0
  176. data/lib/oci/database/models/update_db_home_details.rb +3 -0
  177. data/lib/oci/database/models/update_db_system_details.rb +6 -0
  178. data/lib/oci/identity/identity.rb +3 -0
  179. data/lib/oci/identity/identity_client.rb +290 -70
  180. data/lib/oci/identity/models/add_user_to_group_details.rb +4 -2
  181. data/lib/oci/identity/models/api_key.rb +18 -0
  182. data/lib/oci/identity/models/availability_domain.rb +6 -0
  183. data/lib/oci/identity/models/compartment.rb +38 -10
  184. data/lib/oci/identity/models/create_api_key_details.rb +2 -1
  185. data/lib/oci/identity/models/create_compartment_details.rb +14 -7
  186. data/lib/oci/identity/models/create_customer_secret_key_details.rb +2 -1
  187. data/lib/oci/identity/models/create_dynamic_group_details.rb +160 -0
  188. data/lib/oci/identity/models/create_group_details.rb +14 -7
  189. data/lib/oci/identity/models/create_identity_provider_details.rb +19 -9
  190. data/lib/oci/identity/models/create_idp_group_mapping_details.rb +4 -2
  191. data/lib/oci/identity/models/create_policy_details.rb +18 -9
  192. data/lib/oci/identity/models/create_region_subscription_details.rb +2 -1
  193. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +10 -2
  194. data/lib/oci/identity/models/create_swift_password_details.rb +2 -1
  195. data/lib/oci/identity/models/create_tag_details.rb +12 -6
  196. data/lib/oci/identity/models/create_tag_namespace_details.rb +14 -7
  197. data/lib/oci/identity/models/create_user_details.rb +14 -7
  198. data/lib/oci/identity/models/customer_secret_key.rb +16 -0
  199. data/lib/oci/identity/models/customer_secret_key_summary.rb +10 -0
  200. data/lib/oci/identity/models/dynamic_group.rb +239 -0
  201. data/lib/oci/identity/models/group.rb +35 -11
  202. data/lib/oci/identity/models/identity_provider.rb +36 -12
  203. data/lib/oci/identity/models/idp_group_mapping.rb +27 -7
  204. data/lib/oci/identity/models/policy.rb +38 -11
  205. data/lib/oci/identity/models/region.rb +10 -0
  206. data/lib/oci/identity/models/region_subscription.rb +16 -5
  207. data/lib/oci/identity/models/saml2_identity_provider.rb +20 -3
  208. data/lib/oci/identity/models/swift_password.rb +17 -1
  209. data/lib/oci/identity/models/tag.rb +30 -13
  210. data/lib/oci/identity/models/tag_namespace.rb +25 -11
  211. data/lib/oci/identity/models/tag_namespace_summary.rb +23 -10
  212. data/lib/oci/identity/models/tag_summary.rb +21 -8
  213. data/lib/oci/identity/models/tenancy.rb +21 -4
  214. data/lib/oci/identity/models/ui_password.rb +10 -0
  215. data/lib/oci/identity/models/update_compartment_details.rb +10 -4
  216. data/lib/oci/identity/models/update_customer_secret_key_details.rb +1 -0
  217. data/lib/oci/identity/models/update_dynamic_group_details.rb +134 -0
  218. data/lib/oci/identity/models/update_group_details.rb +9 -4
  219. data/lib/oci/identity/models/update_identity_provider_details.rb +12 -5
  220. data/lib/oci/identity/models/update_idp_group_mapping_details.rb +2 -0
  221. data/lib/oci/identity/models/update_policy_details.rb +12 -5
  222. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +5 -0
  223. data/lib/oci/identity/models/update_state_details.rb +2 -1
  224. data/lib/oci/identity/models/update_swift_password_details.rb +1 -0
  225. data/lib/oci/identity/models/update_tag_details.rb +15 -7
  226. data/lib/oci/identity/models/update_tag_namespace_details.rb +15 -7
  227. data/lib/oci/identity/models/update_user_details.rb +9 -4
  228. data/lib/oci/identity/models/user.rb +38 -11
  229. data/lib/oci/identity/models/user_group_membership.rb +16 -6
  230. data/lib/oci/load_balancer/load_balancer.rb +1 -0
  231. data/lib/oci/load_balancer/load_balancer_client.rb +24 -9
  232. data/lib/oci/load_balancer/models/backend.rb +20 -10
  233. data/lib/oci/load_balancer/models/backend_details.rb +12 -5
  234. data/lib/oci/load_balancer/models/backend_health.rb +6 -2
  235. data/lib/oci/load_balancer/models/backend_set.rb +14 -2
  236. data/lib/oci/load_balancer/models/backend_set_details.rb +11 -1
  237. data/lib/oci/load_balancer/models/backend_set_health.rb +15 -5
  238. data/lib/oci/load_balancer/models/certificate.rb +10 -3
  239. data/lib/oci/load_balancer/models/certificate_details.rb +10 -1
  240. data/lib/oci/load_balancer/models/connection_configuration.rb +157 -0
  241. data/lib/oci/load_balancer/models/create_backend_details.rb +15 -5
  242. data/lib/oci/load_balancer/models/create_backend_set_details.rb +13 -2
  243. data/lib/oci/load_balancer/models/create_certificate_details.rb +10 -1
  244. data/lib/oci/load_balancer/models/create_listener_details.rb +28 -5
  245. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +14 -5
  246. data/lib/oci/load_balancer/models/health_check_result.rb +10 -4
  247. data/lib/oci/load_balancer/models/health_checker.rb +15 -4
  248. data/lib/oci/load_balancer/models/health_checker_details.rb +10 -1
  249. data/lib/oci/load_balancer/models/ip_address.rb +5 -2
  250. data/lib/oci/load_balancer/models/listener.rb +28 -5
  251. data/lib/oci/load_balancer/models/listener_details.rb +23 -4
  252. data/lib/oci/load_balancer/models/load_balancer.rb +30 -7
  253. data/lib/oci/load_balancer/models/load_balancer_health.rb +15 -5
  254. data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +5 -2
  255. data/lib/oci/load_balancer/models/load_balancer_policy.rb +6 -1
  256. data/lib/oci/load_balancer/models/load_balancer_protocol.rb +3 -1
  257. data/lib/oci/load_balancer/models/load_balancer_shape.rb +8 -1
  258. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +14 -2
  259. data/lib/oci/load_balancer/models/ssl_configuration.rb +11 -4
  260. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +6 -2
  261. data/lib/oci/load_balancer/models/update_backend_details.rb +12 -7
  262. data/lib/oci/load_balancer/models/update_backend_set_details.rb +12 -1
  263. data/lib/oci/load_balancer/models/update_health_checker_details.rb +16 -7
  264. data/lib/oci/load_balancer/models/update_listener_details.rb +23 -4
  265. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +3 -1
  266. data/lib/oci/load_balancer/models/work_request.rb +20 -6
  267. data/lib/oci/load_balancer/models/work_request_error.rb +5 -1
  268. data/lib/oci/object_storage/models/bucket.rb +27 -8
  269. data/lib/oci/object_storage/models/bucket_summary.rb +16 -6
  270. data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +7 -1
  271. data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +8 -2
  272. data/lib/oci/object_storage/models/create_bucket_details.rb +15 -4
  273. data/lib/oci/object_storage/models/create_multipart_upload_details.rb +10 -1
  274. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +7 -3
  275. data/lib/oci/object_storage/models/list_objects.rb +8 -1
  276. data/lib/oci/object_storage/models/multipart_upload.rb +20 -5
  277. data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +13 -4
  278. data/lib/oci/object_storage/models/namespace_metadata.rb +8 -3
  279. data/lib/oci/object_storage/models/object_summary.rb +9 -1
  280. data/lib/oci/object_storage/models/preauthenticated_request.rb +20 -6
  281. data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +13 -5
  282. data/lib/oci/object_storage/models/rename_object_details.rb +11 -2
  283. data/lib/oci/object_storage/models/restore_objects_details.rb +2 -1
  284. data/lib/oci/object_storage/models/update_bucket_details.rb +13 -2
  285. data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +5 -0
  286. data/lib/oci/object_storage/object_storage_client.rb +26 -12
  287. data/lib/oci/regions.rb +8 -1
  288. data/lib/oci/signer.rb +5 -124
  289. data/lib/oci/version.rb +1 -1
  290. metadata +31 -2
@@ -4,17 +4,19 @@ require 'date'
4
4
 
5
5
  module OCI
6
6
  class Identity::Models::AddUserToGroupDetails
7
- # The OCID of the user.
7
+ # **[Required]** The OCID of the user.
8
8
  # @return [String]
9
9
  attr_accessor :user_id
10
10
 
11
- # The OCID of the group.
11
+ # **[Required]** The OCID of the group.
12
12
  # @return [String]
13
13
  attr_accessor :group_id
14
14
 
15
15
 
16
16
  # Initializes the object
17
17
  # @param [Hash] attributes Model attributes in the form of hash
18
+ # @option attributes [String] :userId The value to assign to the {#user_id} property
19
+ # @option attributes [String] :groupId The value to assign to the {#group_id} property
18
20
  def initialize(attributes = {})
19
21
  return unless attributes.is_a?(Hash)
20
22
 
@@ -3,6 +3,17 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # A PEM-format RSA credential for securing requests to the Oracle Cloud Infrastructure REST API. Also known
7
+ # as an *API signing key*. Specifically, this is the public key from the key pair. The private key remains with
8
+ # the user calling the API. For information about generating a key pair
9
+ # in the required PEM format, see [Required Keys and OCIDs](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm).
10
+ #
11
+ # **Important:** This is **not** the SSH key for accessing compute instances.
12
+ #
13
+ # Each user can have a maximum of three API signing keys.
14
+ #
15
+ # For more information about user credentials, see [User Credentials](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/usercredentials.htm).
16
+ #
6
17
  class Identity::Models::ApiKey
7
18
 
8
19
  LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_CREATING = 'CREATING',
@@ -50,6 +61,13 @@ module OCI
50
61
 
51
62
  # Initializes the object
52
63
  # @param [Hash] attributes Model attributes in the form of hash
64
+ # @option attributes [String] :keyId The value to assign to the {#key_id} property
65
+ # @option attributes [String] :keyValue The value to assign to the {#key_value} property
66
+ # @option attributes [String] :fingerprint The value to assign to the {#fingerprint} property
67
+ # @option attributes [String] :userId The value to assign to the {#user_id} property
68
+ # @option attributes [DateTime] :timeCreated The value to assign to the {#time_created} property
69
+ # @option attributes [String] :lifecycleState The value to assign to the {#lifecycle_state} property
70
+ # @option attributes [Integer] :inactiveStatus The value to assign to the {#inactive_status} property
53
71
  def initialize(attributes = {})
54
72
  return unless attributes.is_a?(Hash)
55
73
 
@@ -3,6 +3,10 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # One or more isolated, fault-tolerant Oracle data centers that host cloud resources such as instances, volumes,
7
+ # and subnets. A region contains several Availability Domains. For more information, see
8
+ # [Regions and Availability Domains](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm).
9
+ #
6
10
  class Identity::Models::AvailabilityDomain
7
11
  # The name of the Availability Domain.
8
12
  # @return [String]
@@ -15,6 +19,8 @@ module OCI
15
19
 
16
20
  # Initializes the object
17
21
  # @param [Hash] attributes Model attributes in the form of hash
22
+ # @option attributes [String] :name The value to assign to the {#name} property
23
+ # @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
18
24
  def initialize(attributes = {})
19
25
  return unless attributes.is_a?(Hash)
20
26
 
@@ -3,6 +3,23 @@
3
3
  require 'date'
4
4
 
5
5
  module OCI
6
+ # A collection of related resources. Compartments are a fundamental component of Oracle Cloud Infrastructure
7
+ # for organizing and isolating your cloud resources. You use them to clearly separate resources for the purposes
8
+ # of measuring usage and billing, access (through the use of IAM Service policies), and isolation (separating the
9
+ # resources for one project or business unit from another). A common approach is to create a compartment for each
10
+ # major part of your organization. For more information, see
11
+ # [Overview of the IAM Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm) and also
12
+ # [Setting Up Your Tenancy](https://docs.us-phoenix-1.oraclecloud.com/Content/GSG/Concepts/settinguptenancy.htm).
13
+ #
14
+ # To place a resource in a compartment, simply specify the compartment ID in the \"Create\" request object when
15
+ # initially creating the resource. For example, to launch an instance into a particular compartment, specify
16
+ # that compartment's OCID in the `LaunchInstance` request. You can't move an existing resource from one
17
+ # compartment to another.
18
+ #
19
+ # To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
20
+ # talk to an administrator. If you're an administrator who needs to write policies to give users access,
21
+ # see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
22
+ #
6
23
  class Identity::Models::Compartment
7
24
 
8
25
  LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_CREATING = 'CREATING',
@@ -12,32 +29,32 @@ module OCI
12
29
  LIFECYCLE_STATE_DELETED = 'DELETED',
13
30
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
14
31
 
15
- # The OCID of the compartment.
32
+ # **[Required]** The OCID of the compartment.
16
33
  # @return [String]
17
34
  attr_accessor :id
18
35
 
19
- # The OCID of the tenancy containing the compartment.
36
+ # **[Required]** The OCID of the tenancy containing the compartment.
20
37
  # @return [String]
21
38
  attr_accessor :compartment_id
22
39
 
23
- # The name you assign to the compartment during creation. The name must be unique across all
40
+ # **[Required]** The name you assign to the compartment during creation. The name must be unique across all
24
41
  # compartments in the tenancy.
25
42
  #
26
43
  # @return [String]
27
44
  attr_accessor :name
28
45
 
29
- # The description you assign to the compartment. Does not have to be unique, and it's changeable.
46
+ # **[Required]** The description you assign to the compartment. Does not have to be unique, and it's changeable.
30
47
  # @return [String]
31
48
  attr_accessor :description
32
49
 
33
- # Date and time the compartment was created, in the format defined by RFC3339.
50
+ # **[Required]** Date and time the compartment was created, in the format defined by RFC3339.
34
51
  #
35
52
  # Example: `2016-08-25T21:10:29.600Z`
36
53
  #
37
54
  # @return [DateTime]
38
55
  attr_accessor :time_created
39
56
 
40
- # The compartment's current state. After creating a compartment, make sure its `lifecycleState` changes from
57
+ # **[Required]** The compartment's current state. After creating a compartment, make sure its `lifecycleState` changes from
41
58
  # CREATING to ACTIVE before using it.
42
59
  #
43
60
  # @return [String]
@@ -47,14 +64,16 @@ module OCI
47
64
  # @return [Integer]
48
65
  attr_accessor :inactive_status
49
66
 
50
- # Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
51
- # Example: `{\"bar-key\": \"value\"}`
67
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
68
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
69
+ # Example: `{\"Department\": \"Finance\"}`
52
70
  #
53
71
  # @return [Hash<String, String>]
54
72
  attr_accessor :freeform_tags
55
73
 
56
- # Usage of predefined tag keys. These predefined keys are scoped to namespaces.
57
- # Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
74
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
75
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
76
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
58
77
  #
59
78
  # @return [Hash<String, Hash<String, Object>>]
60
79
  attr_accessor :defined_tags
@@ -62,6 +81,15 @@ module OCI
62
81
 
63
82
  # Initializes the object
64
83
  # @param [Hash] attributes Model attributes in the form of hash
84
+ # @option attributes [String] :id The value to assign to the {#id} property
85
+ # @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
86
+ # @option attributes [String] :name The value to assign to the {#name} property
87
+ # @option attributes [String] :description The value to assign to the {#description} property
88
+ # @option attributes [DateTime] :timeCreated The value to assign to the {#time_created} property
89
+ # @option attributes [String] :lifecycleState The value to assign to the {#lifecycle_state} property
90
+ # @option attributes [Integer] :inactiveStatus The value to assign to the {#inactive_status} property
91
+ # @option attributes [Hash<String, String>] :freeformTags The value to assign to the {#freeform_tags} property
92
+ # @option attributes [Hash<String, Hash<String, Object>>] :definedTags The value to assign to the {#defined_tags} property
65
93
  def initialize(attributes = {})
66
94
  return unless attributes.is_a?(Hash)
67
95
 
@@ -4,13 +4,14 @@ require 'date'
4
4
 
5
5
  module OCI
6
6
  class Identity::Models::CreateApiKeyDetails
7
- # The public key. Must be an RSA key in PEM format.
7
+ # **[Required]** The public key. Must be an RSA key in PEM format.
8
8
  # @return [String]
9
9
  attr_accessor :key
10
10
 
11
11
 
12
12
  # Initializes the object
13
13
  # @param [Hash] attributes Model attributes in the form of hash
14
+ # @option attributes [String] :key The value to assign to the {#key} property
14
15
  def initialize(attributes = {})
15
16
  return unless attributes.is_a?(Hash)
16
17
 
@@ -4,29 +4,31 @@ require 'date'
4
4
 
5
5
  module OCI
6
6
  class Identity::Models::CreateCompartmentDetails
7
- # The OCID of the tenancy containing the compartment.
7
+ # **[Required]** The OCID of the tenancy containing the compartment.
8
8
  # @return [String]
9
9
  attr_accessor :compartment_id
10
10
 
11
- # The name you assign to the compartment during creation. The name must be unique across all compartments
11
+ # **[Required]** The name you assign to the compartment during creation. The name must be unique across all compartments
12
12
  # in the tenancy.
13
13
  #
14
14
  # @return [String]
15
15
  attr_accessor :name
16
16
 
17
- # The description you assign to the compartment during creation. Does not have to be unique, and it's changeable.
17
+ # **[Required]** The description you assign to the compartment during creation. Does not have to be unique, and it's changeable.
18
18
  #
19
19
  # @return [String]
20
20
  attr_accessor :description
21
21
 
22
- # Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
23
- # Example: `{\"bar-key\": \"value\"}`
22
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
23
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
24
+ # Example: `{\"Department\": \"Finance\"}`
24
25
  #
25
26
  # @return [Hash<String, String>]
26
27
  attr_accessor :freeform_tags
27
28
 
28
- # Usage of predefined tag keys. These predefined keys are scoped to namespaces.
29
- # Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
29
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
30
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
31
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
30
32
  #
31
33
  # @return [Hash<String, Hash<String, Object>>]
32
34
  attr_accessor :defined_tags
@@ -34,6 +36,11 @@ module OCI
34
36
 
35
37
  # Initializes the object
36
38
  # @param [Hash] attributes Model attributes in the form of hash
39
+ # @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
40
+ # @option attributes [String] :name The value to assign to the {#name} property
41
+ # @option attributes [String] :description The value to assign to the {#description} property
42
+ # @option attributes [Hash<String, String>] :freeformTags The value to assign to the {#freeform_tags} property
43
+ # @option attributes [Hash<String, Hash<String, Object>>] :definedTags The value to assign to the {#defined_tags} property
37
44
  def initialize(attributes = {})
38
45
  return unless attributes.is_a?(Hash)
39
46
 
@@ -4,7 +4,7 @@ require 'date'
4
4
 
5
5
  module OCI
6
6
  class Identity::Models::CreateCustomerSecretKeyDetails
7
- # The name you assign to the secret key during creation. Does not have to be unique, and it's changeable.
7
+ # **[Required]** The name you assign to the secret key during creation. Does not have to be unique, and it's changeable.
8
8
  #
9
9
  # @return [String]
10
10
  attr_accessor :display_name
@@ -12,6 +12,7 @@ module OCI
12
12
 
13
13
  # Initializes the object
14
14
  # @param [Hash] attributes Model attributes in the form of hash
15
+ # @option attributes [String] :displayName The value to assign to the {#display_name} property
15
16
  def initialize(attributes = {})
16
17
  return unless attributes.is_a?(Hash)
17
18
 
@@ -0,0 +1,160 @@
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ require 'date'
4
+
5
+ module OCI
6
+ # Properties for creating a dynamic group
7
+ class Identity::Models::CreateDynamicGroupDetails
8
+ # **[Required]** The OCID of the tenancy containing the group.
9
+ # @return [String]
10
+ attr_accessor :compartment_id
11
+
12
+ # **[Required]** The name you assign to the group during creation. The name must be unique across all groups
13
+ # in the tenancy and cannot be changed.
14
+ #
15
+ # @return [String]
16
+ attr_accessor :name
17
+
18
+ # **[Required]** The matching rule to dynamically match an instance certificate to this dynamic group
19
+ # @return [String]
20
+ attr_accessor :matching_rule
21
+
22
+ # **[Required]** The description you assign to the group during creation. Does not have to be unique, and it's changeable.
23
+ # @return [String]
24
+ attr_accessor :description
25
+
26
+
27
+ # Initializes the object
28
+ # @param [Hash] attributes Model attributes in the form of hash
29
+ # @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
30
+ # @option attributes [String] :name The value to assign to the {#name} property
31
+ # @option attributes [String] :matchingRule The value to assign to the {#matching_rule} property
32
+ # @option attributes [String] :description The value to assign to the {#description} property
33
+ def initialize(attributes = {})
34
+ return unless attributes.is_a?(Hash)
35
+
36
+ # convert string to symbol for hash key
37
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
38
+
39
+ if attributes[:'compartmentId']
40
+ self.compartment_id = attributes[:'compartmentId']
41
+ end
42
+
43
+ if attributes[:'name']
44
+ self.name = attributes[:'name']
45
+ end
46
+
47
+ if attributes[:'matchingRule']
48
+ self.matching_rule = attributes[:'matchingRule']
49
+ end
50
+
51
+ if attributes[:'description']
52
+ self.description = attributes[:'description']
53
+ end
54
+
55
+ end
56
+
57
+ # Checks equality by comparing each attribute.
58
+ # @param [Object] other_object to be compared
59
+ def ==(other_object)
60
+ return true if self.equal?(other_object)
61
+ self.class == other_object.class &&
62
+ compartment_id == other_object.compartment_id &&
63
+ name == other_object.name &&
64
+ matching_rule == other_object.matching_rule &&
65
+ description == other_object.description
66
+ end
67
+
68
+ # @see the `==` method
69
+ # @param [Object] other_object to be compared
70
+ def eql?(other_object)
71
+ self == other_object
72
+ end
73
+
74
+ # Calculates hash code according to all attributes.
75
+ # @return [Fixnum] Hash code
76
+ def hash
77
+ [compartment_id, name, matching_rule, description].hash
78
+ end
79
+
80
+ # Builds the object from hash
81
+ # @param [Hash] attributes Model attributes in the form of hash
82
+ # @return [Object] Returns the model itself
83
+ def build_from_hash(attributes)
84
+ return nil unless attributes.is_a?(Hash)
85
+ self.class.swagger_types.each_pair do |key, type|
86
+ if type =~ /^Array<(.*)>/i
87
+ # check to ensure the input is an array given that the the attribute
88
+ # is documented as an array but the input is not
89
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
90
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
91
+ end
92
+ elsif !attributes[self.class.attribute_map[key]].nil?
93
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
94
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
95
+ end
96
+
97
+ self
98
+ end
99
+
100
+ # Returns the string representation of the object
101
+ # @return [String] String presentation of the object
102
+ def to_s
103
+ to_hash.to_s
104
+ end
105
+
106
+ # Returns the object in the form of hash
107
+ # @return [Hash] Returns the object in the form of hash
108
+ def to_hash
109
+ hash = {}
110
+ self.class.attribute_map.each_pair do |attr, param|
111
+ value = public_method(attr).call
112
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
113
+ hash[param] = _to_hash(value)
114
+ end
115
+ hash
116
+ end
117
+
118
+ private
119
+
120
+ # Outputs non-array value in the form of hash
121
+ # For object, use to_hash. Otherwise, just return the value
122
+ # @param [Object] value Any valid value
123
+ # @return [Hash] Returns the value in the form of hash
124
+ def _to_hash(value)
125
+ if value.is_a?(Array)
126
+ value.compact.map{ |v| _to_hash(v) }
127
+ elsif value.is_a?(Hash)
128
+ {}.tap do |hash|
129
+ value.each { |k, v| hash[k] = _to_hash(v) }
130
+ end
131
+ elsif value.respond_to? :to_hash
132
+ value.to_hash
133
+ else
134
+ value
135
+ end
136
+ end
137
+
138
+
139
+
140
+ # Attribute mapping from ruby-style variable name to JSON key.
141
+ def self.attribute_map
142
+ {
143
+ :'compartment_id' => :'compartmentId',
144
+ :'name' => :'name',
145
+ :'matching_rule' => :'matchingRule',
146
+ :'description' => :'description'
147
+ }
148
+ end
149
+
150
+ # Attribute type mapping.
151
+ def self.swagger_types
152
+ {
153
+ :'compartment_id' => :'String',
154
+ :'name' => :'String',
155
+ :'matching_rule' => :'String',
156
+ :'description' => :'String'
157
+ }
158
+ end
159
+ end
160
+ end
@@ -4,28 +4,30 @@ require 'date'
4
4
 
5
5
  module OCI
6
6
  class Identity::Models::CreateGroupDetails
7
- # The OCID of the tenancy containing the group.
7
+ # **[Required]** The OCID of the tenancy containing the group.
8
8
  # @return [String]
9
9
  attr_accessor :compartment_id
10
10
 
11
- # The name you assign to the group during creation. The name must be unique across all groups
11
+ # **[Required]** The name you assign to the group during creation. The name must be unique across all groups
12
12
  # in the tenancy and cannot be changed.
13
13
  #
14
14
  # @return [String]
15
15
  attr_accessor :name
16
16
 
17
- # The description you assign to the group during creation. Does not have to be unique, and it's changeable.
17
+ # **[Required]** The description you assign to the group during creation. Does not have to be unique, and it's changeable.
18
18
  # @return [String]
19
19
  attr_accessor :description
20
20
 
21
- # Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
22
- # Example: `{\"bar-key\": \"value\"}`
21
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
22
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
23
+ # Example: `{\"Department\": \"Finance\"}`
23
24
  #
24
25
  # @return [Hash<String, String>]
25
26
  attr_accessor :freeform_tags
26
27
 
27
- # Usage of predefined tag keys. These predefined keys are scoped to namespaces.
28
- # Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
28
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
29
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
30
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
29
31
  #
30
32
  # @return [Hash<String, Hash<String, Object>>]
31
33
  attr_accessor :defined_tags
@@ -33,6 +35,11 @@ module OCI
33
35
 
34
36
  # Initializes the object
35
37
  # @param [Hash] attributes Model attributes in the form of hash
38
+ # @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
39
+ # @option attributes [String] :name The value to assign to the {#name} property
40
+ # @option attributes [String] :description The value to assign to the {#description} property
41
+ # @option attributes [Hash<String, String>] :freeformTags The value to assign to the {#freeform_tags} property
42
+ # @option attributes [Hash<String, Hash<String, Object>>] :definedTags The value to assign to the {#defined_tags} property
36
43
  def initialize(attributes = {})
37
44
  return unless attributes.is_a?(Hash)
38
45