oci 2.0.8 → 2.0.9

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -143,7 +143,7 @@ module OCI
143
143
  # @param [Object] public_access_type Object to be assigned
144
144
  def public_access_type=(public_access_type)
145
145
  if public_access_type && !PUBLIC_ACCESS_TYPE_ENUM.include?(public_access_type)
146
- fail "Invalid value for 'public_access_type': this must be one of the values in PUBLIC_ACCESS_TYPE_ENUM."
146
+ raise "Invalid value for 'public_access_type': this must be one of the values in PUBLIC_ACCESS_TYPE_ENUM."
147
147
  else
148
148
  @public_access_type = public_access_type
149
149
  end
@@ -153,7 +153,7 @@ module OCI
153
153
  # @param [Object] storage_tier Object to be assigned
154
154
  def storage_tier=(storage_tier)
155
155
  if storage_tier && !STORAGE_TIER_ENUM.include?(storage_tier)
156
- fail "Invalid value for 'storage_tier': this must be one of the values in STORAGE_TIER_ENUM."
156
+ raise "Invalid value for 'storage_tier': this must be one of the values in STORAGE_TIER_ENUM."
157
157
  else
158
158
  @storage_tier = storage_tier
159
159
  end
@@ -80,7 +80,7 @@ module OCI
80
80
  # @param [Object] access_type Object to be assigned
81
81
  def access_type=(access_type)
82
82
  if access_type && !ACCESS_TYPE_ENUM.include?(access_type)
83
- fail "Invalid value for 'access_type': this must be one of the values in ACCESS_TYPE_ENUM."
83
+ raise "Invalid value for 'access_type': this must be one of the values in ACCESS_TYPE_ENUM."
84
84
  else
85
85
  @access_type = access_type
86
86
  end
@@ -127,7 +127,7 @@ module OCI
127
127
  # @param [Object] public_access_type Object to be assigned
128
128
  def public_access_type=(public_access_type)
129
129
  if public_access_type && !PUBLIC_ACCESS_TYPE_ENUM.include?(public_access_type)
130
- fail "Invalid value for 'public_access_type': this must be one of the values in PUBLIC_ACCESS_TYPE_ENUM."
130
+ raise "Invalid value for 'public_access_type': this must be one of the values in PUBLIC_ACCESS_TYPE_ENUM."
131
131
  else
132
132
  @public_access_type = public_access_type
133
133
  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, :ObjectStorageClient) + '/'
66
66
  logger.info "ObjectStorageClient endpoint set to '#{endpoint}'." if logger
@@ -88,10 +88,10 @@ module OCI
88
88
  def abort_multipart_upload(namespace_name, bucket_name, object_name, upload_id, opts = {})
89
89
  logger.debug "Calling operation ObjectStorageClient#abort_multipart_upload." if logger
90
90
 
91
- fail "Missing the required parameter 'namespace_name' when calling abort_multipart_upload." if namespace_name.nil?
92
- fail "Missing the required parameter 'bucket_name' when calling abort_multipart_upload." if bucket_name.nil?
93
- fail "Missing the required parameter 'object_name' when calling abort_multipart_upload." if object_name.nil?
94
- fail "Missing the required parameter 'upload_id' when calling abort_multipart_upload." if upload_id.nil?
91
+ raise "Missing the required parameter 'namespace_name' when calling abort_multipart_upload." if namespace_name.nil?
92
+ raise "Missing the required parameter 'bucket_name' when calling abort_multipart_upload." if bucket_name.nil?
93
+ raise "Missing the required parameter 'object_name' when calling abort_multipart_upload." if object_name.nil?
94
+ raise "Missing the required parameter 'upload_id' when calling abort_multipart_upload." if upload_id.nil?
95
95
 
96
96
  path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
97
97
 
@@ -139,11 +139,11 @@ module OCI
139
139
  def commit_multipart_upload(namespace_name, bucket_name, object_name, upload_id, commit_multipart_upload_details, opts = {})
140
140
  logger.debug "Calling operation ObjectStorageClient#commit_multipart_upload." if logger
141
141
 
