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
@@ -167,7 +167,7 @@ module OCI
167
167
  # @param [Object] provider_state Object to be assigned
168
168
  def provider_state=(provider_state)
169
169
  if provider_state && !PROVIDER_STATE_ENUM.include?(provider_state)
170
- fail "Invalid value for 'provider_state': this must be one of the values in PROVIDER_STATE_ENUM."
170
+ raise "Invalid value for 'provider_state': this must be one of the values in PROVIDER_STATE_ENUM."
171
171
  else
172
172
  @provider_state = provider_state
173
173
  end
@@ -76,6 +76,7 @@ module OCI
76
76
  type = object_hash[:'attachmentType']
77
77
 
78
78
  return 'OCI::Core::Models::IScsiVolumeAttachment' if type == 'iscsi'
79
+ return 'OCI::Core::Models::ParavirtualizedVolumeAttachment' if type == 'paravirtualized'
79
80
 
80
81
  # TODO: Log a warning when the subtype is not found.
81
82
  return 'OCI::Core::Models::VolumeAttachment'
@@ -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, :VirtualNetworkClient) + '/20160918'
66
66
  logger.info "VirtualNetworkClient endpoint set to '#{endpoint}'." if logger
@@ -84,8 +84,8 @@ module OCI
84
84
  def bulk_add_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_add_virtual_circuit_public_prefixes_details, opts = {})
85
85
  logger.debug "Calling operation VirtualNetworkClient#bulk_add_virtual_circuit_public_prefixes." if logger
86
86
 
87
- fail "Missing the required parameter 'virtual_circuit_id' when calling bulk_add_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
88
- fail "Missing the required parameter 'bulk_add_virtual_circuit_public_prefixes_details' when calling bulk_add_virtual_circuit_public_prefixes." if bulk_add_virtual_circuit_public_prefixes_details.nil?
87
+ raise "Missing the required parameter 'virtual_circuit_id' when calling bulk_add_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
88
+ raise "Missing the required parameter 'bulk_add_virtual_circuit_public_prefixes_details' when calling bulk_add_virtual_circuit_public_prefixes." if bulk_add_virtual_circuit_public_prefixes_details.nil?
89
89
 
90
90
  path = "/virtualCircuits/{virtualCircuitId}/actions/bulkAddPublicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
91
91
 
@@ -120,8 +120,8 @@ module OCI
120
120
  def bulk_delete_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_delete_virtual_circuit_public_prefixes_details, opts = {})
121
121
  logger.debug "Calling operation VirtualNetworkClient#bulk_delete_virtual_circuit_public_prefixes." if logger
122
122
 
123
- fail "Missing the required parameter 'virtual_circuit_id' when calling bulk_delete_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
124
- fail "Missing the required parameter 'bulk_delete_virtual_circuit_public_prefixes_details' when calling bulk_delete_virtual_circuit_public_prefixes." if bulk_delete_virtual_circuit_public_prefixes_details.nil?
123
+ raise "Missing the required parameter 'virtual_circuit_id' when calling bulk_delete_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
124
+ raise "Missing the required parameter 'bulk_delete_virtual_circuit_public_prefixes_details' when calling bulk_delete_virtual_circuit_public_prefixes." if bulk_delete_virtual_circuit_public_prefixes_details.nil?
125
125
 
126
126
  path = "/virtualCircuits/{virtualCircuitId}/actions/bulkDeletePublicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
127
127
 
@@ -160,8 +160,8 @@ module OCI
160
160
  def connect_local_peering_gateways(local_peering_gateway_id, connect_local_peering_gateways_details, opts = {})
161
161
  logger.debug "Calling operation VirtualNetworkClient#connect_local_peering_gateways." if logger
162
162
 
163
- fail "Missing the required parameter 'local_peering_gateway_id' when calling connect_local_peering_gateways." if local_peering_gateway_id.nil?
164
- fail "Missing the required parameter 'connect_local_peering_gateways_details' when calling connect_local_peering_gateways." if connect_local_peering_gateways_details.nil?
163
+ raise "Missing the required parameter 'local_peering_gateway_id' when calling connect_local_peering_gateways." if local_peering_gateway_id.nil?
164
+ raise "Missing the required parameter 'connect_local_peering_gateways_details' when calling connect_local_peering_gateways." if connect_local_peering_gateways_details.nil?
165
165
 
166
166
  path = "/localPeeringGateways/{localPeeringGatewayId}/actions/connect".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
167
167
 
@@ -212,7 +212,7 @@ module OCI
212
212
  def create_cpe(create_cpe_details, opts = {})
213
213
  logger.debug "Calling operation VirtualNetworkClient#create_cpe." if logger
214
214
 
215
- fail "Missing the required parameter 'create_cpe_details' when calling create_cpe." if create_cpe_details.nil?
215
+ raise "Missing the required parameter 'create_cpe_details' when calling create_cpe." if create_cpe_details.nil?
216
216
 
217
217
  path = "/cpes"
218
218
 
@@ -269,7 +269,7 @@ module OCI
269
269
  def create_cross_connect(create_cross_connect_details, opts = {})
270
270
  logger.debug "Calling operation VirtualNetworkClient#create_cross_connect." if logger
271
271
 
272
- fail "Missing the required parameter 'create_cross_connect_details' when calling create_cross_connect." if create_cross_connect_details.nil?
272
+ raise "Missing the required parameter 'create_cross_connect_details' when calling create_cross_connect." if create_cross_connect_details.nil?
273
273
 
274
274
  path = "/crossConnects"
275
275
 
@@ -322,7 +322,7 @@ module OCI
322
322
  def create_cross_connect_group(create_cross_connect_group_details, opts = {})
323
323
  logger.debug "Calling operation VirtualNetworkClient#create_cross_connect_group." if logger
324
324
 
325
- fail "Missing the required parameter 'create_cross_connect_group_details' when calling create_cross_connect_group." if create_cross_connect_group_details.nil?
325
+ raise "Missing the required parameter 'create_cross_connect_group_details' when calling create_cross_connect_group." if create_cross_connect_group_details.nil?
326
326
 
327
327
  path = "/crossConnectGroups"
328
328
 
@@ -372,7 +372,7 @@ module OCI
372
372
  def create_dhcp_options(create_dhcp_details, opts = {})
373
373
  logger.debug "Calling operation VirtualNetworkClient#create_dhcp_options." if logger
374
374
 
375
- fail "Missing the required parameter 'create_dhcp_details' when calling create_dhcp_options." if create_dhcp_details.nil?
375
+ raise "Missing the required parameter 'create_dhcp_details' when calling create_dhcp_options." if create_dhcp_details.nil?
376
376
 
377
377
  path = "/dhcps"
378
378
 
@@ -422,7 +422,7 @@ module OCI
422
422
  def create_drg(create_drg_details, opts = {})
423
423
  logger.debug "Calling operation VirtualNetworkClient#create_drg." if logger
424
424
 
425
- fail "Missing the required parameter 'create_drg_details' when calling create_drg." if create_drg_details.nil?
425
+ raise "Missing the required parameter 'create_drg_details' when calling create_drg." if create_drg_details.nil?
426
426
 
427
427
  path = "/drgs"
428
428
 
@@ -471,7 +471,7 @@ module OCI
471
471
  def create_drg_attachment(create_drg_attachment_details, opts = {})
472
472
  logger.debug "Calling operation VirtualNetworkClient#create_drg_attachment." if logger
473
473
 
474
- fail "Missing the required parameter 'create_drg_attachment_details' when calling create_drg_attachment." if create_drg_attachment_details.nil?
474
+ raise "Missing the required parameter 'create_drg_attachment_details' when calling create_drg_attachment." if create_drg_attachment_details.nil?
475
475
 
476
476
  path = "/drgAttachments"
477
477
 
@@ -530,7 +530,7 @@ module OCI
530
530
  def create_internet_gateway(create_internet_gateway_details, opts = {})
531
531
  logger.debug "Calling operation VirtualNetworkClient#create_internet_gateway." if logger
532
532
 
533
- fail "Missing the required parameter 'create_internet_gateway_details' when calling create_internet_gateway." if create_internet_gateway_details.nil?
533
+ raise "Missing the required parameter 'create_internet_gateway_details' when calling create_internet_gateway." if create_internet_gateway_details.nil?
534
534
 
535
535
  path = "/internetGateways"
536
536
 
@@ -594,7 +594,7 @@ module OCI
594
594
  def create_ip_sec_connection(create_ip_sec_connection_details, opts = {})
595
595
  logger.debug "Calling operation VirtualNetworkClient#create_ip_sec_connection." if logger
596
596
 
597
- fail "Missing the required parameter 'create_ip_sec_connection_details' when calling create_ip_sec_connection." if create_ip_sec_connection_details.nil?
597
+ raise "Missing the required parameter 'create_ip_sec_connection_details' when calling create_ip_sec_connection." if create_ip_sec_connection_details.nil?
598
598
 
599
599
  path = "/ipsecConnections"
600
600
 
@@ -633,7 +633,7 @@ module OCI
633
633
  def create_local_peering_gateway(create_local_peering_gateway_details, opts = {})
634
634
  logger.debug "Calling operation VirtualNetworkClient#create_local_peering_gateway." if logger
635
635
 
