oraclebmc 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/oraclebmc/core/blockstorage_client.rb +16 -11
  4. data/lib/oraclebmc/core/compute_client.rb +227 -37
  5. data/lib/oraclebmc/core/core.rb +11 -0
  6. data/lib/oraclebmc/core/models/attach_i_scsi_volume_details.rb +1 -2
  7. data/lib/oraclebmc/core/models/attach_vnic_details.rb +144 -0
  8. data/lib/oraclebmc/core/models/attach_volume_details.rb +5 -6
  9. data/lib/oraclebmc/core/models/capture_console_history_details.rb +1 -2
  10. data/lib/oraclebmc/core/models/console_history.rb +8 -8
  11. data/lib/oraclebmc/core/models/cpe.rb +7 -6
  12. data/lib/oraclebmc/core/models/create_cpe_details.rb +4 -5
  13. data/lib/oraclebmc/core/models/create_cross_connect_details.rb +9 -8
  14. data/lib/oraclebmc/core/models/create_cross_connect_group_details.rb +4 -3
  15. data/lib/oraclebmc/core/models/create_dhcp_details.rb +5 -6
  16. data/lib/oraclebmc/core/models/create_drg_attachment_details.rb +4 -5
  17. data/lib/oraclebmc/core/models/create_drg_details.rb +3 -4
  18. data/lib/oraclebmc/core/models/create_image_details.rb +19 -7
  19. data/lib/oraclebmc/core/models/create_internet_gateway_details.rb +5 -6
  20. data/lib/oraclebmc/core/models/create_ip_sec_connection_details.rb +6 -7
  21. data/lib/oraclebmc/core/models/create_private_ip_details.rb +173 -0
  22. data/lib/oraclebmc/core/models/create_route_table_details.rb +5 -6
  23. data/lib/oraclebmc/core/models/create_security_list_details.rb +6 -7
  24. data/lib/oraclebmc/core/models/create_subnet_details.rb +14 -15
  25. data/lib/oraclebmc/core/models/create_vcn_details.rb +6 -8
  26. data/lib/oraclebmc/core/models/create_virtual_circuit_details.rb +11 -12
  27. data/lib/oraclebmc/core/models/create_vnic_details.rb +39 -27
  28. data/lib/oraclebmc/core/models/create_volume_backup_details.rb +4 -3
  29. data/lib/oraclebmc/core/models/create_volume_details.rb +6 -6
  30. data/lib/oraclebmc/core/models/cross_connect.rb +11 -10
  31. data/lib/oraclebmc/core/models/cross_connect_group.rb +6 -6
  32. data/lib/oraclebmc/core/models/cross_connect_location.rb +2 -3
  33. data/lib/oraclebmc/core/models/cross_connect_mapping.rb +5 -6
  34. data/lib/oraclebmc/core/models/cross_connect_port_speed_shape.rb +2 -3
  35. data/lib/oraclebmc/core/models/cross_connect_status.rb +4 -5
  36. data/lib/oraclebmc/core/models/dhcp_dns_option.rb +2 -3
  37. data/lib/oraclebmc/core/models/dhcp_option.rb +1 -2
  38. data/lib/oraclebmc/core/models/dhcp_options.rb +9 -8
  39. data/lib/oraclebmc/core/models/dhcp_search_domain_option.rb +1 -2
  40. data/lib/oraclebmc/core/models/drg.rb +7 -6
  41. data/lib/oraclebmc/core/models/drg_attachment.rb +9 -8
  42. data/lib/oraclebmc/core/models/egress_security_rule.rb +6 -7
  43. data/lib/oraclebmc/core/models/export_image_details.rb +134 -0
  44. data/lib/oraclebmc/core/models/export_image_via_object_storage_tuple_details.rb +150 -0
  45. data/lib/oraclebmc/core/models/export_image_via_object_storage_uri_details.rb +130 -0
  46. data/lib/oraclebmc/core/models/fast_connect_provider_service.rb +3 -4
  47. data/lib/oraclebmc/core/models/i_scsi_volume_attachment.rb +5 -6
  48. data/lib/oraclebmc/core/models/icmp_options.rb +2 -3
  49. data/lib/oraclebmc/core/models/image.rb +12 -10
  50. data/lib/oraclebmc/core/models/image_source_details.rb +134 -0
  51. data/lib/oraclebmc/core/models/image_source_via_object_storage_tuple_details.rb +150 -0
  52. data/lib/oraclebmc/core/models/image_source_via_object_storage_uri_details.rb +128 -0
  53. data/lib/oraclebmc/core/models/ingress_security_rule.rb +6 -7
  54. data/lib/oraclebmc/core/models/instance.rb +13 -13
  55. data/lib/oraclebmc/core/models/instance_credentials.rb +2 -3
  56. data/lib/oraclebmc/core/models/internet_gateway.rb +9 -8
  57. data/lib/oraclebmc/core/models/ip_sec_connection.rb +10 -9
  58. data/lib/oraclebmc/core/models/ip_sec_connection_device_config.rb +4 -5
  59. data/lib/oraclebmc/core/models/ip_sec_connection_device_status.rb +4 -5
  60. data/lib/oraclebmc/core/models/launch_instance_details.rb +17 -15
  61. data/lib/oraclebmc/core/models/letter_of_authority.rb +6 -7
  62. data/lib/oraclebmc/core/models/port_range.rb +2 -3
  63. data/lib/oraclebmc/core/models/private_ip.rb +248 -0
  64. data/lib/oraclebmc/core/models/route_rule.rb +2 -3
  65. data/lib/oraclebmc/core/models/route_table.rb +9 -8
  66. data/lib/oraclebmc/core/models/security_list.rb +10 -9
  67. data/lib/oraclebmc/core/models/shape.rb +1 -2
  68. data/lib/oraclebmc/core/models/subnet.rb +21 -19
  69. data/lib/oraclebmc/core/models/tcp_options.rb +2 -3
  70. data/lib/oraclebmc/core/models/tunnel_config.rb +3 -4
  71. data/lib/oraclebmc/core/models/tunnel_status.rb +4 -5
  72. data/lib/oraclebmc/core/models/udp_options.rb +2 -3
  73. data/lib/oraclebmc/core/models/update_cpe_details.rb +3 -2
  74. data/lib/oraclebmc/core/models/update_cross_connect_details.rb +4 -3
  75. data/lib/oraclebmc/core/models/update_cross_connect_group_details.rb +3 -2
  76. data/lib/oraclebmc/core/models/update_dhcp_details.rb +4 -3
  77. data/lib/oraclebmc/core/models/update_drg_attachment_details.rb +3 -2
  78. data/lib/oraclebmc/core/models/update_drg_details.rb +3 -2
  79. data/lib/oraclebmc/core/models/update_image_details.rb +3 -3
  80. data/lib/oraclebmc/core/models/update_instance_details.rb +2 -2
  81. data/lib/oraclebmc/core/models/update_internet_gateway_details.rb +4 -3
  82. data/lib/oraclebmc/core/models/update_ip_sec_connection_details.rb +3 -2
  83. data/lib/oraclebmc/core/models/update_private_ip_details.rb +157 -0
  84. data/lib/oraclebmc/core/models/update_route_table_details.rb +4 -3
  85. data/lib/oraclebmc/core/models/update_security_list_details.rb +5 -4
  86. data/lib/oraclebmc/core/models/update_subnet_details.rb +3 -2
  87. data/lib/oraclebmc/core/models/update_vcn_details.rb +3 -2
  88. data/lib/oraclebmc/core/models/update_virtual_circuit_details.rb +8 -8
  89. data/lib/oraclebmc/core/models/update_vnic_details.rb +144 -0
  90. data/lib/oraclebmc/core/models/update_volume_backup_details.rb +3 -2
  91. data/lib/oraclebmc/core/models/update_volume_details.rb +2 -2
  92. data/lib/oraclebmc/core/models/vcn.rb +13 -12
  93. data/lib/oraclebmc/core/models/virtual_circuit.rb +18 -18
  94. data/lib/oraclebmc/core/models/virtual_circuit_bandwidth_shape.rb +2 -3
  95. data/lib/oraclebmc/core/models/vnic.rb +47 -19
  96. data/lib/oraclebmc/core/models/vnic_attachment.rb +33 -15
  97. data/lib/oraclebmc/core/models/volume.rb +8 -8
  98. data/lib/oraclebmc/core/models/volume_attachment.rb +10 -10
  99. data/lib/oraclebmc/core/models/volume_backup.rb +11 -10
  100. data/lib/oraclebmc/core/virtual_network_client.rb +364 -87
  101. data/lib/oraclebmc/errors.rb +19 -1
  102. data/lib/oraclebmc/identity/identity_client.rb +31 -31
  103. data/lib/oraclebmc/identity/models/add_user_to_group_details.rb +2 -3
  104. data/lib/oraclebmc/identity/models/api_key.rb +7 -8
  105. data/lib/oraclebmc/identity/models/availability_domain.rb +2 -3
  106. data/lib/oraclebmc/identity/models/compartment.rb +7 -8
  107. data/lib/oraclebmc/identity/models/create_api_key_details.rb +1 -2
  108. data/lib/oraclebmc/identity/models/create_compartment_details.rb +3 -4
  109. data/lib/oraclebmc/identity/models/create_group_details.rb +3 -4
  110. data/lib/oraclebmc/identity/models/create_identity_provider_details.rb +5 -6
  111. data/lib/oraclebmc/identity/models/create_idp_group_mapping_details.rb +2 -3
  112. data/lib/oraclebmc/identity/models/create_policy_details.rb +5 -6
  113. data/lib/oraclebmc/identity/models/create_region_subscription_details.rb +1 -2
  114. data/lib/oraclebmc/identity/models/create_saml2_identity_provider_details.rb +2 -3
  115. data/lib/oraclebmc/identity/models/create_swift_password_details.rb +1 -2
  116. data/lib/oraclebmc/identity/models/create_user_details.rb +3 -4
  117. data/lib/oraclebmc/identity/models/group.rb +7 -8
  118. data/lib/oraclebmc/identity/models/identity_provider.rb +9 -10
  119. data/lib/oraclebmc/identity/models/idp_group_mapping.rb +8 -9
  120. data/lib/oraclebmc/identity/models/policy.rb +9 -10
  121. data/lib/oraclebmc/identity/models/region.rb +2 -3
  122. data/lib/oraclebmc/identity/models/region_subscription.rb +4 -5
  123. data/lib/oraclebmc/identity/models/saml2_identity_provider.rb +3 -4
  124. data/lib/oraclebmc/identity/models/swift_password.rb +8 -9
  125. data/lib/oraclebmc/identity/models/tenancy.rb +4 -5
  126. data/lib/oraclebmc/identity/models/ui_password.rb +5 -6
  127. data/lib/oraclebmc/identity/models/update_compartment_details.rb +1 -2
  128. data/lib/oraclebmc/identity/models/update_group_details.rb +1 -2
  129. data/lib/oraclebmc/identity/models/update_identity_provider_details.rb +2 -3
  130. data/lib/oraclebmc/identity/models/update_idp_group_mapping_details.rb +2 -3
  131. data/lib/oraclebmc/identity/models/update_policy_details.rb +3 -4
  132. data/lib/oraclebmc/identity/models/update_saml2_identity_provider_details.rb +2 -3
  133. data/lib/oraclebmc/identity/models/update_state_details.rb +1 -2
  134. data/lib/oraclebmc/identity/models/update_swift_password_details.rb +1 -2
  135. data/lib/oraclebmc/identity/models/update_user_details.rb +1 -2
  136. data/lib/oraclebmc/identity/models/user.rb +7 -8
  137. data/lib/oraclebmc/identity/models/user_group_membership.rb +7 -8
  138. data/lib/oraclebmc/load_balancer/load_balancer_client.rb +11 -11
  139. data/lib/oraclebmc/load_balancer/models/backend.rb +7 -8
  140. data/lib/oraclebmc/load_balancer/models/backend_details.rb +6 -7
  141. data/lib/oraclebmc/load_balancer/models/backend_set.rb +6 -7
  142. data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +5 -6
  143. data/lib/oraclebmc/load_balancer/models/certificate.rb +3 -4
  144. data/lib/oraclebmc/load_balancer/models/certificate_details.rb +5 -6
  145. data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +6 -7
  146. data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +6 -7
  147. data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +5 -6
  148. data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +5 -6
  149. data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +8 -9
  150. data/lib/oraclebmc/load_balancer/models/health_checker.rb +8 -9
  151. data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +8 -9
  152. data/lib/oraclebmc/load_balancer/models/ip_address.rb +2 -3
  153. data/lib/oraclebmc/load_balancer/models/listener.rb +5 -6
  154. data/lib/oraclebmc/load_balancer/models/listener_details.rb +4 -5
  155. data/lib/oraclebmc/load_balancer/models/load_balancer.rb +12 -13
  156. data/lib/oraclebmc/load_balancer/models/load_balancer_policy.rb +1 -2
  157. data/lib/oraclebmc/load_balancer/models/load_balancer_protocol.rb +1 -2
  158. data/lib/oraclebmc/load_balancer/models/load_balancer_shape.rb +1 -2
  159. data/lib/oraclebmc/load_balancer/models/session_persistence_configuration_details.rb +2 -3
  160. data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +3 -4
  161. data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +3 -4
  162. data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +4 -5
  163. data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +5 -6
  164. data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +8 -9
  165. data/lib/oraclebmc/load_balancer/models/update_listener_details.rb +4 -5
  166. data/lib/oraclebmc/load_balancer/models/update_load_balancer_details.rb +1 -2
  167. data/lib/oraclebmc/load_balancer/models/work_request.rb +8 -9
  168. data/lib/oraclebmc/load_balancer/models/work_request_error.rb +2 -3
  169. data/lib/oraclebmc/version.rb +1 -1
  170. metadata +13 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e456ae6fcaa69c070702fcf9120f68144b24791e