142
- fail "Missing the required parameter 'namespace_name' when calling commit_multipart_upload." if namespace_name.nil?
143
- fail "Missing the required parameter 'bucket_name' when calling commit_multipart_upload." if bucket_name.nil?
144
- fail "Missing the required parameter 'object_name' when calling commit_multipart_upload." if object_name.nil?
145
- fail "Missing the required parameter 'upload_id' when calling commit_multipart_upload." if upload_id.nil?
146
- fail "Missing the required parameter 'commit_multipart_upload_details' when calling commit_multipart_upload." if commit_multipart_upload_details.nil?
142
+ raise "Missing the required parameter 'namespace_name' when calling commit_multipart_upload." if namespace_name.nil?
143
+ raise "Missing the required parameter 'bucket_name' when calling commit_multipart_upload." if bucket_name.nil?
144
+ raise "Missing the required parameter 'object_name' when calling commit_multipart_upload." if object_name.nil?
145
+ raise "Missing the required parameter 'upload_id' when calling commit_multipart_upload." if upload_id.nil?
146
+ raise "Missing the required parameter 'commit_multipart_upload_details' when calling commit_multipart_upload." if commit_multipart_upload_details.nil?
147
147
 
148
148
  path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
149
149
 
@@ -180,8 +180,8 @@ module OCI
180
180
  def create_bucket(namespace_name, create_bucket_details, opts = {})
181
181
  logger.debug "Calling operation ObjectStorageClient#create_bucket." if logger
182
182
 
183
- fail "Missing the required parameter 'namespace_name' when calling create_bucket." if namespace_name.nil?
184
- fail "Missing the required parameter 'create_bucket_details' when calling create_bucket." if create_bucket_details.nil?
183
+ raise "Missing the required parameter 'namespace_name' when calling create_bucket." if namespace_name.nil?
184
+ raise "Missing the required parameter 'create_bucket_details' when calling create_bucket." if create_bucket_details.nil?
185
185
 
186
186
  path = "/n/{namespaceName}/b/".sub('{namespaceName}', namespace_name.to_s)
187
187
 
@@ -225,9 +225,9 @@ module OCI
225
225
  def create_multipart_upload(namespace_name, bucket_name, create_multipart_upload_details, opts = {})
226
226
  logger.debug "Calling operation ObjectStorageClient#create_multipart_upload." if logger
227
227
 
228
- fail "Missing the required parameter 'namespace_name' when calling create_multipart_upload." if namespace_name.nil?
229
- fail "Missing the required parameter 'bucket_name' when calling create_multipart_upload." if bucket_name.nil?
230
- fail "Missing the required parameter 'create_multipart_upload_details' when calling create_multipart_upload." if create_multipart_upload_details.nil?
228
+ raise "Missing the required parameter 'namespace_name' when calling create_multipart_upload." if namespace_name.nil?
229
+ raise "Missing the required parameter 'bucket_name' when calling create_multipart_upload." if bucket_name.nil?
230
+ raise "Missing the required parameter 'create_multipart_upload_details' when calling create_multipart_upload." if create_multipart_upload_details.nil?
231
231
 
232
232
  path = "/n/{namespaceName}/b/{bucketName}/u".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
233
233
 
@@ -267,9 +267,9 @@ module OCI
267
267
  def create_preauthenticated_request(namespace_name, bucket_name, create_preauthenticated_request_details, opts = {})
268
268
  logger.debug "Calling operation ObjectStorageClient#create_preauthenticated_request." if logger
269
269
 
270
- fail "Missing the required parameter 'namespace_name' when calling create_preauthenticated_request." if namespace_name.nil?
271
- fail "Missing the required parameter 'bucket_name' when calling create_preauthenticated_request." if bucket_name.nil?
272
- fail "Missing the required parameter 'create_preauthenticated_request_details' when calling create_preauthenticated_request." if create_preauthenticated_request_details.nil?
270
+ raise "Missing the required parameter 'namespace_name' when calling create_preauthenticated_request." if namespace_name.nil?
271
+ raise "Missing the required parameter 'bucket_name' when calling create_preauthenticated_request." if bucket_name.nil?
272
+ raise "Missing the required parameter 'create_preauthenticated_request_details' when calling create_preauthenticated_request." if create_preauthenticated_request_details.nil?
273
273
 
274
274
  path = "/n/{namespaceName}/b/{bucketName}/p/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
275
275
 
@@ -309,8 +309,8 @@ module OCI
309
309
  def delete_bucket(namespace_name, bucket_name, opts = {})
310
310
  logger.debug "Calling operation ObjectStorageClient#delete_bucket." if logger