636
- fail "Missing the required parameter 'create_local_peering_gateway_details' when calling create_local_peering_gateway." if create_local_peering_gateway_details.nil?
636
+ raise "Missing the required parameter 'create_local_peering_gateway_details' when calling create_local_peering_gateway." if create_local_peering_gateway_details.nil?
637
637
 
638
638
  path = "/localPeeringGateways"
639
639
 
@@ -674,7 +674,7 @@ module OCI
674
674
  def create_private_ip(create_private_ip_details, opts = {})
675
675
  logger.debug "Calling operation VirtualNetworkClient#create_private_ip." if logger
676
676
 
677
- fail "Missing the required parameter 'create_private_ip_details' when calling create_private_ip." if create_private_ip_details.nil?
677
+ raise "Missing the required parameter 'create_private_ip_details' when calling create_private_ip." if create_private_ip_details.nil?
678
678
 
679
679
  path = "/privateIps"
680
680
 
@@ -732,7 +732,7 @@ module OCI
732
732
  def create_public_ip(create_public_ip_details, opts = {})
733
733
  logger.debug "Calling operation VirtualNetworkClient#create_public_ip." if logger
734
734
 
735
- fail "Missing the required parameter 'create_public_ip_details' when calling create_public_ip." if create_public_ip_details.nil?
735
+ raise "Missing the required parameter 'create_public_ip_details' when calling create_public_ip." if create_public_ip_details.nil?
736
736
 
737
737
  path = "/publicIps"
738
738
 
@@ -785,7 +785,7 @@ module OCI
785
785
  def create_route_table(create_route_table_details, opts = {})
786
786
  logger.debug "Calling operation VirtualNetworkClient#create_route_table." if logger
787
787
 
788
- fail "Missing the required parameter 'create_route_table_details' when calling create_route_table." if create_route_table_details.nil?
788
+ raise "Missing the required parameter 'create_route_table_details' when calling create_route_table." if create_route_table_details.nil?
789
789
 
790
790
  path = "/routeTables"
791
791
 
@@ -837,7 +837,7 @@ module OCI
837
837
  def create_security_list(create_security_list_details, opts = {})
838
838
  logger.debug "Calling operation VirtualNetworkClient#create_security_list." if logger
839
839
 
840
- fail "Missing the required parameter 'create_security_list_details' when calling create_security_list." if create_security_list_details.nil?
840
+ raise "Missing the required parameter 'create_security_list_details' when calling create_security_list." if create_security_list_details.nil?
841
841
 
842
842
  path = "/securityLists"
843
843
 
@@ -906,7 +906,7 @@ module OCI
906
906
  def create_subnet(create_subnet_details, opts = {})
907
907
  logger.debug "Calling operation VirtualNetworkClient#create_subnet." if logger
908
908
 
909
- fail "Missing the required parameter 'create_subnet_details' when calling create_subnet." if create_subnet_details.nil?
909
+ raise "Missing the required parameter 'create_subnet_details' when calling create_subnet." if create_subnet_details.nil?
910
910
 
911
911
  path = "/subnets"
912
912
 
@@ -973,7 +973,7 @@ module OCI
973
973
  def create_vcn(create_vcn_details, opts = {})
974
974
  logger.debug "Calling operation VirtualNetworkClient#create_vcn." if logger
975
975
 
976
- fail "Missing the required parameter 'create_vcn_details' when calling create_vcn." if create_vcn_details.nil?
976
+ raise "Missing the required parameter 'create_vcn_details' when calling create_vcn." if create_vcn_details.nil?
977
977
 
978
978
  path = "/vcns"
979
979
 
@@ -1032,7 +1032,7 @@ module OCI
1032
1032
  def create_virtual_circuit(create_virtual_circuit_details, opts = {})
1033
1033
  logger.debug "Calling operation VirtualNetworkClient#create_virtual_circuit." if logger
1034
1034
 
1035
- fail "Missing the required parameter 'create_virtual_circuit_details' when calling create_virtual_circuit." if create_virtual_circuit_details.nil?
1035
+ raise "Missing the required parameter 'create_virtual_circuit_details' when calling create_virtual_circuit." if create_virtual_circuit_details.nil?
1036
1036
 
1037
1037
  path = "/virtualCircuits"
1038
1038
 
@@ -1071,7 +1071,7 @@ module OCI
1071
1071
  def delete_cpe(cpe_id, opts = {})
1072
1072
  logger.debug "Calling operation VirtualNetworkClient#delete_cpe." if logger
1073
1073
 
1074
- fail "Missing the required parameter 'cpe_id' when calling delete_cpe." if cpe_id.nil?
1074
+ raise "Missing the required parameter 'cpe_id' when calling delete_cpe." if cpe_id.nil?
1075
1075
 
1076
1076
  path = "/cpes/{cpeId}".sub('{cpeId}', cpe_id.to_s)
1077
1077
 
@@ -1108,7 +1108,7 @@ module OCI
1108
1108
  def delete_cross_connect(cross_connect_id, opts = {})
1109
1109
  logger.debug "Calling operation VirtualNetworkClient#delete_cross_connect." if logger
1110
1110
 
1111
- fail "Missing the required parameter 'cross_connect_id' when calling delete_cross_connect." if cross_connect_id.nil?
1111
+ raise "Missing the required parameter 'cross_connect_id' when calling delete_cross_connect." if cross_connect_id.nil?
1112
1112
 
1113
1113
  path = "/crossConnects/{crossConnectId}".sub('{crossConnectId}', cross_connect_id.to_s)
1114
1114
 
@@ -1146,7 +1146,7 @@ module OCI
1146
1146
  def delete_cross_connect_group(cross_connect_group_id, opts = {})
1147
1147
  logger.debug "Calling operation VirtualNetworkClient#delete_cross_connect_group." if logger
1148
1148
 
1149
- fail "Missing the required parameter 'cross_connect_group_id' when calling delete_cross_connect_group." if cross_connect_group_id.nil?
1149
+ raise "Missing the required parameter 'cross_connect_group_id' when calling delete_cross_connect_group." if cross_connect_group_id.nil?
1150
1150
 
1151
1151
  path = "/crossConnectGroups/{crossConnectGroupId}".sub('{crossConnectGroupId}', cross_connect_group_id.to_s)
1152
1152
 
@@ -1186,7 +1186,7 @@ module OCI
1186
1186
  def delete_dhcp_options(dhcp_id, opts = {})
1187
1187
  logger.debug "Calling operation VirtualNetworkClient#delete_dhcp_options." if logger
1188
1188
 
1189
- fail "Missing the required parameter 'dhcp_id' when calling delete_dhcp_options." if dhcp_id.nil?
1189
+ raise "Missing the required parameter 'dhcp_id' when calling delete_dhcp_options." if dhcp_id.nil?
1190
1190
 
1191
1191
  path = "/dhcps/{dhcpId}".sub('{dhcpId}', dhcp_id.to_s)
1192
1192
 
@@ -1225,7 +1225,7 @@ module OCI
1225
1225
  def delete_drg(drg_id, opts = {})
1226
1226
  logger.debug "Calling operation VirtualNetworkClient#delete_drg." if logger
1227
1227
 
1228
- fail "Missing the required parameter 'drg_id' when calling delete_drg." if drg_id.nil?
1228
+ raise "Missing the required parameter 'drg_id' when calling delete_drg." if drg_id.nil?
1229
1229
 
1230
1230
  path = "/drgs/{drgId}".sub('{drgId}', drg_id.to_s)
1231
1231
 
@@ -1263,7 +1263,7 @@ module OCI
1263
1263
  def delete_drg_attachment(drg_attachment_id, opts = {})
1264
1264
  logger.debug "Calling operation VirtualNetworkClient#delete_drg_attachment." if logger
1265
1265
 
1266
- fail "Missing the required parameter 'drg_attachment_id' when calling delete_drg_attachment." if drg_attachment_id.nil?
1266
+ raise "Missing the required parameter 'drg_attachment_id' when calling delete_drg_attachment." if drg_attachment_id.nil?
1267
1267
 
1268
1268
  path = "/drgAttachments/{drgAttachmentId}".sub('{drgAttachmentId}', drg_attachment_id.to_s)
1269
1269
 
@@ -1303,7 +1303,7 @@ module OCI
1303
1303
  def delete_internet_gateway(ig_id, opts = {})
1304
1304
  logger.debug "Calling operation VirtualNetworkClient#delete_internet_gateway." if logger
1305
1305
 
1306
- fail "Missing the required parameter 'ig_id' when calling delete_internet_gateway." if ig_id.nil?
1306
+ raise "Missing the required parameter 'ig_id' when calling delete_internet_gateway." if ig_id.nil?
1307
1307
 
1308
1308
  path = "/internetGateways/{igId}".sub('{igId}', ig_id.to_s)
1309
1309
 
@@ -1346,7 +1346,7 @@ module OCI
1346
1346
  def delete_ip_sec_connection(ipsc_id, opts = {})
1347
1347
  logger.debug "Calling operation VirtualNetworkClient#delete_ip_sec_connection." if logger
1348
1348
 
1349
- fail "Missing the required parameter 'ipsc_id' when calling delete_ip_sec_connection." if ipsc_id.nil?
1349
+ raise "Missing the required parameter 'ipsc_id' when calling delete_ip_sec_connection." if ipsc_id.nil?
1350
1350
 
