oci 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/oci.rb +1 -0
  4. data/lib/oci/api_client.rb +22 -4
  5. data/lib/oci/audit/audit_client.rb +7 -7
  6. data/lib/oci/core/blockstorage_client.rb +30 -30
  7. data/lib/oci/core/compute_client.rb +55 -54
  8. data/lib/oci/core/core.rb +2 -0
  9. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +133 -0
  10. data/lib/oci/core/models/attach_volume_details.rb +2 -1
  11. data/lib/oci/core/models/create_image_details.rb +1 -1
  12. data/lib/oci/core/models/create_public_ip_details.rb +1 -1
  13. data/lib/oci/core/models/create_virtual_circuit_details.rb +1 -1
  14. data/lib/oci/core/models/create_volume_backup_details.rb +1 -1
  15. data/lib/oci/core/models/image.rb +22 -1
  16. data/lib/oci/core/models/image_source_details.rb +1 -1
  17. data/lib/oci/core/models/instance_source_via_image_details.rb +20 -1
  18. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +154 -0
  19. data/lib/oci/core/models/update_virtual_circuit_details.rb +1 -1
  20. data/lib/oci/core/models/volume_attachment.rb +1 -0
  21. data/lib/oci/core/virtual_network_client.rb +154 -154
  22. data/lib/oci/database/database_client.rb +59 -59
  23. data/lib/oci/database/models/create_data_guard_association_details.rb +2 -2
  24. data/lib/oci/database/models/create_database_details.rb +1 -1
  25. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +1 -1
  26. data/lib/oci/database/models/launch_db_system_details.rb +3 -3
  27. data/lib/oci/database/models/patch_details.rb +1 -1
  28. data/lib/oci/dns/dns_client.rb +44 -44
  29. data/lib/oci/dns/models/create_zone_details.rb +1 -1
  30. data/lib/oci/dns/models/record_operation.rb +1 -1
  31. data/lib/oci/email/email.rb +22 -0
  32. data/lib/oci/email/email_client.rb +417 -0
  33. data/lib/oci/email/models/create_sender_details.rb +147 -0
  34. data/lib/oci/email/models/create_suppression_details.rb +149 -0
  35. data/lib/oci/email/models/sender.rb +219 -0
  36. data/lib/oci/email/models/sender_summary.rb +195 -0
  37. data/lib/oci/email/models/suppression.rb +191 -0
  38. data/lib/oci/email/models/suppression_summary.rb +192 -0
  39. data/lib/oci/email/util.rb +2 -0
  40. data/lib/oci/file_storage/file_storage_client.rb +42 -42
  41. data/lib/oci/identity/identity.rb +4 -0
  42. data/lib/oci/identity/identity_client.rb +250 -94
  43. data/lib/oci/identity/models/compartment.rb +1 -1
  44. data/lib/oci/identity/models/create_compartment_details.rb +1 -1
  45. data/lib/oci/identity/models/create_identity_provider_details.rb +2 -2
  46. data/lib/oci/identity/models/create_smtp_credential_details.rb +122 -0
  47. data/lib/oci/identity/models/smtp_credential.rb +285 -0
  48. data/lib/oci/identity/models/smtp_credential_summary.rb +267 -0
  49. data/lib/oci/identity/models/update_compartment_details.rb +1 -0
  50. data/lib/oci/identity/models/update_identity_provider_details.rb +1 -1
  51. data/lib/oci/identity/models/update_smtp_credential_details.rb +121 -0
  52. data/lib/oci/load_balancer/load_balancer_client.rb +74 -74
  53. data/lib/oci/object_storage/models/create_bucket_details.rb +2 -2
  54. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +1 -1
  55. data/lib/oci/object_storage/models/update_bucket_details.rb +1 -1
  56. data/lib/oci/object_storage/object_storage_client.rb +73 -73
  57. data/lib/oci/regions.rb +2 -1
  58. data/lib/oci/response.rb +1 -0
  59. data/lib/oci/version.rb +1 -1
  60. metadata +17 -20
@@ -9,6 +9,7 @@ module OCI
9
9
  attr_accessor :description
10
10
 
11
11
  # The new name you assign to the compartment. The name must be unique across all compartments in the tenancy.
12
+ # Avoid entering confidential information.
12
13
  #
13
14
  # @return [String]
14
15
  attr_accessor :name
@@ -93,7 +93,7 @@ module OCI
93
93
  # @param [Object] protocol Object to be assigned
94
94
  def protocol=(protocol)
95
95
  if protocol && !PROTOCOL_ENUM.include?(protocol)
96
- fail "Invalid value for 'protocol': this must be one of the values in PROTOCOL_ENUM."
96
+ raise "Invalid value for 'protocol': this must be one of the values in PROTOCOL_ENUM."
97
97
  else
98
98
  @protocol = protocol
99
99
  end
