oci 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/oci.rb +1 -0
  4. data/lib/oci/api_client.rb +22 -4
  5. data/lib/oci/audit/audit_client.rb +7 -7
  6. data/lib/oci/core/blockstorage_client.rb +30 -30
  7. data/lib/oci/core/compute_client.rb +55 -54
  8. data/lib/oci/core/core.rb +2 -0
  9. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +133 -0
  10. data/lib/oci/core/models/attach_volume_details.rb +2 -1
  11. data/lib/oci/core/models/create_image_details.rb +1 -1
  12. data/lib/oci/core/models/create_public_ip_details.rb +1 -1
  13. data/lib/oci/core/models/create_virtual_circuit_details.rb +1 -1
  14. data/lib/oci/core/models/create_volume_backup_details.rb +1 -1
  15. data/lib/oci/core/models/image.rb +22 -1
  16. data/lib/oci/core/models/image_source_details.rb +1 -1
  17. data/lib/oci/core/models/instance_source_via_image_details.rb +20 -1
  18. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +154 -0
  19. data/lib/oci/core/models/update_virtual_circuit_details.rb +1 -1
  20. data/lib/oci/core/models/volume_attachment.rb +1 -0
  21. data/lib/oci/core/virtual_network_client.rb +154 -154
  22. data/lib/oci/database/database_client.rb +59 -59
  23. data/lib/oci/database/models/create_data_guard_association_details.rb +2 -2
  24. data/lib/oci/database/models/create_database_details.rb +1 -1
  25. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +1 -1
  26. data/lib/oci/database/models/launch_db_system_details.rb +3 -3
  27. data/lib/oci/database/models/patch_details.rb +1 -1
  28. data/lib/oci/dns/dns_client.rb +44 -44
  29. data/lib/oci/dns/models/create_zone_details.rb +1 -1
  30. data/lib/oci/dns/models/record_operation.rb +1 -1
  31. data/lib/oci/email/email.rb +22 -0
  32. data/lib/oci/email/email_client.rb +417 -0
  33. data/lib/oci/email/models/create_sender_details.rb +147 -0
  34. data/lib/oci/email/models/create_suppression_details.rb +149 -0
  35. data/lib/oci/email/models/sender.rb +219 -0
  36. data/lib/oci/email/models/sender_summary.rb +195 -0
  37. data/lib/oci/email/models/suppression.rb +191 -0
  38. data/lib/oci/email/models/suppression_summary.rb +192 -0
  39. data/lib/oci/email/util.rb +2 -0
  40. data/lib/oci/file_storage/file_storage_client.rb +42 -42
  41. data/lib/oci/identity/identity.rb +4 -0
  42. data/lib/oci/identity/identity_client.rb +250 -94
  43. data/lib/oci/identity/models/compartment.rb +1 -1
  44. data/lib/oci/identity/models/create_compartment_details.rb +1 -1
  45. data/lib/oci/identity/models/create_identity_provider_details.rb +2 -2
  46. data/lib/oci/identity/models/create_smtp_credential_details.rb +122 -0
  47. data/lib/oci/identity/models/smtp_credential.rb +285 -0
  48. data/lib/oci/identity/models/smtp_credential_summary.rb +267 -0
  49. data/lib/oci/identity/models/update_compartment_details.rb +1 -0
  50. data/lib/oci/identity/models/update_identity_provider_details.rb +1 -1
  51. data/lib/oci/identity/models/update_smtp_credential_details.rb +121 -0
  52. data/lib/oci/load_balancer/load_balancer_client.rb +74 -74
  53. data/lib/oci/object_storage/models/create_bucket_details.rb +2 -2
  54. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +1 -1
  55. data/lib/oci/object_storage/models/update_bucket_details.rb +1 -1
  56. data/lib/oci/object_storage/object_storage_client.rb +73 -73
  57. data/lib/oci/regions.rb +2 -1
  58. data/lib/oci/response.rb +1 -0
  59. data/lib/oci/version.rb +1 -1
  60. metadata +17 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa73e09ea6e6897641631122359ccf2354069ad5
4
- data.tar.gz: b0b3fe78647c5982a3b354c143ad36f672d8f2e2
3
+ metadata.gz: 40f4fc8cef8b30940cc5d4357f659cd7da8a077c
4
+ data.tar.gz: 3442d01039aaa3c13d203e8f195a3e9372487c99
5
5
  SHA512:
6
- metadata.gz: 13d661686c77600dbb899e7f2739ff01f7d2708a11c99d7295d7bcde69c359d695d54705e50af380eca956ed897d12a8ba6164a8b9400305bacc7bf1c66b0faf
7
- data.tar.gz: 0ec6c7af0092462718ed58e4637c5c59d6509c0411619daf33fca72b2fbf3e6628388a7d5e9c16d2c058202e9d4ebd8ac228a574a10f0e14832d550e415e8d52
6
+ metadata.gz: 09d6e76897744e3911bee15dd75f154996c8654e351f6a5683139beb7012dbd1b0263c99e4a9a7de7ae7623e72a2dd656e6f49d9ceb4893491efef5ce149425d
7
+ data.tar.gz: ef317dec6a0135a5dde2e9e9ca82a2a9266d2cd50594fcc1ae896012b37711db27bf27816437ddb9cfda13e8ac0c8d93a3a313e4c1ce0f63954fef7b4dd1c51d
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Oracle Cloud Infrastructure Ruby SDK
2
- **Version 2.0.8**
2
+ **Version 2.0.9**
3
3
 
4
4
  This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
5
5
 
@@ -15,6 +15,7 @@ The Ruby SDK supports the following services:
15
15
  * Object Storage Service
16
16
  * Domain Name System Service
17
17
  * File Storage Service
18
+ * Email Service
18
19
 
19
20
  **Licensing:** This SDK and sample is dual licensed under the Universal Permissive License 1.0 and the Apache License.
20
21
 
data/lib/oci.rb CHANGED
@@ -19,6 +19,7 @@ require 'oci/audit/audit'
19
19
  require 'oci/core/core'
20
20
  require 'oci/database/database'
21
21
  require 'oci/dns/dns'
22
+ require 'oci/email/email'
22
23
  require 'oci/file_storage/file_storage'
23
24
  require 'oci/identity/identity'
24
25
  require 'oci/load_balancer/load_balancer'