4
- data.tar.gz: f42e37de94bbd59a7fea811850780ff567497667
3
+ metadata.gz: 5bd11f80b9f4e3cb8ce6662372947bf5895d4464
4
+ data.tar.gz: eeb109ab1a7b2e906006ca4b67b5bd23a3692cb5
5
5
  SHA512:
6
- metadata.gz: bba74a8561736d7899d5530bb3a733fc65bf744d7157b31a548460f0de9df7be3db6dd18fd686f619dea5fb2600cd1c534eef05425620354108742b7f2a2b749
7
- data.tar.gz: 10439dd07d981ed705fa1649ec029e3dfba0ab21d87c0fcbe9c9c36938531ab93aaa3d8d837dcd8ed2efb9d26920c74353fca5882973186a0fff53d2854f4736
6
+ metadata.gz: 00a295dff9af838da5d9bb32637f0d03db24a703857a9b219b0cccf3a3c9860a18a2ece0248cada050952fdb83f04a0d1dd572ba3649cf25d67deed4c5c46033
7
+ data.tar.gz: 139db5873752268c68d42e5468d7c01c7163d89389c0343791fe2db2f7189e1b945a7c98c3e28ea2b23edf6e1b277c68c952c5a6f5f1f4be48830ae28e8b0824
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Oracle Bare Metal Cloud Services Ruby SDK
2
- **Version 1.2.3**
2
+ **Version 1.2.4**
3
3
 