311
311
 
312
- fail "Missing the required parameter 'namespace_name' when calling delete_bucket." if namespace_name.nil?
313
- fail "Missing the required parameter 'bucket_name' when calling delete_bucket." if bucket_name.nil?
312
+ raise "Missing the required parameter 'namespace_name' when calling delete_bucket." if namespace_name.nil?
313
+ raise "Missing the required parameter 'bucket_name' when calling delete_bucket." if bucket_name.nil?
314
314
 
315
315
  path = "/n/{namespaceName}/b/{bucketName}/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
316
316
 
@@ -353,9 +353,9 @@ module OCI
353
353
  def delete_object(namespace_name, bucket_name, object_name, opts = {})
354
354
  logger.debug "Calling operation ObjectStorageClient#delete_object." if logger
355
355
 
356
- fail "Missing the required parameter 'namespace_name' when calling delete_object." if namespace_name.nil?
357
- fail "Missing the required parameter 'bucket_name' when calling delete_object." if bucket_name.nil?
358
- fail "Missing the required parameter 'object_name' when calling delete_object." if object_name.nil?
356
+ raise "Missing the required parameter 'namespace_name' when calling delete_object." if namespace_name.nil?
357
+ raise "Missing the required parameter 'bucket_name' when calling delete_object." if bucket_name.nil?
358
+ raise "Missing the required parameter 'object_name' when calling delete_object." if object_name.nil?
359
359
 
360
360
  path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
361
361
 
@@ -394,9 +394,9 @@ module OCI
394
394
  def delete_preauthenticated_request(namespace_name, bucket_name, par_id, opts = {})
395
395
  logger.debug "Calling operation ObjectStorageClient#delete_preauthenticated_request." if logger
396
396
 
397
- fail "Missing the required parameter 'namespace_name' when calling delete_preauthenticated_request." if namespace_name.nil?
398
- fail "Missing the required parameter 'bucket_name' when calling delete_preauthenticated_request." if bucket_name.nil?
399
- fail "Missing the required parameter 'par_id' when calling delete_preauthenticated_request." if par_id.nil?
397
+ raise "Missing the required parameter 'namespace_name' when calling delete_preauthenticated_request." if namespace_name.nil?
398
+ raise "Missing the required parameter 'bucket_name' when calling delete_preauthenticated_request." if bucket_name.nil?
399
+ raise "Missing the required parameter 'par_id' when calling delete_preauthenticated_request." if par_id.nil?
400
400
 
401
401
  path = "/n/{namespaceName}/b/{bucketName}/p/{parId}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{parId}', par_id.to_s)
402
402
 
@@ -438,8 +438,8 @@ module OCI
438
438
  def get_bucket(namespace_name, bucket_name, opts = {})
439
439
  logger.debug "Calling operation ObjectStorageClient#get_bucket." if logger
440
440
 
441
- fail "Missing the required parameter 'namespace_name' when calling get_bucket." if namespace_name.nil?
442
- fail "Missing the required parameter 'bucket_name' when calling get_bucket." if bucket_name.nil?
441
+ raise "Missing the required parameter 'namespace_name' when calling get_bucket." if namespace_name.nil?
442
+ raise "Missing the required parameter 'bucket_name' when calling get_bucket." if bucket_name.nil?
443
443
 
444
444
  path = "/n/{namespaceName}/b/{bucketName}/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
445
445
 
@@ -511,7 +511,7 @@ module OCI
511
511
  def get_namespace_metadata(namespace_name, opts = {})
512
512
  logger.debug "Calling operation ObjectStorageClient#get_namespace_metadata." if logger
513
513
 
514
- fail "Missing the required parameter 'namespace_name' when calling get_namespace_metadata." if namespace_name.nil?
514
+ raise "Missing the required parameter 'namespace_name' when calling get_namespace_metadata." if namespace_name.nil?
515
515
 
516
516
  path = "/n/{namespaceName}".sub('{namespaceName}', namespace_name.to_s)
517
517
 
@@ -562,9 +562,9 @@ module OCI
562
562
  def get_object(namespace_name, bucket_name, object_name, opts = {}, &block)
563
563
  logger.debug "Calling operation ObjectStorageClient#get_object." if logger
564
564
 
