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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -1
  3. data/lib/oci.rb +1 -0
  4. data/lib/oci/audit/audit_client.rb +65 -30
  5. data/lib/oci/audit/models/audit_event.rb +17 -1
  6. data/lib/oci/core/blockstorage_client.rb +336 -197
  7. data/lib/oci/core/compute_client.rb +601 -357
  8. data/lib/oci/core/models/attach_volume_details.rb +4 -0
  9. data/lib/oci/core/models/boot_volume.rb +1 -1
  10. data/lib/oci/core/models/dhcp_option.rb +4 -0
  11. data/lib/oci/core/models/export_image_details.rb +4 -0
  12. data/lib/oci/core/models/image_source_details.rb +4 -0
  13. data/lib/oci/core/models/instance_source_details.rb +4 -0
  14. data/lib/oci/core/models/volume_attachment.rb +4 -0
  15. data/lib/oci/core/models/volume_source_details.rb +4 -0
  16. data/lib/oci/core/util.rb +29 -0
  17. data/lib/oci/core/virtual_network_client.rb +1695 -1031
  18. data/lib/oci/database/database_client.rb +612 -368
  19. data/lib/oci/database/models/create_data_guard_association_details.rb +4 -0
  20. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +4 -0
  21. data/lib/oci/dns/dns_client.rb +271 -158
  22. data/lib/oci/email/email_client.rb +144 -79
  23. data/lib/oci/file_storage/file_storage_client.rb +354 -207
  24. data/lib/oci/identity/identity_client.rb +1111 -670
  25. data/lib/oci/identity/models/create_identity_provider_details.rb +4 -0
  26. data/lib/oci/identity/models/identity_provider.rb +4 -0
  27. data/lib/oci/identity/models/update_identity_provider_details.rb +4 -0
  28. data/lib/oci/load_balancer/load_balancer.rb +4 -0
  29. data/lib/oci/load_balancer/load_balancer_client.rb +943 -383
  30. data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +149 -17
  31. data/lib/oci/load_balancer/models/backend.rb +5 -5
  32. data/lib/oci/load_balancer/models/backend_details.rb +4 -4
  33. data/lib/oci/load_balancer/models/backend_set.rb +1 -1
  34. data/lib/oci/load_balancer/models/backend_set_health.rb +4 -4
  35. data/lib/oci/load_balancer/models/certificate.rb +2 -2
  36. data/lib/oci/load_balancer/models/certificate_details.rb +2 -4
  37. data/lib/oci/load_balancer/models/connection_configuration.rb +1 -28
  38. data/lib/oci/load_balancer/models/create_backend_details.rb +4 -4
  39. data/lib/oci/load_balancer/models/create_backend_set_details.rb +1 -1
  40. data/lib/oci/load_balancer/models/create_certificate_details.rb +5 -7
  41. data/lib/oci/load_balancer/models/create_hostname_details.rb +164 -0
  42. data/lib/oci/load_balancer/models/create_listener_details.rb +19 -5
  43. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +12 -3
  44. data/lib/oci/load_balancer/models/create_path_route_set_details.rb +1 -1
  45. data/lib/oci/load_balancer/models/health_check_result.rb +2 -2
  46. data/lib/oci/load_balancer/models/health_checker.rb +3 -3
  47. data/lib/oci/load_balancer/models/health_checker_details.rb +3 -3
  48. data/lib/oci/load_balancer/models/hostname.rb +164 -0
  49. data/lib/oci/load_balancer/models/hostname_details.rb +163 -0
  50. data/lib/oci/load_balancer/models/ip_address.rb +1 -1
  51. data/lib/oci/load_balancer/models/listener.rb +19 -5
  52. data/lib/oci/load_balancer/models/listener_details.rb +17 -3
  53. data/lib/oci/load_balancer/models/load_balancer.rb +13 -2
  54. data/lib/oci/load_balancer/models/load_balancer_health.rb +3 -3
  55. data/lib/oci/load_balancer/models/load_balancer_policy.rb +4 -1
  56. data/lib/oci/load_balancer/models/load_balancer_protocol.rb +5 -2
  57. data/lib/oci/load_balancer/models/load_balancer_shape.rb +3 -0
  58. data/lib/oci/load_balancer/models/path_route.rb +1 -1
  59. data/lib/oci/load_balancer/models/path_route_set.rb +1 -1
  60. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +2 -2
  61. data/lib/oci/load_balancer/models/ssl_configuration.rb +1 -1
  62. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +1 -1
  63. data/lib/oci/load_balancer/models/update_backend_details.rb +3 -3
  64. data/lib/oci/load_balancer/models/update_health_checker_details.rb +3 -3
  65. data/lib/oci/load_balancer/models/update_hostname_details.rb +153 -0
  66. data/lib/oci/load_balancer/models/update_listener_details.rb +17 -3
  67. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +1 -1
  68. data/lib/oci/load_balancer/models/work_request.rb +2 -0
  69. data/lib/oci/object_storage/object_storage_client.rb +443 -270
  70. data/lib/oci/retry/functions/should_retry_on_error.rb +28 -0
  71. data/lib/oci/retry/functions/sleep.rb +85 -0
  72. data/lib/oci/retry/internal/retry_state.rb +48 -0
  73. data/lib/oci/retry/retry.rb +85 -0
  74. data/lib/oci/retry/retry_config.rb +121 -0
  75. data/lib/oci/version.rb +1 -1
  76. metadata +39 -4