@@ -0,0 +1,121 @@
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ require 'date'
4
+
5
+ module OCI
6
+ class Identity::Models::UpdateSmtpCredentialDetails
7
+ # The description you assign to the SMTP credential. Does not have to be unique, and it's changeable.
8
+ # @return [String]
9
+ attr_accessor :description
10
+
11
+
12
+ # Initializes the object
13
+ # @param [Hash] attributes Model attributes in the form of hash
14
+ # @option attributes [String] :description The value to assign to the {#description} property
15
+ def initialize(attributes = {})
16
+ return unless attributes.is_a?(Hash)
17
+
18
+ # convert string to symbol for hash key
19
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
20
+
21
+ if attributes[:'description']
22
+ self.description = attributes[:'description']
23
+ end
24
+
25
+ end
26
+
27
+ # Checks equality by comparing each attribute.
28
+ # @param [Object] other_object to be compared
29
+ def ==(other_object)
30
+ return true if self.equal?(other_object)
31
+ self.class == other_object.class &&
32
+ description == other_object.description
33
+ end
34
+
35
+ # @see the `==` method
36
+ # @param [Object] other_object to be compared
37
+ def eql?(other_object)
38
+ self == other_object
39
+ end
40
+
41
+ # Calculates hash code according to all attributes.
42
+ # @return [Fixnum] Hash code
43
+ def hash
44
+ [description].hash
45
+ end
46
+
47
+ # Builds the object from hash
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ # @return [Object] Returns the model itself
50
+ def build_from_hash(attributes)
51
+ return nil unless attributes.is_a?(Hash)
52
+ self.class.swagger_types.each_pair do |key, type|
53
+ if type =~ /^Array<(.*)>/i
54
+ # check to ensure the input is an array given that the the attribute
55
+ # is documented as an array but the input is not
56
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
57
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
58
+ end
59
+ elsif !attributes[self.class.attribute_map[key]].nil?
60
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
61
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
62
+ end
63
+
64
+ self
65
+ end
66
+
67
+ # Returns the string representation of the object
68
+ # @return [String] String presentation of the object
69
+ def to_s
70
+ to_hash.to_s
71
+ end
72
+
73
+ # Returns the object in the form of hash
74
+ # @return [Hash] Returns the object in the form of hash
75
+ def to_hash
76
+ hash = {}
77
+ self.class.attribute_map.each_pair do |attr, param|
78
+ value = public_method(attr).call
79
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
80
+ hash[param] = _to_hash(value)
81
+ end
82
+ hash
83
+ end
84
+
85
+ private
86
+
87
+ # Outputs non-array value in the form of hash
88
+ # For object, use to_hash. Otherwise, just return the value
89
+ # @param [Object] value Any valid value
90
+ # @return [Hash] Returns the value in the form of hash
91
+ def _to_hash(value)
92
+ if value.is_a?(Array)
93
+ value.compact.map{ |v| _to_hash(v) }
94
+ elsif value.is_a?(Hash)
95
+ {}.tap do |hash|
96
+ value.each { |k, v| hash[k] = _to_hash(v) }
97
+ end
98
+ elsif value.respond_to? :to_hash
99
+ value.to_hash
100
+ else
101
+ value
102
+ end
103
+ end
104
+
105
+
106
+
107
+ # Attribute mapping from ruby-style variable name to JSON key.
108
+ def self.attribute_map
109
+ {
110
+ :'description' => :'description'
111
+ }
112
+ end
113
+
114
+ # Attribute type mapping.
115
+ def self.swagger_types
116
+ {
117
+ :'description' => :'String'
118
+ }
119
+ end
120
+ end
121
+ 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, :LoadBalancerClient) + '/20170115'
66
66
  logger.info "LoadBalancerClient endpoint set to '#{endpoint}'." if logger
@@ -93,9 +93,9 @@ module OCI
93
93
  def create_backend(create_backend_details, load_balancer_id, backend_set_name, opts = {})
94
94
  logger.debug "Calling operation LoadBalancerClient#create_backend." if logger
95
95
 
96
- fail "Missing the required parameter 'create_backend_details' when calling create_backend." if create_backend_details.nil?
97
- fail "Missing the required parameter 'load_balancer_id' when calling create_backend." if load_balancer_id.nil?
98
- fail "Missing the required parameter 'backend_set_name' when calling create_backend." if backend_set_name.nil?
96
+ raise "Missing the required parameter 'create_backend_details' when calling create_backend." if create_backend_details.nil?
97
+ raise "Missing the required parameter 'load_balancer_id' when calling create_backend." if load_balancer_id.nil?
98
+ raise "Missing the required parameter 'backend_set_name' when calling create_backend." if backend_set_name.nil?
99
99
 
100
100
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
101
101
 
@@ -137,8 +137,8 @@ module OCI
137
137
  def create_backend_set(create_backend_set_details, load_balancer_id, opts = {})
138
138
  logger.debug "Calling operation LoadBalancerClient#create_backend_set." if logger