@@ -6,6 +6,7 @@ require 'logger'
6
6
  require 'net/http'
7
7
  require 'securerandom'
8
8
  require 'tempfile'
9
+ require 'time'
9
10
  require 'uri'
10
11
 
11
12
  require_relative 'signer'
@@ -80,6 +81,7 @@ module OCI
80
81
  unless page.nil?
81
82
  opts[:query_params] ||= {}
82
83
  opts[:query_params][:page] = page
84
+ opts[:query_params][:start] = page if opts[:return_type] == 'OCI::ObjectStorage::Models::ListObjects'
83
85
  end
84
86
 
85
87
  return call_api_inner(http_method, path, endpoint, opts, &block)
@@ -312,7 +314,7 @@ module OCI
312
314
 
313
315
  # Simple params just go key to value
314
316
  base_query_string = ''
315
- base_query_string << simple_params.map{|k,v| "#{k}=#{CGI.escape(v.to_s)}"}.join('&') unless simple_params.empty?
317
+ base_query_string << simple_params.map{|k,v| "#{k}=#{self.cgi_escape_query_param(v)}"}.join('&') unless simple_params.empty?
316
318
 
317
319
  # Using the previous comment:
318
320
  # k = "anArrayType", v = ["hello", "world"]
@@ -322,7 +324,7 @@ module OCI
322
324
  array_params.each do |k,v|
323
325
  v.each do |query_string_val|
324
326
  base_query_string << '&' unless base_query_string.empty?
325
- base_query_string << "#{k}=#{CGI.escape(query_string_val)}"
327
+ base_query_string << "#{k}=#{self.cgi_escape_query_param(query_string_val)}"
326
328
  end
327
329
  end
328
330
 
@@ -341,9 +343,9 @@ module OCI
341
343
  # be encoded to %2B
342
344
  query_string_val = if tag_val.is_a?(Array)
343
345
  # to_s tag_key to avoid errors around implicit conversion of symbols to strings
344
- tag_val.map { |tv| "#{k}.#{CGI.escape(tag_key.to_s)}=#{CGI.escape(tv.to_s)}" }.join('&')
346
+ tag_val.map { |tv| "#{k}.#{self.cgi_escape_query_param(tag_key)}=#{self.cgi_escape_query_param(tv)}" }.join('&')
345
347
  else
346
- "#{k}.#{CGI.escape(tag_key.to_s)}=#{CGI.escape(tag_val.to_s)}"
348
+ "#{k}.#{self.cgi_escape_query_param(tag_key)}=#{self.cgi_escape_query_param(tag_val)}"
347
349
  end
348
350
  base_query_string << '&' unless base_query_string.empty?
349
351
  base_query_string << query_string_val
@@ -467,5 +469,21 @@ module OCI
467
469
  end
468
470
  end
469
471
  end
472
+
473
+ def self.get_rfc339_formatted_date_string_with_z_offset(date_time)
474
+ as_utc = date_time.to_time.utc
475
+
476
+ # Port of the Java SDK behaviour where we omit fractional seconds if they would be 0
477
+ return as_utc.iso8601() if as_utc.strftime('%L').to_i == 0
478
+ as_utc.iso8601(3)
479
+ end
480
+
481
+ def self.cgi_escape_query_param(raw_value)
482
+ if raw_value.is_a?(DateTime)
483
+ CGI.escape(get_rfc339_formatted_date_string_with_z_offset(raw_value))
484
+ else
485
+ CGI.escape(raw_value.to_s)
486
+ end
487
+ end
470
488
  end
471
489
  end
@@ -60,7 +60,7 @@ module OCI
60
60
  def region=(r)
61
61
  @region = r
62
62
 
63
- fail 'A region must be specified.' unless @region
63
+ raise 'A region must be specified.' unless @region
64
64
 
65
65
  @endpoint = OCI::Regions.get_service_endpoint(@region, :AuditClient) + '/20160918'
66
66
  logger.info "AuditClient endpoint set to '#{endpoint}'." if logger
@@ -79,7 +79,7 @@ module OCI
79
79
  def get_configuration(compartment_id, opts = {})
80
80
  logger.debug "Calling operation AuditClient#get_configuration." if logger
81
81
 
82
- fail "Missing the required parameter 'compartment_id' when calling get_configuration." if compartment_id.nil?
82
+ raise "Missing the required parameter 'compartment_id' when calling get_configuration." if compartment_id.nil?
83
83
 
84
84
  path = "/configuration"
85
85
 
@@ -123,9 +123,9 @@ module OCI
123
123
  def list_events(compartment_id, start_time, end_time, opts = {})
124
124
  logger.debug "Calling operation AuditClient#list_events." if logger
125
125
 
126
- fail "Missing the required parameter 'compartment_id' when calling list_events." if compartment_id.nil?
127
- fail "Missing the required parameter 'start_time' when calling list_events." if start_time.nil?
128
- fail "Missing the required parameter 'end_time' when calling list_events." if end_time.nil?
126
+ raise "Missing the required parameter 'compartment_id' when calling list_events." if compartment_id.nil?
127
+ raise "Missing the required parameter 'start_time' when calling list_events." if start_time.nil?
128
+ raise "Missing the required parameter 'end_time' when calling list_events." if end_time.nil?
129
129
 
130
130
  path = "/auditEvents"
131
131
 
@@ -162,8 +162,8 @@ module OCI
162
162
  def update_configuration(compartment_id, update_configuration_details, opts = {})
163
163
  logger.debug "Calling operation AuditClient#update_configuration." if logger
164
164
 
165
- fail "Missing the required parameter 'compartment_id' when calling update_configuration." if compartment_id.nil?
166
- fail "Missing the required parameter 'update_configuration_details' when calling update_configuration." if update_configuration_details.nil?
165
+ raise "Missing the required parameter 'compartment_id' when calling update_configuration." if compartment_id.nil?
166
+ raise "Missing the required parameter 'update_configuration_details' when calling update_configuration." if update_configuration_details.nil?
167
167
 
168
168
  path = "/configuration"
169
169
 
@@ -60,7 +60,7 @@ module OCI
60
60
  def region=(r)
61
61
  @region = r
62
62
 
63
- fail 'A region must be specified.' unless @region
63
+ raise 'A region must be specified.' unless @region
64
64
 
65
65
  @endpoint = OCI::Regions.get_service_endpoint(@region, :BlockstorageClient) + '/20160918'