@@ -98,6 +98,9 @@ module OCI
98
98
  }
99
99
  end
100
100
 
101
+ # rubocop:disable Metrics/CyclomaticComplexity, Layout/EmptyLines
102
+
103
+
101
104
  # Given the hash representation of a subtype of this class,
102
105
  # use the info in the hash to return the class of the subtype.
103
106
  def self.get_subtype(object_hash)
@@ -108,6 +111,7 @@ module OCI
108
111
  # TODO: Log a warning when the subtype is not found.
109
112
  'OCI::Database::Models::CreateDataGuardAssociationDetails'
110
113
  end
114
+ # rubocop:enable Metrics/CyclomaticComplexity, Layout/EmptyLines
111
115
 
112
116
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
113
117
  # rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -49,6 +49,9 @@ module OCI
49
49
  }
50
50
  end
51
51
 
52
+ # rubocop:disable Metrics/CyclomaticComplexity, Layout/EmptyLines
53
+
54
+
52
55
  # Given the hash representation of a subtype of this class,
53
56
  # use the info in the hash to return the class of the subtype.
54
57
  def self.get_subtype(object_hash)
@@ -60,6 +63,7 @@ module OCI
60
63
  # TODO: Log a warning when the subtype is not found.
61
64
  'OCI::Database::Models::CreateDbHomeWithDbSystemIdBase'
62
65
  end
66
+ # rubocop:enable Metrics/CyclomaticComplexity, Layout/EmptyLines
63
67
 
64
68
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
65
69
  # rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -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
- def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil)
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)
@@ -95,6 +105,8 @@ module OCI
95
105
  #
96
106
  # @param [OCI::Dns::Models::CreateZoneDetails] create_zone_details Details for creating a new zone.
97
107
  # @param [Hash] opts the optional parameters
108
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
109
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
98
110
  # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
99
111
  # @return [Response] A Response object with data of type {OCI::Dns::Models::Zone Zone}
100
112
  def create_zone(create_zone_details, opts = {})
@@ -116,16 +128,20 @@ module OCI
116
128
 
117
129
  post_body = @api_client.object_to_http_body(create_zone_details)
118
130
 
119
- @api_client.call_api(
120
- :POST,
121
- path,
122
- endpoint,
123
- header_params: header_params,
124
- query_params: query_params,
125
- operation_signing_strategy: operation_signing_strategy,
126
- body: post_body,
127
- return_type: 'OCI::Dns::Models::Zone'
128
- )
131
+ # rubocop:disable Metrics/BlockLength
132
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#create_zone') do
133
+ @api_client.call_api(
134
+ :POST,
135
+ path,
136
+ endpoint,
137
+ header_params: header_params,
138
+ query_params: query_params,
139
+ operation_signing_strategy: operation_signing_strategy,
140
+ body: post_body,
141
+ return_type: 'OCI::Dns::Models::Zone'
142
+ )
143
+ end
144
+ # rubocop:enable Metrics/BlockLength
129
145
  end