139
139
 
140
- fail "Missing the required parameter 'create_backend_set_details' when calling create_backend_set." if create_backend_set_details.nil?
141
- fail "Missing the required parameter 'load_balancer_id' when calling create_backend_set." if load_balancer_id.nil?
140
+ raise "Missing the required parameter 'create_backend_set_details' when calling create_backend_set." if create_backend_set_details.nil?
141
+ raise "Missing the required parameter 'load_balancer_id' when calling create_backend_set." if load_balancer_id.nil?
142
142
 
143
143
  path = "/loadBalancers/{loadBalancerId}/backendSets".sub('{loadBalancerId}', load_balancer_id.to_s)
144
144
 
@@ -180,8 +180,8 @@ module OCI
180
180
  def create_certificate(create_certificate_details, load_balancer_id, opts = {})
181
181
  logger.debug "Calling operation LoadBalancerClient#create_certificate." if logger
182
182
 
183
- fail "Missing the required parameter 'create_certificate_details' when calling create_certificate." if create_certificate_details.nil?
184
- fail "Missing the required parameter 'load_balancer_id' when calling create_certificate." if load_balancer_id.nil?
183
+ raise "Missing the required parameter 'create_certificate_details' when calling create_certificate." if create_certificate_details.nil?
184
+ raise "Missing the required parameter 'load_balancer_id' when calling create_certificate." if load_balancer_id.nil?
185
185
 
186
186
  path = "/loadBalancers/{loadBalancerId}/certificates".sub('{loadBalancerId}', load_balancer_id.to_s)
187
187
 
@@ -223,8 +223,8 @@ module OCI
223
223
  def create_listener(create_listener_details, load_balancer_id, opts = {})
224
224
  logger.debug "Calling operation LoadBalancerClient#create_listener." if logger
225
225
 
226
- fail "Missing the required parameter 'create_listener_details' when calling create_listener." if create_listener_details.nil?
227
- fail "Missing the required parameter 'load_balancer_id' when calling create_listener." if load_balancer_id.nil?
226
+ raise "Missing the required parameter 'create_listener_details' when calling create_listener." if create_listener_details.nil?
227
+ raise "Missing the required parameter 'load_balancer_id' when calling create_listener." if load_balancer_id.nil?
228
228
 
229
229
  path = "/loadBalancers/{loadBalancerId}/listeners".sub('{loadBalancerId}', load_balancer_id.to_s)
230
230
 
@@ -292,7 +292,7 @@ module OCI
292
292
  def create_load_balancer(create_load_balancer_details, opts = {})
293
293
  logger.debug "Calling operation LoadBalancerClient#create_load_balancer." if logger
294
294
 
295
- fail "Missing the required parameter 'create_load_balancer_details' when calling create_load_balancer." if create_load_balancer_details.nil?
295
+ raise "Missing the required parameter 'create_load_balancer_details' when calling create_load_balancer." if create_load_balancer_details.nil?
296
296
 
297
297
  path = "/loadBalancers"
298
298
 
@@ -336,8 +336,8 @@ module OCI
336
336
  def create_path_route_set(create_path_route_set_details, load_balancer_id, opts = {})
337
337
  logger.debug "Calling operation LoadBalancerClient#create_path_route_set." if logger
338
338
 
339
- fail "Missing the required parameter 'create_path_route_set_details' when calling create_path_route_set." if create_path_route_set_details.nil?
340
- fail "Missing the required parameter 'load_balancer_id' when calling create_path_route_set." if load_balancer_id.nil?
339
+ raise "Missing the required parameter 'create_path_route_set_details' when calling create_path_route_set." if create_path_route_set_details.nil?
340
+ raise "Missing the required parameter 'load_balancer_id' when calling create_path_route_set." if load_balancer_id.nil?
341
341
 
342
342
  path = "/loadBalancers/{loadBalancerId}/pathRouteSets".sub('{loadBalancerId}', load_balancer_id.to_s)
343
343
 
@@ -380,9 +380,9 @@ module OCI
380
380
  def delete_backend(load_balancer_id, backend_set_name, backend_name, opts = {})
381
381
  logger.debug "Calling operation LoadBalancerClient#delete_backend." if logger
382
382
 
383
- fail "Missing the required parameter 'load_balancer_id' when calling delete_backend." if load_balancer_id.nil?
384
- fail "Missing the required parameter 'backend_set_name' when calling delete_backend." if backend_set_name.nil?
385
- fail "Missing the required parameter 'backend_name' when calling delete_backend." if backend_name.nil?
383
+ raise "Missing the required parameter 'load_balancer_id' when calling delete_backend." if load_balancer_id.nil?
384
+ raise "Missing the required parameter 'backend_set_name' when calling delete_backend." if backend_set_name.nil?
385
+ raise "Missing the required parameter 'backend_name' when calling delete_backend." if backend_name.nil?
386
386
 