66
66
  logger.info "BlockstorageClient endpoint set to '#{endpoint}'." if logger
@@ -99,7 +99,7 @@ module OCI
99
99
  def create_volume(create_volume_details, opts = {})
100
100
  logger.debug "Calling operation BlockstorageClient#create_volume." if logger
101
101
 
102
- fail "Missing the required parameter 'create_volume_details' when calling create_volume." if create_volume_details.nil?
102
+ raise "Missing the required parameter 'create_volume_details' when calling create_volume." if create_volume_details.nil?
103
103
 
104
104
  path = "/volumes"
105
105
 
@@ -143,7 +143,7 @@ module OCI
143
143
  def create_volume_backup(create_volume_backup_details, opts = {})
144
144
  logger.debug "Calling operation BlockstorageClient#create_volume_backup." if logger
145
145
 
146
- fail "Missing the required parameter 'create_volume_backup_details' when calling create_volume_backup." if create_volume_backup_details.nil?
146
+ raise "Missing the required parameter 'create_volume_backup_details' when calling create_volume_backup." if create_volume_backup_details.nil?
147
147
 
148
148
  path = "/volumeBackups"
149
149
 
@@ -178,7 +178,7 @@ module OCI
178
178
  def create_volume_backup_policy_assignment(create_volume_backup_policy_assignment_details, opts = {})
179
179
  logger.debug "Calling operation BlockstorageClient#create_volume_backup_policy_assignment." if logger
180
180
 
181
- fail "Missing the required parameter 'create_volume_backup_policy_assignment_details' when calling create_volume_backup_policy_assignment." if create_volume_backup_policy_assignment_details.nil?
181
+ raise "Missing the required parameter 'create_volume_backup_policy_assignment_details' when calling create_volume_backup_policy_assignment." if create_volume_backup_policy_assignment_details.nil?
182
182
 
183
183
  path = "/volumeBackupPolicyAssignments"
184
184
 
@@ -217,7 +217,7 @@ module OCI
217
217
  def delete_boot_volume(boot_volume_id, opts = {})
218
218
  logger.debug "Calling operation BlockstorageClient#delete_boot_volume." if logger
219
219
 
220
- fail "Missing the required parameter 'boot_volume_id' when calling delete_boot_volume." if boot_volume_id.nil?
220
+ raise "Missing the required parameter 'boot_volume_id' when calling delete_boot_volume." if boot_volume_id.nil?
221
221
 
222
222
  path = "/bootVolumes/{bootVolumeId}".sub('{bootVolumeId}', boot_volume_id.to_s)
223
223
 
@@ -256,7 +256,7 @@ module OCI
256
256
  def delete_volume(volume_id, opts = {})
257
257
  logger.debug "Calling operation BlockstorageClient#delete_volume." if logger
258
258
 
259
- fail "Missing the required parameter 'volume_id' when calling delete_volume." if volume_id.nil?
259
+ raise "Missing the required parameter 'volume_id' when calling delete_volume." if volume_id.nil?
260
260
 
261
261
  path = "/volumes/{volumeId}".sub('{volumeId}', volume_id.to_s)
262
262
 
@@ -291,7 +291,7 @@ module OCI
291
291
  def delete_volume_backup(volume_backup_id, opts = {})
292
292
  logger.debug "Calling operation BlockstorageClient#delete_volume_backup." if logger
293
293
 
294
- fail "Missing the required parameter 'volume_backup_id' when calling delete_volume_backup." if volume_backup_id.nil?
294
+ raise "Missing the required parameter 'volume_backup_id' when calling delete_volume_backup." if volume_backup_id.nil?
295
295
 
296
296
  path = "/volumeBackups/{volumeBackupId}".sub('{volumeBackupId}', volume_backup_id.to_s)
297
297
 
@@ -326,7 +326,7 @@ module OCI
326
326
  def delete_volume_backup_policy_assignment(policy_assignment_id, opts = {})
327
327
  logger.debug "Calling operation BlockstorageClient#delete_volume_backup_policy_assignment." if logger
328
328
 
329
- fail "Missing the required parameter 'policy_assignment_id' when calling delete_volume_backup_policy_assignment." if policy_assignment_id.nil?
329
+ raise "Missing the required parameter 'policy_assignment_id' when calling delete_volume_backup_policy_assignment." if policy_assignment_id.nil?
330
330
 
331
331
  path = "/volumeBackupPolicyAssignments/{policyAssignmentId}".sub('{policyAssignmentId}', policy_assignment_id.to_s)
332
332
 
@@ -357,7 +357,7 @@ module OCI
357
357
  def get_boot_volume(boot_volume_id, opts = {})
358
358
  logger.debug "Calling operation BlockstorageClient#get_boot_volume." if logger
359
359
 
360
- fail "Missing the required parameter 'boot_volume_id' when calling get_boot_volume." if boot_volume_id.nil?
360
+ raise "Missing the required parameter 'boot_volume_id' when calling get_boot_volume." if boot_volume_id.nil?
361
361
 
362
362
  path = "/bootVolumes/{bootVolumeId}".sub('{bootVolumeId}', boot_volume_id.to_s)
363
363
 
@@ -388,7 +388,7 @@ module OCI
388
388
  def get_volume(volume_id, opts = {})
389
389
  logger.debug "Calling operation BlockstorageClient#get_volume." if logger
390
390
 
391
- fail "Missing the required parameter 'volume_id' when calling get_volume." if volume_id.nil?
391
+ raise "Missing the required parameter 'volume_id' when calling get_volume." if volume_id.nil?
392
392
 
393
393
  path = "/volumes/{volumeId}".sub('{volumeId}', volume_id.to_s)
394
394
 
@@ -419,7 +419,7 @@ module OCI
419
419
  def get_volume_backup(volume_backup_id, opts = {})
420
420
  logger.debug "Calling operation BlockstorageClient#get_volume_backup." if logger
421
421
 
422
- fail "Missing the required parameter 'volume_backup_id' when calling get_volume_backup." if volume_backup_id.nil?
422
+ raise "Missing the required parameter 'volume_backup_id' when calling get_volume_backup." if volume_backup_id.nil?
423
423
 
424
424
  path = "/volumeBackups/{volumeBackupId}".sub('{volumeBackupId}', volume_backup_id.to_s)
425
425
 