1351
1351
  path = "/ipsecConnections/{ipscId}".sub('{ipscId}', ipsc_id.to_s)
1352
1352
 
@@ -1385,7 +1385,7 @@ module OCI
1385
1385
  def delete_local_peering_gateway(local_peering_gateway_id, opts = {})
1386
1386
  logger.debug "Calling operation VirtualNetworkClient#delete_local_peering_gateway." if logger
1387
1387
 
1388
- fail "Missing the required parameter 'local_peering_gateway_id' when calling delete_local_peering_gateway." if local_peering_gateway_id.nil?
1388
+ raise "Missing the required parameter 'local_peering_gateway_id' when calling delete_local_peering_gateway." if local_peering_gateway_id.nil?
1389
1389
 
1390
1390
  path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
1391
1391
 
@@ -1431,7 +1431,7 @@ module OCI
1431
1431
  def delete_private_ip(private_ip_id, opts = {})
1432
1432
  logger.debug "Calling operation VirtualNetworkClient#delete_private_ip." if logger
1433
1433
 
1434
- fail "Missing the required parameter 'private_ip_id' when calling delete_private_ip." if private_ip_id.nil?
1434
+ raise "Missing the required parameter 'private_ip_id' when calling delete_private_ip." if private_ip_id.nil?
1435
1435
 
1436
1436
  path = "/privateIps/{privateIpId}".sub('{privateIpId}', private_ip_id.to_s)
1437
1437
 
@@ -1477,7 +1477,7 @@ module OCI
1477
1477
  def delete_public_ip(public_ip_id, opts = {})
1478
1478
  logger.debug "Calling operation VirtualNetworkClient#delete_public_ip." if logger
1479
1479
 
1480
- fail "Missing the required parameter 'public_ip_id' when calling delete_public_ip." if public_ip_id.nil?
1480
+ raise "Missing the required parameter 'public_ip_id' when calling delete_public_ip." if public_ip_id.nil?
1481
1481
 
1482
1482
  path = "/publicIps/{publicIpId}".sub('{publicIpId}', public_ip_id.to_s)
1483
1483
 
@@ -1517,7 +1517,7 @@ module OCI
1517
1517
  def delete_route_table(rt_id, opts = {})
1518
1518
  logger.debug "Calling operation VirtualNetworkClient#delete_route_table." if logger
1519
1519
 
1520
- fail "Missing the required parameter 'rt_id' when calling delete_route_table." if rt_id.nil?
1520
+ raise "Missing the required parameter 'rt_id' when calling delete_route_table." if rt_id.nil?
1521
1521
 
1522
1522
  path = "/routeTables/{rtId}".sub('{rtId}', rt_id.to_s)
1523
1523
 
@@ -1557,7 +1557,7 @@ module OCI
1557
1557
  def delete_security_list(security_list_id, opts = {})
1558
1558
  logger.debug "Calling operation VirtualNetworkClient#delete_security_list." if logger
1559
1559
 
1560
- fail "Missing the required parameter 'security_list_id' when calling delete_security_list." if security_list_id.nil?
1560
+ raise "Missing the required parameter 'security_list_id' when calling delete_security_list." if security_list_id.nil?
1561
1561
 
1562
1562
  path = "/securityLists/{securityListId}".sub('{securityListId}', security_list_id.to_s)
1563
1563
 
@@ -1595,7 +1595,7 @@ module OCI
1595
1595
  def delete_subnet(subnet_id, opts = {})
1596
1596
  logger.debug "Calling operation VirtualNetworkClient#delete_subnet." if logger
1597
1597
 
1598
- fail "Missing the required parameter 'subnet_id' when calling delete_subnet." if subnet_id.nil?
1598
+ raise "Missing the required parameter 'subnet_id' when calling delete_subnet." if subnet_id.nil?
1599
1599
 
1600
1600
  path = "/subnets/{subnetId}".sub('{subnetId}', subnet_id.to_s)
1601
1601
 
@@ -1633,7 +1633,7 @@ module OCI
1633
1633
  def delete_vcn(vcn_id, opts = {})
1634
1634
  logger.debug "Calling operation VirtualNetworkClient#delete_vcn." if logger
1635
1635
 
1636
- fail "Missing the required parameter 'vcn_id' when calling delete_vcn." if vcn_id.nil?
1636
+ raise "Missing the required parameter 'vcn_id' when calling delete_vcn." if vcn_id.nil?
1637
1637
 
1638
1638
  path = "/vcns/{vcnId}".sub('{vcnId}', vcn_id.to_s)
1639
1639
 
@@ -1673,7 +1673,7 @@ module OCI
1673
1673
  def delete_virtual_circuit(virtual_circuit_id, opts = {})
1674
1674
  logger.debug "Calling operation VirtualNetworkClient#delete_virtual_circuit." if logger
1675
1675
 
1676
- fail "Missing the required parameter 'virtual_circuit_id' when calling delete_virtual_circuit." if virtual_circuit_id.nil?
1676
+ raise "Missing the required parameter 'virtual_circuit_id' when calling delete_virtual_circuit." if virtual_circuit_id.nil?
1677
1677
 
1678
1678
  path = "/virtualCircuits/{virtualCircuitId}".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
1679
1679
 
@@ -1704,7 +1704,7 @@ module OCI
1704
1704
  def get_cpe(cpe_id, opts = {})
1705
1705
  logger.debug "Calling operation VirtualNetworkClient#get_cpe." if logger
1706
1706
 
1707
- fail "Missing the required parameter 'cpe_id' when calling get_cpe." if cpe_id.nil?
1707
+ raise "Missing the required parameter 'cpe_id' when calling get_cpe." if cpe_id.nil?
1708
1708
 
1709
1709
  path = "/cpes/{cpeId}".sub('{cpeId}', cpe_id.to_s)
1710
1710
 
@@ -1735,7 +1735,7 @@ module OCI
1735
1735
  def get_cross_connect(cross_connect_id, opts = {})
1736
1736
  logger.debug "Calling operation VirtualNetworkClient#get_cross_connect." if logger
1737
1737
 
1738
- fail "Missing the required parameter 'cross_connect_id' when calling get_cross_connect." if cross_connect_id.nil?
1738
+ raise "Missing the required parameter 'cross_connect_id' when calling get_cross_connect." if cross_connect_id.nil?
1739
1739
 
1740
1740
  path = "/crossConnects/{crossConnectId}".sub('{crossConnectId}', cross_connect_id.to_s)
1741
1741
 
@@ -1766,7 +1766,7 @@ module OCI
1766
1766
  def get_cross_connect_group(cross_connect_group_id, opts = {})
1767
1767
  logger.debug "Calling operation VirtualNetworkClient#get_cross_connect_group." if logger
1768
1768
 
1769
- fail "Missing the required parameter 'cross_connect_group_id' when calling get_cross_connect_group." if cross_connect_group_id.nil?
1769
+ raise "Missing the required parameter 'cross_connect_group_id' when calling get_cross_connect_group." if cross_connect_group_id.nil?
1770
1770
 
1771
1771
  path = "/crossConnectGroups/{crossConnectGroupId}".sub('{crossConnectGroupId}', cross_connect_group_id.to_s)
1772
1772
 
@@ -1797,7 +1797,7 @@ module OCI
1797
1797
  def get_cross_connect_letter_of_authority(cross_connect_id, opts = {})
1798
1798
  logger.debug "Calling operation VirtualNetworkClient#get_cross_connect_letter_of_authority." if logger
1799
1799
 
1800
- fail "Missing the required parameter 'cross_connect_id' when calling get_cross_connect_letter_of_authority." if cross_connect_id.nil?
1800
+ raise "Missing the required parameter 'cross_connect_id' when calling get_cross_connect_letter_of_authority." if cross_connect_id.nil?
1801
1801
 
1802
1802
  path = "/crossConnects/{crossConnectId}/letterOfAuthority".sub('{crossConnectId}', cross_connect_id.to_s)
1803
1803
 
@@ -1829,7 +1829,7 @@ module OCI
1829
1829
  def get_cross_connect_status(cross_connect_id, opts = {})
1830
1830
  logger.debug "Calling operation VirtualNetworkClient#get_cross_connect_status." if logger
1831
1831
 
1832
- fail "Missing the required parameter 'cross_connect_id' when calling get_cross_connect_status." if cross_connect_id.nil?
1832
+ raise "Missing the required parameter 'cross_connect_id' when calling get_cross_connect_status." if cross_connect_id.nil?
1833
1833
 
1834
1834
  path = "/crossConnects/{crossConnectId}/status".sub('{crossConnectId}', cross_connect_id.to_s)
1835
1835
 
@@ -1860,7 +1860,7 @@ module OCI
1860
1860
  def get_dhcp_options(dhcp_id, opts = {})
1861
1861
  logger.debug "Calling operation VirtualNetworkClient#get_dhcp_options." if logger
1862
1862
 
1863
- fail "Missing the required parameter 'dhcp_id' when calling get_dhcp_options." if dhcp_id.nil?
1863
+ raise "Missing the required parameter 'dhcp_id' when calling get_dhcp_options." if dhcp_id.nil?
1864
1864
 