387
387
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
388
388
 
@@ -423,8 +423,8 @@ module OCI
423
423
  def delete_backend_set(load_balancer_id, backend_set_name, opts = {})
424
424
  logger.debug "Calling operation LoadBalancerClient#delete_backend_set." if logger
425
425
 
426
- fail "Missing the required parameter 'load_balancer_id' when calling delete_backend_set." if load_balancer_id.nil?
427
- fail "Missing the required parameter 'backend_set_name' when calling delete_backend_set." if backend_set_name.nil?
426
+ raise "Missing the required parameter 'load_balancer_id' when calling delete_backend_set." if load_balancer_id.nil?
427
+ raise "Missing the required parameter 'backend_set_name' when calling delete_backend_set." if backend_set_name.nil?
428
428
 
429
429
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
430
430
 
@@ -462,8 +462,8 @@ module OCI
462
462
  def delete_certificate(load_balancer_id, certificate_name, opts = {})
463
463
  logger.debug "Calling operation LoadBalancerClient#delete_certificate." if logger
464
464
 
465
- fail "Missing the required parameter 'load_balancer_id' when calling delete_certificate." if load_balancer_id.nil?
466
- fail "Missing the required parameter 'certificate_name' when calling delete_certificate." if certificate_name.nil?
465
+ raise "Missing the required parameter 'load_balancer_id' when calling delete_certificate." if load_balancer_id.nil?
466
+ raise "Missing the required parameter 'certificate_name' when calling delete_certificate." if certificate_name.nil?
467
467
 
468
468
  path = "/loadBalancers/{loadBalancerId}/certificates/{certificateName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{certificateName}', certificate_name.to_s)
469
469
 
@@ -501,8 +501,8 @@ module OCI
501
501
  def delete_listener(load_balancer_id, listener_name, opts = {})
502
502
  logger.debug "Calling operation LoadBalancerClient#delete_listener." if logger
503
503
 
504
- fail "Missing the required parameter 'load_balancer_id' when calling delete_listener." if load_balancer_id.nil?
505
- fail "Missing the required parameter 'listener_name' when calling delete_listener." if listener_name.nil?
504
+ raise "Missing the required parameter 'load_balancer_id' when calling delete_listener." if load_balancer_id.nil?
505
+ raise "Missing the required parameter 'listener_name' when calling delete_listener." if listener_name.nil?
506
506
 
507
507
  path = "/loadBalancers/{loadBalancerId}/listeners/{listenerName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{listenerName}', listener_name.to_s)
508
508
 
@@ -536,7 +536,7 @@ module OCI
536
536
  def delete_load_balancer(load_balancer_id, opts = {})
537
537
  logger.debug "Calling operation LoadBalancerClient#delete_load_balancer." if logger
538
538
 
539
- fail "Missing the required parameter 'load_balancer_id' when calling delete_load_balancer." if load_balancer_id.nil?
539
+ raise "Missing the required parameter 'load_balancer_id' when calling delete_load_balancer." if load_balancer_id.nil?
540
540
 
541
541
  path = "/loadBalancers/{loadBalancerId}".sub('{loadBalancerId}', load_balancer_id.to_s)
542
542
 
@@ -578,8 +578,8 @@ module OCI
578
578
  def delete_path_route_set(load_balancer_id, path_route_set_name, opts = {})
579
579
  logger.debug "Calling operation LoadBalancerClient#delete_path_route_set." if logger
580
580
 
581
- fail "Missing the required parameter 'load_balancer_id' when calling delete_path_route_set." if load_balancer_id.nil?
582
- fail "Missing the required parameter 'path_route_set_name' when calling delete_path_route_set." if path_route_set_name.nil?
581
+ raise "Missing the required parameter 'load_balancer_id' when calling delete_path_route_set." if load_balancer_id.nil?
582
+ raise "Missing the required parameter 'path_route_set_name' when calling delete_path_route_set." if path_route_set_name.nil?
583
583
 
584
584
  path = "/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{pathRouteSetName}', path_route_set_name.to_s)
585
585
 
@@ -621,9 +621,9 @@ module OCI
621
621
  def get_backend(load_balancer_id, backend_set_name, backend_name, opts = {})
622
622
  logger.debug "Calling operation LoadBalancerClient#get_backend." if logger
623
623
 
624
- fail "Missing the required parameter 'load_balancer_id' when calling get_backend." if load_balancer_id.nil?
625
- fail "Missing the required parameter 'backend_set_name' when calling get_backend." if backend_set_name.nil?
626
- fail "Missing the required parameter 'backend_name' when calling get_backend." if backend_name.nil?
624
+ raise "Missing the required parameter 'load_balancer_id' when calling get_backend." if load_balancer_id.nil?
625
+ raise "Missing the required parameter 'backend_set_name' when calling get_backend." if backend_set_name.nil?
626
+ raise "Missing the required parameter 'backend_name' when calling get_backend." if backend_name.nil?
627
627
 