565
- fail "Missing the required parameter 'namespace_name' when calling get_object." if namespace_name.nil?
566
- fail "Missing the required parameter 'bucket_name' when calling get_object." if bucket_name.nil?
567
- fail "Missing the required parameter 'object_name' when calling get_object." if object_name.nil?
565
+ raise "Missing the required parameter 'namespace_name' when calling get_object." if namespace_name.nil?
566
+ raise "Missing the required parameter 'bucket_name' when calling get_object." if bucket_name.nil?
567
+ raise "Missing the required parameter 'object_name' when calling get_object." if object_name.nil?
568
568
 
569
569
  path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
570
570
 
@@ -646,9 +646,9 @@ module OCI
646
646
  def get_preauthenticated_request(namespace_name, bucket_name, par_id, opts = {})
647
647
  logger.debug "Calling operation ObjectStorageClient#get_preauthenticated_request." if logger
648
648
 
649
- fail "Missing the required parameter 'namespace_name' when calling get_preauthenticated_request." if namespace_name.nil?
650
- fail "Missing the required parameter 'bucket_name' when calling get_preauthenticated_request." if bucket_name.nil?
651
- fail "Missing the required parameter 'par_id' when calling get_preauthenticated_request." if par_id.nil?
649
+ raise "Missing the required parameter 'namespace_name' when calling get_preauthenticated_request." if namespace_name.nil?
650
+ raise "Missing the required parameter 'bucket_name' when calling get_preauthenticated_request." if bucket_name.nil?
651
+ raise "Missing the required parameter 'par_id' when calling get_preauthenticated_request." if par_id.nil?
652
652
 
653
653
  path = "/n/{namespaceName}/b/{bucketName}/p/{parId}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{parId}', par_id.to_s)
654
654
 
@@ -691,8 +691,8 @@ module OCI
691
691
  def head_bucket(namespace_name, bucket_name, opts = {})
692
692
  logger.debug "Calling operation ObjectStorageClient#head_bucket." if logger
693
693
 
694
- fail "Missing the required parameter 'namespace_name' when calling head_bucket." if namespace_name.nil?
695
- fail "Missing the required parameter 'bucket_name' when calling head_bucket." if bucket_name.nil?
694
+ raise "Missing the required parameter 'namespace_name' when calling head_bucket." if namespace_name.nil?
695
+ raise "Missing the required parameter 'bucket_name' when calling head_bucket." if bucket_name.nil?
696
696
 
697
697
  path = "/n/{namespaceName}/b/{bucketName}/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
698
698
 
@@ -739,9 +739,9 @@ module OCI
739
739
  def head_object(namespace_name, bucket_name, object_name, opts = {})
740
740
  logger.debug "Calling operation ObjectStorageClient#head_object." if logger
741
741
 
742
- fail "Missing the required parameter 'namespace_name' when calling head_object." if namespace_name.nil?
743
- fail "Missing the required parameter 'bucket_name' when calling head_object." if bucket_name.nil?
744
- fail "Missing the required parameter 'object_name' when calling head_object." if object_name.nil?
742
+ raise "Missing the required parameter 'namespace_name' when calling head_object." if namespace_name.nil?
743
+ raise "Missing the required parameter 'bucket_name' when calling head_object." if bucket_name.nil?
744
+ raise "Missing the required parameter 'object_name' when calling head_object." if object_name.nil?
745
745
 
746
746
  path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
747
747
 
@@ -789,8 +789,8 @@ module OCI
789
789
  def list_buckets(namespace_name, compartment_id, opts = {})
790
790
  logger.debug "Calling operation ObjectStorageClient#list_buckets." if logger
791
791
 
792
- fail "Missing the required parameter 'namespace_name' when calling list_buckets." if namespace_name.nil?
793
- fail "Missing the required parameter 'compartment_id' when calling list_buckets." if compartment_id.nil?
792
+ raise "Missing the required parameter 'namespace_name' when calling list_buckets." if namespace_name.nil?
793
+ raise "Missing the required parameter 'compartment_id' when calling list_buckets." if compartment_id.nil?
794
794
 
795
795
 
796
796
  fields_allowable_values = ['tags']
@@ -847,10 +847,10 @@ module OCI
847
847
  def list_multipart_upload_parts(namespace_name, bucket_name, object_name, upload_id, opts = {})
848
848
  logger.debug "Calling operation ObjectStorageClient#list_multipart_upload_parts." if logger
849
849
 
