oraclebmc 1.2.0 → 1.2.1

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -2
  3. data/lib/oraclebmc/core/models/console_history.rb +5 -3
  4. data/lib/oraclebmc/core/models/dhcp_dns_option.rb +5 -3
  5. data/lib/oraclebmc/core/models/dhcp_options.rb +5 -3
  6. data/lib/oraclebmc/core/models/drg.rb +5 -3
  7. data/lib/oraclebmc/core/models/drg_attachment.rb +5 -3
  8. data/lib/oraclebmc/core/models/image.rb +5 -3
  9. data/lib/oraclebmc/core/models/instance.rb +5 -3
  10. data/lib/oraclebmc/core/models/internet_gateway.rb +5 -3
  11. data/lib/oraclebmc/core/models/ip_sec_connection.rb +5 -3
  12. data/lib/oraclebmc/core/models/route_table.rb +5 -3
  13. data/lib/oraclebmc/core/models/security_list.rb +5 -3
  14. data/lib/oraclebmc/core/models/subnet.rb +5 -3
  15. data/lib/oraclebmc/core/models/tunnel_status.rb +5 -3
  16. data/lib/oraclebmc/core/models/vcn.rb +5 -3
  17. data/lib/oraclebmc/core/models/vnic.rb +5 -3
  18. data/lib/oraclebmc/core/models/vnic_attachment.rb +5 -3
  19. data/lib/oraclebmc/core/models/volume.rb +5 -3
  20. data/lib/oraclebmc/core/models/volume_attachment.rb +5 -3
  21. data/lib/oraclebmc/core/models/volume_backup.rb +5 -3
  22. data/lib/oraclebmc/identity/models/api_key.rb +5 -3
  23. data/lib/oraclebmc/identity/models/compartment.rb +5 -3
  24. data/lib/oraclebmc/identity/models/group.rb +5 -3
  25. data/lib/oraclebmc/identity/models/policy.rb +5 -3
  26. data/lib/oraclebmc/identity/models/swift_password.rb +5 -3
  27. data/lib/oraclebmc/identity/models/ui_password.rb +5 -3
  28. data/lib/oraclebmc/identity/models/user.rb +5 -3
  29. data/lib/oraclebmc/identity/models/user_group_membership.rb +5 -3
  30. data/lib/oraclebmc/load_balancer/load_balancer_client.rb +70 -0
  31. data/lib/oraclebmc/load_balancer/models/backend.rb +62 -62
  32. data/lib/oraclebmc/load_balancer/models/backend_details.rb +49 -49
  33. data/lib/oraclebmc/load_balancer/models/backend_set.rb +21 -21
  34. data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +14 -14
  35. data/lib/oraclebmc/load_balancer/models/certificate.rb +26 -26
  36. data/lib/oraclebmc/load_balancer/models/certificate_details.rb +40 -40
  37. data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +49 -49
  38. data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +21 -21
  39. data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +40 -40
  40. data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +18 -18
  41. data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +32 -32
  42. data/lib/oraclebmc/load_balancer/models/health_checker.rb +54 -54
  43. data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +54 -54
  44. data/lib/oraclebmc/load_balancer/models/listener.rb +12 -12
  45. data/lib/oraclebmc/load_balancer/models/load_balancer.rb +61 -59
  46. data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +18 -18
  47. data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +18 -18
  48. data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +22 -22
  49. data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +14 -14
  50. data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +53 -53
  51. data/lib/oraclebmc/load_balancer/models/work_request.rb +35 -33
  52. data/lib/oraclebmc/load_balancer/models/work_request_error.rb +5 -3
  53. data/lib/oraclebmc/version.rb +1 -1
  54. metadata +8 -8
@@ -10,7 +10,8 @@ module OracleBMC
10
10
  LIFECYCLE_STATE_TERMINATING = 'TERMINATING',
11
11
  LIFECYCLE_STATE_TERMINATED = 'TERMINATED',
12
12
  LIFECYCLE_STATE_FAULTY = 'FAULTY',
13
- LIFECYCLE_STATE_REQUEST_RECEIVED = 'REQUEST_RECEIVED']
13
+ LIFECYCLE_STATE_REQUEST_RECEIVED = 'REQUEST_RECEIVED',
14
+ LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
14
15
 