130
146
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
131
147
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -140,6 +156,8 @@ module OCI
140
156
  # @param [String] zone_name_or_id The name or OCID of the target zone.
141
157
  # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
142
158
  # @param [Hash] opts the optional parameters
159
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
160
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
143
161
  # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
144
162
  # existence of at least one current representation of the target resource,
145
163
  # when the field-value is `*`, or having a current representation of the
@@ -178,15 +196,19 @@ module OCI
178
196
 
179
197
  post_body = nil
180
198
 
181
- @api_client.call_api(
182
- :DELETE,
183
- path,
184
- endpoint,
185
- header_params: header_params,
186
- query_params: query_params,
187
- operation_signing_strategy: operation_signing_strategy,
188
- body: post_body
189
- )
199
+ # rubocop:disable Metrics/BlockLength
200
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#delete_domain_records') do
201
+ @api_client.call_api(
202
+ :DELETE,
203
+ path,
204
+ endpoint,
205
+ header_params: header_params,
206
+ query_params: query_params,
207
+ operation_signing_strategy: operation_signing_strategy,
208
+ body: post_body
209
+ )
210
+ end
211
+ # rubocop:enable Metrics/BlockLength
190
212
  end
191
213
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
192
214
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -203,6 +225,8 @@ module OCI
203
225
  # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
204
226
  # @param [String] rtype The type of the target RRSet within the target zone.
205
227
  # @param [Hash] opts the optional parameters
228
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
229
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
206
230
  # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
207
231
  # existence of at least one current representation of the target resource,
208
232
  # when the field-value is `*`, or having a current representation of the
@@ -243,15 +267,19 @@ module OCI
243
267
 
244
268
  post_body = nil
245
269
 
246
- @api_client.call_api(
247
- :DELETE,
248
- path,
249
- endpoint,
250
- header_params: header_params,
251
- query_params: query_params,
252
- operation_signing_strategy: operation_signing_strategy,
253
- body: post_body
254
- )
270
+ # rubocop:disable Metrics/BlockLength
271
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#delete_rr_set') do
272
+ @api_client.call_api(
273
+ :DELETE,
274
+ path,
275
+ endpoint,
276
+ header_params: header_params,
277
+ query_params: query_params,
278
+ operation_signing_strategy: operation_signing_strategy,
279
+ body: post_body
280
+ )
281
+ end
282
+ # rubocop:enable Metrics/BlockLength
255
283
  end
256
284
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
257
285
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -267,6 +295,8 @@ module OCI
267
295
  #
268
296
  # @param [String] zone_name_or_id The name or OCID of the target zone.
269
297
  # @param [Hash] opts the optional parameters
298
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
299
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
270
300
  # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
271
301
  # existence of at least one current representation of the target resource,
272
302
  # when the field-value is `*`, or having a current representation of the
@@ -303,15 +333,19 @@ module OCI
303
333
 
304
334
  post_body = nil
305
335
 
306
- @api_client.call_api(
307
- :DELETE,
308
- path,
309
- endpoint,
310
- header_params: header_params,
311
- query_params: query_params,
312
- operation_signing_strategy: operation_signing_strategy,
313
- body: post_body
314
- )
336
+ # rubocop:disable Metrics/BlockLength
337
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#delete_zone') do
338
+ @api_client.call_api(
339
+ :DELETE,
340
+ path,
341
+ endpoint,
342
+ header_params: header_params,
343
+ query_params: query_params,
344
+ operation_signing_strategy: operation_signing_strategy,
345
+ body: post_body
346
+ )
347
+ end
348
+ # rubocop:enable Metrics/BlockLength
315
349
  end
316
350
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
317
351
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -329,6 +363,8 @@ module OCI
329
363
  # @param [String] zone_name_or_id The name or OCID of the target zone.
330
364
  # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
331
365
  # @param [Hash] opts the optional parameters
366
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
367
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
332
368
  # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
333
369
  # the absence of any current representation of the target resource, when
334
370
  # the field-value is `*`, or having a selected representation with an
@@ -392,16 +428,20 @@ module OCI
392
428
 
393
429
  post_body = nil
394
430
 