850
- fail "Missing the required parameter 'namespace_name' when calling list_multipart_upload_parts." if namespace_name.nil?
851
- fail "Missing the required parameter 'bucket_name' when calling list_multipart_upload_parts." if bucket_name.nil?
852
- fail "Missing the required parameter 'object_name' when calling list_multipart_upload_parts." if object_name.nil?
853
- fail "Missing the required parameter 'upload_id' when calling list_multipart_upload_parts." if upload_id.nil?
850
+ raise "Missing the required parameter 'namespace_name' when calling list_multipart_upload_parts." if namespace_name.nil?
851
+ raise "Missing the required parameter 'bucket_name' when calling list_multipart_upload_parts." if bucket_name.nil?
852
+ raise "Missing the required parameter 'object_name' when calling list_multipart_upload_parts." if object_name.nil?
853
+ raise "Missing the required parameter 'upload_id' when calling list_multipart_upload_parts." if upload_id.nil?
854
854
 
855
855
  path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
856
856
 
@@ -892,8 +892,8 @@ module OCI
892
892
  def list_multipart_uploads(namespace_name, bucket_name, opts = {})
893
893
  logger.debug "Calling operation ObjectStorageClient#list_multipart_uploads." if logger
894
894
 
895
- fail "Missing the required parameter 'namespace_name' when calling list_multipart_uploads." if namespace_name.nil?
896
- fail "Missing the required parameter 'bucket_name' when calling list_multipart_uploads." if bucket_name.nil?
895
+ raise "Missing the required parameter 'namespace_name' when calling list_multipart_uploads." if namespace_name.nil?
896
+ raise "Missing the required parameter 'bucket_name' when calling list_multipart_uploads." if bucket_name.nil?
897
897
 
898
898
  path = "/n/{namespaceName}/b/{bucketName}/u".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
899
899
 
@@ -951,8 +951,8 @@ module OCI
951
951
  def list_objects(namespace_name, bucket_name, opts = {})
952
952
  logger.debug "Calling operation ObjectStorageClient#list_objects." if logger
953
953
 
954
- fail "Missing the required parameter 'namespace_name' when calling list_objects." if namespace_name.nil?
955
- fail "Missing the required parameter 'bucket_name' when calling list_objects." if bucket_name.nil?
954
+ raise "Missing the required parameter 'namespace_name' when calling list_objects." if namespace_name.nil?
955
+ raise "Missing the required parameter 'bucket_name' when calling list_objects." if bucket_name.nil?
956
956
 
957
957
  path = "/n/{namespaceName}/b/{bucketName}/o".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
958
958
 
@@ -998,8 +998,8 @@ module OCI
998
998
  def list_preauthenticated_requests(namespace_name, bucket_name, opts = {})
999
999
  logger.debug "Calling operation ObjectStorageClient#list_preauthenticated_requests." if logger
1000
1000
 
1001
- fail "Missing the required parameter 'namespace_name' when calling list_preauthenticated_requests." if namespace_name.nil?
1002
- fail "Missing the required parameter 'bucket_name' when calling list_preauthenticated_requests." if bucket_name.nil?
1001
+ raise "Missing the required parameter 'namespace_name' when calling list_preauthenticated_requests." if namespace_name.nil?
1002
+ raise "Missing the required parameter 'bucket_name' when calling list_preauthenticated_requests." if bucket_name.nil?
1003
1003
 
1004
1004
  path = "/n/{namespaceName}/b/{bucketName}/p/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
1005
1005
 
@@ -1056,10 +1056,10 @@ module OCI
1056
1056
  def put_object(namespace_name, bucket_name, object_name, put_object_body, opts = {})
1057
1057
  logger.debug "Calling operation ObjectStorageClient#put_object." if logger
1058
1058
 
1059
- fail "Missing the required parameter 'namespace_name' when calling put_object." if namespace_name.nil?
1060
- fail "Missing the required parameter 'bucket_name' when calling put_object." if bucket_name.nil?
1061
- fail "Missing the required parameter 'object_name' when calling put_object." if object_name.nil?
1062
- fail "Missing the required parameter 'put_object_body' when calling put_object." if put_object_body.nil?
1059
+ raise "Missing the required parameter 'namespace_name' when calling put_object." if namespace_name.nil?
1060
+ raise "Missing the required parameter 'bucket_name' when calling put_object." if bucket_name.nil?
1061
+ raise "Missing the required parameter 'object_name' when calling put_object." if object_name.nil?
1062
+ raise "Missing the required parameter 'put_object_body' when calling put_object." if put_object_body.nil?
1063
1063
 