628
628
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
629
629
 
@@ -666,9 +666,9 @@ module OCI
666
666
  def get_backend_health(load_balancer_id, backend_set_name, backend_name, opts = {})
667
667
  logger.debug "Calling operation LoadBalancerClient#get_backend_health." if logger
668
668
 
669
- fail "Missing the required parameter 'load_balancer_id' when calling get_backend_health." if load_balancer_id.nil?
670
- fail "Missing the required parameter 'backend_set_name' when calling get_backend_health." if backend_set_name.nil?
671
- fail "Missing the required parameter 'backend_name' when calling get_backend_health." if backend_name.nil?
669
+ raise "Missing the required parameter 'load_balancer_id' when calling get_backend_health." if load_balancer_id.nil?
670
+ raise "Missing the required parameter 'backend_set_name' when calling get_backend_health." if backend_set_name.nil?
671
+ raise "Missing the required parameter 'backend_name' when calling get_backend_health." if backend_name.nil?
672
672
 
673
673
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}/health".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
674
674
 
@@ -707,8 +707,8 @@ module OCI
707
707
  def get_backend_set(load_balancer_id, backend_set_name, opts = {})
708
708
  logger.debug "Calling operation LoadBalancerClient#get_backend_set." if logger
709
709
 
710
- fail "Missing the required parameter 'load_balancer_id' when calling get_backend_set." if load_balancer_id.nil?
711
- fail "Missing the required parameter 'backend_set_name' when calling get_backend_set." if backend_set_name.nil?
710
+ raise "Missing the required parameter 'load_balancer_id' when calling get_backend_set." if load_balancer_id.nil?
711
+ raise "Missing the required parameter 'backend_set_name' when calling get_backend_set." if backend_set_name.nil?
712
712
 
713
713
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
714
714
 
@@ -747,8 +747,8 @@ module OCI
747
747
  def get_backend_set_health(load_balancer_id, backend_set_name, opts = {})
748
748
  logger.debug "Calling operation LoadBalancerClient#get_backend_set_health." if logger
749
749
 
750
- fail "Missing the required parameter 'load_balancer_id' when calling get_backend_set_health." if load_balancer_id.nil?
751
- fail "Missing the required parameter 'backend_set_name' when calling get_backend_set_health." if backend_set_name.nil?
750
+ raise "Missing the required parameter 'load_balancer_id' when calling get_backend_set_health." if load_balancer_id.nil?
751
+ raise "Missing the required parameter 'backend_set_name' when calling get_backend_set_health." if backend_set_name.nil?
752
752
 
753
753
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/health".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
754
754
 
@@ -787,8 +787,8 @@ module OCI
787
787
  def get_health_checker(load_balancer_id, backend_set_name, opts = {})
788
788
  logger.debug "Calling operation LoadBalancerClient#get_health_checker." if logger
789
789
 
790
- fail "Missing the required parameter 'load_balancer_id' when calling get_health_checker." if load_balancer_id.nil?
791
- fail "Missing the required parameter 'backend_set_name' when calling get_health_checker." if backend_set_name.nil?
790
+ raise "Missing the required parameter 'load_balancer_id' when calling get_health_checker." if load_balancer_id.nil?
791
+ raise "Missing the required parameter 'backend_set_name' when calling get_health_checker." if backend_set_name.nil?
792
792
 
793
793
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
794
794
 
@@ -823,7 +823,7 @@ module OCI
823
823
  def get_load_balancer(load_balancer_id, opts = {})
824
824
  logger.debug "Calling operation LoadBalancerClient#get_load_balancer." if logger
825
825
 
826
- fail "Missing the required parameter 'load_balancer_id' when calling get_load_balancer." if load_balancer_id.nil?
826
+ raise "Missing the required parameter 'load_balancer_id' when calling get_load_balancer." if load_balancer_id.nil?
827
827
 
828
828
  path = "/loadBalancers/{loadBalancerId}".sub('{loadBalancerId}', load_balancer_id.to_s)
829
829
 
@@ -858,7 +858,7 @@ module OCI
858
858
  def get_load_balancer_health(load_balancer_id, opts = {})
859
859
  logger.debug "Calling operation LoadBalancerClient#get_load_balancer_health." if logger
860
860
 
861
- fail "Missing the required parameter 'load_balancer_id' when calling get_load_balancer_health." if load_balancer_id.nil?
861
+ raise "Missing the required parameter 'load_balancer_id' when calling get_load_balancer_health." if load_balancer_id.nil?
862
862
 
863
863
  path = "/loadBalancers/{loadBalancerId}/health".sub('{loadBalancerId}', load_balancer_id.to_s)
864
864
 
@@ -897,8 +897,8 @@ module OCI
897
897
  def get_path_route_set(load_balancer_id, path_route_set_name, opts = {})
898
898
  logger.debug "Calling operation LoadBalancerClient#get_path_route_set." if logger