@@ -450,7 +450,7 @@ module OCI
450
450
  def get_volume_backup_policy(policy_id, opts = {})
451
451
  logger.debug "Calling operation BlockstorageClient#get_volume_backup_policy." if logger
452
452
 
453
- fail "Missing the required parameter 'policy_id' when calling get_volume_backup_policy." if policy_id.nil?
453
+ raise "Missing the required parameter 'policy_id' when calling get_volume_backup_policy." if policy_id.nil?
454
454
 
455
455
  path = "/volumeBackupPolicies/{policyId}".sub('{policyId}', policy_id.to_s)
456
456
 
@@ -490,7 +490,7 @@ module OCI
490
490
  def get_volume_backup_policy_asset_assignment(asset_id, opts = {})
491
491
  logger.debug "Calling operation BlockstorageClient#get_volume_backup_policy_asset_assignment." if logger
492
492
 
493
- fail "Missing the required parameter 'asset_id' when calling get_volume_backup_policy_asset_assignment." if asset_id.nil?
493
+ raise "Missing the required parameter 'asset_id' when calling get_volume_backup_policy_asset_assignment." if asset_id.nil?
494
494
 
495
495
  path = "/volumeBackupPolicyAssignments"
496
496
 
@@ -524,7 +524,7 @@ module OCI
524
524
  def get_volume_backup_policy_assignment(policy_assignment_id, opts = {})
525
525
  logger.debug "Calling operation BlockstorageClient#get_volume_backup_policy_assignment." if logger
526
526
 
527
- fail "Missing the required parameter 'policy_assignment_id' when calling get_volume_backup_policy_assignment." if policy_assignment_id.nil?
527
+ raise "Missing the required parameter 'policy_assignment_id' when calling get_volume_backup_policy_assignment." if policy_assignment_id.nil?
528
528
 
529
529
  path = "/volumeBackupPolicyAssignments/{policyAssignmentId}".sub('{policyAssignmentId}', policy_assignment_id.to_s)
530
530
 
@@ -566,8 +566,8 @@ module OCI
566
566
  def list_boot_volumes(availability_domain, compartment_id, opts = {})
567
567
  logger.debug "Calling operation BlockstorageClient#list_boot_volumes." if logger
568
568
 
569
- fail "Missing the required parameter 'availability_domain' when calling list_boot_volumes." if availability_domain.nil?
570
- fail "Missing the required parameter 'compartment_id' when calling list_boot_volumes." if compartment_id.nil?
569
+ raise "Missing the required parameter 'availability_domain' when calling list_boot_volumes." if availability_domain.nil?
570
+ raise "Missing the required parameter 'compartment_id' when calling list_boot_volumes." if compartment_id.nil?
571
571
 
572
572
  path = "/bootVolumes"
573
573
 
@@ -665,18 +665,18 @@ module OCI
665
665
  def list_volume_backups(compartment_id, opts = {})
666
666
  logger.debug "Calling operation BlockstorageClient#list_volume_backups." if logger
667
667
 
668
- fail "Missing the required parameter 'compartment_id' when calling list_volume_backups." if compartment_id.nil?
668
+ raise "Missing the required parameter 'compartment_id' when calling list_volume_backups." if compartment_id.nil?
669
669
 
670
670
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
671
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
671
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
672
672
  end
673
673
 
674
674
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
675
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
675
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
676
676
  end
677
677
 
678
678
  if opts[:'lifecycle_state'] && !OCI::Core::Models::VolumeBackup::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
679
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::VolumeBackup::LIFECYCLE_STATE_ENUM.'
679
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::VolumeBackup::LIFECYCLE_STATE_ENUM.'
680
680
  end
681
681
 
682
682
  path = "/volumeBackups"
@@ -745,18 +745,18 @@ module OCI
745
745
  def list_volumes(compartment_id, opts = {})
746
746
  logger.debug "Calling operation BlockstorageClient#list_volumes." if logger
747
747
 
748
- fail "Missing the required parameter 'compartment_id' when calling list_volumes." if compartment_id.nil?
748
+ raise "Missing the required parameter 'compartment_id' when calling list_volumes." if compartment_id.nil?
749
749
 
750
750
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
751
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
751
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
752
752
  end
753
753
 
754
754
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
755
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
755
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
756
756
  end
757
757
 
758
758
  if opts[:'lifecycle_state'] && !OCI::Core::Models::Volume::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
759
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Volume::LIFECYCLE_STATE_ENUM.'
759
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Volume::LIFECYCLE_STATE_ENUM.'
760
760
  end
761
761
 
762
762
  path = "/volumes"
@@ -801,8 +801,8 @@ module OCI
801
801
  def update_boot_volume(boot_volume_id, update_boot_volume_details, opts = {})
802
802
  logger.debug "Calling operation BlockstorageClient#update_boot_volume." if logger
803
803
 
804
- fail "Missing the required parameter 'boot_volume_id' when calling update_boot_volume." if boot_volume_id.nil?
805
- fail "Missing the required parameter 'update_boot_volume_details' when calling update_boot_volume." if update_boot_volume_details.nil?
804
+ raise "Missing the required parameter 'boot_volume_id' when calling update_boot_volume." if boot_volume_id.nil?
805
+ raise "Missing the required parameter 'update_boot_volume_details' when calling update_boot_volume." if update_boot_volume_details.nil?
806
806
 
807
807
  path = "/bootVolumes/{bootVolumeId}".sub('{bootVolumeId}', boot_volume_id.to_s)
808
808
 
@@ -841,8 +841,8 @@ module OCI
841
841
  def update_volume(volume_id, update_volume_details, opts = {})
842
842
  logger.debug "Calling operation BlockstorageClient#update_volume." if logger
843
843
 
844
- fail "Missing the required parameter 'volume_id' when calling update_volume." if volume_id.nil?
845
- fail "Missing the required parameter 'update_volume_details' when calling update_volume." if update_volume_details.nil?
844
+ raise "Missing the required parameter 'volume_id' when calling update_volume." if volume_id.nil?
845
+ raise "Missing the required parameter 'update_volume_details' when calling update_volume." if update_volume_details.nil?
846
846
 
847
847
  path = "/volumes/{volumeId}".sub('{volumeId}', volume_id.to_s)
848
848
 
@@ -881,8 +881,8 @@ module OCI
881
881
  def update_volume_backup(volume_backup_id, update_volume_backup_details, opts = {})