1865
1865
  path = "/dhcps/{dhcpId}".sub('{dhcpId}', dhcp_id.to_s)
1866
1866
 
@@ -1891,7 +1891,7 @@ module OCI
1891
1891
  def get_drg(drg_id, opts = {})
1892
1892
  logger.debug "Calling operation VirtualNetworkClient#get_drg." if logger
1893
1893
 
1894
- fail "Missing the required parameter 'drg_id' when calling get_drg." if drg_id.nil?
1894
+ raise "Missing the required parameter 'drg_id' when calling get_drg." if drg_id.nil?
1895
1895
 
1896
1896
  path = "/drgs/{drgId}".sub('{drgId}', drg_id.to_s)
1897
1897
 
@@ -1922,7 +1922,7 @@ module OCI
1922
1922
  def get_drg_attachment(drg_attachment_id, opts = {})
1923
1923
  logger.debug "Calling operation VirtualNetworkClient#get_drg_attachment." if logger
1924
1924
 
1925
- fail "Missing the required parameter 'drg_attachment_id' when calling get_drg_attachment." if drg_attachment_id.nil?
1925
+ raise "Missing the required parameter 'drg_attachment_id' when calling get_drg_attachment." if drg_attachment_id.nil?
1926
1926
 
1927
1927
  path = "/drgAttachments/{drgAttachmentId}".sub('{drgAttachmentId}', drg_attachment_id.to_s)
1928
1928
 
@@ -1955,7 +1955,7 @@ module OCI
1955
1955
  def get_fast_connect_provider_service(provider_service_id, opts = {})
1956
1956
  logger.debug "Calling operation VirtualNetworkClient#get_fast_connect_provider_service." if logger
1957
1957
 
1958
- fail "Missing the required parameter 'provider_service_id' when calling get_fast_connect_provider_service." if provider_service_id.nil?
1958
+ raise "Missing the required parameter 'provider_service_id' when calling get_fast_connect_provider_service." if provider_service_id.nil?
1959
1959
 
1960
1960
  path = "/fastConnectProviderServices/{providerServiceId}".sub('{providerServiceId}', provider_service_id.to_s)
1961
1961
 
@@ -1986,7 +1986,7 @@ module OCI
1986
1986
  def get_internet_gateway(ig_id, opts = {})
1987
1987
  logger.debug "Calling operation VirtualNetworkClient#get_internet_gateway." if logger
1988
1988
 
1989
- fail "Missing the required parameter 'ig_id' when calling get_internet_gateway." if ig_id.nil?
1989
+ raise "Missing the required parameter 'ig_id' when calling get_internet_gateway." if ig_id.nil?
1990
1990
 
1991
1991
  path = "/internetGateways/{igId}".sub('{igId}', ig_id.to_s)
1992
1992
 
@@ -2020,7 +2020,7 @@ module OCI
2020
2020
  def get_ip_sec_connection(ipsc_id, opts = {})
2021
2021
  logger.debug "Calling operation VirtualNetworkClient#get_ip_sec_connection." if logger
2022
2022
 
2023
- fail "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection." if ipsc_id.nil?
2023
+ raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection." if ipsc_id.nil?
2024
2024
 
2025
2025
  path = "/ipsecConnections/{ipscId}".sub('{ipscId}', ipsc_id.to_s)
2026
2026
 
@@ -2053,7 +2053,7 @@ module OCI
2053
2053
  def get_ip_sec_connection_device_config(ipsc_id, opts = {})
2054
2054
  logger.debug "Calling operation VirtualNetworkClient#get_ip_sec_connection_device_config." if logger
2055
2055
 
2056
- fail "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_device_config." if ipsc_id.nil?
2056
+ raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_device_config." if ipsc_id.nil?
2057
2057
 
2058
2058
  path = "/ipsecConnections/{ipscId}/deviceConfig".sub('{ipscId}', ipsc_id.to_s)
2059
2059
 
@@ -2085,7 +2085,7 @@ module OCI
2085
2085
  def get_ip_sec_connection_device_status(ipsc_id, opts = {})
2086
2086
  logger.debug "Calling operation VirtualNetworkClient#get_ip_sec_connection_device_status." if logger
2087
2087
 
2088
- fail "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_device_status." if ipsc_id.nil?
2088
+ raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_device_status." if ipsc_id.nil?
2089
2089
 
2090
2090
  path = "/ipsecConnections/{ipscId}/deviceStatus".sub('{ipscId}', ipsc_id.to_s)
2091
2091
 
@@ -2116,7 +2116,7 @@ module OCI
2116
2116
  def get_local_peering_gateway(local_peering_gateway_id, opts = {})
2117
2117
  logger.debug "Calling operation VirtualNetworkClient#get_local_peering_gateway." if logger
2118
2118
 
2119
- fail "Missing the required parameter 'local_peering_gateway_id' when calling get_local_peering_gateway." if local_peering_gateway_id.nil?
2119
+ raise "Missing the required parameter 'local_peering_gateway_id' when calling get_local_peering_gateway." if local_peering_gateway_id.nil?
2120
2120
 
2121
2121
  path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
2122
2122
 
@@ -2151,7 +2151,7 @@ module OCI
2151
2151
  def get_private_ip(private_ip_id, opts = {})
2152
2152
  logger.debug "Calling operation VirtualNetworkClient#get_private_ip." if logger
2153
2153
 
2154
- fail "Missing the required parameter 'private_ip_id' when calling get_private_ip." if private_ip_id.nil?
2154
+ raise "Missing the required parameter 'private_ip_id' when calling get_private_ip." if private_ip_id.nil?
2155
2155
 
2156
2156
  path = "/privateIps/{privateIpId}".sub('{privateIpId}', private_ip_id.to_s)
2157
2157
 
@@ -2193,7 +2193,7 @@ module OCI
2193
2193
  def get_public_ip(public_ip_id, opts = {})
2194
2194
  logger.debug "Calling operation VirtualNetworkClient#get_public_ip." if logger
2195
2195
 
2196
- fail "Missing the required parameter 'public_ip_id' when calling get_public_ip." if public_ip_id.nil?
2196
+ raise "Missing the required parameter 'public_ip_id' when calling get_public_ip." if public_ip_id.nil?
2197
2197
 
2198
2198
  path = "/publicIps/{publicIpId}".sub('{publicIpId}', public_ip_id.to_s)
2199
2199
 
@@ -2229,7 +2229,7 @@ module OCI
2229
2229
  def get_public_ip_by_ip_address(get_public_ip_by_ip_address_details, opts = {})
2230
2230
  logger.debug "Calling operation VirtualNetworkClient#get_public_ip_by_ip_address." if logger
2231
2231
 
2232
- fail "Missing the required parameter 'get_public_ip_by_ip_address_details' when calling get_public_ip_by_ip_address." if get_public_ip_by_ip_address_details.nil?
2232
+ raise "Missing the required parameter 'get_public_ip_by_ip_address_details' when calling get_public_ip_by_ip_address." if get_public_ip_by_ip_address_details.nil?
2233
2233
 
2234
2234
  path = "/publicIps/actions/getByIpAddress"
2235
2235
 
@@ -2271,7 +2271,7 @@ module OCI
2271
2271
  def get_public_ip_by_private_ip_id(get_public_ip_by_private_ip_id_details, opts = {})
2272
2272
  logger.debug "Calling operation VirtualNetworkClient#get_public_ip_by_private_ip_id." if logger
2273
2273
 
2274
- fail "Missing the required parameter 'get_public_ip_by_private_ip_id_details' when calling get_public_ip_by_private_ip_id." if get_public_ip_by_private_ip_id_details.nil?
2274
+ raise "Missing the required parameter 'get_public_ip_by_private_ip_id_details' when calling get_public_ip_by_private_ip_id." if get_public_ip_by_private_ip_id_details.nil?
2275
2275
 
2276
2276
  path = "/publicIps/actions/getByPrivateIpId"
2277
2277
 
@@ -2302,7 +2302,7 @@ module OCI
2302
2302
  def get_route_table(rt_id, opts = {})
2303
2303
  logger.debug "Calling operation VirtualNetworkClient#get_route_table." if logger
2304
2304
 
2305
- fail "Missing the required parameter 'rt_id' when calling get_route_table." if rt_id.nil?
2305
+ raise "Missing the required parameter 'rt_id' when calling get_route_table." if rt_id.nil?
2306
2306
 
2307
2307
  path = "/routeTables/{rtId}".sub('{rtId}', rt_id.to_s)
2308
2308
 
@@ -2333,7 +2333,7 @@ module OCI
2333
2333
  def get_security_list(security_list_id, opts = {})
2334
2334
  logger.debug "Calling operation VirtualNetworkClient#get_security_list." if logger
2335
2335
 
2336
- fail "Missing the required parameter 'security_list_id' when calling get_security_list." if security_list_id.nil?
2336
+ raise "Missing the required parameter 'security_list_id' when calling get_security_list." if security_list_id.nil?
2337
2337
 
2338
2338
  path = "/securityLists/{securityListId}".sub('{securityListId}', security_list_id.to_s)
2339
2339
 
@@ -2364,7 +2364,7 @@ module OCI
2364
2364
  def get_subnet(subnet_id, opts = {})