395
- @api_client.call_api(
396
- :GET,
397
- path,
398
- endpoint,
399
- header_params: header_params,
400
- query_params: query_params,
401
- operation_signing_strategy: operation_signing_strategy,
402
- body: post_body,
403
- return_type: 'OCI::Dns::Models::RecordCollection'
404
- )
431
+ # rubocop:disable Metrics/BlockLength
432
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_domain_records') do
433
+ @api_client.call_api(
434
+ :GET,
435
+ path,
436
+ endpoint,
437
+ header_params: header_params,
438
+ query_params: query_params,
439
+ operation_signing_strategy: operation_signing_strategy,
440
+ body: post_body,
441
+ return_type: 'OCI::Dns::Models::RecordCollection'
442
+ )
443
+ end
444
+ # rubocop:enable Metrics/BlockLength
405
445
  end
406
446
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
407
447
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -419,6 +459,8 @@ module OCI
419
459
  # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
420
460
  # @param [String] rtype The type of the target RRSet within the target zone.
421
461
  # @param [Hash] opts the optional parameters
462
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
463
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
422
464
  # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
423
465
  # the absence of any current representation of the target resource, when
424
466
  # the field-value is `*`, or having a selected representation with an
@@ -466,16 +508,20 @@ module OCI
466
508
 
467
509
  post_body = nil
468
510
 
469
- @api_client.call_api(
470
- :GET,
471
- path,
472
- endpoint,
473
- header_params: header_params,
474
- query_params: query_params,
475
- operation_signing_strategy: operation_signing_strategy,
476
- body: post_body,
477
- return_type: 'OCI::Dns::Models::RRSet'
478
- )
511
+ # rubocop:disable Metrics/BlockLength
512
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_rr_set') do
513
+ @api_client.call_api(
514
+ :GET,
515
+ path,
516
+ endpoint,
517
+ header_params: header_params,
518
+ query_params: query_params,
519
+ operation_signing_strategy: operation_signing_strategy,
520
+ body: post_body,
521
+ return_type: 'OCI::Dns::Models::RRSet'
522
+ )
523
+ end
524
+ # rubocop:enable Metrics/BlockLength
479
525
  end
480
526
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
481
527
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -491,6 +537,8 @@ module OCI
491
537
  #
492
538
  # @param [String] zone_name_or_id The name or OCID of the target zone.
493
539
  # @param [Hash] opts the optional parameters
540
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
541
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
494
542
  # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
495
543
  # the absence of any current representation of the target resource, when
496
544
  # the field-value is `*`, or having a selected representation with an
@@ -525,16 +573,20 @@ module OCI
525
573
 
526
574
  post_body = nil
527
575
 
528
- @api_client.call_api(
529
- :GET,
530
- path,
531
- endpoint,
532
- header_params: header_params,
533
- query_params: query_params,
534
- operation_signing_strategy: operation_signing_strategy,
535
- body: post_body,
536
- return_type: 'OCI::Dns::Models::Zone'
537
- )
576
+ # rubocop:disable Metrics/BlockLength
577
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_zone') do
578
+ @api_client.call_api(
579
+ :GET,
580
+ path,
581
+ endpoint,
582
+ header_params: header_params,
583
+ query_params: query_params,
584
+ operation_signing_strategy: operation_signing_strategy,
585
+ body: post_body,
586
+ return_type: 'OCI::Dns::Models::Zone'
587
+ )
588
+ end
589
+ # rubocop:enable Metrics/BlockLength
538
590
  end
539
591
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
540
592
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -551,6 +603,8 @@ module OCI
551
603
  #
552
604
  # @param [String] zone_name_or_id The name or OCID of the target zone.
553
605
  # @param [Hash] opts the optional parameters
606
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
607
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
554
608
  # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
555
609
  # the absence of any current representation of the target resource, when
556
610
  # the field-value is `*`, or having a selected representation with an
@@ -620,16 +674,20 @@ module OCI
620
674
 
621
675
  post_body = nil
622
676
 
623
- @api_client.call_api(
624
- :GET,
625
- path,
626
- endpoint,
627
- header_params: header_params,
628
- query_params: query_params,
629
- operation_signing_strategy: operation_signing_strategy,
630
- body: post_body,
631
- return_type: 'OCI::Dns::Models::RecordCollection'
632
- )
677
+ # rubocop:disable Metrics/BlockLength
678
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_zone_records') do
679
+ @api_client.call_api(
680
+ :GET,
681
+ path,
682
+ endpoint,
683
+ header_params: header_params,
684
+ query_params: query_params,
685
+ operation_signing_strategy: operation_signing_strategy,
686
+ body: post_body,
687
+ return_type: 'OCI::Dns::Models::RecordCollection'
688
+ )
689
+ end
690
+ # rubocop:enable Metrics/BlockLength
633
691
  end