882
882
  logger.debug "Calling operation BlockstorageClient#update_volume_backup." if logger
883
883
 
884
- fail "Missing the required parameter 'volume_backup_id' when calling update_volume_backup." if volume_backup_id.nil?
885
- fail "Missing the required parameter 'update_volume_backup_details' when calling update_volume_backup." if update_volume_backup_details.nil?
884
+ raise "Missing the required parameter 'volume_backup_id' when calling update_volume_backup." if volume_backup_id.nil?
885
+ raise "Missing the required parameter 'update_volume_backup_details' when calling update_volume_backup." if update_volume_backup_details.nil?
886
886
 
887
887
  path = "/volumeBackups/{volumeBackupId}".sub('{volumeBackupId}', volume_backup_id.to_s)
888
888
 
@@ -60,7 +60,7 @@ module OCI
60
60
  def region=(r)
61
61
  @region = r
62
62
 
63
- fail 'A region must be specified.' unless @region
63
+ raise 'A region must be specified.' unless @region
64
64
 
65
65
  @endpoint = OCI::Regions.get_service_endpoint(@region, :ComputeClient) + '/20160918'
66
66
  logger.info "ComputeClient endpoint set to '#{endpoint}'." if logger
@@ -86,7 +86,7 @@ module OCI
86
86
  def attach_boot_volume(attach_boot_volume_details, opts = {})
87
87
  logger.debug "Calling operation ComputeClient#attach_boot_volume." if logger
88
88
 
89
- fail "Missing the required parameter 'attach_boot_volume_details' when calling attach_boot_volume." if attach_boot_volume_details.nil?
89
+ raise "Missing the required parameter 'attach_boot_volume_details' when calling attach_boot_volume." if attach_boot_volume_details.nil?
90
90
 
91
91
  path = "/bootVolumeAttachments/"
92
92
 
@@ -127,7 +127,7 @@ module OCI
127
127
  def attach_vnic(attach_vnic_details, opts = {})
128
128
  logger.debug "Calling operation ComputeClient#attach_vnic." if logger
129
129
 
130
- fail "Missing the required parameter 'attach_vnic_details' when calling attach_vnic." if attach_vnic_details.nil?
130
+ raise "Missing the required parameter 'attach_vnic_details' when calling attach_vnic." if attach_vnic_details.nil?
131
131
 
132
132
  path = "/vnicAttachments/"
133
133
 
@@ -166,7 +166,7 @@ module OCI
166
166
  def attach_volume(attach_volume_details, opts = {})
167
167
  logger.debug "Calling operation ComputeClient#attach_volume." if logger
168
168
 
169
- fail "Missing the required parameter 'attach_volume_details' when calling attach_volume." if attach_volume_details.nil?
169
+ raise "Missing the required parameter 'attach_volume_details' when calling attach_volume." if attach_volume_details.nil?
170
170
 
171
171
  path = "/volumeAttachments/"
172
172
 
@@ -221,7 +221,7 @@ module OCI
221
221
  def capture_console_history(capture_console_history_details, opts = {})
222
222
  logger.debug "Calling operation ComputeClient#capture_console_history." if logger
223
223
 
224
- fail "Missing the required parameter 'capture_console_history_details' when calling capture_console_history." if capture_console_history_details.nil?
224
+ raise "Missing the required parameter 'capture_console_history_details' when calling capture_console_history." if capture_console_history_details.nil?
225
225
 
226
226
  path = "/instanceConsoleHistories/"
227
227
 
@@ -282,7 +282,7 @@ module OCI
282
282
  def create_image(create_image_details, opts = {})
283
283
  logger.debug "Calling operation ComputeClient#create_image." if logger
284
284
 
285
- fail "Missing the required parameter 'create_image_details' when calling create_image." if create_image_details.nil?
285
+ raise "Missing the required parameter 'create_image_details' when calling create_image." if create_image_details.nil?
286
286
 
287
287
  path = "/images"
288
288
 
@@ -325,7 +325,7 @@ module OCI
325
325
  def create_instance_console_connection(create_instance_console_connection_details, opts = {})
326
326
  logger.debug "Calling operation ComputeClient#create_instance_console_connection." if logger
327
327
 
328
- fail "Missing the required parameter 'create_instance_console_connection_details' when calling create_instance_console_connection." if create_instance_console_connection_details.nil?
328
+ raise "Missing the required parameter 'create_instance_console_connection_details' when calling create_instance_console_connection." if create_instance_console_connection_details.nil?
329
329
 
330
330
  path = "/instanceConsoleConnections"
331
331
 
@@ -361,7 +361,7 @@ module OCI
361
361
  def delete_console_history(instance_console_history_id, opts = {})
362
362
  logger.debug "Calling operation ComputeClient#delete_console_history." if logger
363
363
 
364
- fail "Missing the required parameter 'instance_console_history_id' when calling delete_console_history." if instance_console_history_id.nil?
364
+ raise "Missing the required parameter 'instance_console_history_id' when calling delete_console_history." if instance_console_history_id.nil?
365
365
 
366
366
  path = "/instanceConsoleHistories/{instanceConsoleHistoryId}".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
367
367
 
@@ -396,7 +396,7 @@ module OCI
396
396
  def delete_image(image_id, opts = {})
397
397
  logger.debug "Calling operation ComputeClient#delete_image." if logger
398
398
 
399
- fail "Missing the required parameter 'image_id' when calling delete_image." if image_id.nil?
399
+ raise "Missing the required parameter 'image_id' when calling delete_image." if image_id.nil?
400
400
 
401
401
  path = "/images/{imageId}".sub('{imageId}', image_id.to_s)
402
402
 
@@ -431,7 +431,7 @@ module OCI
431
431
  def delete_instance_console_connection(instance_console_connection_id, opts = {})
432
432
  logger.debug "Calling operation ComputeClient#delete_instance_console_connection." if logger
433
433
 
434
- fail "Missing the required parameter 'instance_console_connection_id' when calling delete_instance_console_connection." if instance_console_connection_id.nil?
434
+ raise "Missing the required parameter 'instance_console_connection_id' when calling delete_instance_console_connection." if instance_console_connection_id.nil?
435
435
 
436
436
  path = "/instanceConsoleConnections/{instanceConsoleConnectionId}".sub('{instanceConsoleConnectionId}', instance_console_connection_id.to_s)
437
437
 