2365
2365
  logger.debug "Calling operation VirtualNetworkClient#get_subnet." if logger
2366
2366
 
2367
- fail "Missing the required parameter 'subnet_id' when calling get_subnet." if subnet_id.nil?
2367
+ raise "Missing the required parameter 'subnet_id' when calling get_subnet." if subnet_id.nil?
2368
2368
 
2369
2369
  path = "/subnets/{subnetId}".sub('{subnetId}', subnet_id.to_s)
2370
2370
 
@@ -2395,7 +2395,7 @@ module OCI
2395
2395
  def get_vcn(vcn_id, opts = {})
2396
2396
  logger.debug "Calling operation VirtualNetworkClient#get_vcn." if logger
2397
2397
 
2398
- fail "Missing the required parameter 'vcn_id' when calling get_vcn." if vcn_id.nil?
2398
+ raise "Missing the required parameter 'vcn_id' when calling get_vcn." if vcn_id.nil?
2399
2399
 
2400
2400
  path = "/vcns/{vcnId}".sub('{vcnId}', vcn_id.to_s)
2401
2401
 
@@ -2426,7 +2426,7 @@ module OCI
2426
2426
  def get_virtual_circuit(virtual_circuit_id, opts = {})
2427
2427
  logger.debug "Calling operation VirtualNetworkClient#get_virtual_circuit." if logger
2428
2428
 
2429
- fail "Missing the required parameter 'virtual_circuit_id' when calling get_virtual_circuit." if virtual_circuit_id.nil?
2429
+ raise "Missing the required parameter 'virtual_circuit_id' when calling get_virtual_circuit." if virtual_circuit_id.nil?
2430
2430
 
2431
2431
  path = "/virtualCircuits/{virtualCircuitId}".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
2432
2432
 
@@ -2461,7 +2461,7 @@ module OCI
2461
2461
  def get_vnic(vnic_id, opts = {})
2462
2462
  logger.debug "Calling operation VirtualNetworkClient#get_vnic." if logger
2463
2463
 
2464
- fail "Missing the required parameter 'vnic_id' when calling get_vnic." if vnic_id.nil?
2464
+ raise "Missing the required parameter 'vnic_id' when calling get_vnic." if vnic_id.nil?
2465
2465
 
2466
2466
  path = "/vnics/{vnicId}".sub('{vnicId}', vnic_id.to_s)
2467
2467
 
@@ -2499,7 +2499,7 @@ module OCI
2499
2499
  def list_cpes(compartment_id, opts = {})
2500
2500
  logger.debug "Calling operation VirtualNetworkClient#list_cpes." if logger
2501
2501
 
2502
- fail "Missing the required parameter 'compartment_id' when calling list_cpes." if compartment_id.nil?
2502
+ raise "Missing the required parameter 'compartment_id' when calling list_cpes." if compartment_id.nil?
2503
2503
 
2504
2504
  path = "/cpes"
2505
2505
 
@@ -2558,18 +2558,18 @@ module OCI
2558
2558
  def list_cross_connect_groups(compartment_id, opts = {})
2559
2559
  logger.debug "Calling operation VirtualNetworkClient#list_cross_connect_groups." if logger
2560
2560
 
2561
- fail "Missing the required parameter 'compartment_id' when calling list_cross_connect_groups." if compartment_id.nil?
2561
+ raise "Missing the required parameter 'compartment_id' when calling list_cross_connect_groups." if compartment_id.nil?
2562
2562
 
2563
2563
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
2564
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2564
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2565
2565
  end
2566
2566
 
2567
2567
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
2568
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
2568
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2569
2569
  end
2570
2570
 
2571
2571
  if opts[:'lifecycle_state'] && !OCI::Core::Models::CrossConnectGroup::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
2572
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::CrossConnectGroup::LIFECYCLE_STATE_ENUM.'
2572
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::CrossConnectGroup::LIFECYCLE_STATE_ENUM.'
2573
2573
  end
2574
2574
 
2575
2575
  path = "/crossConnectGroups"
@@ -2616,7 +2616,7 @@ module OCI
2616
2616
  def list_cross_connect_locations(compartment_id, opts = {})
2617
2617
  logger.debug "Calling operation VirtualNetworkClient#list_cross_connect_locations." if logger
2618
2618
 
2619
- fail "Missing the required parameter 'compartment_id' when calling list_cross_connect_locations." if compartment_id.nil?
2619
+ raise "Missing the required parameter 'compartment_id' when calling list_cross_connect_locations." if compartment_id.nil?
2620
2620
 
2621
2621
  path = "/crossConnectLocations"
2622
2622
 
@@ -2677,18 +2677,18 @@ module OCI
2677
2677
  def list_cross_connects(compartment_id, opts = {})
2678
2678
  logger.debug "Calling operation VirtualNetworkClient#list_cross_connects." if logger
2679
2679
 
2680
- fail "Missing the required parameter 'compartment_id' when calling list_cross_connects." if compartment_id.nil?
2680
+ raise "Missing the required parameter 'compartment_id' when calling list_cross_connects." if compartment_id.nil?
2681
2681
 
2682
2682
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
2683
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2683
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2684
2684
  end
2685
2685
 
2686
2686
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
2687
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
2687
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2688
2688
  end
2689
2689
 
2690
2690
  if opts[:'lifecycle_state'] && !OCI::Core::Models::CrossConnect::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
2691
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::CrossConnect::LIFECYCLE_STATE_ENUM.'
2691
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::CrossConnect::LIFECYCLE_STATE_ENUM.'
2692
2692
  end
2693
2693
 
2694
2694
  path = "/crossConnects"
@@ -2737,7 +2737,7 @@ module OCI
2737
2737
  def list_crossconnect_port_speed_shapes(compartment_id, opts = {})
2738
2738
  logger.debug "Calling operation VirtualNetworkClient#list_crossconnect_port_speed_shapes." if logger
2739
2739
 
2740
- fail "Missing the required parameter 'compartment_id' when calling list_crossconnect_port_speed_shapes." if compartment_id.nil?
2740
+ raise "Missing the required parameter 'compartment_id' when calling list_crossconnect_port_speed_shapes." if compartment_id.nil?
2741
2741
 
2742
2742
  path = "/crossConnectPortSpeedShapes"
2743
2743
 
@@ -2799,19 +2799,19 @@ module OCI
2799
2799
  def list_dhcp_options(compartment_id, vcn_id, opts = {})
2800
2800
  logger.debug "Calling operation VirtualNetworkClient#list_dhcp_options." if logger
2801
2801
 
2802
- fail "Missing the required parameter 'compartment_id' when calling list_dhcp_options." if compartment_id.nil?
2803
- fail "Missing the required parameter 'vcn_id' when calling list_dhcp_options." if vcn_id.nil?
2802
+ raise "Missing the required parameter 'compartment_id' when calling list_dhcp_options." if compartment_id.nil?
2803
+ raise "Missing the required parameter 'vcn_id' when calling list_dhcp_options." if vcn_id.nil?
2804
2804
 
2805
2805
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
2806
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2806
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2807
2807
  end
2808
2808
 
2809
2809
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
2810
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
2810
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2811
2811
  end
2812
2812
 
2813
2813
  if opts[:'lifecycle_state'] && !OCI::Core::Models::DhcpOptions::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
2814
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::DhcpOptions::LIFECYCLE_STATE_ENUM.'
2814
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::DhcpOptions::LIFECYCLE_STATE_ENUM.'
2815
2815
  end
2816
2816
 
2817
2817
  path = "/dhcps"
@@ -2861,7 +2861,7 @@ module OCI
2861
2861
  def list_drg_attachments(compartment_id, opts = {})
2862
2862
  logger.debug "Calling operation VirtualNetworkClient#list_drg_attachments." if logger
2863
2863
 
2864
- fail "Missing the required parameter 'compartment_id' when calling list_drg_attachments." if compartment_id.nil?
2864
+ raise "Missing the required parameter 'compartment_id' when calling list_drg_attachments." if compartment_id.nil?
2865
2865
 
2866
2866
  path = "/drgAttachments"
2867
2867
 
@@ -2904,7 +2904,7 @@ module OCI
2904
2904
  def list_drgs(compartment_id, opts = {})
2905
2905
  logger.debug "Calling operation VirtualNetworkClient#list_drgs." if logger
2906
2906
 
2907
- fail "Missing the required parameter 'compartment_id' when calling list_drgs." if compartment_id.nil?
2907
+ raise "Missing the required parameter 'compartment_id' when calling list_drgs." if compartment_id.nil?
2908
2908
 
2909
2909
  path = "/drgs"
2910
2910
 
@@ -2951,7 +2951,7 @@ module OCI
2951
2951
  def list_fast_connect_provider_services(compartment_id, opts = {})
2952
2952
  logger.debug "Calling operation VirtualNetworkClient#list_fast_connect_provider_services." if logger
2953
2953
 
2954
- fail "Missing the required parameter 'compartment_id' when calling list_fast_connect_provider_services." if compartment_id.nil?
2954
+ raise "Missing the required parameter 'compartment_id' when calling list_fast_connect_provider_services." if compartment_id.nil?
2955
2955
 
2956
2956
  path = "/fastConnectProviderServices"
2957
2957
 
