oci 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -31,7 +31,7 @@ module OCI
|
|
|
31
31
|
# @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.
|
|
32
32
|
# @param [String] backend_set_name The name of the backend set to add the backend server to.
|
|
33
33
|
#
|
|
34
|
-
# Example: `
|
|
34
|
+
# Example: `example_backend_set`
|
|
35
35
|
#
|
|
36
36
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
37
37
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#create_backend}
|
|
@@ -111,8 +111,8 @@ module OCI
|
|
|
111
111
|
# Calls {OCI::LoadBalancer::LoadBalancerClient#create_certificate} and then waits for the {OCI::LoadBalancer::Models::WorkRequest}
|
|
112
112
|
# to enter the given state(s).
|
|
113
113
|
#
|
|
114
|
-
# @param [OCI::LoadBalancer::Models::CreateCertificateDetails] create_certificate_details The details of the certificate to add.
|
|
115
|
-
# @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.
|
|
114
|
+
# @param [OCI::LoadBalancer::Models::CreateCertificateDetails] create_certificate_details The details of the certificate bundle to add.
|
|
115
|
+
# @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.
|
|
116
116
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
117
117
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#create_certificate}
|
|
118
118
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
@@ -148,6 +148,46 @@ module OCI
|
|
|
148
148
|
# rubocop:disable Layout/EmptyLines
|
|
149
149
|
|
|
150
150
|
|
|
151
|
+
# Calls {OCI::LoadBalancer::LoadBalancerClient#create_hostname} and then waits for the {OCI::LoadBalancer::Models::WorkRequest}
|
|
152
|
+
# to enter the given state(s).
|
|
153
|
+
#
|
|
154
|
+
# @param [OCI::LoadBalancer::Models::CreateHostnameDetails] create_hostname_details The details of the hostname resource to add to the specified load balancer.
|
|
155
|
+
# @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.
|
|
156
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
157
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#create_hostname}
|
|
158
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
159
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
160
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
161
|
+
#
|
|
162
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::LoadBalancer::Models::WorkRequest}
|
|
163
|
+
def create_hostname_and_wait_for_state(create_hostname_details, load_balancer_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
164
|
+
operation_result = @service_client.create_hostname(create_hostname_details, load_balancer_id, base_operation_opts)
|
|
165
|
+
|
|
166
|
+
return operation_result if wait_for_states.empty?
|
|
167
|
+
|
|
168
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
169
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
170
|
+
|
|
171
|
+
begin
|
|
172
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
173
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
|
174
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
175
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
176
|
+
)
|
|
177
|
+
result_to_return = waiter_result
|
|
178
|
+
|
|
179
|
+
return result_to_return
|
|
180
|
+
rescue StandardError
|
|
181
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
185
|
+
# rubocop:enable Layout/EmptyLines
|
|
186
|
+
|
|
187
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
188
|
+
# rubocop:disable Layout/EmptyLines
|
|
189
|
+
|
|
190
|
+
|
|
151
191
|
# Calls {OCI::LoadBalancer::LoadBalancerClient#create_listener} and then waits for the {OCI::LoadBalancer::Models::WorkRequest}
|
|
152
192
|
# to enter the given state(s).
|
|
153
193
|
#
|
|
@@ -273,11 +313,11 @@ module OCI
|
|
|
273
313
|
# @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.
|
|
274
314
|
# @param [String] backend_set_name The name of the backend set associated with the backend server.
|
|
275
315
|
#
|
|
276
|
-
# Example: `
|
|
316
|
+
# Example: `example_backend_set`
|
|
277
317
|
#
|
|
278
318
|
# @param [String] backend_name The IP address and port of the backend server to remove.
|
|
279
319
|
#
|
|
280
|
-
# Example: `
|
|
320
|
+
# Example: `10.0.0.3:8080`
|
|
281
321
|
#
|
|
282
322
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
283
323
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#delete_backend}
|
|
@@ -321,7 +361,7 @@ module OCI
|
|
|
321
361
|
# @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.
|
|
322
362
|
# @param [String] backend_set_name The name of the backend set to delete.
|
|
323
363
|
#
|
|
324
|
-
# Example: `
|
|
364
|
+
# Example: `example_backend_set`
|
|
325
365
|
#
|
|
326
366
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
327
367
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#delete_backend_set}
|
|
@@ -362,10 +402,12 @@ module OCI
|
|
|
362
402
|
# Calls {OCI::LoadBalancer::LoadBalancerClient#delete_certificate} and then waits for the {OCI::LoadBalancer::Models::WorkRequest}
|
|
363
403
|
# to enter the given state(s).
|
|
364
404
|
#
|
|
365
|
-
# @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
|
|
366
|
-
#
|
|
405
|
+
# @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
|
|
406
|
+
# to be deleted.
|
|
407
|
+
#
|
|
408
|
+
# @param [String] certificate_name The name of the certificate bundle to delete.
|
|
367
409
|
#
|
|
368
|
-
# Example: `
|
|
410
|
+
# Example: `example_certificate_bundle`
|
|
369
411
|
#
|
|
370
412
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
371
413
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#delete_certificate}
|
|
@@ -403,13 +445,57 @@ module OCI
|
|
|
403
445
|
# rubocop:disable Layout/EmptyLines
|
|
404
446
|
|
|
405
447
|
|
|
448
|
+
# Calls {OCI::LoadBalancer::LoadBalancerClient#delete_hostname} and then waits for the {OCI::LoadBalancer::Models::WorkRequest}
|
|
449
|
+
# to enter the given state(s).
|
|
450
|
+
#
|
|
451
|
+
# @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.
|
|
452
|
+
# @param [String] name The name of the hostname resource to delete.
|
|
453
|
+
#
|
|
454
|
+
# Example: `example_hostname_001`
|
|
455
|
+
#
|
|
456
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
457
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#delete_hostname}
|
|
458
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
459
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
460
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
461
|
+
#
|
|
462
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::LoadBalancer::Models::WorkRequest}
|
|
463
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::LoadBalancer::Models::WorkRequest}
|
|
464
|
+
def delete_hostname_and_wait_for_state(load_balancer_id, name, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
465
|
+
operation_result = @service_client.delete_hostname(load_balancer_id, name, base_operation_opts)
|
|
466
|
+
|
|
467
|
+
return operation_result if wait_for_states.empty?
|
|
468
|
+
|
|
469
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
470
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
471
|
+
|
|
472
|
+
begin
|
|
473
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
474
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
|
475
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
476
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
477
|
+
)
|
|
478
|
+
result_to_return = waiter_result
|
|
479
|
+
|
|
480
|
+
return result_to_return
|
|
481
|
+
rescue StandardError
|
|
482
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
483
|
+
end
|
|
484
|
+
end
|
|
485
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
486
|
+
# rubocop:enable Layout/EmptyLines
|
|
487
|
+
|
|
488
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
489
|
+
# rubocop:disable Layout/EmptyLines
|
|
490
|
+
|
|
491
|
+
|
|
406
492
|
# Calls {OCI::LoadBalancer::LoadBalancerClient#delete_listener} and then waits for the {OCI::LoadBalancer::Models::WorkRequest}
|
|
407
493
|
# to enter the given state(s).
|
|
408
494
|
#
|
|
409
495
|
# @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.
|
|
410
496
|
# @param [String] listener_name The name of the listener to delete.
|
|
411
497
|
#
|
|
412
|
-
# Example: `
|
|
498
|
+
# Example: `example_listener`
|
|
413
499
|
#
|
|
414
500
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
415
501
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#delete_listener}
|
|
@@ -493,7 +579,7 @@ module OCI
|
|
|
493
579
|
# @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.
|
|
494
580
|
# @param [String] path_route_set_name The name of the path route set to delete.
|
|
495
581
|
#
|
|
496
|
-
# Example: `
|
|
582
|
+
# Example: `example_path_route_set`
|
|
497
583
|
#
|
|
498
584
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
499
585
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#delete_path_route_set}
|
|
@@ -538,11 +624,11 @@ module OCI
|
|
|
538
624
|
# @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.
|
|
539
625
|
# @param [String] backend_set_name The name of the backend set associated with the backend server.
|
|
540
626
|
#
|
|
541
|
-
# Example: `
|
|
627
|
+
# Example: `example_backend_set`
|
|
542
628
|
#
|
|
543
629
|
# @param [String] backend_name The IP address and port of the backend server to update.
|
|
544
630
|
#
|
|
545
|
-
# Example: `
|
|
631
|
+
# Example: `10.0.0.3:8080`
|
|
546
632
|
#
|
|
547
633
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
548
634
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#update_backend}
|
|
@@ -586,7 +672,7 @@ module OCI
|
|
|
586
672
|
# @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.
|
|
587
673
|
# @param [String] backend_set_name The name of the backend set to update.
|
|
588
674
|
#
|
|
589
|
-
# Example: `
|
|
675
|
+
# Example: `example_backend_set`
|
|
590
676
|
#
|
|
591
677
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
592
678
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#update_backend_set}
|
|
@@ -630,7 +716,7 @@ module OCI
|
|
|
630
716
|
# @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.
|
|
631
717
|
# @param [String] backend_set_name The name of the backend set associated with the health check policy to be retrieved.
|
|
632
718
|
#
|
|
633
|
-
# Example: `
|
|
719
|
+
# Example: `example_backend_set`
|
|
634
720
|
#
|
|
635
721
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
636
722
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#update_health_checker}
|
|
@@ -667,6 +753,52 @@ module OCI
|
|
|
667
753
|
# rubocop:disable Layout/EmptyLines
|
|
668
754
|
|
|
669
755
|
|
|
756
|
+
# Calls {OCI::LoadBalancer::LoadBalancerClient#update_hostname} and then waits for the {OCI::LoadBalancer::Models::WorkRequest}
|
|
757
|
+
# to enter the given state(s).
|
|
758
|
+
#
|
|
759
|
+
# @param [OCI::LoadBalancer::Models::UpdateHostnameDetails] update_hostname_details The configuration details to update a virtual hostname.
|
|
760
|
+
# @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
|
|
761
|
+
# to update.
|
|
762
|
+
#
|
|
763
|
+
# @param [String] name The name of the hostname resource to update.
|
|
764
|
+
#
|
|
765
|
+
# Example: `example_hostname_001`
|
|
766
|
+
#
|
|
767
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
768
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#update_hostname}
|
|
769
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
770
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
771
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
772
|
+
#
|
|
773
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::LoadBalancer::Models::WorkRequest}
|
|
774
|
+
def update_hostname_and_wait_for_state(update_hostname_details, load_balancer_id, name, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
775
|
+
operation_result = @service_client.update_hostname(update_hostname_details, load_balancer_id, name, base_operation_opts)
|
|
776
|
+
|
|
777
|
+
return operation_result if wait_for_states.empty?
|
|
778
|
+
|
|
779
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
780
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
781
|
+
|
|
782
|
+
begin
|
|
783
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
784
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
|
785
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
786
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
787
|
+
)
|
|
788
|
+
result_to_return = waiter_result
|
|
789
|
+
|
|
790
|
+
return result_to_return
|
|
791
|
+
rescue StandardError
|
|
792
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
793
|
+
end
|
|
794
|
+
end
|
|
795
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
796
|
+
# rubocop:enable Layout/EmptyLines
|
|
797
|
+
|
|
798
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
799
|
+
# rubocop:disable Layout/EmptyLines
|
|
800
|
+
|
|
801
|
+
|
|
670
802
|
# Calls {OCI::LoadBalancer::LoadBalancerClient#update_listener} and then waits for the {OCI::LoadBalancer::Models::WorkRequest}
|
|
671
803
|
# to enter the given state(s).
|
|
672
804
|
#
|
|
@@ -674,7 +806,7 @@ module OCI
|
|
|
674
806
|
# @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.
|
|
675
807
|
# @param [String] listener_name The name of the listener to update.
|
|
676
808
|
#
|
|
677
|
-
# Example: `
|
|
809
|
+
# Example: `example_listener`
|
|
678
810
|
#
|
|
679
811
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
680
812
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#update_listener}
|
|
@@ -758,7 +890,7 @@ module OCI
|
|
|
758
890
|
# @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.
|
|
759
891
|
# @param [String] path_route_set_name The name of the path route set to update.
|
|
760
892
|
#
|
|
761
|
-
# Example: `
|
|
893
|
+
# Example: `example_path_route_set`
|
|
762
894
|
#
|
|
763
895
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::LoadBalancer::Models::WorkRequest#lifecycle_state}
|
|
764
896
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::LoadBalancer::LoadBalancerClient#update_path_route_set}
|
|
@@ -11,7 +11,7 @@ module OCI
|
|
|
11
11
|
# **[Required]** Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
|
12
12
|
# traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
|
13
13
|
#
|
|
14
|
-
# Example: `
|
|
14
|
+
# Example: `false`
|
|
15
15
|
#
|
|
16
16
|
# @return [BOOLEAN]
|
|
17
17
|
attr_accessor :backup
|
|
@@ -19,21 +19,21 @@ module OCI
|
|
|
19
19
|
# **[Required]** Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
|
20
20
|
# incoming traffic.
|
|
21
21
|
#
|
|
22
|
-
# Example: `
|
|
22
|
+
# Example: `false`
|
|
23
23
|
#
|
|
24
24
|
# @return [BOOLEAN]
|
|
25
25
|
attr_accessor :drain
|
|
26
26
|
|
|
27
27
|
# **[Required]** The IP address of the backend server.
|
|
28
28
|
#
|
|
29
|
-
# Example: `10.
|
|
29
|
+
# Example: `10.0.0.3`
|
|
30
30
|
#
|
|
31
31
|
# @return [String]
|
|
32
32
|
attr_accessor :ip_address
|
|
33
33
|
|
|
34
34
|
# **[Required]** A read-only field showing the IP address and port that uniquely identify this backend server in the backend set.
|
|
35
35
|
#
|
|
36
|
-
# Example: `10.
|
|
36
|
+
# Example: `10.0.0.3:8080`
|
|
37
37
|
#
|
|
38
38
|
# @return [String]
|
|
39
39
|
attr_accessor :name
|
|
@@ -41,7 +41,7 @@ module OCI
|
|
|
41
41
|
# **[Required]** Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
|
42
42
|
# traffic.
|
|
43
43
|
#
|
|
44
|
-
# Example: `
|
|
44
|
+
# Example: `false`
|
|
45
45
|
#
|
|
46
46
|
# @return [BOOLEAN]
|
|
47
47
|
attr_accessor :offline
|
|
@@ -9,7 +9,7 @@ module OCI
|
|
|
9
9
|
# Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
|
10
10
|
# traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
|
11
11
|
#
|
|
12
|
-
# Example: `
|
|
12
|
+
# Example: `false`
|
|
13
13
|
#
|
|
14
14
|
# @return [BOOLEAN]
|
|
15
15
|
attr_accessor :backup
|
|
@@ -17,14 +17,14 @@ module OCI
|
|
|
17
17
|
# Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
|
18
18
|
# incoming traffic.
|
|
19
19
|
#
|
|
20
|
-
# Example: `
|
|
20
|
+
# Example: `false`
|
|
21
21
|
#
|
|
22
22
|
# @return [BOOLEAN]
|
|
23
23
|
attr_accessor :drain
|
|
24
24
|
|
|
25
25
|
# **[Required]** The IP address of the backend server.
|
|
26
26
|
#
|
|
27
|
-
# Example: `10.
|
|
27
|
+
# Example: `10.0.0.3`
|
|
28
28
|
#
|
|
29
29
|
# @return [String]
|
|
30
30
|
attr_accessor :ip_address
|
|
@@ -32,7 +32,7 @@ module OCI
|
|
|
32
32
|
# Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
|
33
33
|
# traffic.
|
|
34
34
|
#
|
|
35
|
-
# Example: `
|
|
35
|
+
# Example: `false`
|
|
36
36
|
#
|
|
37
37
|
# @return [BOOLEAN]
|
|
38
38
|
attr_accessor :offline
|
|
@@ -22,7 +22,7 @@ module OCI
|
|
|
22
22
|
# Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot
|
|
23
23
|
# contain spaces. Avoid entering confidential information.
|
|
24
24
|
#
|
|
25
|
-
# Example: `
|
|
25
|
+
# Example: `example_backend_set`
|
|
26
26
|
#
|
|
27
27
|
# @return [String]
|
|
28
28
|
attr_accessor :name
|
|
@@ -22,7 +22,7 @@ module OCI
|
|
|
22
22
|
# **[Required]** A list of backend servers that are currently in the `CRITICAL` health state. The list identifies each backend server by
|
|
23
23
|
# IP address and port.
|
|
24
24
|
#
|
|
25
|
-
# Example: `
|
|
25
|
+
# Example: `10.0.0.4:8080`
|
|
26
26
|
#
|
|
27
27
|
# @return [Array<String>]
|
|
28
28
|
attr_accessor :critical_state_backend_names
|
|
@@ -44,7 +44,7 @@ module OCI
|
|
|
44
44
|
|
|
45
45
|
# **[Required]** The total number of backend servers in this backend set.
|
|
46
46
|
#
|
|
47
|
-
# Example: `
|
|
47
|
+
# Example: `7`
|
|
48
48
|
#
|
|
49
49
|
# @return [Integer]
|
|
50
50
|
attr_accessor :total_backend_count
|
|
@@ -52,7 +52,7 @@ module OCI
|
|
|
52
52
|
# **[Required]** A list of backend servers that are currently in the `UNKNOWN` health state. The list identifies each backend server by
|
|
53
53
|
# IP address and port.
|
|
54
54
|
#
|
|
55
|
-
# Example: `
|
|
55
|
+
# Example: `10.0.0.5:8080`
|
|
56
56
|
#
|
|
57
57
|
# @return [Array<String>]
|
|
58
58
|
attr_accessor :unknown_state_backend_names
|
|
@@ -60,7 +60,7 @@ module OCI
|
|
|
60
60
|
# **[Required]** A list of backend servers that are currently in the `WARNING` health state. The list identifies each backend server by
|
|
61
61
|
# IP address and port.
|
|
62
62
|
#
|
|
63
|
-
# Example: `
|
|
63
|
+
# Example: `10.0.0.3:8080`
|
|
64
64
|
#
|
|
65
65
|
# @return [Array<String>]
|
|
66
66
|
attr_accessor :warning_state_backend_names
|
|
@@ -4,7 +4,7 @@ require 'date'
|
|
|
4
4
|
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
|
6
6
|
module OCI
|
|
7
|
-
# The configuration details of a
|
|
7
|
+
# The configuration details of a certificate bundle.
|
|
8
8
|
# For more information on SSL certficate configuration, see
|
|
9
9
|
# [Managing SSL Certificates](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingcertificates.htm).
|
|
10
10
|
#
|
|
@@ -28,7 +28,7 @@ module OCI
|
|
|
28
28
|
# Valid certificate bundle names include only alphanumeric characters, dashes, and underscores.
|
|
29
29
|
# Certificate bundle names cannot contain spaces. Avoid entering confidential information.
|
|
30
30
|
#
|
|
31
|
-
# Example: `
|
|
31
|
+
# Example: `example_certificate_bundle`
|
|
32
32
|
#
|
|
33
33
|
# @return [String]
|
|
34
34
|
attr_accessor :certificate_name
|
|
@@ -4,7 +4,7 @@ require 'date'
|
|
|
4
4
|
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
|
6
6
|
module OCI
|
|
7
|
-
# The configuration details for a
|
|
7
|
+
# The configuration details for a certificate bundle.
|
|
8
8
|
# For more information on SSL certficate configuration, see
|
|
9
9
|
# [Managing SSL Certificates](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingcertificates.htm).
|
|
10
10
|
#
|
|
@@ -28,15 +28,13 @@ module OCI
|
|
|
28
28
|
# Valid certificate bundle names include only alphanumeric characters, dashes, and underscores.
|
|
29
29
|
# Certificate bundle names cannot contain spaces. Avoid entering confidential information.
|
|
30
30
|
#
|
|
31
|
-
# Example: `
|
|
31
|
+
# Example: `example_certificate_bundle`
|
|
32
32
|
#
|
|
33
33
|
# @return [String]
|
|
34
34
|
attr_accessor :certificate_name
|
|
35
35
|
|
|
36
36
|
# A passphrase for encrypted private keys. This is needed only if you created your certificate with a passphrase.
|
|
37
37
|
#
|
|
38
|
-
# Example: `Mysecretunlockingcode42!1!`
|
|
39
|
-
#
|
|
40
38
|
# @return [String]
|
|
41
39
|
attr_accessor :passphrase
|
|
42
40
|
|
|
@@ -11,34 +11,7 @@ module OCI
|
|
|
11
11
|
# between the client and backend servers. A send operation does not reset the timer for receive operations. A
|
|
12
12
|
# receive operation does not reset the timer for send operations.
|
|
13
13
|
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
# * 300 seconds for TCP
|
|
17
|
-
#
|
|
18
|
-
# * 60 seconds for HTTP and WebSocket protocols.
|
|
19
|
-
#
|
|
20
|
-
# Note: The protocol is set at the listener.
|
|
21
|
-
#
|
|
22
|
-
# Modify this parameter if the client or backend server stops transmitting data for more than the default time.
|
|
23
|
-
# Some examples include:
|
|
24
|
-
#
|
|
25
|
-
# * The client sends a database query to the backend server and the database takes over 300 seconds to execute.
|
|
26
|
-
# Therefore, the backend server does not transmit any data within 300 seconds.
|
|
27
|
-
#
|
|
28
|
-
# * The client uploads data using the HTTP protocol. During the upload, the backend does not transmit any data
|
|
29
|
-
# to the client for more than 60 seconds.
|
|
30
|
-
#
|
|
31
|
-
# * The client downloads data using the HTTP protocol. After the initial request, it stops transmitting data to
|
|
32
|
-
# the backend server for more than 60 seconds.
|
|
33
|
-
#
|
|
34
|
-
# * The client starts transmitting data after establishing a WebSocket connection, but the backend server does
|
|
35
|
-
# not transmit data for more than 60 seconds.
|
|
36
|
-
#
|
|
37
|
-
# * The backend server starts transmitting data after establishing a WebSocket connection, but the client does
|
|
38
|
-
# not transmit data for more than 60 seconds.
|
|
39
|
-
#
|
|
40
|
-
# The maximum value is 7200 seconds. Contact My Oracle Support to file a service request if you want to increase
|
|
41
|
-
# this limit for your tenancy. For more information, see [Service Limits](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/servicelimits.htm).
|
|
14
|
+
# For more information, see [Connection Configuration](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/connectionreuse.htm#ConnectionConfiguration).
|
|
42
15
|
#
|
|
43
16
|
# Example: `1200`
|
|
44
17
|
#
|