15
16
  # The OCID of the compartment that contains the volume backup.
16
17
  # @return [String]
@@ -106,9 +107,10 @@ module OracleBMC
106
107
  # @param [Object] lifecycle_state Object to be assigned
107
108
  def lifecycle_state=(lifecycle_state)
108
109
  if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
109
- fail "Invalid value for 'lifecycle_state': this must be one of the values in LIFECYCLE_STATE_ENUM."
110
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
111
+ else
112
+ @lifecycle_state = lifecycle_state
110
113
  end
111
- @lifecycle_state = lifecycle_state
112
114
  end
113
115
 
114
116
  # Checks equality by comparing each attribute.
@@ -9,7 +9,8 @@ module OracleBMC
9
9
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
10
10
  LIFECYCLE_STATE_INACTIVE = 'INACTIVE',
11
11
  LIFECYCLE_STATE_DELETING = 'DELETING',
12
- LIFECYCLE_STATE_DELETED = 'DELETED']
12
+ LIFECYCLE_STATE_DELETED = 'DELETED',
13
+ LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
14
 
14
15
  # An Oracle-assigned identifier for the key, in this format:
15
16
  # TENANCY_OCID/USER_OCID/KEY_FINGERPRINT.
@@ -90,9 +91,10 @@ module OracleBMC
90
91
  # @param [Object] lifecycle_state Object to be assigned
91
92
  def lifecycle_state=(lifecycle_state)
92
93
  if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
93
- fail "Invalid value for 'lifecycle_state': this must be one of the values in LIFECYCLE_STATE_ENUM."
94
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
95
+ else
96
+ @lifecycle_state = lifecycle_state
94
97
  end
95
- @lifecycle_state = lifecycle_state
96
98
  end
97
99
 
98
100
  # Checks equality by comparing each attribute.
@@ -9,7 +9,8 @@ module OracleBMC
9
9
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
10
10
  LIFECYCLE_STATE_INACTIVE = 'INACTIVE',
11
11
  LIFECYCLE_STATE_DELETING = 'DELETING',
12
- LIFECYCLE_STATE_DELETED = 'DELETED']
12
+ LIFECYCLE_STATE_DELETED = 'DELETED',
13
+ LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
14
 
14
15
  # The OCID of the compartment.
15
16
  # @return [String]
@@ -90,9 +91,10 @@ module OracleBMC
90
91
  # @param [Object] lifecycle_state Object to be assigned
91
92
  def lifecycle_state=(lifecycle_state)
92
93
  if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
93
- fail "Invalid value for 'lifecycle_state': this must be one of the values in LIFECYCLE_STATE_ENUM."
94
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
95
+ else
96
+ @lifecycle_state = lifecycle_state
94
97
  end
95
- @lifecycle_state = lifecycle_state
96
98
  end
97
99
 
98
100
  # Checks equality by comparing each attribute.
@@ -9,7 +9,8 @@ module OracleBMC
9
9
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
10
10
  LIFECYCLE_STATE_INACTIVE = 'INACTIVE',
11
11
  LIFECYCLE_STATE_DELETING = 'DELETING',
12
- LIFECYCLE_STATE_DELETED = 'DELETED']
12
+ LIFECYCLE_STATE_DELETED = 'DELETED',
13
+ LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
14
 
14
15
  # The OCID of the group.
15
16
  # @return [String]
@@ -90,9 +91,10 @@ module OracleBMC
90
91
  # @param [Object] lifecycle_state Object to be assigned
91
92
  def lifecycle_state=(lifecycle_state)
92
93
  if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
93
- fail "Invalid value for 'lifecycle_state': this must be one of the values in LIFECYCLE_STATE_ENUM."
94
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
95
+ else
96
+ @lifecycle_state = lifecycle_state
94
97
  end
95
- @lifecycle_state = lifecycle_state
96
98
  end
97
99
 
98
100
  # Checks equality by comparing each attribute.
@@ -9,7 +9,8 @@ module OracleBMC
9
9
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
10
10
  LIFECYCLE_STATE_INACTIVE = 'INACTIVE',
11
11
  LIFECYCLE_STATE_DELETING = 'DELETING',
12
- LIFECYCLE_STATE_DELETED = 'DELETED']
12
+ LIFECYCLE_STATE_DELETED = 'DELETED',
13
+ LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
14
 
14
15
  # The OCID of the policy.
15
16
  # @return [String]
@@ -110,9 +111,10 @@ module OracleBMC
110
111
  # @param [Object] lifecycle_state Object to be assigned
111
112
  def lifecycle_state=(lifecycle_state)
112
113
  if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
113
- fail "Invalid value for 'lifecycle_state': this must be one of the values in LIFECYCLE_STATE_ENUM."
114
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
115
+ else
116
+ @lifecycle_state = lifecycle_state
114
117
  end
115
- @lifecycle_state = lifecycle_state
116
118
  end
117
119
 
118
120
  # Checks equality by comparing each attribute.
@@ -9,7 +9,8 @@ module OracleBMC
9
9
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
10
10
  LIFECYCLE_STATE_INACTIVE = 'INACTIVE',
11
11
  LIFECYCLE_STATE_DELETING = 'DELETING',
12
- LIFECYCLE_STATE_DELETED = 'DELETED']
12
+ LIFECYCLE_STATE_DELETED = 'DELETED',
13
+ LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
14
 
14
15
  # The Swift password. The value is available only in the response for `CreateSwiftPassword`, and not
15
16
  # for `ListSwiftPasswords` or `UpdateSwiftPassword`.
@@ -102,9 +103,10 @@ module OracleBMC
102
103
  # @param [Object] lifecycle_state Object to be assigned
103
104
  def lifecycle_state=(lifecycle_state)
104
105
  if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
105
- fail "Invalid value for 'lifecycle_state': this must be one of the values in LIFECYCLE_STATE_ENUM."
106
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
107
+ else
108
+ @lifecycle_state = lifecycle_state
106
109
  end
107
- @lifecycle_state = lifecycle_state
108
110
  end
109
111
 
110
112
  # Checks equality by comparing each attribute.
@@ -9,7 +9,8 @@ module OracleBMC
9
9
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
10
10
  LIFECYCLE_STATE_INACTIVE = 'INACTIVE',
11
11
  LIFECYCLE_STATE_DELETING = 'DELETING',
12
- LIFECYCLE_STATE_DELETED = 'DELETED']
12
+ LIFECYCLE_STATE_DELETED = 'DELETED',
13
+ LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
14
 
14
15
  # The user's password for the Console.
15
16
  # @return [String]
@@ -72,9 +73,10 @@ module OracleBMC
72
73
  # @param [Object] lifecycle_state Object to be assigned
73
74
  def lifecycle_state=(lifecycle_state)
74
75
  if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
75
- fail "Invalid value for 'lifecycle_state': this must be one of the values in LIFECYCLE_STATE_ENUM."
76
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
77
+ else
78
+ @lifecycle_state = lifecycle_state
76
79
  end
77
- @lifecycle_state = lifecycle_state
78
80
  end
79
81
 
80
82
  # Checks equality by comparing each attribute.
@@ -9,7 +9,8 @@ module OracleBMC
9
9
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
10
10
  LIFECYCLE_STATE_INACTIVE = 'INACTIVE',
11
11
  LIFECYCLE_STATE_DELETING = 'DELETING',
12
- LIFECYCLE_STATE_DELETED = 'DELETED']
12
+ LIFECYCLE_STATE_DELETED = 'DELETED',
13
+ LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
14
 
14
15
  # The OCID of the user.
15
16
  # @return [String]
@@ -96,9 +97,10 @@ module OracleBMC
96
97
  # @param [Object] lifecycle_state Object to be assigned
97
98
  def lifecycle_state=(lifecycle_state)
98
99
  if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
99
- fail "Invalid value for 'lifecycle_state': this must be one of the values in LIFECYCLE_STATE_ENUM."
100
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
101
+ else
102
+ @lifecycle_state = lifecycle_state
100
103
  end
101
- @lifecycle_state = lifecycle_state
102
104
  end
103
105
 
104
106
  # Checks equality by comparing each attribute.
@@ -9,7 +9,8 @@ module OracleBMC
9
9
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
10
10
  LIFECYCLE_STATE_INACTIVE = 'INACTIVE',
11
11
  LIFECYCLE_STATE_DELETING = 'DELETING',
12
- LIFECYCLE_STATE_DELETED = 'DELETED']
12
+ LIFECYCLE_STATE_DELETED = 'DELETED',
13
+ LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
13
14
 
14
15
  # The OCID of the membership.
15
16
  # @return [String]
@@ -88,9 +89,10 @@ module OracleBMC
88
89
  # @param [Object] lifecycle_state Object to be assigned
89
90
  def lifecycle_state=(lifecycle_state)
90
91
  if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
91
- fail "Invalid value for 'lifecycle_state': this must be one of the values in LIFECYCLE_STATE_ENUM."
92
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
93
+ else
94
+ @lifecycle_state = lifecycle_state
92
95
  end
93
- @lifecycle_state = lifecycle_state
94
96
  end
95
97
 
96
98
  # Checks equality by comparing each attribute.
@@ -67,6 +67,12 @@ module OracleBMC
67
67
  # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
68
68
  # particular request, please provide the request ID.
69
69
  # (default to )
70
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
71
+ # server error without risk of executing that same action again. Retry tokens expire after 24
72
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
73
+ # has been deleted and purged from the system, then a retry of the original creation request
74
+ # may be rejected).
75
+ #
70
76
  # @return [Response] A Response object with data of type nil
71
77
  def create_backend(create_backend_details, load_balancer_id, backend_set_name, opts = {})
72
78
  logger.debug "Calling operation LoadBalancerClient#create_backend." if logger
@@ -85,6 +91,7 @@ module OracleBMC
85
91
  header_params['accept'] = 'application/json'
86
92
  header_params['content-type'] = 'application/json'
87
93
  header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
94
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
88
95
 
89
96
  post_body = @api_client.object_to_http_body(create_backend_details)
90
97
 
@@ -104,6 +111,12 @@ module OracleBMC
104
111
  # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
105
112
  # particular request, please provide the request ID.
106
113
  # (default to )
114
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
115
+ # server error without risk of executing that same action again. Retry tokens expire after 24
116
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
117
+ # has been deleted and purged from the system, then a retry of the original creation request
118
+ # may be rejected).
119
+ #
107
120
  # @return [Response] A Response object with data of type nil
108
121
  def create_backend_set(create_backend_set_details, load_balancer_id, opts = {})
109
122
  logger.debug "Calling operation LoadBalancerClient#create_backend_set." if logger
@@ -121,6 +134,7 @@ module OracleBMC
121
134
  header_params['accept'] = 'application/json'
122
135
  header_params['content-type'] = 'application/json'
123
136
  header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
137
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
124
138
 
125
139
  post_body = @api_client.object_to_http_body(create_backend_set_details)
126
140
 
@@ -140,6 +154,12 @@ module OracleBMC
140
154
  # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
141
155
  # particular request, please provide the request ID.
142
156
  # (default to )
157
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
158
+ # server error without risk of executing that same action again. Retry tokens expire after 24
159
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
160
+ # has been deleted and purged from the system, then a retry of the original creation request
161
+ # may be rejected).
162
+ #
143
163
  # @return [Response] A Response object with data of type nil
144
164
  def create_certificate(create_certificate_details, load_balancer_id, opts = {})
145
165
  logger.debug "Calling operation LoadBalancerClient#create_certificate." if logger
@@ -157,6 +177,7 @@ module OracleBMC
157
177
  header_params['accept'] = 'application/json'
158
178
  header_params['content-type'] = 'application/json'
159
179
  header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
180
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
160
181
 
161
182
  post_body = @api_client.object_to_http_body(create_certificate_details)
162
183
 
@@ -176,6 +197,12 @@ module OracleBMC
176
197
  # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
177
198
  # particular request, please provide the request ID.
178
199
  # (default to )
200
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
201
+ # server error without risk of executing that same action again. Retry tokens expire after 24
202
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
203
+ # has been deleted and purged from the system, then a retry of the original creation request
204
+ # may be rejected).
205
+ #
179
206
  # @return [Response] A Response object with data of type nil
180
207
  def create_listener(create_listener_details, load_balancer_id, opts = {})
181
208
  logger.debug "Calling operation LoadBalancerClient#create_listener." if logger
@@ -193,6 +220,7 @@ module OracleBMC
193
220
  header_params['accept'] = 'application/json'
194
221
  header_params['content-type'] = 'application/json'
195
222
  header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
223
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
196
224
 
197
225
  post_body = @api_client.object_to_http_body(create_listener_details)
198
226
 
@@ -241,6 +269,12 @@ module OracleBMC
241
269
  # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
242
270
  # particular request, please provide the request ID.
243
271
  # (default to )
272
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
273
+ # server error without risk of executing that same action again. Retry tokens expire after 24
274
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
275
+ # has been deleted and purged from the system, then a retry of the original creation request
276
+ # may be rejected).
277
+ #
244
278
  # @return [Response] A Response object with data of type nil
245
279
  def create_load_balancer(create_load_balancer_details, opts = {})
246
280
  logger.debug "Calling operation LoadBalancerClient#create_load_balancer." if logger
@@ -257,6 +291,7 @@ module OracleBMC
257
291
  header_params['accept'] = 'application/json'
258
292
  header_params['content-type'] = 'application/json'
259
293
  header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
294
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
260
295
 
261
296
  post_body = @api_client.object_to_http_body(create_load_balancer_details)
262
297
 
@@ -1021,6 +1056,12 @@ module OracleBMC
1021
1056
  # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1022
1057
  # particular request, please provide the request ID.
1023
1058
  # (default to )
1059
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1060
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1061
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
1062
+ # has been deleted and purged from the system, then a retry of the original creation request
1063
+ # may be rejected).
1064
+ #
1024
1065
  # @return [Response] A Response object with data of type nil
1025
1066
  def update_backend(update_backend_details, load_balancer_id, backend_set_name, backend_name, opts = {})
1026
1067
  logger.debug "Calling operation LoadBalancerClient#update_backend." if logger
@@ -1040,6 +1081,7 @@ module OracleBMC
1040
1081
  header_params['accept'] = 'application/json'
1041
1082
  header_params['content-type'] = 'application/json'
1042
1083
  header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
1084
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
1043
1085
 
1044
1086
  post_body = @api_client.object_to_http_body(update_backend_details)
1045
1087
 
@@ -1063,6 +1105,12 @@ module OracleBMC
1063
1105
  # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1064
1106
  # particular request, please provide the request ID.
1065
1107
  # (default to )
1108
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1109
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1110
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
1111
+ # has been deleted and purged from the system, then a retry of the original creation request
1112
+ # may be rejected).
1113
+ #
1066
1114
  # @return [Response] A Response object with data of type nil
1067
1115
  def update_backend_set(update_backend_set_details, load_balancer_id, backend_set_name, opts = {})
1068
1116
  logger.debug "Calling operation LoadBalancerClient#update_backend_set." if logger
@@ -1081,6 +1129,7 @@ module OracleBMC
1081
1129
  header_params['accept'] = 'application/json'
1082
1130
  header_params['content-type'] = 'application/json'
1083
1131
  header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
1132
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
1084
1133
 
1085
1134
  post_body = @api_client.object_to_http_body(update_backend_set_details)
1086
1135
 
@@ -1104,6 +1153,12 @@ module OracleBMC
1104
1153
  # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1105
1154
  # particular request, please provide the request ID.
1106
1155
  # (default to )
1156
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1157
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1158
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
1159
+ # has been deleted and purged from the system, then a retry of the original creation request
1160
+ # may be rejected).
1161
+ #
1107
1162
  # @return [Response] A Response object with data of type nil
1108
1163
  def update_health_checker(health_checker, load_balancer_id, backend_set_name, opts = {})
1109
1164
  logger.debug "Calling operation LoadBalancerClient#update_health_checker." if logger
@@ -1122,6 +1177,7 @@ module OracleBMC
1122
1177
  header_params['accept'] = 'application/json'
1123
1178
  header_params['content-type'] = 'application/json'
1124
1179
  header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
1180
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
1125
1181
 
1126
1182
  post_body = @api_client.object_to_http_body(health_checker)
1127
1183
 
@@ -1145,6 +1201,12 @@ module OracleBMC
1145
1201
  # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1146
1202
  # particular request, please provide the request ID.
1147
1203
  # (default to )
1204
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1205
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1206
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
1207
+ # has been deleted and purged from the system, then a retry of the original creation request
1208
+ # may be rejected).
1209
+ #
1148
1210
  # @return [Response] A Response object with data of type nil
1149
1211
  def update_listener(update_listener_details, load_balancer_id, listener_name, opts = {})
1150
1212
  logger.debug "Calling operation LoadBalancerClient#update_listener." if logger
@@ -1163,6 +1225,7 @@ module OracleBMC
1163
1225
  header_params['accept'] = 'application/json'
1164
1226
  header_params['content-type'] = 'application/json'
1165
1227
  header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
1228
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
1166
1229
 
1167
1230
  post_body = @api_client.object_to_http_body(update_listener_details)
1168
1231
 
@@ -1182,6 +1245,12 @@ module OracleBMC
1182
1245
  # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1183
1246
  # particular request, please provide the request ID.
1184
1247
  # (default to )
1248
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1249
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1250
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
1251
+ # has been deleted and purged from the system, then a retry of the original creation request
1252
+ # may be rejected).
1253
+ #
1185
1254
  # @return [Response] A Response object with data of type nil
1186
1255
  def update_load_balancer(update_load_balancer_details, load_balancer_id, opts = {})
1187
1256
  logger.debug "Calling operation LoadBalancerClient#update_load_balancer." if logger
@@ -1199,6 +1268,7 @@ module OracleBMC
1199
1268
  header_params['accept'] = 'application/json'
1200
1269
  header_params['content-type'] = 'application/json'
1201
1270
  header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
1271
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
1202
1272
 
1203
1273
  post_body = @api_client.object_to_http_body(update_load_balancer_details)
1204
1274
 
@@ -4,12 +4,21 @@ require 'date'
4
4
 
5
5
  module OracleBMC
6
6
  class LoadBalancer::Models::Backend
7
- # A name to uniquely identify this backend server in the backend set.
7
+ # Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
8
+ # traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
8
9
  #
9
- # Example: `My first backend server`
10
+ # Example: `true`
10
11
  #
11
- # @return [String]
12
- attr_accessor :name
12
+ # @return [BOOLEAN]
13
+ attr_accessor :backup
14
+
15
+ # Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
16
+ # incoming traffic.
17
+ #
18
+ # Example: `true`
19
+ #
20
+ # @return [BOOLEAN]
21
+ attr_accessor :drain
13
22
 
14
23
  # The IP address of the backend server.
15
24
  #
@@ -18,6 +27,21 @@ module OracleBMC
18
27
  # @return [String]
19
28
  attr_accessor :ip_address
20
29
 
30
+ # A name to uniquely identify this backend server in the backend set.
31
+ #
32
+ # Example: `My first backend server`
33
+ #
34
+ # @return [String]
35
+ attr_accessor :name
36
+
37
+ # Whether the load balancer should treat this server as offline. Offline servers receive no incoming
38
+ # traffic.
39
+ #
40
+ # Example: `true`
41
+ #
42
+ # @return [BOOLEAN]
43
+ attr_accessor :offline
44
+
21
45
  # The communication port for the backend server.
22
46
  #
23
47
  # Example: `8080`
@@ -36,30 +60,6 @@ module OracleBMC
36
60
  # @return [Integer]
37
61
  attr_accessor :weight
38
62
 
39
- # Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
40
- # incoming traffic.
41
- #
42
- # Example: `true`
43
- #
44
- # @return [BOOLEAN]
45
- attr_accessor :drain
46
-
47
- # Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
48
- # traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
49
- #
50
- # Example: `true`
51
- #
52
- # @return [BOOLEAN]
53
- attr_accessor :backup
54
-
55
- # Whether the load balancer should treat this server as offline. Offline servers receive no incoming
56
- # traffic.
57
- #
58
- # Example: `true`
59
- #
60
- # @return [BOOLEAN]
61
- attr_accessor :offline
62
-
63
63
 
64
64
  # Initializes the object
65
65
  # @param [Hash] attributes Model attributes in the form of hash
@@ -70,20 +70,10 @@ module OracleBMC
70
70
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
71
71
 
72
72
 
73
- if attributes[:'name']
74
- self.name = attributes[:'name']
75
- end
76
-
77
- if attributes[:'ipAddress']
78
- self.ip_address = attributes[:'ipAddress']
79
- end
80
-
81
- if attributes[:'port']
82
- self.port = attributes[:'port']
83
- end
84
-
85
- if attributes[:'weight']
86
- self.weight = attributes[:'weight']
73
+ if attributes[:'backup']
74
+ self.backup = attributes[:'backup']
75
+ else
76
+ self.backup = false
87
77
  end
88
78
 
89
79
  if attributes[:'drain']
@@ -92,10 +82,12 @@ module OracleBMC
92
82
  self.drain = false
93
83
  end
94
84
 
95
- if attributes[:'backup']
96
- self.backup = attributes[:'backup']
97
- else
98
- self.backup = false
85
+ if attributes[:'ipAddress']
86
+ self.ip_address = attributes[:'ipAddress']
87
+ end
88
+
89
+ if attributes[:'name']
90
+ self.name = attributes[:'name']
99
91
  end
100
92
 
101
93
  if attributes[:'offline']
@@ -104,6 +96,14 @@ module OracleBMC
104
96
  self.offline = false
105
97
  end
106
98
 
99
+ if attributes[:'port']
100
+ self.port = attributes[:'port']
101
+ end
102
+
103
+ if attributes[:'weight']
104
+ self.weight = attributes[:'weight']
105
+ end
106
+
107
107
  end
108
108
 
109
109
  # Checks equality by comparing each attribute.
@@ -111,13 +111,13 @@ module OracleBMC
111
111
  def ==(other_object)
112
112
  return true if self.equal?(other_object)
113
113
  self.class == other_object.class &&
114
- name == other_object.name &&
114
+ backup == other_object.backup &&
115
+ drain == other_object.drain &&
115
116
  ip_address == other_object.ip_address &&
117
+ name == other_object.name &&
118
+ offline == other_object.offline &&
116
119
  port == other_object.port &&
117
- weight == other_object.weight &&
118
- drain == other_object.drain &&
119
- backup == other_object.backup &&
120
- offline == other_object.offline
120
+ weight == other_object.weight
121
121
  end
122
122
 
123
123
  # @see the `==` method
@@ -129,7 +129,7 @@ module OracleBMC
129
129
  # Calculates hash code according to all attributes.
130
130
  # @return [Fixnum] Hash code
131
131
  def hash
132
- [name, ip_address, port, weight, drain, backup, offline].hash
132
+ [backup, drain, ip_address, name, offline, port, weight].hash
133
133
  end
134
134
 
135
135
  # Builds the object from hash
@@ -195,26 +195,26 @@ module OracleBMC
195
195
  # Attribute mapping from ruby-style variable name to JSON key.
196
196
  def self.attribute_map
197
197
  {
198
- :'name' => :'name',
198
+ :'backup' => :'backup',
199
+ :'drain' => :'drain',
199
200
  :'ip_address' => :'ipAddress',
201
+ :'name' => :'name',
202
+ :'offline' => :'offline',
200
203
  :'port' => :'port',
201
- :'weight' => :'weight',
202
- :'drain' => :'drain',
203
- :'backup' => :'backup',
204
- :'offline' => :'offline'
204
+ :'weight' => :'weight'
205
205
  }
206
206
  end
207
207
 
208
208
  # Attribute type mapping.
209
209
  def self.swagger_types
210
210
  {
211
- :'name' => :'String',
211
+ :'backup' => :'BOOLEAN',
212
+ :'drain' => :'BOOLEAN',
212
213
  :'ip_address' => :'String',
214
+ :'name' => :'String',
215
+ :'offline' => :'BOOLEAN',
213
216
  :'port' => :'Integer',
214
- :'weight' => :'Integer',
215
- :'drain' => :'BOOLEAN',
216
- :'backup' => :'BOOLEAN',
217
- :'offline' => :'BOOLEAN'
217
+ :'weight' => :'Integer'
218
218
  }
219
219
  end
220
220
  end