899
899
 
900
- fail "Missing the required parameter 'load_balancer_id' when calling get_path_route_set." if load_balancer_id.nil?
901
- fail "Missing the required parameter 'path_route_set_name' when calling get_path_route_set." if path_route_set_name.nil?
900
+ raise "Missing the required parameter 'load_balancer_id' when calling get_path_route_set." if load_balancer_id.nil?
901
+ raise "Missing the required parameter 'path_route_set_name' when calling get_path_route_set." if path_route_set_name.nil?
902
902
 
903
903
  path = "/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{pathRouteSetName}', path_route_set_name.to_s)
904
904
 
@@ -933,7 +933,7 @@ module OCI
933
933
  def get_work_request(work_request_id, opts = {})
934
934
  logger.debug "Calling operation LoadBalancerClient#get_work_request." if logger
935
935
 
936
- fail "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
936
+ raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
937
937
 
938
938
  path = "/loadBalancerWorkRequests/{workRequestId}".sub('{workRequestId}', work_request_id.to_s)
939
939
 
@@ -968,7 +968,7 @@ module OCI
968
968
  def list_backend_sets(load_balancer_id, opts = {})
969
969
  logger.debug "Calling operation LoadBalancerClient#list_backend_sets." if logger
970
970
 
971
- fail "Missing the required parameter 'load_balancer_id' when calling list_backend_sets." if load_balancer_id.nil?
971
+ raise "Missing the required parameter 'load_balancer_id' when calling list_backend_sets." if load_balancer_id.nil?
972
972
 
973
973
  path = "/loadBalancers/{loadBalancerId}/backendSets".sub('{loadBalancerId}', load_balancer_id.to_s)
974
974
 
@@ -1007,8 +1007,8 @@ module OCI
1007
1007
  def list_backends(load_balancer_id, backend_set_name, opts = {})
1008
1008
  logger.debug "Calling operation LoadBalancerClient#list_backends." if logger
1009
1009
 
1010
- fail "Missing the required parameter 'load_balancer_id' when calling list_backends." if load_balancer_id.nil?
1011
- fail "Missing the required parameter 'backend_set_name' when calling list_backends." if backend_set_name.nil?
1010
+ raise "Missing the required parameter 'load_balancer_id' when calling list_backends." if load_balancer_id.nil?
1011
+ raise "Missing the required parameter 'backend_set_name' when calling list_backends." if backend_set_name.nil?
1012
1012
 
1013
1013
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
1014
1014
 
@@ -1043,7 +1043,7 @@ module OCI
1043
1043
  def list_certificates(load_balancer_id, opts = {})
1044
1044
  logger.debug "Calling operation LoadBalancerClient#list_certificates." if logger
1045
1045
 
1046
- fail "Missing the required parameter 'load_balancer_id' when calling list_certificates." if load_balancer_id.nil?
1046
+ raise "Missing the required parameter 'load_balancer_id' when calling list_certificates." if load_balancer_id.nil?
1047
1047
 
1048
1048
  path = "/loadBalancers/{loadBalancerId}/certificates".sub('{loadBalancerId}', load_balancer_id.to_s)
1049
1049
 
@@ -1086,7 +1086,7 @@ module OCI
1086
1086
  def list_load_balancer_healths(compartment_id, opts = {})
1087
1087
  logger.debug "Calling operation LoadBalancerClient#list_load_balancer_healths." if logger
1088
1088
 
1089
- fail "Missing the required parameter 'compartment_id' when calling list_load_balancer_healths." if compartment_id.nil?
1089
+ raise "Missing the required parameter 'compartment_id' when calling list_load_balancer_healths." if compartment_id.nil?
1090
1090
 
1091
1091
  path = "/loadBalancerHealths"
1092
1092
 
@@ -1147,18 +1147,18 @@ module OCI
1147
1147
  def list_load_balancers(compartment_id, opts = {})
1148
1148
  logger.debug "Calling operation LoadBalancerClient#list_load_balancers." if logger
1149
1149
 
1150
- fail "Missing the required parameter 'compartment_id' when calling list_load_balancers." if compartment_id.nil?
1150
+ raise "Missing the required parameter 'compartment_id' when calling list_load_balancers." if compartment_id.nil?
1151
1151
 
1152
1152
  if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
1153
- fail 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1153
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1154
1154
  end
1155
1155
 
1156
1156
  if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
1157
- fail 'Invalid value for "sort_order", must be one of ASC, DESC.'
1157
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1158
1158
  end
1159
1159
 
1160
1160
  if opts[:'lifecycle_state'] && !OCI::LoadBalancer::Models::LoadBalancer::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
1161
- fail 'Invalid value for "lifecycle_state", must be one of the values in OCI::LoadBalancer::Models::LoadBalancer::LIFECYCLE_STATE_ENUM.'
1161
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::LoadBalancer::Models::LoadBalancer::LIFECYCLE_STATE_ENUM.'
1162
1162
  end