@@ -2995,7 +2995,7 @@ module OCI
2995
2995
  def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(provider_service_id, opts = {})
2996
2996
  logger.debug "Calling operation VirtualNetworkClient#list_fast_connect_provider_virtual_circuit_bandwidth_shapes." if logger
2997
2997
 
2998
- fail "Missing the required parameter 'provider_service_id' when calling list_fast_connect_provider_virtual_circuit_bandwidth_shapes." if provider_service_id.nil?
2998
+ raise "Missing the required parameter 'provider_service_id' when calling list_fast_connect_provider_virtual_circuit_bandwidth_shapes." if provider_service_id.nil?
2999
2999
 
3000
3000
  path = "/fastConnectProviderServices/{providerServiceId}/virtualCircuitBandwidthShapes".sub('{providerServiceId}', provider_service_id.to_s)
3001
3001
 
@@ -3054,19 +3054,19 @@ module OCI
3054
3054
  def list_internet_gateways(compartment_id, vcn_id, opts = {})
3055
3055
  logger.debug "Calling operation VirtualNetworkClient#list_internet_gateways." if logger
3056
3056
 
3057
- fail "Missing the required parameter 'compartment_id' when calling list_internet_gateways." if compartment_id.nil?
3058
- fail "Missing the required parameter 'vcn_id' when calling list_internet_gateways." if vcn_id.nil?
3057
+ raise "Missing the required parameter 'compartment_id' when calling list_internet_gateways." if compartment_id.nil?
3058
+ raise "Missing the required parameter 'vcn_id' when calling list_internet_gateways." if vcn_id.nil?
3059
3059
 
3060
3060
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
3061
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3061
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3062
3062
  end
3063
3063
 
3064
3064
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
3065
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
3065
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
3066
3066
  end
3067
3067
 
3068
3068
  if opts[:'lifecycle_state'] && !OCI::Core::Models::InternetGateway::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
3069
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::InternetGateway::LIFECYCLE_STATE_ENUM.'
3069
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::InternetGateway::LIFECYCLE_STATE_ENUM.'
3070
3070
  end
3071
3071
 
3072
3072
  path = "/internetGateways"
@@ -3116,7 +3116,7 @@ module OCI
3116
3116
  def list_ip_sec_connections(compartment_id, opts = {})
3117
3117
  logger.debug "Calling operation VirtualNetworkClient#list_ip_sec_connections." if logger
3118
3118
 
3119
- fail "Missing the required parameter 'compartment_id' when calling list_ip_sec_connections." if compartment_id.nil?
3119
+ raise "Missing the required parameter 'compartment_id' when calling list_ip_sec_connections." if compartment_id.nil?
3120
3120
 
3121
3121
  path = "/ipsecConnections"
3122
3122
 
@@ -3161,8 +3161,8 @@ module OCI
3161
3161
  def list_local_peering_gateways(compartment_id, vcn_id, opts = {})
3162
3162
  logger.debug "Calling operation VirtualNetworkClient#list_local_peering_gateways." if logger
3163
3163
 
3164
- fail "Missing the required parameter 'compartment_id' when calling list_local_peering_gateways." if compartment_id.nil?
3165
- fail "Missing the required parameter 'vcn_id' when calling list_local_peering_gateways." if vcn_id.nil?
3164
+ raise "Missing the required parameter 'compartment_id' when calling list_local_peering_gateways." if compartment_id.nil?
3165
+ raise "Missing the required parameter 'vcn_id' when calling list_local_peering_gateways." if vcn_id.nil?
3166
3166
 
3167
3167
  path = "/localPeeringGateways"
3168
3168
 
@@ -3285,11 +3285,11 @@ module OCI
3285
3285
  def list_public_ips(scope, compartment_id, opts = {})
3286
3286
  logger.debug "Calling operation VirtualNetworkClient#list_public_ips." if logger
3287
3287
 
3288
- fail "Missing the required parameter 'scope' when calling list_public_ips." if scope.nil?
3288
+ raise "Missing the required parameter 'scope' when calling list_public_ips." if scope.nil?
3289
3289
  unless ['REGION', 'AVAILABILITY_DOMAIN'].include?(scope)
3290
- fail "Invalid value for 'scope', must be one of REGION, AVAILABILITY_DOMAIN."
3290
+ raise "Invalid value for 'scope', must be one of REGION, AVAILABILITY_DOMAIN."
3291
3291
  end
3292
- fail "Missing the required parameter 'compartment_id' when calling list_public_ips." if compartment_id.nil?
3292
+ raise "Missing the required parameter 'compartment_id' when calling list_public_ips." if compartment_id.nil?
3293
3293
 
3294
3294
  path = "/publicIps"
3295
3295
 
@@ -3353,19 +3353,19 @@ module OCI
3353
3353
  def list_route_tables(compartment_id, vcn_id, opts = {})
3354
3354
  logger.debug "Calling operation VirtualNetworkClient#list_route_tables." if logger
3355
3355
 
3356
- fail "Missing the required parameter 'compartment_id' when calling list_route_tables." if compartment_id.nil?
3357
- fail "Missing the required parameter 'vcn_id' when calling list_route_tables." if vcn_id.nil?
3356
+ raise "Missing the required parameter 'compartment_id' when calling list_route_tables." if compartment_id.nil?
3357
+ raise "Missing the required parameter 'vcn_id' when calling list_route_tables." if vcn_id.nil?
3358
3358
 
3359
3359
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
3360
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3360
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3361
3361
  end
3362
3362
 
3363
3363
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
3364
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
3364
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
3365
3365
  end
3366
3366
 
3367
3367
  if opts[:'lifecycle_state'] && !OCI::Core::Models::RouteTable::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
3368
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::RouteTable::LIFECYCLE_STATE_ENUM.'
3368
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::RouteTable::LIFECYCLE_STATE_ENUM.'
3369
3369
  end
3370
3370
 
3371
3371
  path = "/routeTables"
@@ -3431,19 +3431,19 @@ module OCI
3431
3431
  def list_security_lists(compartment_id, vcn_id, opts = {})
3432
3432
  logger.debug "Calling operation VirtualNetworkClient#list_security_lists." if logger
3433
3433
 
3434
- fail "Missing the required parameter 'compartment_id' when calling list_security_lists." if compartment_id.nil?
3435
- fail "Missing the required parameter 'vcn_id' when calling list_security_lists." if vcn_id.nil?
3434
+ raise "Missing the required parameter 'compartment_id' when calling list_security_lists." if compartment_id.nil?
3435
+ raise "Missing the required parameter 'vcn_id' when calling list_security_lists." if vcn_id.nil?
3436
3436
 
3437
3437
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
3438
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3438
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3439
3439
  end
3440
3440
 
3441
3441
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
3442
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
3442
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
3443
3443
  end
3444
3444
 
3445
3445
  if opts[:'lifecycle_state'] && !OCI::Core::Models::SecurityList::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
3446
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::SecurityList::LIFECYCLE_STATE_ENUM.'
3446
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::SecurityList::LIFECYCLE_STATE_ENUM.'
3447
3447
  end
3448
3448
 
3449
3449
  path = "/securityLists"
@@ -3509,19 +3509,19 @@ module OCI
3509
3509
  def list_subnets(compartment_id, vcn_id, opts = {})
3510
3510
  logger.debug "Calling operation VirtualNetworkClient#list_subnets." if logger
3511
3511
 
3512
- fail "Missing the required parameter 'compartment_id' when calling list_subnets." if compartment_id.nil?
3513
- fail "Missing the required parameter 'vcn_id' when calling list_subnets." if vcn_id.nil?
3512
+ raise "Missing the required parameter 'compartment_id' when calling list_subnets." if compartment_id.nil?
3513
+ raise "Missing the required parameter 'vcn_id' when calling list_subnets." if vcn_id.nil?
3514
3514
 
3515
3515
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
3516
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3516
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3517
3517
  end
3518
3518
 
3519
3519
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
3520
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
3520
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
3521
3521
  end
3522
3522
 
3523
3523
  if opts[:'lifecycle_state'] && !OCI::Core::Models::Subnet::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
3524
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Subnet::LIFECYCLE_STATE_ENUM.'
3524
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Subnet::LIFECYCLE_STATE_ENUM.'
3525
3525
  end
3526
3526
 
3527
3527
  path = "/subnets"
@@ -3586,18 +3586,18 @@ module OCI
3586
3586
  def list_vcns(compartment_id, opts = {})
3587
3587
  logger.debug "Calling operation VirtualNetworkClient#list_vcns." if logger
3588
3588
 
3589
- fail "Missing the required parameter 'compartment_id' when calling list_vcns." if compartment_id.nil?
3589
+ raise "Missing the required parameter 'compartment_id' when calling list_vcns." if compartment_id.nil?
3590
3590
 
3591
3591
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
3592
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3592
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3593
3593
  end
3594
3594
 
3595
3595
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
3596
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
3596
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
3597
3597
  end
3598
3598
 
3599
3599
  if opts[:'lifecycle_state'] && !OCI::Core::Models::Vcn::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
3600
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Vcn::LIFECYCLE_STATE_ENUM.'
3600
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Vcn::LIFECYCLE_STATE_ENUM.'
3601
3601
  end
3602
3602
 
3603
3603
  path = "/vcns"