@@ -470,7 +470,7 @@ module OCI
470
470
  def detach_boot_volume(boot_volume_attachment_id, opts = {})
471
471
  logger.debug "Calling operation ComputeClient#detach_boot_volume." if logger
472
472
 
473
- fail "Missing the required parameter 'boot_volume_attachment_id' when calling detach_boot_volume." if boot_volume_attachment_id.nil?
473
+ raise "Missing the required parameter 'boot_volume_attachment_id' when calling detach_boot_volume." if boot_volume_attachment_id.nil?
474
474
 
475
475
  path = "/bootVolumeAttachments/{bootVolumeAttachmentId}".sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
476
476
 
@@ -515,7 +515,7 @@ module OCI
515
515
  def detach_vnic(vnic_attachment_id, opts = {})
516
516
  logger.debug "Calling operation ComputeClient#detach_vnic." if logger
517
517
 
518
- fail "Missing the required parameter 'vnic_attachment_id' when calling detach_vnic." if vnic_attachment_id.nil?
518
+ raise "Missing the required parameter 'vnic_attachment_id' when calling detach_vnic." if vnic_attachment_id.nil?
519
519
 
520
520
  path = "/vnicAttachments/{vnicAttachmentId}".sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
521
521
 
@@ -554,7 +554,7 @@ module OCI
554
554
  def detach_volume(volume_attachment_id, opts = {})
555
555
  logger.debug "Calling operation ComputeClient#detach_volume." if logger
556
556
 
557
- fail "Missing the required parameter 'volume_attachment_id' when calling detach_volume." if volume_attachment_id.nil?
557
+ raise "Missing the required parameter 'volume_attachment_id' when calling detach_volume." if volume_attachment_id.nil?
558
558
 
559
559
  path = "/volumeAttachments/{volumeAttachmentId}".sub('{volumeAttachmentId}', volume_attachment_id.to_s)
560
560
 
@@ -606,8 +606,8 @@ module OCI
606
606
  def export_image(image_id, export_image_details, opts = {})
607
607
  logger.debug "Calling operation ComputeClient#export_image." if logger
608
608
 
609
- fail "Missing the required parameter 'image_id' when calling export_image." if image_id.nil?
610
- fail "Missing the required parameter 'export_image_details' when calling export_image." if export_image_details.nil?
609
+ raise "Missing the required parameter 'image_id' when calling export_image." if image_id.nil?
610
+ raise "Missing the required parameter 'export_image_details' when calling export_image." if export_image_details.nil?
611
611
 
612
612
  path = "/images/{imageId}/actions/export".sub('{imageId}', image_id.to_s)
613
613
 
@@ -640,7 +640,7 @@ module OCI
640
640
  def get_boot_volume_attachment(boot_volume_attachment_id, opts = {})
641
641
  logger.debug "Calling operation ComputeClient#get_boot_volume_attachment." if logger
642
642
 
643
- fail "Missing the required parameter 'boot_volume_attachment_id' when calling get_boot_volume_attachment." if boot_volume_attachment_id.nil?
643
+ raise "Missing the required parameter 'boot_volume_attachment_id' when calling get_boot_volume_attachment." if boot_volume_attachment_id.nil?
644
644
 
645
645
  path = "/bootVolumeAttachments/{bootVolumeAttachmentId}".sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
646
646
 
@@ -674,7 +674,7 @@ module OCI
674
674
  def get_console_history(instance_console_history_id, opts = {})
675
675
  logger.debug "Calling operation ComputeClient#get_console_history." if logger
676
676
 
677
- fail "Missing the required parameter 'instance_console_history_id' when calling get_console_history." if instance_console_history_id.nil?
677
+ raise "Missing the required parameter 'instance_console_history_id' when calling get_console_history." if instance_console_history_id.nil?
678
678
 
679
679
  path = "/instanceConsoleHistories/{instanceConsoleHistoryId}".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
680
680
 
@@ -710,7 +710,7 @@ module OCI
710
710
  def get_console_history_content(instance_console_history_id, opts = {})
711
711
  logger.debug "Calling operation ComputeClient#get_console_history_content." if logger
712
712
 
713
- fail "Missing the required parameter 'instance_console_history_id' when calling get_console_history_content." if instance_console_history_id.nil?
713
+ raise "Missing the required parameter 'instance_console_history_id' when calling get_console_history_content." if instance_console_history_id.nil?
714
714
 
715
715
  path = "/instanceConsoleHistories/{instanceConsoleHistoryId}/data".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
716
716
 
@@ -743,7 +743,7 @@ module OCI
743
743
  def get_image(image_id, opts = {})
744
744
  logger.debug "Calling operation ComputeClient#get_image." if logger
745
745
 
746
- fail "Missing the required parameter 'image_id' when calling get_image." if image_id.nil?
746
+ raise "Missing the required parameter 'image_id' when calling get_image." if image_id.nil?
747
747
 
748
748
  path = "/images/{imageId}".sub('{imageId}', image_id.to_s)
749
749
 
@@ -774,7 +774,7 @@ module OCI
774
774
  def get_instance(instance_id, opts = {})
775
775
  logger.debug "Calling operation ComputeClient#get_instance." if logger
776
776
 
777
- fail "Missing the required parameter 'instance_id' when calling get_instance." if instance_id.nil?
777
+ raise "Missing the required parameter 'instance_id' when calling get_instance." if instance_id.nil?
778
778
 
779
779
  path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
780
780
 
@@ -805,7 +805,7 @@ module OCI
805
805
  def get_instance_console_connection(instance_console_connection_id, opts = {})
806
806
  logger.debug "Calling operation ComputeClient#get_instance_console_connection." if logger
807
807
 
808
- fail "Missing the required parameter 'instance_console_connection_id' when calling get_instance_console_connection." if instance_console_connection_id.nil?
808
+ raise "Missing the required parameter 'instance_console_connection_id' when calling get_instance_console_connection." if instance_console_connection_id.nil?
809
809
 
810
810
  path = "/instanceConsoleConnections/{instanceConsoleConnectionId}".sub('{instanceConsoleConnectionId}', instance_console_connection_id.to_s)
811
811
 
@@ -837,7 +837,7 @@ module OCI
837
837
  def get_vnic_attachment(vnic_attachment_id, opts = {})
838
838
  logger.debug "Calling operation ComputeClient#get_vnic_attachment." if logger
839
839
 