1163
1163
 
1164
1164
  path = "/loadBalancers"
@@ -1204,7 +1204,7 @@ module OCI
1204
1204
  def list_path_route_sets(load_balancer_id, opts = {})
1205
1205
  logger.debug "Calling operation LoadBalancerClient#list_path_route_sets." if logger
1206
1206
 
1207
- fail "Missing the required parameter 'load_balancer_id' when calling list_path_route_sets." if load_balancer_id.nil?
1207
+ raise "Missing the required parameter 'load_balancer_id' when calling list_path_route_sets." if load_balancer_id.nil?
1208
1208
 
1209
1209
  path = "/loadBalancers/{loadBalancerId}/pathRouteSets".sub('{loadBalancerId}', load_balancer_id.to_s)
1210
1210
 
@@ -1247,7 +1247,7 @@ module OCI
1247
1247
  def list_policies(compartment_id, opts = {})
1248
1248
  logger.debug "Calling operation LoadBalancerClient#list_policies." if logger
1249
1249
 
1250
- fail "Missing the required parameter 'compartment_id' when calling list_policies." if compartment_id.nil?
1250
+ raise "Missing the required parameter 'compartment_id' when calling list_policies." if compartment_id.nil?
1251
1251
 
1252
1252
  path = "/loadBalancerPolicies"
1253
1253
 
@@ -1293,7 +1293,7 @@ module OCI
1293
1293
  def list_protocols(compartment_id, opts = {})
1294
1294
  logger.debug "Calling operation LoadBalancerClient#list_protocols." if logger
1295
1295
 
1296
- fail "Missing the required parameter 'compartment_id' when calling list_protocols." if compartment_id.nil?
1296
+ raise "Missing the required parameter 'compartment_id' when calling list_protocols." if compartment_id.nil?
1297
1297
 
1298
1298
  path = "/loadBalancerProtocols"
1299
1299
 
@@ -1339,7 +1339,7 @@ module OCI
1339
1339
  def list_shapes(compartment_id, opts = {})
1340
1340
  logger.debug "Calling operation LoadBalancerClient#list_shapes." if logger
1341
1341
 
1342
- fail "Missing the required parameter 'compartment_id' when calling list_shapes." if compartment_id.nil?
1342
+ raise "Missing the required parameter 'compartment_id' when calling list_shapes." if compartment_id.nil?
1343
1343
 
1344
1344
  path = "/loadBalancerShapes"
1345
1345
 
@@ -1385,7 +1385,7 @@ module OCI
1385
1385
  def list_work_requests(load_balancer_id, opts = {})
1386
1386
  logger.debug "Calling operation LoadBalancerClient#list_work_requests." if logger
1387
1387
 
1388
- fail "Missing the required parameter 'load_balancer_id' when calling list_work_requests." if load_balancer_id.nil?
1388
+ raise "Missing the required parameter 'load_balancer_id' when calling list_work_requests." if load_balancer_id.nil?
1389
1389
 
1390
1390
  path = "/loadBalancers/{loadBalancerId}/workRequests".sub('{loadBalancerId}', load_balancer_id.to_s)
1391
1391
 
@@ -1437,10 +1437,10 @@ module OCI
1437
1437
  def update_backend(update_backend_details, load_balancer_id, backend_set_name, backend_name, opts = {})
1438
1438
  logger.debug "Calling operation LoadBalancerClient#update_backend." if logger
1439
1439
 
1440
- fail "Missing the required parameter 'update_backend_details' when calling update_backend." if update_backend_details.nil?
1441
- fail "Missing the required parameter 'load_balancer_id' when calling update_backend." if load_balancer_id.nil?
1442
- fail "Missing the required parameter 'backend_set_name' when calling update_backend." if backend_set_name.nil?
1443
- fail "Missing the required parameter 'backend_name' when calling update_backend." if backend_name.nil?
1440
+ raise "Missing the required parameter 'update_backend_details' when calling update_backend." if update_backend_details.nil?
1441
+ raise "Missing the required parameter 'load_balancer_id' when calling update_backend." if load_balancer_id.nil?
1442
+ raise "Missing the required parameter 'backend_set_name' when calling update_backend." if backend_set_name.nil?
1443
+ raise "Missing the required parameter 'backend_name' when calling update_backend." if backend_name.nil?
1444
1444
 
1445
1445
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
1446
1446
 
@@ -1486,9 +1486,9 @@ module OCI
1486
1486
  def update_backend_set(update_backend_set_details, load_balancer_id, backend_set_name, opts = {})
1487
1487
  logger.debug "Calling operation LoadBalancerClient#update_backend_set." if logger
1488
1488
 