4
4
  This topic describes how to install, configure, and use the Oracle Bare Metal Cloud Services Ruby SDK.
5
5
 
@@ -77,7 +77,7 @@ You can also [download the SDK](https://docs.us-phoenix-1.oraclecloud.com/tools/
77
77
  Install the gem with the following command:
78
78
 
79
79
 
80
- `gem install oraclebmc-1.2.3.gem`
80
+ `gem install oraclebmc-1.2.4.gem`
81
81
 
82
82
 
83
83
  The SDK depends on `libcurl`, which may need to be installed or upgraded on some operating systems to be compatible with Oracle Bare Metal Cloud Services.
@@ -56,7 +56,8 @@ module OracleBMC
56
56
  end
57
57
 
58
58
 
59
- # Creates a new volume in the specified compartment. The size of a volume can be either 256 GB or 2 TB.
59
+ # Creates a new volume in the specified compartment. Volumes can be created in sizes ranging from
60
+ # 50 GB (51200 MB) to 2 TB (2097152 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB).
60
61
  # For general information about block volumes, see
61
62
  # [Overview of Block Volume Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Concepts/overview.htm).
62
63
  #
@@ -68,7 +69,7 @@ module OracleBMC
68
69
  # in the Identity and Access Management Service API.
69
70
  #
70
71
  # You may optionally specify a *display name* for the volume, which is simply a friendly name or
71
- # description. It does not have to be unique, and you can change it.
72
+ # description. It does not have to be unique, and you can change it. Avoid entering confidential information.
72
73
  #
73
74
  # @param [CreateVolumeDetails] create_volume_details Request to create a new volume.
74
75
  # @param [Hash] opts the optional parameters
@@ -160,7 +161,7 @@ module OracleBMC
160
161
  # @param [Hash] opts the optional parameters
161
162
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
162
163
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
163
- # will be updated or deleted only if the etag you provide matches the resource's current etag value.
164
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
164
165
  #
165
166
  # @return [Response] A Response object with data of type nil
166
167
  def delete_volume(volume_id, opts = {})
@@ -195,7 +196,7 @@ module OracleBMC
195
196
  # @param [Hash] opts the optional parameters
196
197
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
197
198
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
198
- # will be updated or deleted only if the etag you provide matches the resource's current etag value.
199
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
199
200
  #
200
201
  # @return [Response] A Response object with data of type nil
201
202
  def delete_volume_backup(volume_backup_id, opts = {})
@@ -292,11 +293,11 @@ module OracleBMC
292
293
  # @param [String] compartment_id The OCID of the compartment.
293
294
  # @param [Hash] opts the optional parameters
294
295
  # @option opts [String] :volume_id The OCID of the volume.
295
- # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
296
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
296
297
  #
297
298
  # Example: `500`
298
299
  #
299
- # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
300
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
300
301
  #
301
302
  # @return [Response] A Response object with data of type Array<OracleBMC::Core::Models::VolumeBackup>
302
303
  def list_volume_backups(compartment_id, opts = {})
@@ -338,11 +339,11 @@ module OracleBMC
338
339
  #
339
340
  # Example: `Uocm:PHX-AD-1`
340
341
  #
341
- # @option opts [Integer] :limit The maximum number of items to return in a paginated \&quot;List\&quot; call.
342
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
342
343
  #
343
344
  # Example: `500`
344
345
  #
345
- # @option opts [String] :page The value of the `opc-next-page` response header from the previous \&quot;List\&quot; call.
346
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
346
347
  #
347
348
  # @return [Response] A Response object with data of type Array<OracleBMC::Core::Models::Volume>
348
349
  def list_volumes(compartment_id, opts = {})
@@ -377,12 +378,14 @@ module OracleBMC
377
378
  end
378
379
 
379
380
  # Updates the specified volume's display name.
381
+ # Avoid entering confidential information.
382
+ #
380
383
  # @param [String] volume_id The OCID of the volume.
381
- # @param [UpdateVolumeDetails] update_volume_details Update volume&#39;s display name.
384
+ # @param [UpdateVolumeDetails] update_volume_details Update volume's display name. Avoid entering confidential information.
382
385
  # @param [Hash] opts the optional parameters
383
386
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
384
387
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
385
- # will be updated or deleted only if the etag you provide matches the resource&#39;s current etag value.
388
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
386
389
  #
387
390
  # @return [Response] A Response object with data of type OracleBMC::Core::Models::Volume
388
391
  def update_volume(volume_id, update_volume_details, opts = {})
@@ -415,12 +418,14 @@ module OracleBMC
415
418
  end
416
419
 
417
420
  # Updates the display name for the specified volume backup.
421
+ # Avoid entering confidential information.
422
+ #
418
423
  # @param [String] volume_backup_id The OCID of the volume backup.
419
424
  # @param [UpdateVolumeBackupDetails] update_volume_backup_details Update volume backup fields
420
425
  # @param [Hash] opts the optional parameters
421
426
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
422
427
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
423
- # will be updated or deleted only if the etag you provide matches the resource&#39;s current etag value.
428
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
424
429
  #
425
430
  # @return [Response] A Response object with data of type OracleBMC::Core::Models::VolumeBackup
426
431
  def update_volume_backup(volume_backup_id, update_volume_backup_details, opts = {})
@@ -56,6 +56,47 @@ module OracleBMC
56
56
  end
57
57
 
58
58
 
59
+ # Creates a secondary VNIC and attaches it to the specified instance.
60
+ # For more information about secondary VNICs, see
61
+ # [Managing Virtual Network Interface Cards (VNICs)](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm).
62
+ #
63
+ # @param [AttachVnicDetails] attach_vnic_details Attach VNIC details.
64
+ # @param [Hash] opts the optional parameters
65
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
66
+ # server error without risk of executing that same action again. Retry tokens expire after 24
67
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
68
+ # has been deleted and purged from the system, then a retry of the original creation request
69
+ # may be rejected).
70
+ #
71
+ # @return [Response] A Response object with data of type OracleBMC::Core::Models::VnicAttachment
72
+ def attach_vnic(attach_vnic_details, opts = {})
73
+ logger.debug "Calling operation ComputeClient#attach_vnic." if logger
74
+
75
+ fail "Missing the required parameter 'attach_vnic_details' when calling attach_vnic." if attach_vnic_details.nil?
76
+
77
+ path = "/vnicAttachments/"
78
+
79
+ # Query Params
80
+ query_params = {}
81
+
82
+ # Header Params
83
+ header_params = {}
84
+ header_params['accept'] = 'application/json'
85
+ header_params['content-type'] = 'application/json'
86
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
87
+
88
+ post_body = @api_client.object_to_http_body(attach_vnic_details)
89
+
90
+ return @api_client.call_api(
91
+ :POST,
92
+ path,
93
+ endpoint,
94
+ :header_params => header_params,
95
+ :query_params => query_params,
96
+ :body => post_body,
97
+ :return_type => 'OracleBMC::Core::Models::VnicAttachment')
98
+ end
99
+
59
100
  # Attaches the specified storage volume to the specified instance.
60
101
  #
61
102
  # @param [AttachVolumeDetails] attach_volume_details Attach volume request
@@ -150,14 +191,29 @@ module OracleBMC
150
191
  :return_type => 'OracleBMC::Core::Models::ConsoleHistory')