840
- fail "Missing the required parameter 'vnic_attachment_id' when calling get_vnic_attachment." if vnic_attachment_id.nil?
840
+ raise "Missing the required parameter 'vnic_attachment_id' when calling get_vnic_attachment." if vnic_attachment_id.nil?
841
841
 
842
842
  path = "/vnicAttachments/{vnicAttachmentId}".sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
843
843
 
@@ -868,7 +868,7 @@ module OCI
868
868
  def get_volume_attachment(volume_attachment_id, opts = {})
869
869
  logger.debug "Calling operation ComputeClient#get_volume_attachment." if logger
870
870
 
871
- fail "Missing the required parameter 'volume_attachment_id' when calling get_volume_attachment." if volume_attachment_id.nil?
871
+ raise "Missing the required parameter 'volume_attachment_id' when calling get_volume_attachment." if volume_attachment_id.nil?
872
872
 
873
873
  path = "/volumeAttachments/{volumeAttachmentId}".sub('{volumeAttachmentId}', volume_attachment_id.to_s)
874
874
 
@@ -901,7 +901,7 @@ module OCI
901
901
  def get_windows_instance_initial_credentials(instance_id, opts = {})
902
902
  logger.debug "Calling operation ComputeClient#get_windows_instance_initial_credentials." if logger
903
903
 
904
- fail "Missing the required parameter 'instance_id' when calling get_windows_instance_initial_credentials." if instance_id.nil?
904
+ raise "Missing the required parameter 'instance_id' when calling get_windows_instance_initial_credentials." if instance_id.nil?
905
905
 
906
906
  path = "/instances/{instanceId}/initialCredentials".sub('{instanceId}', instance_id.to_s)
907
907
 
@@ -960,10 +960,10 @@ module OCI
960
960
  def instance_action(instance_id, action, opts = {})
961
961
  logger.debug "Calling operation ComputeClient#instance_action." if logger
962
962
 
963
- fail "Missing the required parameter 'instance_id' when calling instance_action." if instance_id.nil?
964
- fail "Missing the required parameter 'action' when calling instance_action." if action.nil?
963
+ raise "Missing the required parameter 'instance_id' when calling instance_action." if instance_id.nil?
964
+ raise "Missing the required parameter 'action' when calling instance_action." if action.nil?
965
965
  unless ['STOP', 'START', 'SOFTRESET', 'RESET'].include?(action)
966
- fail "Invalid value for 'action', must be one of STOP, START, SOFTRESET, RESET."
966
+ raise "Invalid value for 'action', must be one of STOP, START, SOFTRESET, RESET."
967
967
  end
968
968
 
969
969
  path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
@@ -1035,7 +1035,7 @@ module OCI
1035
1035
  def launch_instance(launch_instance_details, opts = {})
1036
1036
  logger.debug "Calling operation ComputeClient#launch_instance." if logger
1037
1037
 
1038
- fail "Missing the required parameter 'launch_instance_details' when calling launch_instance." if launch_instance_details.nil?
1038
+ raise "Missing the required parameter 'launch_instance_details' when calling launch_instance." if launch_instance_details.nil?
1039
1039
 
1040
1040
  path = "/instances/"
1041
1041
 
@@ -1081,8 +1081,8 @@ module OCI
1081
1081
  def list_boot_volume_attachments(availability_domain, compartment_id, opts = {})
1082
1082
  logger.debug "Calling operation ComputeClient#list_boot_volume_attachments." if logger
1083
1083
 
1084
- fail "Missing the required parameter 'availability_domain' when calling list_boot_volume_attachments." if availability_domain.nil?
1085
- fail "Missing the required parameter 'compartment_id' when calling list_boot_volume_attachments." if compartment_id.nil?
1084
+ raise "Missing the required parameter 'availability_domain' when calling list_boot_volume_attachments." if availability_domain.nil?
1085
+ raise "Missing the required parameter 'compartment_id' when calling list_boot_volume_attachments." if compartment_id.nil?
1086
1086
 
1087
1087
  path = "/bootVolumeAttachments/"
1088
1088
 
@@ -1147,18 +1147,18 @@ module OCI
1147
1147
  def list_console_histories(compartment_id, opts = {})
1148
1148
  logger.debug "Calling operation ComputeClient#list_console_histories." if logger
1149
1149
 
1150
- fail "Missing the required parameter 'compartment_id' when calling list_console_histories." if compartment_id.nil?
1150
+ raise "Missing the required parameter 'compartment_id' when calling list_console_histories." if compartment_id.nil?
1151
1151
 
1152
1152
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
1153
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1153
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1154
1154
  end
1155
1155
 
1156
1156
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
1157
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
1157
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1158
1158
  end
1159
1159
 
1160
1160
  if opts[:'lifecycle_state'] && !OCI::Core::Models::ConsoleHistory::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
1161
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::ConsoleHistory::LIFECYCLE_STATE_ENUM.'
1161
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::ConsoleHistory::LIFECYCLE_STATE_ENUM.'
1162
1162
  end
1163
1163
 
1164
1164
  path = "/instanceConsoleHistories/"
@@ -1236,18 +1236,18 @@ module OCI
1236
1236
  def list_images(compartment_id, opts = {})
1237
1237
  logger.debug "Calling operation ComputeClient#list_images." if logger
1238
1238
 
1239
- fail "Missing the required parameter 'compartment_id' when calling list_images." if compartment_id.nil?
1239
+ raise "Missing the required parameter 'compartment_id' when calling list_images." if compartment_id.nil?
1240
1240
 
1241
1241
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
1242
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1242
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1243
1243
  end
1244
1244
 
1245
1245
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
1246
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
1246
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1247
1247
  end
1248
1248
 
1249
1249
  if opts[:'lifecycle_state'] && !OCI::Core::Models::Image::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
1250
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Image::LIFECYCLE_STATE_ENUM.'
1250
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Image::LIFECYCLE_STATE_ENUM.'
1251
1251
  end
1252
1252
 
1253
1253
  path = "/images"
@@ -1299,7 +1299,7 @@ module OCI
1299
1299
  def list_instance_console_connections(compartment_id, opts = {})
1300
1300
  logger.debug "Calling operation ComputeClient#list_instance_console_connections." if logger
1301
1301
 