1064
1064
  path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
1065
1065
 
@@ -1109,9 +1109,9 @@ module OCI
1109
1109
  def rename_object(namespace_name, bucket_name, rename_object_details, opts = {})
1110
1110
  logger.debug "Calling operation ObjectStorageClient#rename_object." if logger
1111
1111
 
1112
- fail "Missing the required parameter 'namespace_name' when calling rename_object." if namespace_name.nil?
1113
- fail "Missing the required parameter 'bucket_name' when calling rename_object." if bucket_name.nil?
1114
- fail "Missing the required parameter 'rename_object_details' when calling rename_object." if rename_object_details.nil?
1112
+ raise "Missing the required parameter 'namespace_name' when calling rename_object." if namespace_name.nil?
1113
+ raise "Missing the required parameter 'bucket_name' when calling rename_object." if bucket_name.nil?
1114
+ raise "Missing the required parameter 'rename_object_details' when calling rename_object." if rename_object_details.nil?
1115
1115
 
1116
1116
  path = "/n/{namespaceName}/b/{bucketName}/actions/renameObject".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
1117
1117
 
@@ -1149,9 +1149,9 @@ module OCI
1149
1149
  def restore_objects(namespace_name, bucket_name, restore_objects_details, opts = {})
1150
1150
  logger.debug "Calling operation ObjectStorageClient#restore_objects." if logger
1151
1151
 
1152
- fail "Missing the required parameter 'namespace_name' when calling restore_objects." if namespace_name.nil?
1153
- fail "Missing the required parameter 'bucket_name' when calling restore_objects." if bucket_name.nil?
1154
- fail "Missing the required parameter 'restore_objects_details' when calling restore_objects." if restore_objects_details.nil?
1152
+ raise "Missing the required parameter 'namespace_name' when calling restore_objects." if namespace_name.nil?
1153
+ raise "Missing the required parameter 'bucket_name' when calling restore_objects." if bucket_name.nil?
1154
+ raise "Missing the required parameter 'restore_objects_details' when calling restore_objects." if restore_objects_details.nil?
1155
1155
 
1156
1156
  path = "/n/{namespaceName}/b/{bucketName}/actions/restoreObjects".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
1157
1157
 
@@ -1191,9 +1191,9 @@ module OCI
1191
1191
  def update_bucket(namespace_name, bucket_name, update_bucket_details, opts = {})
1192
1192
  logger.debug "Calling operation ObjectStorageClient#update_bucket." if logger
1193
1193
 
1194
- fail "Missing the required parameter 'namespace_name' when calling update_bucket." if namespace_name.nil?
1195
- fail "Missing the required parameter 'bucket_name' when calling update_bucket." if bucket_name.nil?
1196
- fail "Missing the required parameter 'update_bucket_details' when calling update_bucket." if update_bucket_details.nil?
1194
+ raise "Missing the required parameter 'namespace_name' when calling update_bucket." if namespace_name.nil?
1195
+ raise "Missing the required parameter 'bucket_name' when calling update_bucket." if bucket_name.nil?
1196
+ raise "Missing the required parameter 'update_bucket_details' when calling update_bucket." if update_bucket_details.nil?
1197
1197
 
1198
1198
  path = "/n/{namespaceName}/b/{bucketName}/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
1199
1199
 
@@ -1232,8 +1232,8 @@ module OCI
1232
1232
  def update_namespace_metadata(namespace_name, update_namespace_metadata_details, opts = {})
1233
1233
  logger.debug "Calling operation ObjectStorageClient#update_namespace_metadata." if logger
1234
1234
 
1235
- fail "Missing the required parameter 'namespace_name' when calling update_namespace_metadata." if namespace_name.nil?
1236
- fail "Missing the required parameter 'update_namespace_metadata_details' when calling update_namespace_metadata." if update_namespace_metadata_details.nil?
1235
+ raise "Missing the required parameter 'namespace_name' when calling update_namespace_metadata." if namespace_name.nil?
1236
+ raise "Missing the required parameter 'update_namespace_metadata_details' when calling update_namespace_metadata." if update_namespace_metadata_details.nil?
1237
1237
 