634
692
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
635
693
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -645,6 +703,8 @@ module OCI
645
703
  #
646
704
  # @param [String] compartment_id The OCID of the compartment the resource belongs to.
647
705
  # @param [Hash] opts the optional parameters
706
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
707
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
648
708
  # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
649
709
  # (default to 50)
650
710
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
@@ -717,16 +777,20 @@ module OCI
717
777
 
718
778
  post_body = nil
719
779
 
720
- @api_client.call_api(
721
- :GET,
722
- path,
723
- endpoint,
724
- header_params: header_params,
725
- query_params: query_params,
726
- operation_signing_strategy: operation_signing_strategy,
727
- body: post_body,
728
- return_type: 'Array<OCI::Dns::Models::ZoneSummary>'
729
- )
780
+ # rubocop:disable Metrics/BlockLength
781
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#list_zones') do
782
+ @api_client.call_api(
783
+ :GET,
784
+ path,
785
+ endpoint,
786
+ header_params: header_params,
787
+ query_params: query_params,
788
+ operation_signing_strategy: operation_signing_strategy,
789
+ body: post_body,
790
+ return_type: 'Array<OCI::Dns::Models::ZoneSummary>'
791
+ )
792
+ end
793
+ # rubocop:enable Metrics/BlockLength
730
794
  end
731
795
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
732
796
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -742,6 +806,8 @@ module OCI
742
806
  # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
743
807
  # @param [OCI::Dns::Models::PatchDomainRecordsDetails] patch_domain_records_details Operations describing how to modify the collection of records.
744
808
  # @param [Hash] opts the optional parameters
809
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
810
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
745
811
  # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
746
812
  # existence of at least one current representation of the target resource,
747
813
  # when the field-value is `*`, or having a current representation of the
@@ -781,16 +847,20 @@ module OCI
781
847
 
782
848
  post_body = @api_client.object_to_http_body(patch_domain_records_details)
783
849
 
784
- @api_client.call_api(
785
- :PATCH,
786
- path,
787
- endpoint,
788
- header_params: header_params,
789
- query_params: query_params,
790
- operation_signing_strategy: operation_signing_strategy,
791
- body: post_body,
792
- return_type: 'OCI::Dns::Models::RecordCollection'
793
- )
850
+ # rubocop:disable Metrics/BlockLength
851
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#patch_domain_records') do
852
+ @api_client.call_api(
853
+ :PATCH,
854
+ path,
855
+ endpoint,
856
+ header_params: header_params,
857
+ query_params: query_params,
858
+ operation_signing_strategy: operation_signing_strategy,
859
+ body: post_body,
860
+ return_type: 'OCI::Dns::Models::RecordCollection'
861
+ )
862
+ end
863
+ # rubocop:enable Metrics/BlockLength
794
864
  end
795
865
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
796
866
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -807,6 +877,8 @@ module OCI
807
877
  # @param [String] rtype The type of the target RRSet within the target zone.
808
878
  # @param [OCI::Dns::Models::PatchRRSetDetails] patch_rr_set_details Operations describing how to modify the collection of records.
809
879
  # @param [Hash] opts the optional parameters
880
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
881
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
810
882
  # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
811
883
  # existence of at least one current representation of the target resource,
812
884
  # when the field-value is `*`, or having a current representation of the
@@ -848,16 +920,20 @@ module OCI
848
920
 
849
921
  post_body = @api_client.object_to_http_body(patch_rr_set_details)
850
922
 
851
- @api_client.call_api(
852
- :PATCH,
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
- return_type: 'OCI::Dns::Models::RecordCollection'
860
- )
923
+ # rubocop:disable Metrics/BlockLength
924
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#patch_rr_set') do
925
+ @api_client.call_api(
926
+ :PATCH,
927
+ path,
928
+ endpoint,
929
+ header_params: header_params,
930
+ query_params: query_params,
931
+ operation_signing_strategy: operation_signing_strategy,
932
+ body: post_body,
933
+ return_type: 'OCI::Dns::Models::RecordCollection'
934
+ )
935
+ end
936
+ # rubocop:enable Metrics/BlockLength
861
937
  end