1302
- fail "Missing the required parameter 'compartment_id' when calling list_instance_console_connections." if compartment_id.nil?
1302
+ raise "Missing the required parameter 'compartment_id' when calling list_instance_console_connections." if compartment_id.nil?
1303
1303
 
1304
1304
  path = "/instanceConsoleConnections"
1305
1305
 
@@ -1365,18 +1365,18 @@ module OCI
1365
1365
  def list_instances(compartment_id, opts = {})
1366
1366
  logger.debug "Calling operation ComputeClient#list_instances." if logger
1367
1367
 
1368
- fail "Missing the required parameter 'compartment_id' when calling list_instances." if compartment_id.nil?
1368
+ raise "Missing the required parameter 'compartment_id' when calling list_instances." if compartment_id.nil?
1369
1369
 
1370
1370
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
1371
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1371
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1372
1372
  end
1373
1373
 
1374
1374
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
1375
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
1375
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1376
1376
  end
1377
1377
 
1378
1378
  if opts[:'lifecycle_state'] && !OCI::Core::Models::Instance::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
1379
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Instance::LIFECYCLE_STATE_ENUM.'
1379
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Instance::LIFECYCLE_STATE_ENUM.'
1380
1380
  end
1381
1381
 
1382
1382
  path = "/instances/"
@@ -1429,7 +1429,7 @@ module OCI
1429
1429
  def list_shapes(compartment_id, opts = {})
1430
1430
  logger.debug "Calling operation ComputeClient#list_shapes." if logger
1431
1431
 
1432
- fail "Missing the required parameter 'compartment_id' when calling list_shapes." if compartment_id.nil?
1432
+ raise "Missing the required parameter 'compartment_id' when calling list_shapes." if compartment_id.nil?
1433
1433
 
1434
1434
  path = "/shapes"
1435
1435
 
@@ -1480,7 +1480,7 @@ module OCI
1480
1480
  def list_vnic_attachments(compartment_id, opts = {})
1481
1481
  logger.debug "Calling operation ComputeClient#list_vnic_attachments." if logger
1482
1482
 
1483
- fail "Missing the required parameter 'compartment_id' when calling list_vnic_attachments." if compartment_id.nil?
1483
+ raise "Missing the required parameter 'compartment_id' when calling list_vnic_attachments." if compartment_id.nil?
1484
1484
 
1485
1485
  path = "/vnicAttachments/"
1486
1486
 
@@ -1513,7 +1513,8 @@ module OCI
1513
1513
  # Lists the volume attachments in the specified compartment. You can filter the
1514
1514
  # list by specifying an instance OCID, volume OCID, or both.
1515
1515
  #
1516
- # Currently, the only supported volume attachment type is {IScsiVolumeAttachment}.
1516
+ # Currently, the only supported volume attachment type are {IScsiVolumeAttachment} and
1517
+ # {ParavirtualizedVolumeAttachment}.
1517
1518
  #
1518
1519
  # @param [String] compartment_id The OCID of the compartment.
1519
1520
  # @param [Hash] opts the optional parameters
@@ -1533,7 +1534,7 @@ module OCI
1533
1534
  def list_volume_attachments(compartment_id, opts = {})
1534
1535
  logger.debug "Calling operation ComputeClient#list_volume_attachments." if logger
1535
1536
 
1536
- fail "Missing the required parameter 'compartment_id' when calling list_volume_attachments." if compartment_id.nil?
1537
+ raise "Missing the required parameter 'compartment_id' when calling list_volume_attachments." if compartment_id.nil?
1537
1538
 
1538
1539
  path = "/volumeAttachments/"
1539
1540
 
@@ -1585,7 +1586,7 @@ module OCI
1585
1586
  def terminate_instance(instance_id, opts = {})
1586
1587
  logger.debug "Calling operation ComputeClient#terminate_instance." if logger
1587
1588
 
1588
- fail "Missing the required parameter 'instance_id' when calling terminate_instance." if instance_id.nil?
1589
+ raise "Missing the required parameter 'instance_id' when calling terminate_instance." if instance_id.nil?
1589
1590
 
1590
1591
  path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
1591
1592
 
@@ -1622,8 +1623,8 @@ module OCI
1622
1623
  def update_console_history(instance_console_history_id, update_console_history_details, opts = {})
1623
1624
  logger.debug "Calling operation ComputeClient#update_console_history." if logger
1624
1625
 
1625
- fail "Missing the required parameter 'instance_console_history_id' when calling update_console_history." if instance_console_history_id.nil?
1626
- fail "Missing the required parameter 'update_console_history_details' when calling update_console_history." if update_console_history_details.nil?
1626
+ raise "Missing the required parameter 'instance_console_history_id' when calling update_console_history." if instance_console_history_id.nil?
1627
+ raise "Missing the required parameter 'update_console_history_details' when calling update_console_history." if update_console_history_details.nil?
1627
1628
 
1628
1629
  path = "/instanceConsoleHistories/{instanceConsoleHistoryId}".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
1629
1630
 
@@ -1666,8 +1667,8 @@ module OCI
1666
1667
  def update_image(image_id, update_image_details, opts = {})
1667
1668
  logger.debug "Calling operation ComputeClient#update_image." if logger
1668
1669
 
1669
- fail "Missing the required parameter 'image_id' when calling update_image." if image_id.nil?
1670
- fail "Missing the required parameter 'update_image_details' when calling update_image." if update_image_details.nil?
1670
+ raise "Missing the required parameter 'image_id' when calling update_image." if image_id.nil?
1671
+ raise "Missing the required parameter 'update_image_details' when calling update_image." if update_image_details.nil?
1671
1672
 
1672
1673
  path = "/images/{imageId}".sub('{imageId}', image_id.to_s)
1673
1674
 
@@ -1713,8 +1714,8 @@ module OCI
1713
1714
  def update_instance(instance_id, update_instance_details, opts = {})
1714
1715
  logger.debug "Calling operation ComputeClient#update_instance." if logger
1715
1716
 
1716
- fail "Missing the required parameter 'instance_id' when calling update_instance." if instance_id.nil?
1717
- fail "Missing the required parameter 'update_instance_details' when calling update_instance." if update_instance_details.nil?
1717
+ raise "Missing the required parameter 'instance_id' when calling update_instance." if instance_id.nil?
1718
+ raise "Missing the required parameter 'update_instance_details' when calling update_instance." if update_instance_details.nil?
1718
1719
 
1719
1720
  path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
1720
1721