@@ -3643,7 +3643,7 @@ module OCI
3643
3643
  def list_virtual_circuit_bandwidth_shapes(compartment_id, opts = {})
3644
3644
  logger.debug "Calling operation VirtualNetworkClient#list_virtual_circuit_bandwidth_shapes." if logger
3645
3645
 
3646
- fail "Missing the required parameter 'compartment_id' when calling list_virtual_circuit_bandwidth_shapes." if compartment_id.nil?
3646
+ raise "Missing the required parameter 'compartment_id' when calling list_virtual_circuit_bandwidth_shapes." if compartment_id.nil?
3647
3647
 
3648
3648
  path = "/virtualCircuitBandwidthShapes"
3649
3649
 
@@ -3682,10 +3682,10 @@ module OCI
3682
3682
  def list_virtual_circuit_public_prefixes(virtual_circuit_id, opts = {})
3683
3683
  logger.debug "Calling operation VirtualNetworkClient#list_virtual_circuit_public_prefixes." if logger
3684
3684
 
3685
- fail "Missing the required parameter 'virtual_circuit_id' when calling list_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
3685
+ raise "Missing the required parameter 'virtual_circuit_id' when calling list_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
3686
3686
 
3687
3687
  if opts[:'verification_state'] && !OCI::Core::Models::VirtualCircuitPublicPrefix::VERIFICATION_STATE_ENUM.include?(opts[:'verification_state'])
3688
- fail 'Invalid value for "verification_state", must be one of the values in OCI::Core::Models::VirtualCircuitPublicPrefix::VERIFICATION_STATE_ENUM.'
3688
+ raise 'Invalid value for "verification_state", must be one of the values in OCI::Core::Models::VirtualCircuitPublicPrefix::VERIFICATION_STATE_ENUM.'
3689
3689
  end
3690
3690
 
3691
3691
  path = "/virtualCircuits/{virtualCircuitId}/publicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
@@ -3743,18 +3743,18 @@ module OCI
3743
3743
  def list_virtual_circuits(compartment_id, opts = {})
3744
3744
  logger.debug "Calling operation VirtualNetworkClient#list_virtual_circuits." if logger
3745
3745
 
3746
- fail "Missing the required parameter 'compartment_id' when calling list_virtual_circuits." if compartment_id.nil?
3746
+ raise "Missing the required parameter 'compartment_id' when calling list_virtual_circuits." if compartment_id.nil?
3747
3747
 
3748
3748
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
3749
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3749
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
3750
3750
  end
3751
3751
 
3752
3752
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
3753
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
3753
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
3754
3754
  end
3755
3755
 
3756
3756
  if opts[:'lifecycle_state'] && !OCI::Core::Models::VirtualCircuit::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
3757
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::VirtualCircuit::LIFECYCLE_STATE_ENUM.'
3757
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::VirtualCircuit::LIFECYCLE_STATE_ENUM.'
3758
3758
  end
3759
3759
 
3760
3760
  path = "/virtualCircuits"
@@ -3800,8 +3800,8 @@ module OCI
3800
3800
  def update_cpe(cpe_id, update_cpe_details, opts = {})
3801
3801
  logger.debug "Calling operation VirtualNetworkClient#update_cpe." if logger
3802
3802
 
3803
- fail "Missing the required parameter 'cpe_id' when calling update_cpe." if cpe_id.nil?
3804
- fail "Missing the required parameter 'update_cpe_details' when calling update_cpe." if update_cpe_details.nil?
3803
+ raise "Missing the required parameter 'cpe_id' when calling update_cpe." if cpe_id.nil?
3804
+ raise "Missing the required parameter 'update_cpe_details' when calling update_cpe." if update_cpe_details.nil?
3805
3805
 
3806
3806
  path = "/cpes/{cpeId}".sub('{cpeId}', cpe_id.to_s)
3807
3807
 
@@ -3838,8 +3838,8 @@ module OCI
3838
3838
  def update_cross_connect(cross_connect_id, update_cross_connect_details, opts = {})
3839
3839
  logger.debug "Calling operation VirtualNetworkClient#update_cross_connect." if logger
3840
3840
 
3841
- fail "Missing the required parameter 'cross_connect_id' when calling update_cross_connect." if cross_connect_id.nil?
3842
- fail "Missing the required parameter 'update_cross_connect_details' when calling update_cross_connect." if update_cross_connect_details.nil?
3841
+ raise "Missing the required parameter 'cross_connect_id' when calling update_cross_connect." if cross_connect_id.nil?
3842
+ raise "Missing the required parameter 'update_cross_connect_details' when calling update_cross_connect." if update_cross_connect_details.nil?
3843
3843
 
3844
3844
  path = "/crossConnects/{crossConnectId}".sub('{crossConnectId}', cross_connect_id.to_s)
3845
3845
 
@@ -3878,8 +3878,8 @@ module OCI
3878
3878
  def update_cross_connect_group(cross_connect_group_id, update_cross_connect_group_details, opts = {})
3879
3879
  logger.debug "Calling operation VirtualNetworkClient#update_cross_connect_group." if logger
3880
3880
 
3881
- fail "Missing the required parameter 'cross_connect_group_id' when calling update_cross_connect_group." if cross_connect_group_id.nil?
3882
- fail "Missing the required parameter 'update_cross_connect_group_details' when calling update_cross_connect_group." if update_cross_connect_group_details.nil?
3881
+ raise "Missing the required parameter 'cross_connect_group_id' when calling update_cross_connect_group." if cross_connect_group_id.nil?
3882
+ raise "Missing the required parameter 'update_cross_connect_group_details' when calling update_cross_connect_group." if update_cross_connect_group_details.nil?
3883
3883
 
3884
3884
  path = "/crossConnectGroups/{crossConnectGroupId}".sub('{crossConnectGroupId}', cross_connect_group_id.to_s)
3885
3885
 
@@ -3920,8 +3920,8 @@ module OCI
3920
3920
  def update_dhcp_options(dhcp_id, update_dhcp_details, opts = {})
3921
3921
  logger.debug "Calling operation VirtualNetworkClient#update_dhcp_options." if logger
3922
3922
 
3923
- fail "Missing the required parameter 'dhcp_id' when calling update_dhcp_options." if dhcp_id.nil?
3924
- fail "Missing the required parameter 'update_dhcp_details' when calling update_dhcp_options." if update_dhcp_details.nil?
3923
+ raise "Missing the required parameter 'dhcp_id' when calling update_dhcp_options." if dhcp_id.nil?
3924
+ raise "Missing the required parameter 'update_dhcp_details' when calling update_dhcp_options." if update_dhcp_details.nil?
3925
3925
 
3926
3926
  path = "/dhcps/{dhcpId}".sub('{dhcpId}', dhcp_id.to_s)
3927
3927
 
@@ -3959,8 +3959,8 @@ module OCI
3959
3959
  def update_drg(drg_id, update_drg_details, opts = {})
3960
3960
  logger.debug "Calling operation VirtualNetworkClient#update_drg." if logger
3961
3961
 
3962
- fail "Missing the required parameter 'drg_id' when calling update_drg." if drg_id.nil?
3963
- fail "Missing the required parameter 'update_drg_details' when calling update_drg." if update_drg_details.nil?
3962
+ raise "Missing the required parameter 'drg_id' when calling update_drg." if drg_id.nil?
3963
+ raise "Missing the required parameter 'update_drg_details' when calling update_drg." if update_drg_details.nil?
3964
3964
 
3965
3965
  path = "/drgs/{drgId}".sub('{drgId}', drg_id.to_s)
3966
3966
 
@@ -3999,8 +3999,8 @@ module OCI
3999
3999
  def update_drg_attachment(drg_attachment_id, update_drg_attachment_details, opts = {})
4000
4000
  logger.debug "Calling operation VirtualNetworkClient#update_drg_attachment." if logger
4001
4001
 
4002
- fail "Missing the required parameter 'drg_attachment_id' when calling update_drg_attachment." if drg_attachment_id.nil?
4003
- fail "Missing the required parameter 'update_drg_attachment_details' when calling update_drg_attachment." if update_drg_attachment_details.nil?
4002
+ raise "Missing the required parameter 'drg_attachment_id' when calling update_drg_attachment." if drg_attachment_id.nil?
4003
+ raise "Missing the required parameter 'update_drg_attachment_details' when calling update_drg_attachment." if update_drg_attachment_details.nil?
4004
4004
 
4005
4005
  path = "/drgAttachments/{drgAttachmentId}".sub('{drgAttachmentId}', drg_attachment_id.to_s)
4006
4006
 
@@ -4042,8 +4042,8 @@ module OCI
4042
4042
  def update_internet_gateway(ig_id, update_internet_gateway_details, opts = {})
4043
4043
  logger.debug "Calling operation VirtualNetworkClient#update_internet_gateway." if logger
4044
4044
 
4045
- fail "Missing the required parameter 'ig_id' when calling update_internet_gateway." if ig_id.nil?
4046
- fail "Missing the required parameter 'update_internet_gateway_details' when calling update_internet_gateway." if update_internet_gateway_details.nil?
4045
+ raise "Missing the required parameter 'ig_id' when calling update_internet_gateway." if ig_id.nil?
4046
+ raise "Missing the required parameter 'update_internet_gateway_details' when calling update_internet_gateway." if update_internet_gateway_details.nil?
4047
4047
 