862
938
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
863
939
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -877,6 +953,8 @@ module OCI
877
953
  # @param [OCI::Dns::Models::PatchZoneRecordsDetails] patch_zone_records_details The operations describing how to modify the collection of records.
878
954
  #
879
955
  # @param [Hash] opts the optional parameters
956
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
957
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
880
958
  # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
881
959
  # existence of at least one current representation of the target resource,
882
960
  # when the field-value is `*`, or having a current representation of the
@@ -914,16 +992,20 @@ module OCI
914
992
 
915
993
  post_body = @api_client.object_to_http_body(patch_zone_records_details)
916
994
 
917
- @api_client.call_api(
918
- :PATCH,
919
- path,
920
- endpoint,
921
- header_params: header_params,
922
- query_params: query_params,
923
- operation_signing_strategy: operation_signing_strategy,
924
- body: post_body,
925
- return_type: 'OCI::Dns::Models::RecordCollection'
926
- )
995
+ # rubocop:disable Metrics/BlockLength
996
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#patch_zone_records') do
997
+ @api_client.call_api(
998
+ :PATCH,
999
+ path,
1000
+ endpoint,
1001
+ header_params: header_params,
1002
+ query_params: query_params,
1003
+ operation_signing_strategy: operation_signing_strategy,
1004
+ body: post_body,
1005
+ return_type: 'OCI::Dns::Models::RecordCollection'
1006
+ )
1007
+ end
1008
+ # rubocop:enable Metrics/BlockLength
927
1009
  end
928
1010
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
929
1011
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -945,6 +1027,8 @@ module OCI
945
1027
  # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
946
1028
  # @param [OCI::Dns::Models::UpdateDomainRecordsDetails] update_domain_records_details A full list of records for the domain.
947
1029
  # @param [Hash] opts the optional parameters
1030
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1031
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
948
1032
  # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
949
1033
  # existence of at least one current representation of the target resource,
950
1034
  # when the field-value is `*`, or having a current representation of the
@@ -984,16 +1068,20 @@ module OCI
984
1068
 
985
1069
  post_body = @api_client.object_to_http_body(update_domain_records_details)
986
1070
 
987
- @api_client.call_api(
988
- :PUT,
989
- path,
990
- endpoint,
991
- header_params: header_params,
992
- query_params: query_params,
993
- operation_signing_strategy: operation_signing_strategy,
994
- body: post_body,
995
- return_type: 'OCI::Dns::Models::RecordCollection'
996
- )
1071
+ # rubocop:disable Metrics/BlockLength
1072
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#update_domain_records') do
1073
+ @api_client.call_api(
1074
+ :PUT,
1075
+ path,
1076
+ endpoint,
1077
+ header_params: header_params,
1078
+ query_params: query_params,
1079
+ operation_signing_strategy: operation_signing_strategy,
1080
+ body: post_body,
1081
+ return_type: 'OCI::Dns::Models::RecordCollection'
1082
+ )
1083
+ end
1084
+ # rubocop:enable Metrics/BlockLength
997
1085
  end
998
1086
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
999
1087
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -1010,6 +1098,8 @@ module OCI
1010
1098
  # @param [String] rtype The type of the target RRSet within the target zone.
1011
1099
  # @param [OCI::Dns::Models::UpdateRRSetDetails] update_rr_set_details A full list of records for the RRSet.
1012
1100
  # @param [Hash] opts the optional parameters
1101
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1102
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1013
1103
  # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
1014
1104
  # existence of at least one current representation of the target resource,
1015
1105
  # when the field-value is `*`, or having a current representation of the
@@ -1051,16 +1141,20 @@ module OCI
1051
1141
 
1052
1142
  post_body = @api_client.object_to_http_body(update_rr_set_details)
1053
1143
 