151
192
  end
152
193
 
153
- # Creates a boot disk image for the specified instance. For more information about images, see
154
- # [Managing Custom Images](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/managingcustomimages.htm).
194
+ # Creates a boot disk image for the specified instance or imports an exported image from the Oracle Bare Metal Cloud Object Storage Service.
195
+ #
196
+ # When creating a new image, you must provide the OCID of the instance you want to use as the basis for the image, and
197
+ # the OCID of the compartment containing that instance. For more information about images,
198
+ # see [Managing Custom Images](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/managingcustomimages.htm).
155
199
  #
156
- # You must provide the OCID of the instance you want to use as the basis for the image, and
157
- # the OCID of the compartment containing that instance.
200
+ # When importing an exported image from the Object Storage Service, you specify the source information
201
+ # in {#image_source_details image_source_details}.
202
+ #
203
+ # When importing an image based on the namespace, bucket name, and object name,
204
+ # use {#image_source_via_object_storage_tuple_details image_source_via_object_storage_tuple_details}.
205
+ #
206
+ # When importing an image based on the Object Storage Service URL, use
207
+ # {#image_source_via_object_storage_uri_details image_source_via_object_storage_uri_details}.
208
+ # See [Object Storage URLs](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and [pre-authenticated requests](https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingaccess.htm#pre-auth)
209
+ # for constructing URLs for image import/export.
210
+ #
211
+ # For more information about importing exported images, see
212
+ # [Image Import/Export](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm).
158
213
  #
159
214
  # You may optionally specify a *display name* for the image, which is simply a friendly name or description.
160
215
  # It does not have to be unique, and you can change it. See {#update_image update_image}.
216
+ # Avoid entering confidential information.
161
217
  #
162
218
  # @param [CreateImageDetails] create_image_details Image creation details
163
219
  # @param [Hash] opts the optional parameters
@@ -201,7 +257,7 @@ module OracleBMC
201
257
  # @param [Hash] opts the optional parameters
202
258
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
203
259
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
204
- # will be updated or deleted only if the etag you provide matches the resource&#39;s current etag value.
260
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
205
261
  #
206
262
  # @return [Response] A Response object with data of type nil
207
263
  def delete_console_history(instance_console_history_id, opts = {})
@@ -236,7 +292,7 @@ module OracleBMC
236
292
  # @param [Hash] opts the optional parameters
237
293
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
238
294
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
239
- # will be updated or deleted only if the etag you provide matches the resource&#39;s current etag value.
295
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
240
296
  #
241
297
  # @return [Response] A Response object with data of type nil
242
298
  def delete_image(image_id, opts = {})
@@ -266,6 +322,45 @@ module OracleBMC
266
322
  :body => post_body)
267
323
  end
268
324
 
325
+ # Detaches and deletes the specified secondary VNIC.
326
+ # This operation cannot be used on the instance's primary VNIC.
327
+ # When you terminate an instance, all attached VNICs (primary
328
+ # and secondary) are automatically detached and deleted.
329
+ #
330
+ # @param [String] vnic_attachment_id The OCID of the VNIC attachment.
331
+ # @param [Hash] opts the optional parameters
332
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
333
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
334
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
335
+ #
336
+ # @return [Response] A Response object with data of type nil
337
+ def detach_vnic(vnic_attachment_id, opts = {})
338
+ logger.debug "Calling operation ComputeClient#detach_vnic." if logger
339
+
340
+ fail "Missing the required parameter 'vnic_attachment_id' when calling detach_vnic." if vnic_attachment_id.nil?
341
+
342
+ path = "/vnicAttachments/{vnicAttachmentId}".sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
343
+
344
+ # Query Params
345
+ query_params = {}
346
+
347
+ # Header Params
348
+ header_params = {}
349
+ header_params['accept'] = 'application/json'
350
+ header_params['content-type'] = 'application/json'
351
+ header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
352
+
353
+ post_body = nil
354
+
355
+ return @api_client.call_api(
356
+ :DELETE,
357
+ path,
358
+ endpoint,
359
+ :header_params => header_params,
360
+ :query_params => query_params,
361
+ :body => post_body)
362
+ end
363
+
269
364
  # Detaches a storage volume from an instance. You must specify the OCID of the volume attachment.
270
365
  #
271
366
  # This is an asynchronous operation; the attachment's `lifecycleState` will change to DETACHING temporarily
@@ -275,7 +370,7 @@ module OracleBMC
275
370
  # @param [Hash] opts the optional parameters
276
371
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
277
372
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
278
- # will be updated or deleted only if the etag you provide matches the resource&#39;s current etag value.
373
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
279
374
  #
280
375
  # @return [Response] A Response object with data of type nil
281
376
  def detach_volume(volume_attachment_id, opts = {})
@@ -305,6 +400,61 @@ module OracleBMC
305
400
  :body => post_body)
306
401
  end
307
402
 
403
+ # Exports the specified image to the Oracle Bare Metal Cloud Object Storage Service. You can use the Object Storage Service URL,
404
+ # or the namespace, bucket name, and object name when specifying the location to export to.
405
+ #
406
+ # For more information about exporting images, see [Image Import/Export](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm).
407
+ #
408
+ # To perform an image export, you need write access to the Object Storage Service bucket for the image,
409
+ # see [Let Users Write Objects to Object Storage Buckets](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/commonpolicies.htm#Let4).
410
+ #
411
+ # See [Object Storage URLs](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and [pre-authenticated requests](https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingaccess.htm#pre-auth)
412
+ # for constructing URLs for image import/export.
413
+ #
414
+ # @param [String] image_id The OCID of the image.
415
+ # @param [ExportImageDetails] export_image_details Details for the image export.
416
+ # @param [Hash] opts the optional parameters
417
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
418
+ # server error without risk of executing that same action again. Retry tokens expire after 24
419
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
420
+ # has been deleted and purged from the system, then a retry of the original creation request
421
+ # may be rejected).
422
+ #
423
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
424
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
425
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
426
+ #
427
+ # @return [Response] A Response object with data of type OracleBMC::Core::Models::Image
428
+ def export_image(image_id, export_image_details, opts = {})
429
+ logger.debug "Calling operation ComputeClient#export_image." if logger
430
+
431
+ fail "Missing the required parameter 'image_id' when calling export_image." if image_id.nil?
432
+ fail "Missing the required parameter 'export_image_details' when calling export_image." if export_image_details.nil?
433
+
434
+ path = "/images/{imageId}/actions/export".sub('{imageId}', image_id.to_s)
435
+
436
+ # Query Params
437
+ query_params = {}
438
+
439
+ # Header Params
440
+ header_params = {}
441
+ header_params['accept'] = 'application/json'
442
+ header_params['content-type'] = 'application/json'
443
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
444
+ header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
445
+
446
+ post_body = @api_client.object_to_http_body(export_image_details)
447
+
448
+ return @api_client.call_api(
449
+ :POST,
450
+ path,
451
+ endpoint,
452
+ :header_params => header_params,
453
+ :query_params => query_params,
454
+ :body => post_body,
455
+ :return_type => 'OracleBMC::Core::Models::Image')
456
+ end
457
+
308
458
  # Shows the metadata for the specified console history.
309
459
  # See {#capture_console_history capture_console_history}
310
460
  # for details about using the console history operations.
@@ -439,6 +589,38 @@ module OracleBMC
439
589
  :return_type => 'OracleBMC::Core::Models::Instance')
440
590
  end
441
591
 
592
+ # Gets the information for the specified VNIC attachment.
593
+ #
594
+ # @param [String] vnic_attachment_id The OCID of the VNIC attachment.
595
+ # @param [Hash] opts the optional parameters
596
+ # @return [Response] A Response object with data of type OracleBMC::Core::Models::VnicAttachment
597
+ def get_vnic_attachment(vnic_attachment_id, opts = {})
598
+ logger.debug "Calling operation ComputeClient#get_vnic_attachment." if logger
599
+
600
+ fail "Missing the required parameter 'vnic_attachment_id' when calling get_vnic_attachment." if vnic_attachment_id.nil?
601
+
602
+ path = "/vnicAttachments/{vnicAttachmentId}".sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
603
+
604
+ # Query Params
605
+ query_params = {}
606
+
607
+ # Header Params
608
+ header_params = {}
609
+ header_params['accept'] = 'application/json'
610
+ header_params['content-type'] = 'application/json'
611
+
612
+ post_body = nil
613
+
614
+ return @api_client.call_api(
615
+ :GET,
616
+ path,
617
+ endpoint,
618
+ :header_params => header_params,
619
+ :query_params => query_params,
620
+ :body => post_body,
621
+ :return_type => 'OracleBMC::Core::Models::VnicAttachment')
622
+ end
623
+
442
624
  # Gets information about the specified volume attachment.
443
625
  # @param [String] volume_attachment_id The OCID of the volume attachment.
444
626
  # @param [Hash] opts the optional parameters
@@ -531,7 +713,7 @@ module OracleBMC
531
713
  #
532
714
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
533
715
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
534
- # will be updated or deleted only if the etag you provide matches the resource&#39;s current etag value.
716
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
535
717
  #
536
718
  # @return [Response] A Response object with data of type OracleBMC::Core::Models::Instance
537
719
  def instance_action(instance_id, action, opts = {})
@@ -586,13 +768,18 @@ module OracleBMC
586
768
  # also retrieve a resource's OCID by using a List API operation
587
769
  # on that resource type, or by viewing the resource in the Console.
588
770
  #
589
- # When you launch an instance, it is automatically attached to a Virtual
590
- # Network Interface Card (VNIC). The VNIC has a private IP address from
591
- # the subnet's CIDR, and optionally a public IP address.
592
- # To get the addresses, use the {#list_vnic_attachments list_vnic_attachments}
771
+ # When you launch an instance, it is automatically attached to a virtual
772
+ # network interface card (VNIC), called the *primary VNIC*. The VNIC
773
+ # has a private IP address from the subnet's CIDR. You can either assign a
774
+ # private IP address of your choice or let Oracle automatically assign one.
775
+ # You can choose whether the instance has a public IP address. To retrieve the
776
+ # addresses, use the {#list_vnic_attachments list_vnic_attachments}
593
777
  # operation to get the VNIC ID for the instance, and then call
594
778
  # {#get_vnic get_vnic} with the VNIC ID.
595
779
  #
780
+ # You can later add secondary VNICs to an instance. For more information, see
781
+ # [Managing Virtual Network Interface Cards (VNICs)](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm).
782
+ #
596
783
  # @param [LaunchInstanceDetails] launch_instance_details Instance details
597
784
  # @param [Hash] opts the optional parameters
598
785
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -638,11 +825,11 @@ module OracleBMC
638
825
  #
639
826
  # Example: `Uocm:PHX-AD-1`
640
827
  #
641
- # @option opts [Integer] :limit The maximum number of items to return in a paginated \&quot;List\&quot; call.
828
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
642
829
  #
643
830
  # Example: `500`
644
831
  #
645
- # @option opts [String] :page The value of the `opc-next-page` response header from the previous \&quot;List\&quot; call.
832
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
646
833
  #
647
834
  # @option opts [String] :instance_id The OCID of the instance.
648
835
  # @return [Response] A Response object with data of type Array<OracleBMC::Core::Models::ConsoleHistory>
@@ -684,23 +871,24 @@ module OracleBMC
684
871
  #
685
872
  # @param [String] compartment_id The OCID of the compartment.
686
873
  # @param [Hash] opts the optional parameters
687
- # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it&#39;s changeable.
874
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
875
+ # Avoid entering confidential information.
688
876
  #
689
877
  # Example: `My new resource`
690
878
  #
691
- # @option opts [String] :operating_system The image&#39;s operating system.
879
+ # @option opts [String] :operating_system The image's operating system.
692
880
  #
693
881
  # Example: `Oracle Linux`
694
882
  #
695
- # @option opts [String] :operating_system_version The image&#39;s operating system version.
883
+ # @option opts [String] :operating_system_version The image's operating system version.
696
884
  #
697
885
  # Example: `7.2`
698
886
  #
699
- # @option opts [Integer] :limit The maximum number of items to return in a paginated \&quot;List\&quot; call.
887
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
700
888
  #
701
889
  # Example: `500`
702
890
  #
703
- # @option opts [String] :page The value of the `opc-next-page` response header from the previous \&quot;List\&quot; call.
891
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
704
892
  #
705
893
  # @return [Response] A Response object with data of type Array<OracleBMC::Core::Models::Image>
706
894
  def list_images(compartment_id, opts = {})
@@ -746,15 +934,16 @@ module OracleBMC
746
934
  #
747
935
  # Example: `Uocm:PHX-AD-1`
748
936
  #
749
- # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it&#39;s changeable.
937
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
938
+ # Avoid entering confidential information.
750
939
  #
751
940
  # Example: `My new resource`
752
941
  #
753
- # @option opts [Integer] :limit The maximum number of items to return in a paginated \&quot;List\&quot; call.
942
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
754
943
  #
755
944
  # Example: `500`
756
945
  #
757
- # @option opts [String] :page The value of the `opc-next-page` response header from the previous \&quot;List\&quot; call.
946
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
758
947
  #
759
948
  # @return [Response] A Response object with data of type Array<OracleBMC::Core::Models::Instance>
760
949
  def list_instances(compartment_id, opts = {})
@@ -798,11 +987,11 @@ module OracleBMC
798
987
  #
799
988
  # Example: `Uocm:PHX-AD-1`
800
989
  #
801
- # @option opts [Integer] :limit The maximum number of items to return in a paginated \&quot;List\&quot; call.
990
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
802
991
  #
803
992
  # Example: `500`
804
993
  #
805
- # @option opts [String] :page The value of the `opc-next-page` response header from the previous \&quot;List\&quot; call.
994
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
806
995
  #
807
996
  # @option opts [String] :image_id The OCID of an image.
808
997
  # @return [Response] A Response object with data of type Array<OracleBMC::Core::Models::Shape>
@@ -838,8 +1027,9 @@ module OracleBMC
838
1027
  :return_type => 'Array<OracleBMC::Core::Models::Shape>')
839
1028
  end
840
1029
 
841
- # Lists the VNIC attachments for the specified compartment. The list can be filtered by
842
- # instance and by VNIC.
1030
+ # Lists the VNIC attachments in the specified compartment. A VNIC attachment
1031
+ # resides in the same compartment as the attached instance. The list can be
1032
+ # filtered by instance, VNIC, or Availability Domain.
843
1033
  #
844
1034
  # @param [String] compartment_id The OCID of the compartment.
845
1035
  # @param [Hash] opts the optional parameters
@@ -848,11 +1038,11 @@ module OracleBMC
848
1038
  # Example: `Uocm:PHX-AD-1`
849
1039
  #
850
1040
  # @option opts [String] :instance_id The OCID of the instance.
851
- # @option opts [Integer] :limit The maximum number of items to return in a paginated \&quot;List\&quot; call.
1041
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
852
1042
  #
853
1043
  # Example: `500`
854
1044
  #
855
- # @option opts [String] :page The value of the `opc-next-page` response header from the previous \&quot;List\&quot; call.
1045
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
856
1046
  #
857
1047
  # @option opts [String] :vnic_id The OCID of the VNIC.
858
1048
  # @return [Response] A Response object with data of type Array<OracleBMC::Core::Models::VnicAttachment>
@@ -900,11 +1090,11 @@ module OracleBMC
900
1090
  #
901
1091
  # Example: `Uocm:PHX-AD-1`
902
1092
  #
903
- # @option opts [Integer] :limit The maximum number of items to return in a paginated \&quot;List\&quot; call.
1093
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
904
1094
  #
905
1095
  # Example: `500`
906
1096
  #
907
- # @option opts [String] :page The value of the `opc-next-page` response header from the previous \&quot;List\&quot; call.
1097
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
908
1098
  #
909
1099
  # @option opts [String] :instance_id The OCID of the instance.
910
1100
  # @option opts [String] :volume_id The OCID of the volume.
@@ -952,7 +1142,7 @@ module OracleBMC
952
1142
  # @param [Hash] opts the optional parameters
953
1143
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
954
1144
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
955
- # will be updated or deleted only if the etag you provide matches the resource&#39;s current etag value.
1145
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
956
1146
  #
957
1147
  # @return [Response] A Response object with data of type nil
958
1148
  def terminate_instance(instance_id, opts = {})
@@ -982,9 +1172,9 @@ module OracleBMC
982
1172
  :body => post_body)
983
1173
  end
984
1174
 
985
- # Updates the display name of the image.
1175
+ # Updates the display name of the image. Avoid entering confidential information.
986
1176
  # @param [String] image_id The OCID of the image.
987
- # @param [UpdateImageDetails] update_image_details Updates the image display name field.
1177
+ # @param [UpdateImageDetails] update_image_details Updates the image display name field. Avoid entering confidential information.
988
1178
  # @param [Hash] opts the optional parameters
989
1179
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
990
1180
  # server error without risk of executing that same action again. Retry tokens expire after 24
@@ -994,7 +1184,7 @@ module OracleBMC
994
1184
  #
995
1185
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
996
1186
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
997
- # will be updated or deleted only if the etag you provide matches the resource&#39;s current etag value.
1187
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
998
1188
  #
999
1189
  # @return [Response] A Response object with data of type OracleBMC::Core::Models::Image
1000
1190
  def update_image(image_id, update_image_details, opts = {})
@@ -1027,8 +1217,8 @@ module OracleBMC
1027
1217
  :return_type => 'OracleBMC::Core::Models::Image')
1028
1218
  end
1029
1219
 
1030
- # Updates the display name of the specified instance. The OCID of the instance
1031
- # remains the same.
1220
+ # Updates the display name of the specified instance. Avoid entering confidential information.
1221
+ # The OCID of the instance remains the same.
1032
1222
  #
1033
1223
  # @param [String] instance_id The OCID of the instance.
1034
1224
  # @param [UpdateInstanceDetails] update_instance_details Update instance fields
@@ -1041,7 +1231,7 @@ module OracleBMC
1041
1231
  #
1042
1232
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
1043
1233
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
1044
- # will be updated or deleted only if the etag you provide matches the resource&#39;s current etag value.
1234
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
1045
1235
  #
1046
1236
  # @return [Response] A Response object with data of type OracleBMC::Core::Models::Instance
1047
1237
  def update_instance(instance_id, update_instance_details, opts = {})