4048
4048
  path = "/internetGateways/{igId}".sub('{igId}', ig_id.to_s)
4049
4049
 
@@ -4082,8 +4082,8 @@ module OCI
4082
4082
  def update_ip_sec_connection(ipsc_id, update_ip_sec_connection_details, opts = {})
4083
4083
  logger.debug "Calling operation VirtualNetworkClient#update_ip_sec_connection." if logger
4084
4084
 
4085
- fail "Missing the required parameter 'ipsc_id' when calling update_ip_sec_connection." if ipsc_id.nil?
4086
- fail "Missing the required parameter 'update_ip_sec_connection_details' when calling update_ip_sec_connection." if update_ip_sec_connection_details.nil?
4085
+ raise "Missing the required parameter 'ipsc_id' when calling update_ip_sec_connection." if ipsc_id.nil?
4086
+ raise "Missing the required parameter 'update_ip_sec_connection_details' when calling update_ip_sec_connection." if update_ip_sec_connection_details.nil?
4087
4087
 
4088
4088
  path = "/ipsecConnections/{ipscId}".sub('{ipscId}', ipsc_id.to_s)
4089
4089
 
@@ -4121,8 +4121,8 @@ module OCI
4121
4121
  def update_local_peering_gateway(local_peering_gateway_id, update_local_peering_gateway_details, opts = {})
4122
4122
  logger.debug "Calling operation VirtualNetworkClient#update_local_peering_gateway." if logger
4123
4123
 
4124
- fail "Missing the required parameter 'local_peering_gateway_id' when calling update_local_peering_gateway." if local_peering_gateway_id.nil?
4125
- fail "Missing the required parameter 'update_local_peering_gateway_details' when calling update_local_peering_gateway." if update_local_peering_gateway_details.nil?
4124
+ raise "Missing the required parameter 'local_peering_gateway_id' when calling update_local_peering_gateway." if local_peering_gateway_id.nil?
4125
+ raise "Missing the required parameter 'update_local_peering_gateway_details' when calling update_local_peering_gateway." if update_local_peering_gateway_details.nil?
4126
4126
 
4127
4127
  path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
4128
4128
 
@@ -4169,8 +4169,8 @@ module OCI
4169
4169
  def update_private_ip(private_ip_id, update_private_ip_details, opts = {})
4170
4170
  logger.debug "Calling operation VirtualNetworkClient#update_private_ip." if logger
4171
4171
 
4172
- fail "Missing the required parameter 'private_ip_id' when calling update_private_ip." if private_ip_id.nil?
4173
- fail "Missing the required parameter 'update_private_ip_details' when calling update_private_ip." if update_private_ip_details.nil?
4172
+ raise "Missing the required parameter 'private_ip_id' when calling update_private_ip." if private_ip_id.nil?
4173
+ raise "Missing the required parameter 'update_private_ip_details' when calling update_private_ip." if update_private_ip_details.nil?
4174
4174
 
4175
4175
  path = "/privateIps/{privateIpId}".sub('{privateIpId}', private_ip_id.to_s)
4176
4176
 
@@ -4246,8 +4246,8 @@ module OCI
4246
4246
  def update_public_ip(public_ip_id, update_public_ip_details, opts = {})
4247
4247
  logger.debug "Calling operation VirtualNetworkClient#update_public_ip." if logger
4248
4248
 
4249
- fail "Missing the required parameter 'public_ip_id' when calling update_public_ip." if public_ip_id.nil?
4250
- fail "Missing the required parameter 'update_public_ip_details' when calling update_public_ip." if update_public_ip_details.nil?
4249
+ raise "Missing the required parameter 'public_ip_id' when calling update_public_ip." if public_ip_id.nil?
4250
+ raise "Missing the required parameter 'update_public_ip_details' when calling update_public_ip." if update_public_ip_details.nil?
4251
4251
 
4252
4252
  path = "/publicIps/{publicIpId}".sub('{publicIpId}', public_ip_id.to_s)
4253
4253
 
@@ -4288,8 +4288,8 @@ module OCI
4288
4288
  def update_route_table(rt_id, update_route_table_details, opts = {})
4289
4289
  logger.debug "Calling operation VirtualNetworkClient#update_route_table." if logger
4290
4290
 
4291
- fail "Missing the required parameter 'rt_id' when calling update_route_table." if rt_id.nil?
4292
- fail "Missing the required parameter 'update_route_table_details' when calling update_route_table." if update_route_table_details.nil?
4291
+ raise "Missing the required parameter 'rt_id' when calling update_route_table." if rt_id.nil?
4292
+ raise "Missing the required parameter 'update_route_table_details' when calling update_route_table." if update_route_table_details.nil?
4293
4293
 
4294
4294
  path = "/routeTables/{rtId}".sub('{rtId}', rt_id.to_s)
4295
4295
 
@@ -4331,8 +4331,8 @@ module OCI
4331
4331
  def update_security_list(security_list_id, update_security_list_details, opts = {})
4332
4332
  logger.debug "Calling operation VirtualNetworkClient#update_security_list." if logger
4333
4333
 
4334
- fail "Missing the required parameter 'security_list_id' when calling update_security_list." if security_list_id.nil?
4335
- fail "Missing the required parameter 'update_security_list_details' when calling update_security_list." if update_security_list_details.nil?
4334
+ raise "Missing the required parameter 'security_list_id' when calling update_security_list." if security_list_id.nil?
4335
+ raise "Missing the required parameter 'update_security_list_details' when calling update_security_list." if update_security_list_details.nil?
4336
4336
 
4337
4337
  path = "/securityLists/{securityListId}".sub('{securityListId}', security_list_id.to_s)
4338
4338
 
@@ -4370,8 +4370,8 @@ module OCI
4370
4370
  def update_subnet(subnet_id, update_subnet_details, opts = {})
4371
4371
  logger.debug "Calling operation VirtualNetworkClient#update_subnet." if logger
4372
4372
 
4373
- fail "Missing the required parameter 'subnet_id' when calling update_subnet." if subnet_id.nil?
4374
- fail "Missing the required parameter 'update_subnet_details' when calling update_subnet." if update_subnet_details.nil?
4373
+ raise "Missing the required parameter 'subnet_id' when calling update_subnet." if subnet_id.nil?
4374
+ raise "Missing the required parameter 'update_subnet_details' when calling update_subnet." if update_subnet_details.nil?
4375
4375
 
4376
4376
  path = "/subnets/{subnetId}".sub('{subnetId}', subnet_id.to_s)
4377
4377
 
@@ -4410,8 +4410,8 @@ module OCI
4410
4410
  def update_vcn(vcn_id, update_vcn_details, opts = {})
4411
4411
  logger.debug "Calling operation VirtualNetworkClient#update_vcn." if logger
4412
4412
 
4413
- fail "Missing the required parameter 'vcn_id' when calling update_vcn." if vcn_id.nil?
4414
- fail "Missing the required parameter 'update_vcn_details' when calling update_vcn." if update_vcn_details.nil?
4413
+ raise "Missing the required parameter 'vcn_id' when calling update_vcn." if vcn_id.nil?
4414
+ raise "Missing the required parameter 'update_vcn_details' when calling update_vcn." if update_vcn_details.nil?
4415
4415
 
4416
4416
  path = "/vcns/{vcnId}".sub('{vcnId}', vcn_id.to_s)
4417
4417
 
@@ -4472,8 +4472,8 @@ module OCI
4472
4472
  def update_virtual_circuit(virtual_circuit_id, update_virtual_circuit_details, opts = {})
4473
4473
  logger.debug "Calling operation VirtualNetworkClient#update_virtual_circuit." if logger
4474
4474
 
4475
- fail "Missing the required parameter 'virtual_circuit_id' when calling update_virtual_circuit." if virtual_circuit_id.nil?
4476
- fail "Missing the required parameter 'update_virtual_circuit_details' when calling update_virtual_circuit." if update_virtual_circuit_details.nil?
4475
+ raise "Missing the required parameter 'virtual_circuit_id' when calling update_virtual_circuit." if virtual_circuit_id.nil?
4476
+ raise "Missing the required parameter 'update_virtual_circuit_details' when calling update_virtual_circuit." if update_virtual_circuit_details.nil?
4477
4477
 
4478
4478
  path = "/virtualCircuits/{virtualCircuitId}".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
4479
4479
 
@@ -4511,8 +4511,8 @@ module OCI
4511
4511
  def update_vnic(vnic_id, update_vnic_details, opts = {})
4512
4512
  logger.debug "Calling operation VirtualNetworkClient#update_vnic." if logger
4513
4513
 
4514
- fail "Missing the required parameter 'vnic_id' when calling update_vnic." if vnic_id.nil?
4515
- fail "Missing the required parameter 'update_vnic_details' when calling update_vnic." if update_vnic_details.nil?
4514
+ raise "Missing the required parameter 'vnic_id' when calling update_vnic." if vnic_id.nil?
4515
+ raise "Missing the required parameter 'update_vnic_details' when calling update_vnic." if update_vnic_details.nil?
4516
4516
 
4517
4517
  path = "/vnics/{vnicId}".sub('{vnicId}', vnic_id.to_s)
4518
4518