1238
1238
  path = "/n/{namespaceName}".sub('{namespaceName}', namespace_name.to_s)
1239
1239
 
@@ -1285,12 +1285,12 @@ module OCI
1285
1285
  def upload_part(namespace_name, bucket_name, object_name, upload_id, upload_part_num, upload_part_body, opts = {})
1286
1286
  logger.debug "Calling operation ObjectStorageClient#upload_part." if logger
1287
1287
 
1288
- fail "Missing the required parameter 'namespace_name' when calling upload_part." if namespace_name.nil?
1289
- fail "Missing the required parameter 'bucket_name' when calling upload_part." if bucket_name.nil?
1290
- fail "Missing the required parameter 'object_name' when calling upload_part." if object_name.nil?
1291
- fail "Missing the required parameter 'upload_id' when calling upload_part." if upload_id.nil?
1292
- fail "Missing the required parameter 'upload_part_num' when calling upload_part." if upload_part_num.nil?
1293
- fail "Missing the required parameter 'upload_part_body' when calling upload_part." if upload_part_body.nil?
1288
+ raise "Missing the required parameter 'namespace_name' when calling upload_part." if namespace_name.nil?
1289
+ raise "Missing the required parameter 'bucket_name' when calling upload_part." if bucket_name.nil?
1290
+ raise "Missing the required parameter 'object_name' when calling upload_part." if object_name.nil?
1291
+ raise "Missing the required parameter 'upload_id' when calling upload_part." if upload_id.nil?
1292
+ raise "Missing the required parameter 'upload_part_num' when calling upload_part." if upload_part_num.nil?
1293
+ raise "Missing the required parameter 'upload_part_body' when calling upload_part." if upload_part_body.nil?
1294
1294
 
1295
1295
  path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
1296
1296
 
@@ -26,7 +26,8 @@ module OCI
26
26
  AuditClient: 'audit',
27
27
  Auth: 'auth',
28
28
  DnsClient: 'dns',
29
- FileStorageClient: 'filestorage'
29
+ FileStorageClient: 'filestorage',
30
+ EmailClient: 'email'
30
31
  }.freeze
31
32
 
32
33
  # Returns an endpoint for the given region and service.
@@ -36,6 +36,7 @@ module OCI
36
36
  @data = data
37
37
 
38
38
  @next_page = @headers['opc-next-page'] if headers
39
+ @next_page = data.next_start_with if data.is_a?(OCI::ObjectStorage::Models::ListObjects)
39
40
  @request_id = @headers['opc-request-id'] if headers
40
41
  end
41
42
 
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  module OCI
4
- VERSION = '2.0.8'.freeze
4
+ VERSION = '2.0.9'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oci
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oracle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-22 00:00:00.000000000 Z
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -71,9 +71,6 @@ dependencies:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
73
  version: 3.0.1
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: 3.0.1
77
74
  type: :development
78
75
  prerelease: false
79
76
  version_requirements: !ruby/object:Gem::Requirement
@@ -81,9 +78,6 @@ dependencies:
81
78
  - - "~>"
82
79
  - !ruby/object:Gem::Version
83
80
  version: 3.0.1
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- version: 3.0.1
87
81
  - !ruby/object:Gem::Dependency
88
82
  name: vcr
89
83
  requirement: !ruby/object:Gem::Requirement
@@ -91,9 +85,6 @@ dependencies:
91
85
  - - "~>"
92
86
  - !ruby/object:Gem::Version
93
87
  version: 3.0.3
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: 3.0.3
97
88
  type: :development
98
89
  prerelease: false
99
90
  version_requirements: !ruby/object:Gem::Requirement
@@ -101,9 +92,6 @@ dependencies:
101
92
  - - "~>"
102
93
  - !ruby/object:Gem::Version
103
94
  version: 3.0.3
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- version: 3.0.3
107
95
  - !ruby/object:Gem::Dependency
108
96
  name: yard
109
97
  requirement: !ruby/object:Gem::Requirement
@@ -111,9 +99,6 @@ dependencies:
111
99
  - - "~>"
112
100
  - !ruby/object:Gem::Version
113
101
  version: 0.8.7.6
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: 0.8.7.6
117
102
  type: :development
118
103
  prerelease: false
119
104
  version_requirements: !ruby/object:Gem::Requirement
@@ -121,9 +106,6 @@ dependencies:
121
106
  - - "~>"