1489
- fail "Missing the required parameter 'update_backend_set_details' when calling update_backend_set." if update_backend_set_details.nil?
1490
- fail "Missing the required parameter 'load_balancer_id' when calling update_backend_set." if load_balancer_id.nil?
1491
- fail "Missing the required parameter 'backend_set_name' when calling update_backend_set." if backend_set_name.nil?
1489
+ raise "Missing the required parameter 'update_backend_set_details' when calling update_backend_set." if update_backend_set_details.nil?
1490
+ raise "Missing the required parameter 'load_balancer_id' when calling update_backend_set." if load_balancer_id.nil?
1491
+ raise "Missing the required parameter 'backend_set_name' when calling update_backend_set." if backend_set_name.nil?
1492
1492
 
1493
1493
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
1494
1494
 
@@ -1534,9 +1534,9 @@ module OCI
1534
1534
  def update_health_checker(health_checker, load_balancer_id, backend_set_name, opts = {})
1535
1535
  logger.debug "Calling operation LoadBalancerClient#update_health_checker." if logger
1536
1536
 
1537
- fail "Missing the required parameter 'health_checker' when calling update_health_checker." if health_checker.nil?
1538
- fail "Missing the required parameter 'load_balancer_id' when calling update_health_checker." if load_balancer_id.nil?
1539
- fail "Missing the required parameter 'backend_set_name' when calling update_health_checker." if backend_set_name.nil?
1537
+ raise "Missing the required parameter 'health_checker' when calling update_health_checker." if health_checker.nil?
1538
+ raise "Missing the required parameter 'load_balancer_id' when calling update_health_checker." if load_balancer_id.nil?
1539
+ raise "Missing the required parameter 'backend_set_name' when calling update_health_checker." if backend_set_name.nil?
1540
1540
 
1541
1541
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
1542
1542
 
@@ -1582,9 +1582,9 @@ module OCI
1582
1582
  def update_listener(update_listener_details, load_balancer_id, listener_name, opts = {})
1583
1583
  logger.debug "Calling operation LoadBalancerClient#update_listener." if logger
1584
1584
 
1585
- fail "Missing the required parameter 'update_listener_details' when calling update_listener." if update_listener_details.nil?
1586
- fail "Missing the required parameter 'load_balancer_id' when calling update_listener." if load_balancer_id.nil?
1587
- fail "Missing the required parameter 'listener_name' when calling update_listener." if listener_name.nil?
1585
+ raise "Missing the required parameter 'update_listener_details' when calling update_listener." if update_listener_details.nil?
1586
+ raise "Missing the required parameter 'load_balancer_id' when calling update_listener." if load_balancer_id.nil?
1587
+ raise "Missing the required parameter 'listener_name' when calling update_listener." if listener_name.nil?
1588
1588
 
1589
1589
  path = "/loadBalancers/{loadBalancerId}/listeners/{listenerName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{listenerName}', listener_name.to_s)
1590
1590
 
@@ -1626,8 +1626,8 @@ module OCI
1626
1626
  def update_load_balancer(update_load_balancer_details, load_balancer_id, opts = {})
1627
1627
  logger.debug "Calling operation LoadBalancerClient#update_load_balancer." if logger
1628
1628
 
1629
- fail "Missing the required parameter 'update_load_balancer_details' when calling update_load_balancer." if update_load_balancer_details.nil?
1630
- fail "Missing the required parameter 'load_balancer_id' when calling update_load_balancer." if load_balancer_id.nil?
1629
+ raise "Missing the required parameter 'update_load_balancer_details' when calling update_load_balancer." if update_load_balancer_details.nil?
1630
+ raise "Missing the required parameter 'load_balancer_id' when calling update_load_balancer." if load_balancer_id.nil?
1631
1631
 
1632
1632
  path = "/loadBalancers/{loadBalancerId}".sub('{loadBalancerId}', load_balancer_id.to_s)
1633
1633
 
@@ -1679,9 +1679,9 @@ module OCI
1679
1679
  def update_path_route_set(update_path_route_set_details, load_balancer_id, path_route_set_name, opts = {})
1680
1680
  logger.debug "Calling operation LoadBalancerClient#update_path_route_set." if logger
1681
1681
 
1682
- fail "Missing the required parameter 'update_path_route_set_details' when calling update_path_route_set." if update_path_route_set_details.nil?
1683
- fail "Missing the required parameter 'load_balancer_id' when calling update_path_route_set." if load_balancer_id.nil?
1684
- fail "Missing the required parameter 'path_route_set_name' when calling update_path_route_set." if path_route_set_name.nil?
1682
+ raise "Missing the required parameter 'update_path_route_set_details' when calling update_path_route_set." if update_path_route_set_details.nil?
1683
+ raise "Missing the required parameter 'load_balancer_id' when calling update_path_route_set." if load_balancer_id.nil?
1684
+ raise "Missing the required parameter 'path_route_set_name' when calling update_path_route_set." if path_route_set_name.nil?
1685
1685
 
1686
1686
  path = "/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{pathRouteSetName}', path_route_set_name.to_s)
1687
1687