1054
- @api_client.call_api(
1055
- :PUT,
1056
- path,
1057
- endpoint,
1058
- header_params: header_params,
1059
- query_params: query_params,
1060
- operation_signing_strategy: operation_signing_strategy,
1061
- body: post_body,
1062
- return_type: 'OCI::Dns::Models::RecordCollection'
1063
- )
1144
+ # rubocop:disable Metrics/BlockLength
1145
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#update_rr_set') do
1146
+ @api_client.call_api(
1147
+ :PUT,
1148
+ path,
1149
+ endpoint,
1150
+ header_params: header_params,
1151
+ query_params: query_params,
1152
+ operation_signing_strategy: operation_signing_strategy,
1153
+ body: post_body,
1154
+ return_type: 'OCI::Dns::Models::RecordCollection'
1155
+ )
1156
+ end
1157
+ # rubocop:enable Metrics/BlockLength
1064
1158
  end
1065
1159
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1066
1160
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -1078,6 +1172,8 @@ module OCI
1078
1172
  # @param [String] zone_name_or_id The name or OCID of the target zone.
1079
1173
  # @param [OCI::Dns::Models::UpdateZoneDetails] update_zone_details New data for the zone.
1080
1174
  # @param [Hash] opts the optional parameters
1175
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1176
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1081
1177
  # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
1082
1178
  # existence of at least one current representation of the target resource,
1083
1179
  # when the field-value is `*`, or having a current representation of the
@@ -1115,16 +1211,20 @@ module OCI
1115
1211
 
1116
1212
  post_body = @api_client.object_to_http_body(update_zone_details)
1117
1213
 
1118
- @api_client.call_api(
1119
- :PUT,
1120
- path,
1121
- endpoint,
1122
- header_params: header_params,
1123
- query_params: query_params,
1124
- operation_signing_strategy: operation_signing_strategy,
1125
- body: post_body,
1126
- return_type: 'OCI::Dns::Models::Zone'
1127
- )
1214
+ # rubocop:disable Metrics/BlockLength
1215
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#update_zone') do
1216
+ @api_client.call_api(
1217
+ :PUT,
1218
+ path,
1219
+ endpoint,
1220
+ header_params: header_params,
1221
+ query_params: query_params,
1222
+ operation_signing_strategy: operation_signing_strategy,
1223
+ body: post_body,
1224
+ return_type: 'OCI::Dns::Models::Zone'
1225
+ )
1226
+ end
1227
+ # rubocop:enable Metrics/BlockLength
1128
1228
  end
1129
1229
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1130
1230
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
@@ -1144,6 +1244,8 @@ module OCI
1144
1244
  # @param [String] zone_name_or_id The name or OCID of the target zone.
1145
1245
  # @param [OCI::Dns::Models::UpdateZoneRecordsDetails] update_zone_records_details A full list of records for the zone.
1146
1246
  # @param [Hash] opts the optional parameters
1247
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1248
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
1147
1249
  # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
1148
1250
  # existence of at least one current representation of the target resource,
1149
1251
  # when the field-value is `*`, or having a current representation of the
@@ -1181,20 +1283,31 @@ module OCI
1181
1283
 
1182
1284
  post_body = @api_client.object_to_http_body(update_zone_records_details)
1183
1285
 
1184
- @api_client.call_api(
1185
- :PUT,
1186
- path,
1187
- endpoint,
1188
- header_params: header_params,
1189
- query_params: query_params,
1190
- operation_signing_strategy: operation_signing_strategy,
1191
- body: post_body,
1192
- return_type: 'OCI::Dns::Models::RecordCollection'
1193
- )
1286
+ # rubocop:disable Metrics/BlockLength
1287
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#update_zone_records') do
1288
+ @api_client.call_api(
1289
+ :PUT,
1290
+ path,
1291
+ endpoint,
1292
+ header_params: header_params,
1293
+ query_params: query_params,
1294
+ operation_signing_strategy: operation_signing_strategy,
1295
+ body: post_body,
1296
+ return_type: 'OCI::Dns::Models::RecordCollection'
1297
+ )
1298
+ end
1299
+ # rubocop:enable Metrics/BlockLength
1194
1300
  end
1195
1301
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1196
1302
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1197
1303
  # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1304
+
1305
+ private
1306
+
1307
+ def applicable_retry_config(opts = {})
1308
+ return @retry_config unless opts.key?(:retry_config)
1309
+ opts[:retry_config]
1310
+ end
1198
1311
  end
1199
1312
  end
1200
1313
  # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength