oci 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -1
- data/lib/oci.rb +1 -0
- data/lib/oci/audit/audit_client.rb +65 -30
- data/lib/oci/audit/models/audit_event.rb +17 -1
- data/lib/oci/core/blockstorage_client.rb +336 -197
- data/lib/oci/core/compute_client.rb +601 -357
- data/lib/oci/core/models/attach_volume_details.rb +4 -0
- data/lib/oci/core/models/boot_volume.rb +1 -1
- data/lib/oci/core/models/dhcp_option.rb +4 -0
- data/lib/oci/core/models/export_image_details.rb +4 -0
- data/lib/oci/core/models/image_source_details.rb +4 -0
- data/lib/oci/core/models/instance_source_details.rb +4 -0
- data/lib/oci/core/models/volume_attachment.rb +4 -0
- data/lib/oci/core/models/volume_source_details.rb +4 -0
- data/lib/oci/core/util.rb +29 -0
- data/lib/oci/core/virtual_network_client.rb +1695 -1031
- data/lib/oci/database/database_client.rb +612 -368
- data/lib/oci/database/models/create_data_guard_association_details.rb +4 -0
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +4 -0
- data/lib/oci/dns/dns_client.rb +271 -158
- data/lib/oci/email/email_client.rb +144 -79
- data/lib/oci/file_storage/file_storage_client.rb +354 -207
- data/lib/oci/identity/identity_client.rb +1111 -670
- data/lib/oci/identity/models/create_identity_provider_details.rb +4 -0
- data/lib/oci/identity/models/identity_provider.rb +4 -0
- data/lib/oci/identity/models/update_identity_provider_details.rb +4 -0
- data/lib/oci/load_balancer/load_balancer.rb +4 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +943 -383
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +149 -17
- data/lib/oci/load_balancer/models/backend.rb +5 -5
- data/lib/oci/load_balancer/models/backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set.rb +1 -1
- data/lib/oci/load_balancer/models/backend_set_health.rb +4 -4
- data/lib/oci/load_balancer/models/certificate.rb +2 -2
- data/lib/oci/load_balancer/models/certificate_details.rb +2 -4
- data/lib/oci/load_balancer/models/connection_configuration.rb +1 -28
- data/lib/oci/load_balancer/models/create_backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +1 -1
- data/lib/oci/load_balancer/models/create_certificate_details.rb +5 -7
- data/lib/oci/load_balancer/models/create_hostname_details.rb +164 -0
- data/lib/oci/load_balancer/models/create_listener_details.rb +19 -5
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +12 -3
- data/lib/oci/load_balancer/models/create_path_route_set_details.rb +1 -1
- data/lib/oci/load_balancer/models/health_check_result.rb +2 -2
- data/lib/oci/load_balancer/models/health_checker.rb +3 -3
- data/lib/oci/load_balancer/models/health_checker_details.rb +3 -3
- data/lib/oci/load_balancer/models/hostname.rb +164 -0
- data/lib/oci/load_balancer/models/hostname_details.rb +163 -0
- data/lib/oci/load_balancer/models/ip_address.rb +1 -1
- data/lib/oci/load_balancer/models/listener.rb +19 -5
- data/lib/oci/load_balancer/models/listener_details.rb +17 -3
- data/lib/oci/load_balancer/models/load_balancer.rb +13 -2
- data/lib/oci/load_balancer/models/load_balancer_health.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +4 -1
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +5 -2
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +3 -0
- data/lib/oci/load_balancer/models/path_route.rb +1 -1
- data/lib/oci/load_balancer/models/path_route_set.rb +1 -1
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +2 -2
- data/lib/oci/load_balancer/models/ssl_configuration.rb +1 -1
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +1 -1
- data/lib/oci/load_balancer/models/update_backend_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_hostname_details.rb +153 -0
- data/lib/oci/load_balancer/models/update_listener_details.rb +17 -3
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +1 -1
- data/lib/oci/load_balancer/models/work_request.rb +2 -0
- data/lib/oci/object_storage/object_storage_client.rb +443 -270
- data/lib/oci/retry/functions/should_retry_on_error.rb +28 -0
- data/lib/oci/retry/functions/sleep.rb +85 -0
- data/lib/oci/retry/internal/retry_state.rb +48 -0
- data/lib/oci/retry/retry.rb +85 -0
- data/lib/oci/retry/retry_config.rb +121 -0
- data/lib/oci/version.rb +1 -1
- metadata +39 -4
@@ -93,6 +93,9 @@ module OCI
|
|
93
93
|
}
|
94
94
|
end
|
95
95
|
|
96
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Layout/EmptyLines
|
97
|
+
|
98
|
+
|
96
99
|
# Given the hash representation of a subtype of this class,
|
97
100
|
# use the info in the hash to return the class of the subtype.
|
98
101
|
def self.get_subtype(object_hash)
|
@@ -103,6 +106,7 @@ module OCI
|
|
103
106
|
# TODO: Log a warning when the subtype is not found.
|
104
107
|
'OCI::Identity::Models::CreateIdentityProviderDetails'
|
105
108
|
end
|
109
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Layout/EmptyLines
|
106
110
|
|
107
111
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
108
112
|
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -138,6 +138,9 @@ module OCI
|
|
138
138
|
}
|
139
139
|
end
|
140
140
|
|
141
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Layout/EmptyLines
|
142
|
+
|
143
|
+
|
141
144
|
# Given the hash representation of a subtype of this class,
|
142
145
|
# use the info in the hash to return the class of the subtype.
|
143
146
|
def self.get_subtype(object_hash)
|
@@ -148,6 +151,7 @@ module OCI
|
|
148
151
|
# TODO: Log a warning when the subtype is not found.
|
149
152
|
'OCI::Identity::Models::IdentityProvider'
|
150
153
|
end
|
154
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Layout/EmptyLines
|
151
155
|
|
152
156
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
153
157
|
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -62,6 +62,9 @@ module OCI
|
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
65
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Layout/EmptyLines
|
66
|
+
|
67
|
+
|
65
68
|
# Given the hash representation of a subtype of this class,
|
66
69
|
# use the info in the hash to return the class of the subtype.
|
67
70
|
def self.get_subtype(object_hash)
|
@@ -72,6 +75,7 @@ module OCI
|
|
72
75
|
# TODO: Log a warning when the subtype is not found.
|
73
76
|
'OCI::Identity::Models::UpdateIdentityProviderDetails'
|
74
77
|
end
|
78
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Layout/EmptyLines
|
75
79
|
|
76
80
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
77
81
|
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -22,12 +22,15 @@ require 'oci/load_balancer/models/connection_configuration'
|
|
22
22
|
require 'oci/load_balancer/models/create_backend_details'
|
23
23
|
require 'oci/load_balancer/models/create_backend_set_details'
|
24
24
|
require 'oci/load_balancer/models/create_certificate_details'
|
25
|
+
require 'oci/load_balancer/models/create_hostname_details'
|
25
26
|
require 'oci/load_balancer/models/create_listener_details'
|
26
27
|
require 'oci/load_balancer/models/create_load_balancer_details'
|
27
28
|
require 'oci/load_balancer/models/create_path_route_set_details'
|
28
29
|
require 'oci/load_balancer/models/health_check_result'
|
29
30
|
require 'oci/load_balancer/models/health_checker'
|
30
31
|
require 'oci/load_balancer/models/health_checker_details'
|
32
|
+
require 'oci/load_balancer/models/hostname'
|
33
|
+
require 'oci/load_balancer/models/hostname_details'
|
31
34
|
require 'oci/load_balancer/models/ip_address'
|
32
35
|
require 'oci/load_balancer/models/listener'
|
33
36
|
require 'oci/load_balancer/models/listener_details'
|
@@ -47,6 +50,7 @@ require 'oci/load_balancer/models/session_persistence_configuration_details'
|
|
47
50
|
require 'oci/load_balancer/models/update_backend_details'
|
48
51
|
require 'oci/load_balancer/models/update_backend_set_details'
|
49
52
|
require 'oci/load_balancer/models/update_health_checker_details'
|
53
|
+
require 'oci/load_balancer/models/update_hostname_details'
|
50
54
|
require 'oci/load_balancer/models/update_listener_details'
|
51
55
|
require 'oci/load_balancer/models/update_load_balancer_details'
|
52
56
|
require 'oci/load_balancer/models/update_path_route_set_details'
|
@@ -15,6 +15,12 @@ module OCI
|
|
15
15
|
# @return [String]
|
16
16
|
attr_reader :endpoint
|
17
17
|
|
18
|
+
# The default retry configuration to apply to all operations in this service client. This can be overridden
|
19
|
+
# on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
20
|
+
# will not perform any retries
|
21
|
+
# @return [OCI::Retry::RetryConfig]
|
22
|
+
attr_reader :retry_config
|
23
|
+
|
18
24
|
# The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
|
19
25
|
# @return [String]
|
20
26
|
attr_reader :region
|
@@ -36,7 +42,10 @@ module OCI
|
|
36
42
|
# so that the instance principals signer can be provided to the client
|
37
43
|
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
38
44
|
# the details for the proxy can be provided in this parameter
|
39
|
-
|
45
|
+
# @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
|
46
|
+
# apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
47
|
+
# will not perform any retries
|
48
|
+
def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil, retry_config: nil)
|
40
49
|
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
41
50
|
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
42
51
|
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
@@ -60,6 +69,7 @@ module OCI
|
|
60
69
|
end
|
61
70
|
|
62
71
|
@api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
72
|
+
@retry_config = retry_config
|
63
73
|
|
64
74
|
region ||= config.region
|
65
75
|
region ||= signer.region if signer.respond_to?(:region)
|
@@ -94,9 +104,11 @@ module OCI
|
|
94
104
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers.
|
95
105
|
# @param [String] backend_set_name The name of the backend set to add the backend server to.
|
96
106
|
#
|
97
|
-
# Example: `
|
107
|
+
# Example: `example_backend_set`
|
98
108
|
#
|
99
109
|
# @param [Hash] opts the optional parameters
|
110
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
111
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
100
112
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
101
113
|
# particular request, please provide the request ID.
|
102
114
|
# (default to )
|
@@ -128,18 +140,23 @@ module OCI
|
|
128
140
|
header_params['content-type'] = 'application/json'
|
129
141
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
130
142
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
143
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
131
144
|
|
132
145
|
post_body = @api_client.object_to_http_body(create_backend_details)
|
133
146
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
147
|
+
# rubocop:disable Metrics/BlockLength
|
148
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_backend') do
|
149
|
+
@api_client.call_api(
|
150
|
+
:POST,
|
151
|
+
path,
|
152
|
+
endpoint,
|
153
|
+
header_params: header_params,
|
154
|
+
query_params: query_params,
|
155
|
+
operation_signing_strategy: operation_signing_strategy,
|
156
|
+
body: post_body
|
157
|
+
)
|
158
|
+
end
|
159
|
+
# rubocop:enable Metrics/BlockLength
|
143
160
|
end
|
144
161
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
145
162
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -154,6 +171,8 @@ module OCI
|
|
154
171
|
# @param [OCI::LoadBalancer::Models::CreateBackendSetDetails] create_backend_set_details The details for adding a backend set.
|
155
172
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a backend set.
|
156
173
|
# @param [Hash] opts the optional parameters
|
174
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
175
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
157
176
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
158
177
|
# particular request, please provide the request ID.
|
159
178
|
# (default to )
|
@@ -183,18 +202,23 @@ module OCI
|
|
183
202
|
header_params['content-type'] = 'application/json'
|
184
203
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
185
204
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
205
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
186
206
|
|
187
207
|
post_body = @api_client.object_to_http_body(create_backend_set_details)
|
188
208
|
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
209
|
+
# rubocop:disable Metrics/BlockLength
|
210
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_backend_set') do
|
211
|
+
@api_client.call_api(
|
212
|
+
:POST,
|
213
|
+
path,
|
214
|
+
endpoint,
|
215
|
+
header_params: header_params,
|
216
|
+
query_params: query_params,
|
217
|
+
operation_signing_strategy: operation_signing_strategy,
|
218
|
+
body: post_body
|
219
|
+
)
|
220
|
+
end
|
221
|
+
# rubocop:enable Metrics/BlockLength
|
198
222
|
end
|
199
223
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
200
224
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -205,10 +229,12 @@ module OCI
|
|
205
229
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
206
230
|
|
207
231
|
|
208
|
-
# Creates an asynchronous request to add an SSL certificate.
|
209
|
-
# @param [OCI::LoadBalancer::Models::CreateCertificateDetails] create_certificate_details The details of the certificate to add.
|
210
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add the certificate.
|
232
|
+
# Creates an asynchronous request to add an SSL certificate bundle.
|
233
|
+
# @param [OCI::LoadBalancer::Models::CreateCertificateDetails] create_certificate_details The details of the certificate bundle to add.
|
234
|
+
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add the certificate bundle.
|
211
235
|
# @param [Hash] opts the optional parameters
|
236
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
237
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
212
238
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
213
239
|
# particular request, please provide the request ID.
|
214
240
|
# (default to )
|
@@ -238,18 +264,87 @@ module OCI
|
|
238
264
|
header_params['content-type'] = 'application/json'
|
239
265
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
240
266
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
267
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
241
268
|
|
242
269
|
post_body = @api_client.object_to_http_body(create_certificate_details)
|
243
270
|
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
271
|
+
# rubocop:disable Metrics/BlockLength
|
272
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_certificate') do
|
273
|
+
@api_client.call_api(
|
274
|
+
:POST,
|
275
|
+
path,
|
276
|
+
endpoint,
|
277
|
+
header_params: header_params,
|
278
|
+
query_params: query_params,
|
279
|
+
operation_signing_strategy: operation_signing_strategy,
|
280
|
+
body: post_body
|
281
|
+
)
|
282
|
+
end
|
283
|
+
# rubocop:enable Metrics/BlockLength
|
284
|
+
end
|
285
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
286
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
287
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
288
|
+
|
289
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
290
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
291
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
292
|
+
|
293
|
+
|
294
|
+
# Adds a hostname resource to the specified load balancer. For more information, see
|
295
|
+
# [Managing Request Routing](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingrequest.htm).
|
296
|
+
#
|
297
|
+
# @param [OCI::LoadBalancer::Models::CreateHostnameDetails] create_hostname_details The details of the hostname resource to add to the specified load balancer.
|
298
|
+
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to add the hostname to.
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
301
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
302
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
303
|
+
# particular request, please provide the request ID.
|
304
|
+
# (default to )
|
305
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
306
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
307
|
+
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
308
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
309
|
+
# may be rejected).
|
310
|
+
#
|
311
|
+
# @return [Response] A Response object with data of type nil
|
312
|
+
def create_hostname(create_hostname_details, load_balancer_id, opts = {})
|
313
|
+
logger.debug 'Calling operation LoadBalancerClient#create_hostname.' if logger
|
314
|
+
|
315
|
+
raise "Missing the required parameter 'create_hostname_details' when calling create_hostname." if create_hostname_details.nil?
|
316
|
+
raise "Missing the required parameter 'load_balancer_id' when calling create_hostname." if load_balancer_id.nil?
|
317
|
+
raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id)
|
318
|
+
|
319
|
+
path = '/loadBalancers/{loadBalancerId}/hostnames'.sub('{loadBalancerId}', load_balancer_id.to_s)
|
320
|
+
operation_signing_strategy = :standard
|
321
|
+
|
322
|
+
# Query Params
|
323
|
+
query_params = {}
|
324
|
+
|
325
|
+
# Header Params
|
326
|
+
header_params = {}
|
327
|
+
header_params['accept'] = 'application/json'
|
328
|
+
header_params['content-type'] = 'application/json'
|
329
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
330
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
331
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
332
|
+
|
333
|
+
post_body = @api_client.object_to_http_body(create_hostname_details)
|
334
|
+
|
335
|
+
# rubocop:disable Metrics/BlockLength
|
336
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_hostname') do
|
337
|
+
@api_client.call_api(
|
338
|
+
:POST,
|
339
|
+
path,
|
340
|
+
endpoint,
|
341
|
+
header_params: header_params,
|
342
|
+
query_params: query_params,
|
343
|
+
operation_signing_strategy: operation_signing_strategy,
|
344
|
+
body: post_body
|
345
|
+
)
|
346
|
+
end
|
347
|
+
# rubocop:enable Metrics/BlockLength
|
253
348
|
end
|
254
349
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
255
350
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -264,6 +359,8 @@ module OCI
|
|
264
359
|
# @param [OCI::LoadBalancer::Models::CreateListenerDetails] create_listener_details Details to add a listener.
|
265
360
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a listener.
|
266
361
|
# @param [Hash] opts the optional parameters
|
362
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
363
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
267
364
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
268
365
|
# particular request, please provide the request ID.
|
269
366
|
# (default to )
|
@@ -293,18 +390,23 @@ module OCI
|
|
293
390
|
header_params['content-type'] = 'application/json'
|
294
391
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
295
392
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
393
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
296
394
|
|
297
395
|
post_body = @api_client.object_to_http_body(create_listener_details)
|
298
396
|
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
397
|
+
# rubocop:disable Metrics/BlockLength
|
398
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_listener') do
|
399
|
+
@api_client.call_api(
|
400
|
+
:POST,
|
401
|
+
path,
|
402
|
+
endpoint,
|
403
|
+
header_params: header_params,
|
404
|
+
query_params: query_params,
|
405
|
+
operation_signing_strategy: operation_signing_strategy,
|
406
|
+
body: post_body
|
407
|
+
)
|
408
|
+
end
|
409
|
+
# rubocop:enable Metrics/BlockLength
|
308
410
|
end
|
309
411
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
310
412
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -345,6 +447,8 @@ module OCI
|
|
345
447
|
#
|
346
448
|
# @param [OCI::LoadBalancer::Models::CreateLoadBalancerDetails] create_load_balancer_details The configuration details for creating a load balancer.
|
347
449
|
# @param [Hash] opts the optional parameters
|
450
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
451
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
348
452
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
349
453
|
# particular request, please provide the request ID.
|
350
454
|
# (default to )
|
@@ -372,18 +476,23 @@ module OCI
|
|
372
476
|
header_params['content-type'] = 'application/json'
|
373
477
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
374
478
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
479
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
375
480
|
|
376
481
|
post_body = @api_client.object_to_http_body(create_load_balancer_details)
|
377
482
|
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
483
|
+
# rubocop:disable Metrics/BlockLength
|
484
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_load_balancer') do
|
485
|
+
@api_client.call_api(
|
486
|
+
:POST,
|
487
|
+
path,
|
488
|
+
endpoint,
|
489
|
+
header_params: header_params,
|
490
|
+
query_params: query_params,
|
491
|
+
operation_signing_strategy: operation_signing_strategy,
|
492
|
+
body: post_body
|
493
|
+
)
|
494
|
+
end
|
495
|
+
# rubocop:enable Metrics/BlockLength
|
387
496
|
end
|
388
497
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
389
498
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -400,6 +509,8 @@ module OCI
|
|
400
509
|
# @param [OCI::LoadBalancer::Models::CreatePathRouteSetDetails] create_path_route_set_details The details of the path route set to add.
|
401
510
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to add the path route set to.
|
402
511
|
# @param [Hash] opts the optional parameters
|
512
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
513
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
403
514
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
404
515
|
# particular request, please provide the request ID.
|
405
516
|
# (default to )
|
@@ -429,18 +540,23 @@ module OCI
|
|
429
540
|
header_params['content-type'] = 'application/json'
|
430
541
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
431
542
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
543
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
432
544
|
|
433
545
|
post_body = @api_client.object_to_http_body(create_path_route_set_details)
|
434
546
|
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
547
|
+
# rubocop:disable Metrics/BlockLength
|
548
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_path_route_set') do
|
549
|
+
@api_client.call_api(
|
550
|
+
:POST,
|
551
|
+
path,
|
552
|
+
endpoint,
|
553
|
+
header_params: header_params,
|
554
|
+
query_params: query_params,
|
555
|
+
operation_signing_strategy: operation_signing_strategy,
|
556
|
+
body: post_body
|
557
|
+
)
|
558
|
+
end
|
559
|
+
# rubocop:enable Metrics/BlockLength
|
444
560
|
end
|
445
561
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
446
562
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -455,13 +571,15 @@ module OCI
|
|
455
571
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server.
|
456
572
|
# @param [String] backend_set_name The name of the backend set associated with the backend server.
|
457
573
|
#
|
458
|
-
# Example: `
|
574
|
+
# Example: `example_backend_set`
|
459
575
|
#
|
460
576
|
# @param [String] backend_name The IP address and port of the backend server to remove.
|
461
577
|
#
|
462
|
-
# Example: `
|
578
|
+
# Example: `10.0.0.3:8080`
|
463
579
|
#
|
464
580
|
# @param [Hash] opts the optional parameters
|
581
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
582
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
465
583
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
466
584
|
# particular request, please provide the request ID.
|
467
585
|
# (default to )
|
@@ -490,15 +608,19 @@ module OCI
|
|
490
608
|
|
491
609
|
post_body = nil
|
492
610
|
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
611
|
+
# rubocop:disable Metrics/BlockLength
|
612
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_backend') do
|
613
|
+
@api_client.call_api(
|
614
|
+
:DELETE,
|
615
|
+
path,
|
616
|
+
endpoint,
|
617
|
+
header_params: header_params,
|
618
|
+
query_params: query_params,
|
619
|
+
operation_signing_strategy: operation_signing_strategy,
|
620
|
+
body: post_body
|
621
|
+
)
|
622
|
+
end
|
623
|
+
# rubocop:enable Metrics/BlockLength
|
502
624
|
end
|
503
625
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
504
626
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -516,9 +638,11 @@ module OCI
|
|
516
638
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set.
|
517
639
|
# @param [String] backend_set_name The name of the backend set to delete.
|
518
640
|
#
|
519
|
-
# Example: `
|
641
|
+
# Example: `example_backend_set`
|
520
642
|
#
|
521
643
|
# @param [Hash] opts the optional parameters
|
644
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
645
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
522
646
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
523
647
|
# particular request, please provide the request ID.
|
524
648
|
# (default to )
|
@@ -545,15 +669,19 @@ module OCI
|
|
545
669
|
|
546
670
|
post_body = nil
|
547
671
|
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
672
|
+
# rubocop:disable Metrics/BlockLength
|
673
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_backend_set') do
|
674
|
+
@api_client.call_api(
|
675
|
+
:DELETE,
|
676
|
+
path,
|
677
|
+
endpoint,
|
678
|
+
header_params: header_params,
|
679
|
+
query_params: query_params,
|
680
|
+
operation_signing_strategy: operation_signing_strategy,
|
681
|
+
body: post_body
|
682
|
+
)
|
683
|
+
end
|
684
|
+
# rubocop:enable Metrics/BlockLength
|
557
685
|
end
|
558
686
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
559
687
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -564,13 +692,17 @@ module OCI
|
|
564
692
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
565
693
|
|
566
694
|
|
567
|
-
# Deletes an SSL certificate from a load balancer.
|
568
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate
|
569
|
-
#
|
695
|
+
# Deletes an SSL certificate bundle from a load balancer.
|
696
|
+
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate bundle
|
697
|
+
# to be deleted.
|
570
698
|
#
|
571
|
-
#
|
699
|
+
# @param [String] certificate_name The name of the certificate bundle to delete.
|
700
|
+
#
|
701
|
+
# Example: `example_certificate_bundle`
|
572
702
|
#
|
573
703
|
# @param [Hash] opts the optional parameters
|
704
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
705
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
574
706
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
575
707
|
# particular request, please provide the request ID.
|
576
708
|
# (default to )
|
@@ -597,15 +729,78 @@ module OCI
|
|
597
729
|
|
598
730
|
post_body = nil
|
599
731
|
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
732
|
+
# rubocop:disable Metrics/BlockLength
|
733
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_certificate') do
|
734
|
+
@api_client.call_api(
|
735
|
+
:DELETE,
|
736
|
+
path,
|
737
|
+
endpoint,
|
738
|
+
header_params: header_params,
|
739
|
+
query_params: query_params,
|
740
|
+
operation_signing_strategy: operation_signing_strategy,
|
741
|
+
body: post_body
|
742
|
+
)
|
743
|
+
end
|
744
|
+
# rubocop:enable Metrics/BlockLength
|
745
|
+
end
|
746
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
747
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
748
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
749
|
+
|
750
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
751
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
752
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
753
|
+
|
754
|
+
|
755
|
+
# Deletes a hostname resource from the specified load balancer.
|
756
|
+
#
|
757
|
+
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the hostname to delete.
|
758
|
+
# @param [String] name The name of the hostname resource to delete.
|
759
|
+
#
|
760
|
+
# Example: `example_hostname_001`
|
761
|
+
#
|
762
|
+
# @param [Hash] opts the optional parameters
|
763
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
764
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
765
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
766
|
+
# particular request, please provide the request ID.
|
767
|
+
# (default to )
|
768
|
+
# @return [Response] A Response object with data of type nil
|
769
|
+
def delete_hostname(load_balancer_id, name, opts = {})
|
770
|
+
logger.debug 'Calling operation LoadBalancerClient#delete_hostname.' if logger
|
771
|
+
|
772
|
+
raise "Missing the required parameter 'load_balancer_id' when calling delete_hostname." if load_balancer_id.nil?
|
773
|
+
raise "Missing the required parameter 'name' when calling delete_hostname." if name.nil?
|
774
|
+
raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id)
|
775
|
+
raise "Parameter value for 'name' must not be blank" if OCI::Internal::Util.blank_string?(name)
|
776
|
+
|
777
|
+
path = '/loadBalancers/{loadBalancerId}/hostnames/{name}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{name}', name.to_s)
|
778
|
+
operation_signing_strategy = :standard
|
779
|
+
|
780
|
+
# Query Params
|
781
|
+
query_params = {}
|
782
|
+
|
783
|
+
# Header Params
|
784
|
+
header_params = {}
|
785
|
+
header_params['accept'] = 'application/json'
|
786
|
+
header_params['content-type'] = 'application/json'
|
787
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
788
|
+
|
789
|
+
post_body = nil
|
790
|
+
|
791
|
+
# rubocop:disable Metrics/BlockLength
|
792
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_hostname') do
|
793
|
+
@api_client.call_api(
|
794
|
+
:DELETE,
|
795
|
+
path,
|
796
|
+
endpoint,
|
797
|
+
header_params: header_params,
|
798
|
+
query_params: query_params,
|
799
|
+
operation_signing_strategy: operation_signing_strategy,
|
800
|
+
body: post_body
|
801
|
+
)
|
802
|
+
end
|
803
|
+
# rubocop:enable Metrics/BlockLength
|
609
804
|
end
|
610
805
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
611
806
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -620,9 +815,11 @@ module OCI
|
|
620
815
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to delete.
|
621
816
|
# @param [String] listener_name The name of the listener to delete.
|
622
817
|
#
|
623
|
-
# Example: `
|
818
|
+
# Example: `example_listener`
|
624
819
|
#
|
625
820
|
# @param [Hash] opts the optional parameters
|
821
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
822
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
626
823
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
627
824
|
# particular request, please provide the request ID.
|
628
825
|
# (default to )
|
@@ -649,15 +846,19 @@ module OCI
|
|
649
846
|
|
650
847
|
post_body = nil
|
651
848
|
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
849
|
+
# rubocop:disable Metrics/BlockLength
|
850
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_listener') do
|
851
|
+
@api_client.call_api(
|
852
|
+
:DELETE,
|
853
|
+
path,
|
854
|
+
endpoint,
|
855
|
+
header_params: header_params,
|
856
|
+
query_params: query_params,
|
857
|
+
operation_signing_strategy: operation_signing_strategy,
|
858
|
+
body: post_body
|
859
|
+
)
|
860
|
+
end
|
861
|
+
# rubocop:enable Metrics/BlockLength
|
661
862
|
end
|
662
863
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
663
864
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -671,6 +872,8 @@ module OCI
|
|
671
872
|
# Stops a load balancer and removes it from service.
|
672
873
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to delete.
|
673
874
|
# @param [Hash] opts the optional parameters
|
875
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
876
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
674
877
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
675
878
|
# particular request, please provide the request ID.
|
676
879
|
# (default to )
|
@@ -695,15 +898,19 @@ module OCI
|
|
695
898
|
|
696
899
|
post_body = nil
|
697
900
|
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
901
|
+
# rubocop:disable Metrics/BlockLength
|
902
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_load_balancer') do
|
903
|
+
@api_client.call_api(
|
904
|
+
:DELETE,
|
905
|
+
path,
|
906
|
+
endpoint,
|
907
|
+
header_params: header_params,
|
908
|
+
query_params: query_params,
|
909
|
+
operation_signing_strategy: operation_signing_strategy,
|
910
|
+
body: post_body
|
911
|
+
)
|
912
|
+
end
|
913
|
+
# rubocop:enable Metrics/BlockLength
|
707
914
|
end
|
708
915
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
709
916
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -722,9 +929,11 @@ module OCI
|
|
722
929
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route set to delete.
|
723
930
|
# @param [String] path_route_set_name The name of the path route set to delete.
|
724
931
|
#
|
725
|
-
# Example: `
|
932
|
+
# Example: `example_path_route_set`
|
726
933
|
#
|
727
934
|
# @param [Hash] opts the optional parameters
|
935
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
936
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
728
937
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
729
938
|
# particular request, please provide the request ID.
|
730
939
|
# (default to )
|
@@ -751,15 +960,19 @@ module OCI
|
|
751
960
|
|
752
961
|
post_body = nil
|
753
962
|
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
963
|
+
# rubocop:disable Metrics/BlockLength
|
964
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_path_route_set') do
|
965
|
+
@api_client.call_api(
|
966
|
+
:DELETE,
|
967
|
+
path,
|
968
|
+
endpoint,
|
969
|
+
header_params: header_params,
|
970
|
+
query_params: query_params,
|
971
|
+
operation_signing_strategy: operation_signing_strategy,
|
972
|
+
body: post_body
|
973
|
+
)
|
974
|
+
end
|
975
|
+
# rubocop:enable Metrics/BlockLength
|
763
976
|
end
|
764
977
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
765
978
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -774,13 +987,15 @@ module OCI
|
|
774
987
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server.
|
775
988
|
# @param [String] backend_set_name The name of the backend set that includes the backend server.
|
776
989
|
#
|
777
|
-
# Example: `
|
990
|
+
# Example: `example_backend_set`
|
778
991
|
#
|
779
992
|
# @param [String] backend_name The IP address and port of the backend server to retrieve.
|
780
993
|
#
|
781
|
-
# Example: `
|
994
|
+
# Example: `10.0.0.3:8080`
|
782
995
|
#
|
783
996
|
# @param [Hash] opts the optional parameters
|
997
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
998
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
784
999
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
785
1000
|
# particular request, please provide the request ID.
|
786
1001
|
# (default to )
|
@@ -809,16 +1024,20 @@ module OCI
|
|
809
1024
|
|
810
1025
|
post_body = nil
|
811
1026
|
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
1027
|
+
# rubocop:disable Metrics/BlockLength
|
1028
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_backend') do
|
1029
|
+
@api_client.call_api(
|
1030
|
+
:GET,
|
1031
|
+
path,
|
1032
|
+
endpoint,
|
1033
|
+
header_params: header_params,
|
1034
|
+
query_params: query_params,
|
1035
|
+
operation_signing_strategy: operation_signing_strategy,
|
1036
|
+
body: post_body,
|
1037
|
+
return_type: 'OCI::LoadBalancer::Models::Backend'
|
1038
|
+
)
|
1039
|
+
end
|
1040
|
+
# rubocop:enable Metrics/BlockLength
|
822
1041
|
end
|
823
1042
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
824
1043
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -833,13 +1052,15 @@ module OCI
|
|
833
1052
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend server health status to be retrieved.
|
834
1053
|
# @param [String] backend_set_name The name of the backend set associated with the backend server to retrieve the health status for.
|
835
1054
|
#
|
836
|
-
# Example: `
|
1055
|
+
# Example: `example_backend_set`
|
837
1056
|
#
|
838
1057
|
# @param [String] backend_name The IP address and port of the backend server to retrieve the health status for.
|
839
1058
|
#
|
840
|
-
# Example: `
|
1059
|
+
# Example: `10.0.0.3:8080`
|
841
1060
|
#
|
842
1061
|
# @param [Hash] opts the optional parameters
|
1062
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1063
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
843
1064
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
844
1065
|
# particular request, please provide the request ID.
|
845
1066
|
# (default to )
|
@@ -868,16 +1089,20 @@ module OCI
|
|
868
1089
|
|
869
1090
|
post_body = nil
|
870
1091
|
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
1092
|
+
# rubocop:disable Metrics/BlockLength
|
1093
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_backend_health') do
|
1094
|
+
@api_client.call_api(
|
1095
|
+
:GET,
|
1096
|
+
path,
|
1097
|
+
endpoint,
|
1098
|
+
header_params: header_params,
|
1099
|
+
query_params: query_params,
|
1100
|
+
operation_signing_strategy: operation_signing_strategy,
|
1101
|
+
body: post_body,
|
1102
|
+
return_type: 'OCI::LoadBalancer::Models::BackendHealth'
|
1103
|
+
)
|
1104
|
+
end
|
1105
|
+
# rubocop:enable Metrics/BlockLength
|
881
1106
|
end
|
882
1107
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
883
1108
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -892,9 +1117,11 @@ module OCI
|
|
892
1117
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the specified load balancer.
|
893
1118
|
# @param [String] backend_set_name The name of the backend set to retrieve.
|
894
1119
|
#
|
895
|
-
# Example: `
|
1120
|
+
# Example: `example_backend_set`
|
896
1121
|
#
|
897
1122
|
# @param [Hash] opts the optional parameters
|
1123
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1124
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
898
1125
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
899
1126
|
# particular request, please provide the request ID.
|
900
1127
|
# (default to )
|
@@ -921,16 +1148,20 @@ module OCI
|
|
921
1148
|
|
922
1149
|
post_body = nil
|
923
1150
|
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
1151
|
+
# rubocop:disable Metrics/BlockLength
|
1152
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_backend_set') do
|
1153
|
+
@api_client.call_api(
|
1154
|
+
:GET,
|
1155
|
+
path,
|
1156
|
+
endpoint,
|
1157
|
+
header_params: header_params,
|
1158
|
+
query_params: query_params,
|
1159
|
+
operation_signing_strategy: operation_signing_strategy,
|
1160
|
+
body: post_body,
|
1161
|
+
return_type: 'OCI::LoadBalancer::Models::BackendSet'
|
1162
|
+
)
|
1163
|
+
end
|
1164
|
+
# rubocop:enable Metrics/BlockLength
|
934
1165
|
end
|
935
1166
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
936
1167
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -945,9 +1176,11 @@ module OCI
|
|
945
1176
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set health status to be retrieved.
|
946
1177
|
# @param [String] backend_set_name The name of the backend set to retrieve the health status for.
|
947
1178
|
#
|
948
|
-
# Example: `
|
1179
|
+
# Example: `example_backend_set`
|
949
1180
|
#
|
950
1181
|
# @param [Hash] opts the optional parameters
|
1182
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1183
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
951
1184
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
952
1185
|
# particular request, please provide the request ID.
|
953
1186
|
# (default to )
|
@@ -974,16 +1207,20 @@ module OCI
|
|
974
1207
|
|
975
1208
|
post_body = nil
|
976
1209
|
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
1210
|
+
# rubocop:disable Metrics/BlockLength
|
1211
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_backend_set_health') do
|
1212
|
+
@api_client.call_api(
|
1213
|
+
:GET,
|
1214
|
+
path,
|
1215
|
+
endpoint,
|
1216
|
+
header_params: header_params,
|
1217
|
+
query_params: query_params,
|
1218
|
+
operation_signing_strategy: operation_signing_strategy,
|
1219
|
+
body: post_body,
|
1220
|
+
return_type: 'OCI::LoadBalancer::Models::BackendSetHealth'
|
1221
|
+
)
|
1222
|
+
end
|
1223
|
+
# rubocop:enable Metrics/BlockLength
|
987
1224
|
end
|
988
1225
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
989
1226
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -998,9 +1235,11 @@ module OCI
|
|
998
1235
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be retrieved.
|
999
1236
|
# @param [String] backend_set_name The name of the backend set associated with the health check policy to be retrieved.
|
1000
1237
|
#
|
1001
|
-
# Example: `
|
1238
|
+
# Example: `example_backend_set`
|
1002
1239
|
#
|
1003
1240
|
# @param [Hash] opts the optional parameters
|
1241
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1242
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1004
1243
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1005
1244
|
# particular request, please provide the request ID.
|
1006
1245
|
# (default to )
|
@@ -1027,16 +1266,79 @@ module OCI
|
|
1027
1266
|
|
1028
1267
|
post_body = nil
|
1029
1268
|
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1269
|
+
# rubocop:disable Metrics/BlockLength
|
1270
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_health_checker') do
|
1271
|
+
@api_client.call_api(
|
1272
|
+
:GET,
|
1273
|
+
path,
|
1274
|
+
endpoint,
|
1275
|
+
header_params: header_params,
|
1276
|
+
query_params: query_params,
|
1277
|
+
operation_signing_strategy: operation_signing_strategy,
|
1278
|
+
body: post_body,
|
1279
|
+
return_type: 'OCI::LoadBalancer::Models::HealthChecker'
|
1280
|
+
)
|
1281
|
+
end
|
1282
|
+
# rubocop:enable Metrics/BlockLength
|
1283
|
+
end
|
1284
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1285
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1286
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1287
|
+
|
1288
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1289
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1290
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1291
|
+
|
1292
|
+
|
1293
|
+
# Gets the specified hostname resource's configuration information.
|
1294
|
+
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the specified load balancer.
|
1295
|
+
# @param [String] name The name of the hostname resource to retrieve.
|
1296
|
+
#
|
1297
|
+
# Example: `example_hostname_001`
|
1298
|
+
#
|
1299
|
+
# @param [Hash] opts the optional parameters
|
1300
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1301
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1302
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1303
|
+
# particular request, please provide the request ID.
|
1304
|
+
# (default to )
|
1305
|
+
# @return [Response] A Response object with data of type {OCI::LoadBalancer::Models::Hostname Hostname}
|
1306
|
+
def get_hostname(load_balancer_id, name, opts = {})
|
1307
|
+
logger.debug 'Calling operation LoadBalancerClient#get_hostname.' if logger
|
1308
|
+
|
1309
|
+
raise "Missing the required parameter 'load_balancer_id' when calling get_hostname." if load_balancer_id.nil?
|
1310
|
+
raise "Missing the required parameter 'name' when calling get_hostname." if name.nil?
|
1311
|
+
raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id)
|
1312
|
+
raise "Parameter value for 'name' must not be blank" if OCI::Internal::Util.blank_string?(name)
|
1313
|
+
|
1314
|
+
path = '/loadBalancers/{loadBalancerId}/hostnames/{name}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{name}', name.to_s)
|
1315
|
+
operation_signing_strategy = :standard
|
1316
|
+
|
1317
|
+
# Query Params
|
1318
|
+
query_params = {}
|
1319
|
+
|
1320
|
+
# Header Params
|
1321
|
+
header_params = {}
|
1322
|
+
header_params['accept'] = 'application/json'
|
1323
|
+
header_params['content-type'] = 'application/json'
|
1324
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1325
|
+
|
1326
|
+
post_body = nil
|
1327
|
+
|
1328
|
+
# rubocop:disable Metrics/BlockLength
|
1329
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_hostname') do
|
1330
|
+
@api_client.call_api(
|
1331
|
+
:GET,
|
1332
|
+
path,
|
1333
|
+
endpoint,
|
1334
|
+
header_params: header_params,
|
1335
|
+
query_params: query_params,
|
1336
|
+
operation_signing_strategy: operation_signing_strategy,
|
1337
|
+
body: post_body,
|
1338
|
+
return_type: 'OCI::LoadBalancer::Models::Hostname'
|
1339
|
+
)
|
1340
|
+
end
|
1341
|
+
# rubocop:enable Metrics/BlockLength
|
1040
1342
|
end
|
1041
1343
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1042
1344
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1050,6 +1352,8 @@ module OCI
|
|
1050
1352
|
# Gets the specified load balancer's configuration information.
|
1051
1353
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to retrieve.
|
1052
1354
|
# @param [Hash] opts the optional parameters
|
1355
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1356
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1053
1357
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1054
1358
|
# particular request, please provide the request ID.
|
1055
1359
|
# (default to )
|
@@ -1074,16 +1378,20 @@ module OCI
|
|
1074
1378
|
|
1075
1379
|
post_body = nil
|
1076
1380
|
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1381
|
+
# rubocop:disable Metrics/BlockLength
|
1382
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_load_balancer') do
|
1383
|
+
@api_client.call_api(
|
1384
|
+
:GET,
|
1385
|
+
path,
|
1386
|
+
endpoint,
|
1387
|
+
header_params: header_params,
|
1388
|
+
query_params: query_params,
|
1389
|
+
operation_signing_strategy: operation_signing_strategy,
|
1390
|
+
body: post_body,
|
1391
|
+
return_type: 'OCI::LoadBalancer::Models::LoadBalancer'
|
1392
|
+
)
|
1393
|
+
end
|
1394
|
+
# rubocop:enable Metrics/BlockLength
|
1087
1395
|
end
|
1088
1396
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1089
1397
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1097,6 +1405,8 @@ module OCI
|
|
1097
1405
|
# Gets the health status for the specified load balancer.
|
1098
1406
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to return health status for.
|
1099
1407
|
# @param [Hash] opts the optional parameters
|
1408
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1409
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1100
1410
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1101
1411
|
# particular request, please provide the request ID.
|
1102
1412
|
# (default to )
|
@@ -1121,16 +1431,20 @@ module OCI
|
|
1121
1431
|
|
1122
1432
|
post_body = nil
|
1123
1433
|
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1434
|
+
# rubocop:disable Metrics/BlockLength
|
1435
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_load_balancer_health') do
|
1436
|
+
@api_client.call_api(
|
1437
|
+
:GET,
|
1438
|
+
path,
|
1439
|
+
endpoint,
|
1440
|
+
header_params: header_params,
|
1441
|
+
query_params: query_params,
|
1442
|
+
operation_signing_strategy: operation_signing_strategy,
|
1443
|
+
body: post_body,
|
1444
|
+
return_type: 'OCI::LoadBalancer::Models::LoadBalancerHealth'
|
1445
|
+
)
|
1446
|
+
end
|
1447
|
+
# rubocop:enable Metrics/BlockLength
|
1134
1448
|
end
|
1135
1449
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1136
1450
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1145,9 +1459,11 @@ module OCI
|
|
1145
1459
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the specified load balancer.
|
1146
1460
|
# @param [String] path_route_set_name The name of the path route set to retrieve.
|
1147
1461
|
#
|
1148
|
-
# Example: `
|
1462
|
+
# Example: `example_path_route_set`
|
1149
1463
|
#
|
1150
1464
|
# @param [Hash] opts the optional parameters
|
1465
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1466
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1151
1467
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1152
1468
|
# particular request, please provide the request ID.
|
1153
1469
|
# (default to )
|
@@ -1174,16 +1490,20 @@ module OCI
|
|
1174
1490
|
|
1175
1491
|
post_body = nil
|
1176
1492
|
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1493
|
+
# rubocop:disable Metrics/BlockLength
|
1494
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_path_route_set') do
|
1495
|
+
@api_client.call_api(
|
1496
|
+
:GET,
|
1497
|
+
path,
|
1498
|
+
endpoint,
|
1499
|
+
header_params: header_params,
|
1500
|
+
query_params: query_params,
|
1501
|
+
operation_signing_strategy: operation_signing_strategy,
|
1502
|
+
body: post_body,
|
1503
|
+
return_type: 'OCI::LoadBalancer::Models::PathRouteSet'
|
1504
|
+
)
|
1505
|
+
end
|
1506
|
+
# rubocop:enable Metrics/BlockLength
|
1187
1507
|
end
|
1188
1508
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1189
1509
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1197,6 +1517,8 @@ module OCI
|
|
1197
1517
|
# Gets the details of a work request.
|
1198
1518
|
# @param [String] work_request_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request to retrieve.
|
1199
1519
|
# @param [Hash] opts the optional parameters
|
1520
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1521
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1200
1522
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1201
1523
|
# particular request, please provide the request ID.
|
1202
1524
|
# (default to )
|
@@ -1221,16 +1543,20 @@ module OCI
|
|
1221
1543
|
|
1222
1544
|
post_body = nil
|
1223
1545
|
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1546
|
+
# rubocop:disable Metrics/BlockLength
|
1547
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_work_request') do
|
1548
|
+
@api_client.call_api(
|
1549
|
+
:GET,
|
1550
|
+
path,
|
1551
|
+
endpoint,
|
1552
|
+
header_params: header_params,
|
1553
|
+
query_params: query_params,
|
1554
|
+
operation_signing_strategy: operation_signing_strategy,
|
1555
|
+
body: post_body,
|
1556
|
+
return_type: 'OCI::LoadBalancer::Models::WorkRequest'
|
1557
|
+
)
|
1558
|
+
end
|
1559
|
+
# rubocop:enable Metrics/BlockLength
|
1234
1560
|
end
|
1235
1561
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1236
1562
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1244,6 +1570,8 @@ module OCI
|
|
1244
1570
|
# Lists all backend sets associated with a given load balancer.
|
1245
1571
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend sets to retrieve.
|
1246
1572
|
# @param [Hash] opts the optional parameters
|
1573
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1574
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1247
1575
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1248
1576
|
# particular request, please provide the request ID.
|
1249
1577
|
# (default to )
|
@@ -1268,16 +1596,20 @@ module OCI
|
|
1268
1596
|
|
1269
1597
|
post_body = nil
|
1270
1598
|
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1599
|
+
# rubocop:disable Metrics/BlockLength
|
1600
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_backend_sets') do
|
1601
|
+
@api_client.call_api(
|
1602
|
+
:GET,
|
1603
|
+
path,
|
1604
|
+
endpoint,
|
1605
|
+
header_params: header_params,
|
1606
|
+
query_params: query_params,
|
1607
|
+
operation_signing_strategy: operation_signing_strategy,
|
1608
|
+
body: post_body,
|
1609
|
+
return_type: 'Array<OCI::LoadBalancer::Models::BackendSet>'
|
1610
|
+
)
|
1611
|
+
end
|
1612
|
+
# rubocop:enable Metrics/BlockLength
|
1281
1613
|
end
|
1282
1614
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1283
1615
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1292,9 +1624,11 @@ module OCI
|
|
1292
1624
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers.
|
1293
1625
|
# @param [String] backend_set_name The name of the backend set associated with the backend servers.
|
1294
1626
|
#
|
1295
|
-
# Example: `
|
1627
|
+
# Example: `example_backend_set`
|
1296
1628
|
#
|
1297
1629
|
# @param [Hash] opts the optional parameters
|
1630
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1631
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1298
1632
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1299
1633
|
# particular request, please provide the request ID.
|
1300
1634
|
# (default to )
|
@@ -1321,16 +1655,20 @@ module OCI
|
|
1321
1655
|
|
1322
1656
|
post_body = nil
|
1323
1657
|
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1658
|
+
# rubocop:disable Metrics/BlockLength
|
1659
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_backends') do
|
1660
|
+
@api_client.call_api(
|
1661
|
+
:GET,
|
1662
|
+
path,
|
1663
|
+
endpoint,
|
1664
|
+
header_params: header_params,
|
1665
|
+
query_params: query_params,
|
1666
|
+
operation_signing_strategy: operation_signing_strategy,
|
1667
|
+
body: post_body,
|
1668
|
+
return_type: 'Array<OCI::LoadBalancer::Models::Backend>'
|
1669
|
+
)
|
1670
|
+
end
|
1671
|
+
# rubocop:enable Metrics/BlockLength
|
1334
1672
|
end
|
1335
1673
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1336
1674
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1341,9 +1679,13 @@ module OCI
|
|
1341
1679
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1342
1680
|
|
1343
1681
|
|
1344
|
-
# Lists all SSL certificates associated with a given load balancer.
|
1345
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the
|
1682
|
+
# Lists all SSL certificates bundles associated with a given load balancer.
|
1683
|
+
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate bundles
|
1684
|
+
# to be listed.
|
1685
|
+
#
|
1346
1686
|
# @param [Hash] opts the optional parameters
|
1687
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1688
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1347
1689
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1348
1690
|
# particular request, please provide the request ID.
|
1349
1691
|
# (default to )
|
@@ -1368,16 +1710,75 @@ module OCI
|
|
1368
1710
|
|
1369
1711
|
post_body = nil
|
1370
1712
|
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1713
|
+
# rubocop:disable Metrics/BlockLength
|
1714
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_certificates') do
|
1715
|
+
@api_client.call_api(
|
1716
|
+
:GET,
|
1717
|
+
path,
|
1718
|
+
endpoint,
|
1719
|
+
header_params: header_params,
|
1720
|
+
query_params: query_params,
|
1721
|
+
operation_signing_strategy: operation_signing_strategy,
|
1722
|
+
body: post_body,
|
1723
|
+
return_type: 'Array<OCI::LoadBalancer::Models::Certificate>'
|
1724
|
+
)
|
1725
|
+
end
|
1726
|
+
# rubocop:enable Metrics/BlockLength
|
1727
|
+
end
|
1728
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1729
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1730
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1731
|
+
|
1732
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1733
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1734
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1735
|
+
|
1736
|
+
|
1737
|
+
# Lists all hostname resources associated with the specified load balancer.
|
1738
|
+
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the hostnames
|
1739
|
+
# to retrieve.
|
1740
|
+
#
|
1741
|
+
# @param [Hash] opts the optional parameters
|
1742
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1743
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1744
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1745
|
+
# particular request, please provide the request ID.
|
1746
|
+
# (default to )
|
1747
|
+
# @return [Response] A Response object with data of type Array<{OCI::LoadBalancer::Models::Hostname Hostname}>
|
1748
|
+
def list_hostnames(load_balancer_id, opts = {})
|
1749
|
+
logger.debug 'Calling operation LoadBalancerClient#list_hostnames.' if logger
|
1750
|
+
|
1751
|
+
raise "Missing the required parameter 'load_balancer_id' when calling list_hostnames." if load_balancer_id.nil?
|
1752
|
+
raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id)
|
1753
|
+
|
1754
|
+
path = '/loadBalancers/{loadBalancerId}/hostnames'.sub('{loadBalancerId}', load_balancer_id.to_s)
|
1755
|
+
operation_signing_strategy = :standard
|
1756
|
+
|
1757
|
+
# Query Params
|
1758
|
+
query_params = {}
|
1759
|
+
|
1760
|
+
# Header Params
|
1761
|
+
header_params = {}
|
1762
|
+
header_params['accept'] = 'application/json'
|
1763
|
+
header_params['content-type'] = 'application/json'
|
1764
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1765
|
+
|
1766
|
+
post_body = nil
|
1767
|
+
|
1768
|
+
# rubocop:disable Metrics/BlockLength
|
1769
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_hostnames') do
|
1770
|
+
@api_client.call_api(
|
1771
|
+
:GET,
|
1772
|
+
path,
|
1773
|
+
endpoint,
|
1774
|
+
header_params: header_params,
|
1775
|
+
query_params: query_params,
|
1776
|
+
operation_signing_strategy: operation_signing_strategy,
|
1777
|
+
body: post_body,
|
1778
|
+
return_type: 'Array<OCI::LoadBalancer::Models::Hostname>'
|
1779
|
+
)
|
1780
|
+
end
|
1781
|
+
# rubocop:enable Metrics/BlockLength
|
1381
1782
|
end
|
1382
1783
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1383
1784
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1391,6 +1792,8 @@ module OCI
|
|
1391
1792
|
# Lists the summary health statuses for all load balancers in the specified compartment.
|
1392
1793
|
# @param [String] compartment_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to return health status information for.
|
1393
1794
|
# @param [Hash] opts the optional parameters
|
1795
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1796
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1394
1797
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1395
1798
|
# particular request, please provide the request ID.
|
1396
1799
|
# (default to )
|
@@ -1425,16 +1828,20 @@ module OCI
|
|
1425
1828
|
|
1426
1829
|
post_body = nil
|
1427
1830
|
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1831
|
+
# rubocop:disable Metrics/BlockLength
|
1832
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_load_balancer_healths') do
|
1833
|
+
@api_client.call_api(
|
1834
|
+
:GET,
|
1835
|
+
path,
|
1836
|
+
endpoint,
|
1837
|
+
header_params: header_params,
|
1838
|
+
query_params: query_params,
|
1839
|
+
operation_signing_strategy: operation_signing_strategy,
|
1840
|
+
body: post_body,
|
1841
|
+
return_type: 'Array<OCI::LoadBalancer::Models::LoadBalancerHealthSummary>'
|
1842
|
+
)
|
1843
|
+
end
|
1844
|
+
# rubocop:enable Metrics/BlockLength
|
1438
1845
|
end
|
1439
1846
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1440
1847
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1448,6 +1855,8 @@ module OCI
|
|
1448
1855
|
# Lists all load balancers in the specified compartment.
|
1449
1856
|
# @param [String] compartment_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to list.
|
1450
1857
|
# @param [Hash] opts the optional parameters
|
1858
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1859
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1451
1860
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1452
1861
|
# particular request, please provide the request ID.
|
1453
1862
|
# (default to )
|
@@ -1472,8 +1881,12 @@ module OCI
|
|
1472
1881
|
# Allowed values are: ASC, DESC
|
1473
1882
|
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
1474
1883
|
#
|
1884
|
+
# Example: `example_load_balancer`
|
1885
|
+
#
|
1475
1886
|
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state.
|
1476
1887
|
#
|
1888
|
+
# Example: `SUCCEEDED`
|
1889
|
+
#
|
1477
1890
|
# @return [Response] A Response object with data of type Array<{OCI::LoadBalancer::Models::LoadBalancer LoadBalancer}>
|
1478
1891
|
def list_load_balancers(compartment_id, opts = {})
|
1479
1892
|
logger.debug 'Calling operation LoadBalancerClient#list_load_balancers.' if logger
|
@@ -1514,16 +1927,20 @@ module OCI
|
|
1514
1927
|
|
1515
1928
|
post_body = nil
|
1516
1929
|
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1930
|
+
# rubocop:disable Metrics/BlockLength
|
1931
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_load_balancers') do
|
1932
|
+
@api_client.call_api(
|
1933
|
+
:GET,
|
1934
|
+
path,
|
1935
|
+
endpoint,
|
1936
|
+
header_params: header_params,
|
1937
|
+
query_params: query_params,
|
1938
|
+
operation_signing_strategy: operation_signing_strategy,
|
1939
|
+
body: post_body,
|
1940
|
+
return_type: 'Array<OCI::LoadBalancer::Models::LoadBalancer>'
|
1941
|
+
)
|
1942
|
+
end
|
1943
|
+
# rubocop:enable Metrics/BlockLength
|
1527
1944
|
end
|
1528
1945
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1529
1946
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1539,6 +1956,8 @@ module OCI
|
|
1539
1956
|
# to retrieve.
|
1540
1957
|
#
|
1541
1958
|
# @param [Hash] opts the optional parameters
|
1959
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1960
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1542
1961
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1543
1962
|
# particular request, please provide the request ID.
|
1544
1963
|
# (default to )
|
@@ -1563,16 +1982,20 @@ module OCI
|
|
1563
1982
|
|
1564
1983
|
post_body = nil
|
1565
1984
|
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1985
|
+
# rubocop:disable Metrics/BlockLength
|
1986
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_path_route_sets') do
|
1987
|
+
@api_client.call_api(
|
1988
|
+
:GET,
|
1989
|
+
path,
|
1990
|
+
endpoint,
|
1991
|
+
header_params: header_params,
|
1992
|
+
query_params: query_params,
|
1993
|
+
operation_signing_strategy: operation_signing_strategy,
|
1994
|
+
body: post_body,
|
1995
|
+
return_type: 'Array<OCI::LoadBalancer::Models::PathRouteSet>'
|
1996
|
+
)
|
1997
|
+
end
|
1998
|
+
# rubocop:enable Metrics/BlockLength
|
1576
1999
|
end
|
1577
2000
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1578
2001
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1586,6 +2009,8 @@ module OCI
|
|
1586
2009
|
# Lists the available load balancer policies.
|
1587
2010
|
# @param [String] compartment_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer policies to list.
|
1588
2011
|
# @param [Hash] opts the optional parameters
|
2012
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2013
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1589
2014
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1590
2015
|
# particular request, please provide the request ID.
|
1591
2016
|
# (default to )
|
@@ -1620,16 +2045,20 @@ module OCI
|
|
1620
2045
|
|
1621
2046
|
post_body = nil
|
1622
2047
|
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
2048
|
+
# rubocop:disable Metrics/BlockLength
|
2049
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_policies') do
|
2050
|
+
@api_client.call_api(
|
2051
|
+
:GET,
|
2052
|
+
path,
|
2053
|
+
endpoint,
|
2054
|
+
header_params: header_params,
|
2055
|
+
query_params: query_params,
|
2056
|
+
operation_signing_strategy: operation_signing_strategy,
|
2057
|
+
body: post_body,
|
2058
|
+
return_type: 'Array<OCI::LoadBalancer::Models::LoadBalancerPolicy>'
|
2059
|
+
)
|
2060
|
+
end
|
2061
|
+
# rubocop:enable Metrics/BlockLength
|
1633
2062
|
end
|
1634
2063
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1635
2064
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1643,6 +2072,8 @@ module OCI
|
|
1643
2072
|
# Lists all supported traffic protocols.
|
1644
2073
|
# @param [String] compartment_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer protocols to list.
|
1645
2074
|
# @param [Hash] opts the optional parameters
|
2075
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2076
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1646
2077
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1647
2078
|
# particular request, please provide the request ID.
|
1648
2079
|
# (default to )
|
@@ -1677,16 +2108,20 @@ module OCI
|
|
1677
2108
|
|
1678
2109
|
post_body = nil
|
1679
2110
|
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
2111
|
+
# rubocop:disable Metrics/BlockLength
|
2112
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_protocols') do
|
2113
|
+
@api_client.call_api(
|
2114
|
+
:GET,
|
2115
|
+
path,
|
2116
|
+
endpoint,
|
2117
|
+
header_params: header_params,
|
2118
|
+
query_params: query_params,
|
2119
|
+
operation_signing_strategy: operation_signing_strategy,
|
2120
|
+
body: post_body,
|
2121
|
+
return_type: 'Array<OCI::LoadBalancer::Models::LoadBalancerProtocol>'
|
2122
|
+
)
|
2123
|
+
end
|
2124
|
+
# rubocop:enable Metrics/BlockLength
|
1690
2125
|
end
|
1691
2126
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1692
2127
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1700,6 +2135,8 @@ module OCI
|
|
1700
2135
|
# Lists the valid load balancer shapes.
|
1701
2136
|
# @param [String] compartment_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer shapes to list.
|
1702
2137
|
# @param [Hash] opts the optional parameters
|
2138
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2139
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1703
2140
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1704
2141
|
# particular request, please provide the request ID.
|
1705
2142
|
# (default to )
|
@@ -1734,16 +2171,20 @@ module OCI
|
|
1734
2171
|
|
1735
2172
|
post_body = nil
|
1736
2173
|
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
2174
|
+
# rubocop:disable Metrics/BlockLength
|
2175
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_shapes') do
|
2176
|
+
@api_client.call_api(
|
2177
|
+
:GET,
|
2178
|
+
path,
|
2179
|
+
endpoint,
|
2180
|
+
header_params: header_params,
|
2181
|
+
query_params: query_params,
|
2182
|
+
operation_signing_strategy: operation_signing_strategy,
|
2183
|
+
body: post_body,
|
2184
|
+
return_type: 'Array<OCI::LoadBalancer::Models::LoadBalancerShape>'
|
2185
|
+
)
|
2186
|
+
end
|
2187
|
+
# rubocop:enable Metrics/BlockLength
|
1747
2188
|
end
|
1748
2189
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1749
2190
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1757,6 +2198,8 @@ module OCI
|
|
1757
2198
|
# Lists the work requests for a given load balancer.
|
1758
2199
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the work requests to retrieve.
|
1759
2200
|
# @param [Hash] opts the optional parameters
|
2201
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2202
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1760
2203
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1761
2204
|
# particular request, please provide the request ID.
|
1762
2205
|
# (default to )
|
@@ -1791,16 +2234,20 @@ module OCI
|
|
1791
2234
|
|
1792
2235
|
post_body = nil
|
1793
2236
|
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
2237
|
+
# rubocop:disable Metrics/BlockLength
|
2238
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_work_requests') do
|
2239
|
+
@api_client.call_api(
|
2240
|
+
:GET,
|
2241
|
+
path,
|
2242
|
+
endpoint,
|
2243
|
+
header_params: header_params,
|
2244
|
+
query_params: query_params,
|
2245
|
+
operation_signing_strategy: operation_signing_strategy,
|
2246
|
+
body: post_body,
|
2247
|
+
return_type: 'Array<OCI::LoadBalancer::Models::WorkRequest>'
|
2248
|
+
)
|
2249
|
+
end
|
2250
|
+
# rubocop:enable Metrics/BlockLength
|
1804
2251
|
end
|
1805
2252
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1806
2253
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1816,13 +2263,15 @@ module OCI
|
|
1816
2263
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server.
|
1817
2264
|
# @param [String] backend_set_name The name of the backend set associated with the backend server.
|
1818
2265
|
#
|
1819
|
-
# Example: `
|
2266
|
+
# Example: `example_backend_set`
|
1820
2267
|
#
|
1821
2268
|
# @param [String] backend_name The IP address and port of the backend server to update.
|
1822
2269
|
#
|
1823
|
-
# Example: `
|
2270
|
+
# Example: `10.0.0.3:8080`
|
1824
2271
|
#
|
1825
2272
|
# @param [Hash] opts the optional parameters
|
2273
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2274
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1826
2275
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1827
2276
|
# particular request, please provide the request ID.
|
1828
2277
|
# (default to )
|
@@ -1856,18 +2305,23 @@ module OCI
|
|
1856
2305
|
header_params['content-type'] = 'application/json'
|
1857
2306
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1858
2307
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2308
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1859
2309
|
|
1860
2310
|
post_body = @api_client.object_to_http_body(update_backend_details)
|
1861
2311
|
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
2312
|
+
# rubocop:disable Metrics/BlockLength
|
2313
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_backend') do
|
2314
|
+
@api_client.call_api(
|
2315
|
+
:PUT,
|
2316
|
+
path,
|
2317
|
+
endpoint,
|
2318
|
+
header_params: header_params,
|
2319
|
+
query_params: query_params,
|
2320
|
+
operation_signing_strategy: operation_signing_strategy,
|
2321
|
+
body: post_body
|
2322
|
+
)
|
2323
|
+
end
|
2324
|
+
# rubocop:enable Metrics/BlockLength
|
1871
2325
|
end
|
1872
2326
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1873
2327
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1883,9 +2337,11 @@ module OCI
|
|
1883
2337
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set.
|
1884
2338
|
# @param [String] backend_set_name The name of the backend set to update.
|
1885
2339
|
#
|
1886
|
-
# Example: `
|
2340
|
+
# Example: `example_backend_set`
|
1887
2341
|
#
|
1888
2342
|
# @param [Hash] opts the optional parameters
|
2343
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2344
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1889
2345
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1890
2346
|
# particular request, please provide the request ID.
|
1891
2347
|
# (default to )
|
@@ -1917,18 +2373,23 @@ module OCI
|
|
1917
2373
|
header_params['content-type'] = 'application/json'
|
1918
2374
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1919
2375
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2376
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1920
2377
|
|
1921
2378
|
post_body = @api_client.object_to_http_body(update_backend_set_details)
|
1922
2379
|
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
2380
|
+
# rubocop:disable Metrics/BlockLength
|
2381
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_backend_set') do
|
2382
|
+
@api_client.call_api(
|
2383
|
+
:PUT,
|
2384
|
+
path,
|
2385
|
+
endpoint,
|
2386
|
+
header_params: header_params,
|
2387
|
+
query_params: query_params,
|
2388
|
+
operation_signing_strategy: operation_signing_strategy,
|
2389
|
+
body: post_body
|
2390
|
+
)
|
2391
|
+
end
|
2392
|
+
# rubocop:enable Metrics/BlockLength
|
1932
2393
|
end
|
1933
2394
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1934
2395
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1944,9 +2405,11 @@ module OCI
|
|
1944
2405
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be updated.
|
1945
2406
|
# @param [String] backend_set_name The name of the backend set associated with the health check policy to be retrieved.
|
1946
2407
|
#
|
1947
|
-
# Example: `
|
2408
|
+
# Example: `example_backend_set`
|
1948
2409
|
#
|
1949
2410
|
# @param [Hash] opts the optional parameters
|
2411
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2412
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1950
2413
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1951
2414
|
# particular request, please provide the request ID.
|
1952
2415
|
# (default to )
|
@@ -1978,18 +2441,87 @@ module OCI
|
|
1978
2441
|
header_params['content-type'] = 'application/json'
|
1979
2442
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1980
2443
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2444
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1981
2445
|
|
1982
2446
|
post_body = @api_client.object_to_http_body(health_checker)
|
1983
2447
|
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
2448
|
+
# rubocop:disable Metrics/BlockLength
|
2449
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_health_checker') do
|
2450
|
+
@api_client.call_api(
|
2451
|
+
:PUT,
|
2452
|
+
path,
|
2453
|
+
endpoint,
|
2454
|
+
header_params: header_params,
|
2455
|
+
query_params: query_params,
|
2456
|
+
operation_signing_strategy: operation_signing_strategy,
|
2457
|
+
body: post_body
|
2458
|
+
)
|
2459
|
+
end
|
2460
|
+
# rubocop:enable Metrics/BlockLength
|
2461
|
+
end
|
2462
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2463
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2464
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2465
|
+
|
2466
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2467
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2468
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2469
|
+
|
2470
|
+
|
2471
|
+
# Overwrites an existing hostname resource on the specified load balancer. Use this operation to change a
|
2472
|
+
# virtual hostname.
|
2473
|
+
#
|
2474
|
+
# @param [OCI::LoadBalancer::Models::UpdateHostnameDetails] update_hostname_details The configuration details to update a virtual hostname.
|
2475
|
+
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the virtual hostname
|
2476
|
+
# to update.
|
2477
|
+
#
|
2478
|
+
# @param [String] name The name of the hostname resource to update.
|
2479
|
+
#
|
2480
|
+
# Example: `example_hostname_001`
|
2481
|
+
#
|
2482
|
+
# @param [Hash] opts the optional parameters
|
2483
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2484
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
2485
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2486
|
+
# particular request, please provide the request ID.
|
2487
|
+
# (default to )
|
2488
|
+
# @return [Response] A Response object with data of type nil
|
2489
|
+
def update_hostname(update_hostname_details, load_balancer_id, name, opts = {})
|
2490
|
+
logger.debug 'Calling operation LoadBalancerClient#update_hostname.' if logger
|
2491
|
+
|
2492
|
+
raise "Missing the required parameter 'update_hostname_details' when calling update_hostname." if update_hostname_details.nil?
|
2493
|
+
raise "Missing the required parameter 'load_balancer_id' when calling update_hostname." if load_balancer_id.nil?
|
2494
|
+
raise "Missing the required parameter 'name' when calling update_hostname." if name.nil?
|
2495
|
+
raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id)
|
2496
|
+
raise "Parameter value for 'name' must not be blank" if OCI::Internal::Util.blank_string?(name)
|
2497
|
+
|
2498
|
+
path = '/loadBalancers/{loadBalancerId}/hostnames/{name}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{name}', name.to_s)
|
2499
|
+
operation_signing_strategy = :standard
|
2500
|
+
|
2501
|
+
# Query Params
|
2502
|
+
query_params = {}
|
2503
|
+
|
2504
|
+
# Header Params
|
2505
|
+
header_params = {}
|
2506
|
+
header_params['accept'] = 'application/json'
|
2507
|
+
header_params['content-type'] = 'application/json'
|
2508
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2509
|
+
|
2510
|
+
post_body = @api_client.object_to_http_body(update_hostname_details)
|
2511
|
+
|
2512
|
+
# rubocop:disable Metrics/BlockLength
|
2513
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_hostname') do
|
2514
|
+
@api_client.call_api(
|
2515
|
+
:PUT,
|
2516
|
+
path,
|
2517
|
+
endpoint,
|
2518
|
+
header_params: header_params,
|
2519
|
+
query_params: query_params,
|
2520
|
+
operation_signing_strategy: operation_signing_strategy,
|
2521
|
+
body: post_body
|
2522
|
+
)
|
2523
|
+
end
|
2524
|
+
# rubocop:enable Metrics/BlockLength
|
1993
2525
|
end
|
1994
2526
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1995
2527
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -2005,9 +2537,11 @@ module OCI
|
|
2005
2537
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to update.
|
2006
2538
|
# @param [String] listener_name The name of the listener to update.
|
2007
2539
|
#
|
2008
|
-
# Example: `
|
2540
|
+
# Example: `example_listener`
|
2009
2541
|
#
|
2010
2542
|
# @param [Hash] opts the optional parameters
|
2543
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2544
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
2011
2545
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2012
2546
|
# particular request, please provide the request ID.
|
2013
2547
|
# (default to )
|
@@ -2039,18 +2573,23 @@ module OCI
|
|
2039
2573
|
header_params['content-type'] = 'application/json'
|
2040
2574
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2041
2575
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2576
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
2042
2577
|
|
2043
2578
|
post_body = @api_client.object_to_http_body(update_listener_details)
|
2044
2579
|
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2050
|
-
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2580
|
+
# rubocop:disable Metrics/BlockLength
|
2581
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_listener') do
|
2582
|
+
@api_client.call_api(
|
2583
|
+
:PUT,
|
2584
|
+
path,
|
2585
|
+
endpoint,
|
2586
|
+
header_params: header_params,
|
2587
|
+
query_params: query_params,
|
2588
|
+
operation_signing_strategy: operation_signing_strategy,
|
2589
|
+
body: post_body
|
2590
|
+
)
|
2591
|
+
end
|
2592
|
+
# rubocop:enable Metrics/BlockLength
|
2054
2593
|
end
|
2055
2594
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2056
2595
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -2065,6 +2604,8 @@ module OCI
|
|
2065
2604
|
# @param [OCI::LoadBalancer::Models::UpdateLoadBalancerDetails] update_load_balancer_details The details for updating a load balancer's configuration.
|
2066
2605
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to update.
|
2067
2606
|
# @param [Hash] opts the optional parameters
|
2607
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2608
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
2068
2609
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2069
2610
|
# particular request, please provide the request ID.
|
2070
2611
|
# (default to )
|
@@ -2094,18 +2635,23 @@ module OCI
|
|
2094
2635
|
header_params['content-type'] = 'application/json'
|
2095
2636
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2096
2637
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2638
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
2097
2639
|
|
2098
2640
|
post_body = @api_client.object_to_http_body(update_load_balancer_details)
|
2099
2641
|
|
2100
|
-
|
2101
|
-
|
2102
|
-
|
2103
|
-
|
2104
|
-
|
2105
|
-
|
2106
|
-
|
2107
|
-
|
2108
|
-
|
2642
|
+
# rubocop:disable Metrics/BlockLength
|
2643
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_load_balancer') do
|
2644
|
+
@api_client.call_api(
|
2645
|
+
:PUT,
|
2646
|
+
path,
|
2647
|
+
endpoint,
|
2648
|
+
header_params: header_params,
|
2649
|
+
query_params: query_params,
|
2650
|
+
operation_signing_strategy: operation_signing_strategy,
|
2651
|
+
body: post_body
|
2652
|
+
)
|
2653
|
+
end
|
2654
|
+
# rubocop:enable Metrics/BlockLength
|
2109
2655
|
end
|
2110
2656
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2111
2657
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -2127,9 +2673,11 @@ module OCI
|
|
2127
2673
|
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route set to update.
|
2128
2674
|
# @param [String] path_route_set_name The name of the path route set to update.
|
2129
2675
|
#
|
2130
|
-
# Example: `
|
2676
|
+
# Example: `example_path_route_set`
|
2131
2677
|
#
|
2132
2678
|
# @param [Hash] opts the optional parameters
|
2679
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2680
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
2133
2681
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2134
2682
|
# particular request, please provide the request ID.
|
2135
2683
|
# (default to )
|
@@ -2161,22 +2709,34 @@ module OCI
|
|
2161
2709
|
header_params['content-type'] = 'application/json'
|
2162
2710
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2163
2711
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2712
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
2164
2713
|
|
2165
2714
|
post_body = @api_client.object_to_http_body(update_path_route_set_details)
|
2166
2715
|
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2716
|
+
# rubocop:disable Metrics/BlockLength
|
2717
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_path_route_set') do
|
2718
|
+
@api_client.call_api(
|
2719
|
+
:PUT,
|
2720
|
+
path,
|
2721
|
+
endpoint,
|
2722
|
+
header_params: header_params,
|
2723
|
+
query_params: query_params,
|
2724
|
+
operation_signing_strategy: operation_signing_strategy,
|
2725
|
+
body: post_body
|
2726
|
+
)
|
2727
|
+
end
|
2728
|
+
# rubocop:enable Metrics/BlockLength
|
2176
2729
|
end
|
2177
2730
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2178
2731
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2179
2732
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2733
|
+
|
2734
|
+
private
|
2735
|
+
|
2736
|
+
def applicable_retry_config(opts = {})
|
2737
|
+
return @retry_config unless opts.key?(:retry_config)
|
2738
|
+
opts[:retry_config]
|
2739
|
+
end
|
2180
2740
|
end
|
2181
2741
|
end
|
2182
2742
|
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|