122
107
  - !ruby/object:Gem::Version
123
108
  version: 0.8.7.6
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- version: 0.8.7.6
127
109
  - !ruby/object:Gem::Dependency
128
110
  name: os
129
111
  requirement: !ruby/object:Gem::Requirement
@@ -171,6 +153,7 @@ files:
171
153
  - "./lib/oci/core/core.rb"
172
154
  - "./lib/oci/core/models/attach_boot_volume_details.rb"
173
155
  - "./lib/oci/core/models/attach_i_scsi_volume_details.rb"
156
+ - "./lib/oci/core/models/attach_paravirtualized_volume_details.rb"
174
157
  - "./lib/oci/core/models/attach_vnic_details.rb"
175
158
  - "./lib/oci/core/models/attach_volume_details.rb"
176
159
  - "./lib/oci/core/models/boot_volume.rb"
@@ -245,6 +228,7 @@ files:
245
228
  - "./lib/oci/core/models/launch_options.rb"
246
229
  - "./lib/oci/core/models/letter_of_authority.rb"
247
230
  - "./lib/oci/core/models/local_peering_gateway.rb"
231
+ - "./lib/oci/core/models/paravirtualized_volume_attachment.rb"
248
232
  - "./lib/oci/core/models/port_range.rb"
249
233
  - "./lib/oci/core/models/private_ip.rb"
250
234
  - "./lib/oci/core/models/public_ip.rb"
@@ -358,6 +342,15 @@ files:
358
342
  - "./lib/oci/dns/models/zone.rb"
359
343
  - "./lib/oci/dns/models/zone_summary.rb"
360
344
  - "./lib/oci/dns/util.rb"
345
+ - "./lib/oci/email/email.rb"
346
+ - "./lib/oci/email/email_client.rb"
347
+ - "./lib/oci/email/models/create_sender_details.rb"
348
+ - "./lib/oci/email/models/create_suppression_details.rb"
349
+ - "./lib/oci/email/models/sender.rb"
350
+ - "./lib/oci/email/models/sender_summary.rb"
351
+ - "./lib/oci/email/models/suppression.rb"
352
+ - "./lib/oci/email/models/suppression_summary.rb"
353
+ - "./lib/oci/email/util.rb"
361
354
  - "./lib/oci/errors.rb"
362
355
  - "./lib/oci/file_storage/file_storage.rb"
363
356
  - "./lib/oci/file_storage/file_storage_client.rb"
@@ -396,6 +389,7 @@ files:
396
389
  - "./lib/oci/identity/models/create_policy_details.rb"
397
390
  - "./lib/oci/identity/models/create_region_subscription_details.rb"
398
391
  - "./lib/oci/identity/models/create_saml2_identity_provider_details.rb"
392
+ - "./lib/oci/identity/models/create_smtp_credential_details.rb"
399
393
  - "./lib/oci/identity/models/create_swift_password_details.rb"
400
394
  - "./lib/oci/identity/models/create_tag_details.rb"
401
395
  - "./lib/oci/identity/models/create_tag_namespace_details.rb"
@@ -410,6 +404,8 @@ files:
410
404
  - "./lib/oci/identity/models/region.rb"
411
405
  - "./lib/oci/identity/models/region_subscription.rb"
412
406
  - "./lib/oci/identity/models/saml2_identity_provider.rb"
407
+ - "./lib/oci/identity/models/smtp_credential.rb"
408
+ - "./lib/oci/identity/models/smtp_credential_summary.rb"
413
409
  - "./lib/oci/identity/models/swift_password.rb"
414
410
  - "./lib/oci/identity/models/tag.rb"
415
411
  - "./lib/oci/identity/models/tag_namespace.rb"
@@ -425,6 +421,7 @@ files:
425
421
  - "./lib/oci/identity/models/update_idp_group_mapping_details.rb"
426
422
  - "./lib/oci/identity/models/update_policy_details.rb"
427
423
  - "./lib/oci/identity/models/update_saml2_identity_provider_details.rb"
424
+ - "./lib/oci/identity/models/update_smtp_credential_details.rb"
428
425
  - "./lib/oci/identity/models/update_state_details.rb"
429
426
  - "./lib/oci/identity/models/update_swift_password_details.rb"
430
427
  - "./lib/oci/identity/models/update_tag_details.rb"