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
@@ -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)
|
@@ -93,6 +103,8 @@ module OCI
|
|
93
103
|
#
|
94
104
|
# @param [OCI::Database::Models::CreateBackupDetails] create_backup_details Request to create a new database backup.
|
95
105
|
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
107
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
96
108
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
97
109
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
98
110
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
@@ -116,19 +128,24 @@ module OCI
|
|
116
128
|
header_params['accept'] = 'application/json'
|
117
129
|
header_params['content-type'] = 'application/json'
|
118
130
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
131
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
119
132
|
|
120
133
|
post_body = @api_client.object_to_http_body(create_backup_details)
|
121
134
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
135
|
+
# rubocop:disable Metrics/BlockLength
|
136
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#create_backup') do
|
137
|
+
@api_client.call_api(
|
138
|
+
:POST,
|
139
|
+
path,
|
140
|
+
endpoint,
|
141
|
+
header_params: header_params,
|
142
|
+
query_params: query_params,
|
143
|
+
operation_signing_strategy: operation_signing_strategy,
|
144
|
+
body: post_body,
|
145
|
+
return_type: 'OCI::Database::Models::Backup'
|
146
|
+
)
|
147
|
+
end
|
148
|
+
# rubocop:enable Metrics/BlockLength
|
132
149
|
end
|
133
150
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
134
151
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -151,6 +168,8 @@ module OCI
|
|
151
168
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
152
169
|
# @param [OCI::Database::Models::CreateDataGuardAssociationDetails] create_data_guard_association_details A request to create a Data Guard association.
|
153
170
|
# @param [Hash] opts the optional parameters
|
171
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
172
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
154
173
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
155
174
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
156
175
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
@@ -176,19 +195,24 @@ module OCI
|
|
176
195
|
header_params['accept'] = 'application/json'
|
177
196
|
header_params['content-type'] = 'application/json'
|
178
197
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
198
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
179
199
|
|
180
200
|
post_body = @api_client.object_to_http_body(create_data_guard_association_details)
|
181
201
|
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
202
|
+
# rubocop:disable Metrics/BlockLength
|
203
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#create_data_guard_association') do
|
204
|
+
@api_client.call_api(
|
205
|
+
:POST,
|
206
|
+
path,
|
207
|
+
endpoint,
|
208
|
+
header_params: header_params,
|
209
|
+
query_params: query_params,
|
210
|
+
operation_signing_strategy: operation_signing_strategy,
|
211
|
+
body: post_body,
|
212
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
213
|
+
)
|
214
|
+
end
|
215
|
+
# rubocop:enable Metrics/BlockLength
|
192
216
|
end
|
193
217
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
194
218
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -203,6 +227,8 @@ module OCI
|
|
203
227
|
#
|
204
228
|
# @param [OCI::Database::Models::CreateDbHomeWithDbSystemIdBase] create_db_home_with_db_system_id_details Request to create a new DB Home.
|
205
229
|
# @param [Hash] opts the optional parameters
|
230
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
231
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
206
232
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
207
233
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
208
234
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
@@ -226,19 +252,24 @@ module OCI
|
|
226
252
|
header_params['accept'] = 'application/json'
|
227
253
|
header_params['content-type'] = 'application/json'
|
228
254
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
255
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
229
256
|
|
230
257
|
post_body = @api_client.object_to_http_body(create_db_home_with_db_system_id_details)
|
231
258
|
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
259
|
+
# rubocop:disable Metrics/BlockLength
|
260
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#create_db_home') do
|
261
|
+
@api_client.call_api(
|
262
|
+
:POST,
|
263
|
+
path,
|
264
|
+
endpoint,
|
265
|
+
header_params: header_params,
|
266
|
+
query_params: query_params,
|
267
|
+
operation_signing_strategy: operation_signing_strategy,
|
268
|
+
body: post_body,
|
269
|
+
return_type: 'OCI::Database::Models::DbHome'
|
270
|
+
)
|
271
|
+
end
|
272
|
+
# rubocop:enable Metrics/BlockLength
|
242
273
|
end
|
243
274
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
244
275
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -269,6 +300,8 @@ module OCI
|
|
269
300
|
# @param [String] action The action to perform on the DB Node.
|
270
301
|
# Allowed values are: STOP, START, SOFTRESET, RESET
|
271
302
|
# @param [Hash] opts the optional parameters
|
303
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
304
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
272
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
|
273
306
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
274
307
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
@@ -303,19 +336,24 @@ module OCI
|
|
303
336
|
header_params['content-type'] = 'application/json'
|
304
337
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
305
338
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
339
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
306
340
|
|
307
341
|
post_body = nil
|
308
342
|
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
343
|
+
# rubocop:disable Metrics/BlockLength
|
344
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#db_node_action') do
|
345
|
+
@api_client.call_api(
|
346
|
+
:POST,
|
347
|
+
path,
|
348
|
+
endpoint,
|
349
|
+
header_params: header_params,
|
350
|
+
query_params: query_params,
|
351
|
+
operation_signing_strategy: operation_signing_strategy,
|
352
|
+
body: post_body,
|
353
|
+
return_type: 'OCI::Database::Models::DbNode'
|
354
|
+
)
|
355
|
+
end
|
356
|
+
# rubocop:enable Metrics/BlockLength
|
319
357
|
end
|
320
358
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
321
359
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -329,6 +367,8 @@ module OCI
|
|
329
367
|
# Deletes a full backup. You cannot delete automatic backups using this API.
|
330
368
|
# @param [String] backup_id The backup OCID.
|
331
369
|
# @param [Hash] opts the optional parameters
|
370
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
371
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
332
372
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
333
373
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
334
374
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -354,15 +394,19 @@ module OCI
|
|
354
394
|
|
355
395
|
post_body = nil
|
356
396
|
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
397
|
+
# rubocop:disable Metrics/BlockLength
|
398
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#delete_backup') do
|
399
|
+
@api_client.call_api(
|
400
|
+
:DELETE,
|
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
|
366
410
|
end
|
367
411
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
368
412
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -377,6 +421,8 @@ module OCI
|
|
377
421
|
#
|
378
422
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
379
423
|
# @param [Hash] opts the optional parameters
|
424
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
425
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
380
426
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
381
427
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
382
428
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -404,15 +450,19 @@ module OCI
|
|
404
450
|
|
405
451
|
post_body = nil
|
406
452
|
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
453
|
+
# rubocop:disable Metrics/BlockLength
|
454
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#delete_db_home') do
|
455
|
+
@api_client.call_api(
|
456
|
+
:DELETE,
|
457
|
+
path,
|
458
|
+
endpoint,
|
459
|
+
header_params: header_params,
|
460
|
+
query_params: query_params,
|
461
|
+
operation_signing_strategy: operation_signing_strategy,
|
462
|
+
body: post_body
|
463
|
+
)
|
464
|
+
end
|
465
|
+
# rubocop:enable Metrics/BlockLength
|
416
466
|
end
|
417
467
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
418
468
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -433,6 +483,8 @@ module OCI
|
|
433
483
|
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
434
484
|
# @param [OCI::Database::Models::FailoverDataGuardAssociationDetails] failover_data_guard_association_details A request to perform a failover, transitioning a standby database into a primary database.
|
435
485
|
# @param [Hash] opts the optional parameters
|
486
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
487
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
436
488
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
437
489
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
438
490
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -461,16 +513,20 @@ module OCI
|
|
461
513
|
|
462
514
|
post_body = @api_client.object_to_http_body(failover_data_guard_association_details)
|
463
515
|
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
516
|
+
# rubocop:disable Metrics/BlockLength
|
517
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#failover_data_guard_association') do
|
518
|
+
@api_client.call_api(
|
519
|
+
:POST,
|
520
|
+
path,
|
521
|
+
endpoint,
|
522
|
+
header_params: header_params,
|
523
|
+
query_params: query_params,
|
524
|
+
operation_signing_strategy: operation_signing_strategy,
|
525
|
+
body: post_body,
|
526
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
527
|
+
)
|
528
|
+
end
|
529
|
+
# rubocop:enable Metrics/BlockLength
|
474
530
|
end
|
475
531
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
476
532
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -485,6 +541,8 @@ module OCI
|
|
485
541
|
# Gets information about the specified backup.
|
486
542
|
# @param [String] backup_id The backup OCID.
|
487
543
|
# @param [Hash] opts the optional parameters
|
544
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
545
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
488
546
|
# @return [Response] A Response object with data of type {OCI::Database::Models::Backup Backup}
|
489
547
|
def get_backup(backup_id, opts = {})
|
490
548
|
logger.debug 'Calling operation DatabaseClient#get_backup.' if logger
|
@@ -505,16 +563,20 @@ module OCI
|
|
505
563
|
|
506
564
|
post_body = nil
|
507
565
|
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
566
|
+
# rubocop:disable Metrics/BlockLength
|
567
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_backup') do
|
568
|
+
@api_client.call_api(
|
569
|
+
:GET,
|
570
|
+
path,
|
571
|
+
endpoint,
|
572
|
+
header_params: header_params,
|
573
|
+
query_params: query_params,
|
574
|
+
operation_signing_strategy: operation_signing_strategy,
|
575
|
+
body: post_body,
|
576
|
+
return_type: 'OCI::Database::Models::Backup'
|
577
|
+
)
|
578
|
+
end
|
579
|
+
# rubocop:enable Metrics/BlockLength
|
518
580
|
end
|
519
581
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
520
582
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -532,6 +594,8 @@ module OCI
|
|
532
594
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
533
595
|
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
534
596
|
# @param [Hash] opts the optional parameters
|
597
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
598
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
535
599
|
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
536
600
|
def get_data_guard_association(database_id, data_guard_association_id, opts = {})
|
537
601
|
logger.debug 'Calling operation DatabaseClient#get_data_guard_association.' if logger
|
@@ -554,16 +618,20 @@ module OCI
|
|
554
618
|
|
555
619
|
post_body = nil
|
556
620
|
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
621
|
+
# rubocop:disable Metrics/BlockLength
|
622
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_data_guard_association') do
|
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::Database::Models::DataGuardAssociation'
|
632
|
+
)
|
633
|
+
end
|
634
|
+
# rubocop:enable Metrics/BlockLength
|
567
635
|
end
|
568
636
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
569
637
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -579,6 +647,8 @@ module OCI
|
|
579
647
|
# Gets information about a specific database.
|
580
648
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
581
649
|
# @param [Hash] opts the optional parameters
|
650
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
651
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
582
652
|
# @return [Response] A Response object with data of type {OCI::Database::Models::Database Database}
|
583
653
|
def get_database(database_id, opts = {})
|
584
654
|
logger.debug 'Calling operation DatabaseClient#get_database.' if logger
|
@@ -599,16 +669,20 @@ module OCI
|
|
599
669
|
|
600
670
|
post_body = nil
|
601
671
|
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
672
|
+
# rubocop:disable Metrics/BlockLength
|
673
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_database') do
|
674
|
+
@api_client.call_api(
|
675
|
+
:GET,
|
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
|
+
return_type: 'OCI::Database::Models::Database'
|
683
|
+
)
|
684
|
+
end
|
685
|
+
# rubocop:enable Metrics/BlockLength
|
612
686
|
end
|
613
687
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
614
688
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -624,6 +698,8 @@ module OCI
|
|
624
698
|
# Gets information about the specified database home.
|
625
699
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
626
700
|
# @param [Hash] opts the optional parameters
|
701
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
702
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
627
703
|
# @return [Response] A Response object with data of type {OCI::Database::Models::DbHome DbHome}
|
628
704
|
def get_db_home(db_home_id, opts = {})
|
629
705
|
logger.debug 'Calling operation DatabaseClient#get_db_home.' if logger
|
@@ -644,16 +720,20 @@ module OCI
|
|
644
720
|
|
645
721
|
post_body = nil
|
646
722
|
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
723
|
+
# rubocop:disable Metrics/BlockLength
|
724
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_home') do
|
725
|
+
@api_client.call_api(
|
726
|
+
:GET,
|
727
|
+
path,
|
728
|
+
endpoint,
|
729
|
+
header_params: header_params,
|
730
|
+
query_params: query_params,
|
731
|
+
operation_signing_strategy: operation_signing_strategy,
|
732
|
+
body: post_body,
|
733
|
+
return_type: 'OCI::Database::Models::DbHome'
|
734
|
+
)
|
735
|
+
end
|
736
|
+
# rubocop:enable Metrics/BlockLength
|
657
737
|
end
|
658
738
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
659
739
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -671,6 +751,8 @@ module OCI
|
|
671
751
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
672
752
|
# @param [String] patch_id The OCID of the patch.
|
673
753
|
# @param [Hash] opts the optional parameters
|
754
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
755
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
674
756
|
# @return [Response] A Response object with data of type {OCI::Database::Models::Patch Patch}
|
675
757
|
def get_db_home_patch(db_home_id, patch_id, opts = {})
|
676
758
|
logger.debug 'Calling operation DatabaseClient#get_db_home_patch.' if logger
|
@@ -693,16 +775,20 @@ module OCI
|
|
693
775
|
|
694
776
|
post_body = nil
|
695
777
|
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
778
|
+
# rubocop:disable Metrics/BlockLength
|
779
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_home_patch') do
|
780
|
+
@api_client.call_api(
|
781
|
+
:GET,
|
782
|
+
path,
|
783
|
+
endpoint,
|
784
|
+
header_params: header_params,
|
785
|
+
query_params: query_params,
|
786
|
+
operation_signing_strategy: operation_signing_strategy,
|
787
|
+
body: post_body,
|
788
|
+
return_type: 'OCI::Database::Models::Patch'
|
789
|
+
)
|
790
|
+
end
|
791
|
+
# rubocop:enable Metrics/BlockLength
|
706
792
|
end
|
707
793
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
708
794
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -720,6 +806,8 @@ module OCI
|
|
720
806
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
721
807
|
# @param [String] patch_history_entry_id The OCID of the patch history entry.
|
722
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
|
723
811
|
# @return [Response] A Response object with data of type {OCI::Database::Models::PatchHistoryEntry PatchHistoryEntry}
|
724
812
|
def get_db_home_patch_history_entry(db_home_id, patch_history_entry_id, opts = {})
|
725
813
|
logger.debug 'Calling operation DatabaseClient#get_db_home_patch_history_entry.' if logger
|
@@ -742,16 +830,20 @@ module OCI
|
|
742
830
|
|
743
831
|
post_body = nil
|
744
832
|
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
833
|
+
# rubocop:disable Metrics/BlockLength
|
834
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_home_patch_history_entry') do
|
835
|
+
@api_client.call_api(
|
836
|
+
:GET,
|
837
|
+
path,
|
838
|
+
endpoint,
|
839
|
+
header_params: header_params,
|
840
|
+
query_params: query_params,
|
841
|
+
operation_signing_strategy: operation_signing_strategy,
|
842
|
+
body: post_body,
|
843
|
+
return_type: 'OCI::Database::Models::PatchHistoryEntry'
|
844
|
+
)
|
845
|
+
end
|
846
|
+
# rubocop:enable Metrics/BlockLength
|
755
847
|
end
|
756
848
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
757
849
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -767,6 +859,8 @@ module OCI
|
|
767
859
|
# Gets information about the specified database node.
|
768
860
|
# @param [String] db_node_id The database node [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
769
861
|
# @param [Hash] opts the optional parameters
|
862
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
863
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
770
864
|
# @return [Response] A Response object with data of type {OCI::Database::Models::DbNode DbNode}
|
771
865
|
def get_db_node(db_node_id, opts = {})
|
772
866
|
logger.debug 'Calling operation DatabaseClient#get_db_node.' if logger
|
@@ -787,16 +881,20 @@ module OCI
|
|
787
881
|
|
788
882
|
post_body = nil
|
789
883
|
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
884
|
+
# rubocop:disable Metrics/BlockLength
|
885
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_node') do
|
886
|
+
@api_client.call_api(
|
887
|
+
:GET,
|
888
|
+
path,
|
889
|
+
endpoint,
|
890
|
+
header_params: header_params,
|
891
|
+
query_params: query_params,
|
892
|
+
operation_signing_strategy: operation_signing_strategy,
|
893
|
+
body: post_body,
|
894
|
+
return_type: 'OCI::Database::Models::DbNode'
|
895
|
+
)
|
896
|
+
end
|
897
|
+
# rubocop:enable Metrics/BlockLength
|
800
898
|
end
|
801
899
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
802
900
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -812,6 +910,8 @@ module OCI
|
|
812
910
|
# Gets information about the specified DB System.
|
813
911
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
814
912
|
# @param [Hash] opts the optional parameters
|
913
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
914
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
815
915
|
# @return [Response] A Response object with data of type {OCI::Database::Models::DbSystem DbSystem}
|
816
916
|
def get_db_system(db_system_id, opts = {})
|
817
917
|
logger.debug 'Calling operation DatabaseClient#get_db_system.' if logger
|
@@ -832,16 +932,20 @@ module OCI
|
|
832
932
|
|
833
933
|
post_body = nil
|
834
934
|
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
935
|
+
# rubocop:disable Metrics/BlockLength
|
936
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_system') do
|
937
|
+
@api_client.call_api(
|
938
|
+
:GET,
|
939
|
+
path,
|
940
|
+
endpoint,
|
941
|
+
header_params: header_params,
|
942
|
+
query_params: query_params,
|
943
|
+
operation_signing_strategy: operation_signing_strategy,
|
944
|
+
body: post_body,
|
945
|
+
return_type: 'OCI::Database::Models::DbSystem'
|
946
|
+
)
|
947
|
+
end
|
948
|
+
# rubocop:enable Metrics/BlockLength
|
845
949
|
end
|
846
950
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
847
951
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -859,6 +963,8 @@ module OCI
|
|
859
963
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
860
964
|
# @param [String] patch_id The OCID of the patch.
|
861
965
|
# @param [Hash] opts the optional parameters
|
966
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
967
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
862
968
|
# @return [Response] A Response object with data of type {OCI::Database::Models::Patch Patch}
|
863
969
|
def get_db_system_patch(db_system_id, patch_id, opts = {})
|
864
970
|
logger.debug 'Calling operation DatabaseClient#get_db_system_patch.' if logger
|
@@ -881,16 +987,20 @@ module OCI
|
|
881
987
|
|
882
988
|
post_body = nil
|
883
989
|
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
990
|
+
# rubocop:disable Metrics/BlockLength
|
991
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_system_patch') do
|
992
|
+
@api_client.call_api(
|
993
|
+
:GET,
|
994
|
+
path,
|
995
|
+
endpoint,
|
996
|
+
header_params: header_params,
|
997
|
+
query_params: query_params,
|
998
|
+
operation_signing_strategy: operation_signing_strategy,
|
999
|
+
body: post_body,
|
1000
|
+
return_type: 'OCI::Database::Models::Patch'
|
1001
|
+
)
|
1002
|
+
end
|
1003
|
+
# rubocop:enable Metrics/BlockLength
|
894
1004
|
end
|
895
1005
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
896
1006
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -908,6 +1018,8 @@ module OCI
|
|
908
1018
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
909
1019
|
# @param [String] patch_history_entry_id The OCID of the patch history entry.
|
910
1020
|
# @param [Hash] opts the optional parameters
|
1021
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1022
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
911
1023
|
# @return [Response] A Response object with data of type {OCI::Database::Models::PatchHistoryEntry PatchHistoryEntry}
|
912
1024
|
def get_db_system_patch_history_entry(db_system_id, patch_history_entry_id, opts = {})
|
913
1025
|
logger.debug 'Calling operation DatabaseClient#get_db_system_patch_history_entry.' if logger
|
@@ -930,16 +1042,20 @@ module OCI
|
|
930
1042
|
|
931
1043
|
post_body = nil
|
932
1044
|
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
1045
|
+
# rubocop:disable Metrics/BlockLength
|
1046
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_db_system_patch_history_entry') do
|
1047
|
+
@api_client.call_api(
|
1048
|
+
:GET,
|
1049
|
+
path,
|
1050
|
+
endpoint,
|
1051
|
+
header_params: header_params,
|
1052
|
+
query_params: query_params,
|
1053
|
+
operation_signing_strategy: operation_signing_strategy,
|
1054
|
+
body: post_body,
|
1055
|
+
return_type: 'OCI::Database::Models::PatchHistoryEntry'
|
1056
|
+
)
|
1057
|
+
end
|
1058
|
+
# rubocop:enable Metrics/BlockLength
|
943
1059
|
end
|
944
1060
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
945
1061
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -964,6 +1080,8 @@ module OCI
|
|
964
1080
|
#
|
965
1081
|
# @param [OCI::Database::Models::LaunchDbSystemDetails] launch_db_system_details Request to launch a DB System.
|
966
1082
|
# @param [Hash] opts the optional parameters
|
1083
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1084
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
967
1085
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
968
1086
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
969
1087
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
@@ -987,19 +1105,24 @@ module OCI
|
|
987
1105
|
header_params['accept'] = 'application/json'
|
988
1106
|
header_params['content-type'] = 'application/json'
|
989
1107
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1108
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
990
1109
|
|
991
1110
|
post_body = @api_client.object_to_http_body(launch_db_system_details)
|
992
1111
|
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1112
|
+
# rubocop:disable Metrics/BlockLength
|
1113
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#launch_db_system') do
|
1114
|
+
@api_client.call_api(
|
1115
|
+
:POST,
|
1116
|
+
path,
|
1117
|
+
endpoint,
|
1118
|
+
header_params: header_params,
|
1119
|
+
query_params: query_params,
|
1120
|
+
operation_signing_strategy: operation_signing_strategy,
|
1121
|
+
body: post_body,
|
1122
|
+
return_type: 'OCI::Database::Models::DbSystem'
|
1123
|
+
)
|
1124
|
+
end
|
1125
|
+
# rubocop:enable Metrics/BlockLength
|
1003
1126
|
end
|
1004
1127
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1005
1128
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1013,6 +1136,8 @@ module OCI
|
|
1013
1136
|
# Gets a list of backups based on the databaseId or compartmentId specified. Either one of the query parameters must be provided.
|
1014
1137
|
#
|
1015
1138
|
# @param [Hash] opts the optional parameters
|
1139
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1140
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1016
1141
|
# @option opts [String] :database_id The OCID of the database.
|
1017
1142
|
# @option opts [String] :compartment_id The compartment OCID.
|
1018
1143
|
# @option opts [Integer] :limit The maximum number of items to return.
|
@@ -1039,16 +1164,20 @@ module OCI
|
|
1039
1164
|
|
1040
1165
|
post_body = nil
|
1041
1166
|
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1167
|
+
# rubocop:disable Metrics/BlockLength
|
1168
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_backups') do
|
1169
|
+
@api_client.call_api(
|
1170
|
+
:GET,
|
1171
|
+
path,
|
1172
|
+
endpoint,
|
1173
|
+
header_params: header_params,
|
1174
|
+
query_params: query_params,
|
1175
|
+
operation_signing_strategy: operation_signing_strategy,
|
1176
|
+
body: post_body,
|
1177
|
+
return_type: 'Array<OCI::Database::Models::BackupSummary>'
|
1178
|
+
)
|
1179
|
+
end
|
1180
|
+
# rubocop:enable Metrics/BlockLength
|
1052
1181
|
end
|
1053
1182
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1054
1183
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1063,6 +1192,8 @@ module OCI
|
|
1063
1192
|
#
|
1064
1193
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1065
1194
|
# @param [Hash] opts the optional parameters
|
1195
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1196
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1066
1197
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1067
1198
|
# @option opts [String] :page The pagination token to continue listing from.
|
1068
1199
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DataGuardAssociationSummary DataGuardAssociationSummary}>
|
@@ -1087,16 +1218,20 @@ module OCI
|
|
1087
1218
|
|
1088
1219
|
post_body = nil
|
1089
1220
|
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1221
|
+
# rubocop:disable Metrics/BlockLength
|
1222
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_data_guard_associations') do
|
1223
|
+
@api_client.call_api(
|
1224
|
+
:GET,
|
1225
|
+
path,
|
1226
|
+
endpoint,
|
1227
|
+
header_params: header_params,
|
1228
|
+
query_params: query_params,
|
1229
|
+
operation_signing_strategy: operation_signing_strategy,
|
1230
|
+
body: post_body,
|
1231
|
+
return_type: 'Array<OCI::Database::Models::DataGuardAssociationSummary>'
|
1232
|
+
)
|
1233
|
+
end
|
1234
|
+
# rubocop:enable Metrics/BlockLength
|
1100
1235
|
end
|
1101
1236
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1102
1237
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1112,6 +1247,8 @@ module OCI
|
|
1112
1247
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1113
1248
|
# @param [String] db_home_id A database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1114
1249
|
# @param [Hash] opts the optional parameters
|
1250
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1251
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1115
1252
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1116
1253
|
# @option opts [String] :page The pagination token to continue listing from.
|
1117
1254
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DatabaseSummary DatabaseSummary}>
|
@@ -1138,16 +1275,20 @@ module OCI
|
|
1138
1275
|
|
1139
1276
|
post_body = nil
|
1140
1277
|
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1278
|
+
# rubocop:disable Metrics/BlockLength
|
1279
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_databases') do
|
1280
|
+
@api_client.call_api(
|
1281
|
+
:GET,
|
1282
|
+
path,
|
1283
|
+
endpoint,
|
1284
|
+
header_params: header_params,
|
1285
|
+
query_params: query_params,
|
1286
|
+
operation_signing_strategy: operation_signing_strategy,
|
1287
|
+
body: post_body,
|
1288
|
+
return_type: 'Array<OCI::Database::Models::DatabaseSummary>'
|
1289
|
+
)
|
1290
|
+
end
|
1291
|
+
# rubocop:enable Metrics/BlockLength
|
1151
1292
|
end
|
1152
1293
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1153
1294
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1162,6 +1303,8 @@ module OCI
|
|
1162
1303
|
#
|
1163
1304
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1164
1305
|
# @param [Hash] opts the optional parameters
|
1306
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1307
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1165
1308
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1166
1309
|
# @option opts [String] :page The pagination token to continue listing from.
|
1167
1310
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchHistoryEntrySummary PatchHistoryEntrySummary}>
|
@@ -1186,16 +1329,20 @@ module OCI
|
|
1186
1329
|
|
1187
1330
|
post_body = nil
|
1188
1331
|
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1332
|
+
# rubocop:disable Metrics/BlockLength
|
1333
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_home_patch_history_entries') do
|
1334
|
+
@api_client.call_api(
|
1335
|
+
:GET,
|
1336
|
+
path,
|
1337
|
+
endpoint,
|
1338
|
+
header_params: header_params,
|
1339
|
+
query_params: query_params,
|
1340
|
+
operation_signing_strategy: operation_signing_strategy,
|
1341
|
+
body: post_body,
|
1342
|
+
return_type: 'Array<OCI::Database::Models::PatchHistoryEntrySummary>'
|
1343
|
+
)
|
1344
|
+
end
|
1345
|
+
# rubocop:enable Metrics/BlockLength
|
1199
1346
|
end
|
1200
1347
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1201
1348
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1210,6 +1357,8 @@ module OCI
|
|
1210
1357
|
#
|
1211
1358
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1212
1359
|
# @param [Hash] opts the optional parameters
|
1360
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1361
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1213
1362
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1214
1363
|
# @option opts [String] :page The pagination token to continue listing from.
|
1215
1364
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchSummary PatchSummary}>
|
@@ -1234,16 +1383,20 @@ module OCI
|
|
1234
1383
|
|
1235
1384
|
post_body = nil
|
1236
1385
|
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1386
|
+
# rubocop:disable Metrics/BlockLength
|
1387
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_home_patches') do
|
1388
|
+
@api_client.call_api(
|
1389
|
+
:GET,
|
1390
|
+
path,
|
1391
|
+
endpoint,
|
1392
|
+
header_params: header_params,
|
1393
|
+
query_params: query_params,
|
1394
|
+
operation_signing_strategy: operation_signing_strategy,
|
1395
|
+
body: post_body,
|
1396
|
+
return_type: 'Array<OCI::Database::Models::PatchSummary>'
|
1397
|
+
)
|
1398
|
+
end
|
1399
|
+
# rubocop:enable Metrics/BlockLength
|
1247
1400
|
end
|
1248
1401
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1249
1402
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1259,6 +1412,8 @@ module OCI
|
|
1259
1412
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1260
1413
|
# @param [String] db_system_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System.
|
1261
1414
|
# @param [Hash] opts the optional parameters
|
1415
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1416
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1262
1417
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1263
1418
|
# @option opts [String] :page The pagination token to continue listing from.
|
1264
1419
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbHomeSummary DbHomeSummary}>
|
@@ -1285,16 +1440,20 @@ module OCI
|
|
1285
1440
|
|
1286
1441
|
post_body = nil
|
1287
1442
|
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1443
|
+
# rubocop:disable Metrics/BlockLength
|
1444
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_homes') do
|
1445
|
+
@api_client.call_api(
|
1446
|
+
:GET,
|
1447
|
+
path,
|
1448
|
+
endpoint,
|
1449
|
+
header_params: header_params,
|
1450
|
+
query_params: query_params,
|
1451
|
+
operation_signing_strategy: operation_signing_strategy,
|
1452
|
+
body: post_body,
|
1453
|
+
return_type: 'Array<OCI::Database::Models::DbHomeSummary>'
|
1454
|
+
)
|
1455
|
+
end
|
1456
|
+
# rubocop:enable Metrics/BlockLength
|
1298
1457
|
end
|
1299
1458
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1300
1459
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1310,6 +1469,8 @@ module OCI
|
|
1310
1469
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1311
1470
|
# @param [String] db_system_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System.
|
1312
1471
|
# @param [Hash] opts the optional parameters
|
1472
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1473
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1313
1474
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1314
1475
|
# @option opts [String] :page The pagination token to continue listing from.
|
1315
1476
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbNodeSummary DbNodeSummary}>
|
@@ -1336,16 +1497,20 @@ module OCI
|
|
1336
1497
|
|
1337
1498
|
post_body = nil
|
1338
1499
|
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1500
|
+
# rubocop:disable Metrics/BlockLength
|
1501
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_nodes') do
|
1502
|
+
@api_client.call_api(
|
1503
|
+
:GET,
|
1504
|
+
path,
|
1505
|
+
endpoint,
|
1506
|
+
header_params: header_params,
|
1507
|
+
query_params: query_params,
|
1508
|
+
operation_signing_strategy: operation_signing_strategy,
|
1509
|
+
body: post_body,
|
1510
|
+
return_type: 'Array<OCI::Database::Models::DbNodeSummary>'
|
1511
|
+
)
|
1512
|
+
end
|
1513
|
+
# rubocop:enable Metrics/BlockLength
|
1349
1514
|
end
|
1350
1515
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1351
1516
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1360,6 +1525,8 @@ module OCI
|
|
1360
1525
|
#
|
1361
1526
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1362
1527
|
# @param [Hash] opts the optional parameters
|
1528
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1529
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1363
1530
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1364
1531
|
# @option opts [String] :page The pagination token to continue listing from.
|
1365
1532
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchHistoryEntrySummary PatchHistoryEntrySummary}>
|
@@ -1384,16 +1551,20 @@ module OCI
|
|
1384
1551
|
|
1385
1552
|
post_body = nil
|
1386
1553
|
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1554
|
+
# rubocop:disable Metrics/BlockLength
|
1555
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_system_patch_history_entries') do
|
1556
|
+
@api_client.call_api(
|
1557
|
+
:GET,
|
1558
|
+
path,
|
1559
|
+
endpoint,
|
1560
|
+
header_params: header_params,
|
1561
|
+
query_params: query_params,
|
1562
|
+
operation_signing_strategy: operation_signing_strategy,
|
1563
|
+
body: post_body,
|
1564
|
+
return_type: 'Array<OCI::Database::Models::PatchHistoryEntrySummary>'
|
1565
|
+
)
|
1566
|
+
end
|
1567
|
+
# rubocop:enable Metrics/BlockLength
|
1397
1568
|
end
|
1398
1569
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1399
1570
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1408,6 +1579,8 @@ module OCI
|
|
1408
1579
|
#
|
1409
1580
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1410
1581
|
# @param [Hash] opts the optional parameters
|
1582
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1583
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1411
1584
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1412
1585
|
# @option opts [String] :page The pagination token to continue listing from.
|
1413
1586
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::PatchSummary PatchSummary}>
|
@@ -1432,16 +1605,20 @@ module OCI
|
|
1432
1605
|
|
1433
1606
|
post_body = nil
|
1434
1607
|
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1608
|
+
# rubocop:disable Metrics/BlockLength
|
1609
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_system_patches') do
|
1610
|
+
@api_client.call_api(
|
1611
|
+
:GET,
|
1612
|
+
path,
|
1613
|
+
endpoint,
|
1614
|
+
header_params: header_params,
|
1615
|
+
query_params: query_params,
|
1616
|
+
operation_signing_strategy: operation_signing_strategy,
|
1617
|
+
body: post_body,
|
1618
|
+
return_type: 'Array<OCI::Database::Models::PatchSummary>'
|
1619
|
+
)
|
1620
|
+
end
|
1621
|
+
# rubocop:enable Metrics/BlockLength
|
1445
1622
|
end
|
1446
1623
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1447
1624
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1456,6 +1633,8 @@ module OCI
|
|
1456
1633
|
# @param [String] availability_domain The name of the Availability Domain.
|
1457
1634
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1458
1635
|
# @param [Hash] opts the optional parameters
|
1636
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1637
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1459
1638
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1460
1639
|
# @option opts [String] :page The pagination token to continue listing from.
|
1461
1640
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbSystemShapeSummary DbSystemShapeSummary}>
|
@@ -1482,16 +1661,20 @@ module OCI
|
|
1482
1661
|
|
1483
1662
|
post_body = nil
|
1484
1663
|
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1664
|
+
# rubocop:disable Metrics/BlockLength
|
1665
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_system_shapes') do
|
1666
|
+
@api_client.call_api(
|
1667
|
+
:GET,
|
1668
|
+
path,
|
1669
|
+
endpoint,
|
1670
|
+
header_params: header_params,
|
1671
|
+
query_params: query_params,
|
1672
|
+
operation_signing_strategy: operation_signing_strategy,
|
1673
|
+
body: post_body,
|
1674
|
+
return_type: 'Array<OCI::Database::Models::DbSystemShapeSummary>'
|
1675
|
+
)
|
1676
|
+
end
|
1677
|
+
# rubocop:enable Metrics/BlockLength
|
1495
1678
|
end
|
1496
1679
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1497
1680
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1507,6 +1690,8 @@ module OCI
|
|
1507
1690
|
#
|
1508
1691
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1509
1692
|
# @param [Hash] opts the optional parameters
|
1693
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1694
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1510
1695
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1511
1696
|
# @option opts [String] :page The pagination token to continue listing from.
|
1512
1697
|
# @option opts [String] :backup_id The OCID of the backup. Specify a backupId to list only the DB Systems that support creating a database using this backup in this compartment.
|
@@ -1533,16 +1718,20 @@ module OCI
|
|
1533
1718
|
|
1534
1719
|
post_body = nil
|
1535
1720
|
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1721
|
+
# rubocop:disable Metrics/BlockLength
|
1722
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_systems') do
|
1723
|
+
@api_client.call_api(
|
1724
|
+
:GET,
|
1725
|
+
path,
|
1726
|
+
endpoint,
|
1727
|
+
header_params: header_params,
|
1728
|
+
query_params: query_params,
|
1729
|
+
operation_signing_strategy: operation_signing_strategy,
|
1730
|
+
body: post_body,
|
1731
|
+
return_type: 'Array<OCI::Database::Models::DbSystemSummary>'
|
1732
|
+
)
|
1733
|
+
end
|
1734
|
+
# rubocop:enable Metrics/BlockLength
|
1546
1735
|
end
|
1547
1736
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1548
1737
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1556,6 +1745,8 @@ module OCI
|
|
1556
1745
|
# Gets a list of supported Oracle database versions.
|
1557
1746
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1558
1747
|
# @param [Hash] opts the optional parameters
|
1748
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1749
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1559
1750
|
# @option opts [Integer] :limit The maximum number of items to return.
|
1560
1751
|
# @option opts [String] :page The pagination token to continue listing from.
|
1561
1752
|
# @option opts [String] :db_system_shape If provided, filters the results to the set of database versions which are supported for the given shape.
|
@@ -1584,16 +1775,20 @@ module OCI
|
|
1584
1775
|
|
1585
1776
|
post_body = nil
|
1586
1777
|
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1778
|
+
# rubocop:disable Metrics/BlockLength
|
1779
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_versions') do
|
1780
|
+
@api_client.call_api(
|
1781
|
+
:GET,
|
1782
|
+
path,
|
1783
|
+
endpoint,
|
1784
|
+
header_params: header_params,
|
1785
|
+
query_params: query_params,
|
1786
|
+
operation_signing_strategy: operation_signing_strategy,
|
1787
|
+
body: post_body,
|
1788
|
+
return_type: 'Array<OCI::Database::Models::DbVersionSummary>'
|
1789
|
+
)
|
1790
|
+
end
|
1791
|
+
# rubocop:enable Metrics/BlockLength
|
1597
1792
|
end
|
1598
1793
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1599
1794
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1610,6 +1805,8 @@ module OCI
|
|
1610
1805
|
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1611
1806
|
# @param [OCI::Database::Models::ReinstateDataGuardAssociationDetails] reinstate_data_guard_association_details A request to reinstate a database in a standby role.
|
1612
1807
|
# @param [Hash] opts the optional parameters
|
1808
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1809
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1613
1810
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1614
1811
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1615
1812
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1638,16 +1835,20 @@ module OCI
|
|
1638
1835
|
|
1639
1836
|
post_body = @api_client.object_to_http_body(reinstate_data_guard_association_details)
|
1640
1837
|
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1838
|
+
# rubocop:disable Metrics/BlockLength
|
1839
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#reinstate_data_guard_association') do
|
1840
|
+
@api_client.call_api(
|
1841
|
+
:POST,
|
1842
|
+
path,
|
1843
|
+
endpoint,
|
1844
|
+
header_params: header_params,
|
1845
|
+
query_params: query_params,
|
1846
|
+
operation_signing_strategy: operation_signing_strategy,
|
1847
|
+
body: post_body,
|
1848
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
1849
|
+
)
|
1850
|
+
end
|
1851
|
+
# rubocop:enable Metrics/BlockLength
|
1651
1852
|
end
|
1652
1853
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1653
1854
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1663,6 +1864,8 @@ module OCI
|
|
1663
1864
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1664
1865
|
# @param [OCI::Database::Models::RestoreDatabaseDetails] restore_database_details Request to perform database restore.
|
1665
1866
|
# @param [Hash] opts the optional parameters
|
1867
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1868
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1666
1869
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1667
1870
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1668
1871
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1689,16 +1892,20 @@ module OCI
|
|
1689
1892
|
|
1690
1893
|
post_body = @api_client.object_to_http_body(restore_database_details)
|
1691
1894
|
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1895
|
+
# rubocop:disable Metrics/BlockLength
|
1896
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#restore_database') do
|
1897
|
+
@api_client.call_api(
|
1898
|
+
:POST,
|
1899
|
+
path,
|
1900
|
+
endpoint,
|
1901
|
+
header_params: header_params,
|
1902
|
+
query_params: query_params,
|
1903
|
+
operation_signing_strategy: operation_signing_strategy,
|
1904
|
+
body: post_body,
|
1905
|
+
return_type: 'OCI::Database::Models::Database'
|
1906
|
+
)
|
1907
|
+
end
|
1908
|
+
# rubocop:enable Metrics/BlockLength
|
1702
1909
|
end
|
1703
1910
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1704
1911
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1718,6 +1925,8 @@ module OCI
|
|
1718
1925
|
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1719
1926
|
# @param [OCI::Database::Models::SwitchoverDataGuardAssociationDetails] switchover_data_guard_association_details Request to swtichover a primary to a standby.
|
1720
1927
|
# @param [Hash] opts the optional parameters
|
1928
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1929
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1721
1930
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1722
1931
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1723
1932
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1746,16 +1955,20 @@ module OCI
|
|
1746
1955
|
|
1747
1956
|
post_body = @api_client.object_to_http_body(switchover_data_guard_association_details)
|
1748
1957
|
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1958
|
+
# rubocop:disable Metrics/BlockLength
|
1959
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#switchover_data_guard_association') do
|
1960
|
+
@api_client.call_api(
|
1961
|
+
:POST,
|
1962
|
+
path,
|
1963
|
+
endpoint,
|
1964
|
+
header_params: header_params,
|
1965
|
+
query_params: query_params,
|
1966
|
+
operation_signing_strategy: operation_signing_strategy,
|
1967
|
+
body: post_body,
|
1968
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
1969
|
+
)
|
1970
|
+
end
|
1971
|
+
# rubocop:enable Metrics/BlockLength
|
1759
1972
|
end
|
1760
1973
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1761
1974
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1769,6 +1982,8 @@ module OCI
|
|
1769
1982
|
# Terminates a DB System and permanently deletes it and any databases running on it, and any storage volumes attached to it. The database data is local to the DB System and will be lost when the system is terminated. Oracle recommends that you back up any data in the DB System prior to terminating it.
|
1770
1983
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1771
1984
|
# @param [Hash] opts the optional parameters
|
1985
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1986
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1772
1987
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1773
1988
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1774
1989
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1794,15 +2009,19 @@ module OCI
|
|
1794
2009
|
|
1795
2010
|
post_body = nil
|
1796
2011
|
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
2012
|
+
# rubocop:disable Metrics/BlockLength
|
2013
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#terminate_db_system') do
|
2014
|
+
@api_client.call_api(
|
2015
|
+
:DELETE,
|
2016
|
+
path,
|
2017
|
+
endpoint,
|
2018
|
+
header_params: header_params,
|
2019
|
+
query_params: query_params,
|
2020
|
+
operation_signing_strategy: operation_signing_strategy,
|
2021
|
+
body: post_body
|
2022
|
+
)
|
2023
|
+
end
|
2024
|
+
# rubocop:enable Metrics/BlockLength
|
1806
2025
|
end
|
1807
2026
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1808
2027
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1818,6 +2037,8 @@ module OCI
|
|
1818
2037
|
# @param [String] database_id The database [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1819
2038
|
# @param [OCI::Database::Models::UpdateDatabaseDetails] update_database_details Request to perform database update.
|
1820
2039
|
# @param [Hash] opts the optional parameters
|
2040
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2041
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1821
2042
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1822
2043
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1823
2044
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1844,16 +2065,20 @@ module OCI
|
|
1844
2065
|
|
1845
2066
|
post_body = @api_client.object_to_http_body(update_database_details)
|
1846
2067
|
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
2068
|
+
# rubocop:disable Metrics/BlockLength
|
2069
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#update_database') do
|
2070
|
+
@api_client.call_api(
|
2071
|
+
:PUT,
|
2072
|
+
path,
|
2073
|
+
endpoint,
|
2074
|
+
header_params: header_params,
|
2075
|
+
query_params: query_params,
|
2076
|
+
operation_signing_strategy: operation_signing_strategy,
|
2077
|
+
body: post_body,
|
2078
|
+
return_type: 'OCI::Database::Models::Database'
|
2079
|
+
)
|
2080
|
+
end
|
2081
|
+
# rubocop:enable Metrics/BlockLength
|
1857
2082
|
end
|
1858
2083
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1859
2084
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1868,6 +2093,8 @@ module OCI
|
|
1868
2093
|
# @param [String] db_home_id The database home [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1869
2094
|
# @param [OCI::Database::Models::UpdateDbHomeDetails] update_db_home_details Request to update the properties of a DB Home.
|
1870
2095
|
# @param [Hash] opts the optional parameters
|
2096
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2097
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1871
2098
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1872
2099
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1873
2100
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1894,16 +2121,20 @@ module OCI
|
|
1894
2121
|
|
1895
2122
|
post_body = @api_client.object_to_http_body(update_db_home_details)
|
1896
2123
|
|
1897
|
-
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
2124
|
+
# rubocop:disable Metrics/BlockLength
|
2125
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#update_db_home') do
|
2126
|
+
@api_client.call_api(
|
2127
|
+
:PUT,
|
2128
|
+
path,
|
2129
|
+
endpoint,
|
2130
|
+
header_params: header_params,
|
2131
|
+
query_params: query_params,
|
2132
|
+
operation_signing_strategy: operation_signing_strategy,
|
2133
|
+
body: post_body,
|
2134
|
+
return_type: 'OCI::Database::Models::DbHome'
|
2135
|
+
)
|
2136
|
+
end
|
2137
|
+
# rubocop:enable Metrics/BlockLength
|
1907
2138
|
end
|
1908
2139
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1909
2140
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1918,6 +2149,8 @@ module OCI
|
|
1918
2149
|
# @param [String] db_system_id The DB System [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1919
2150
|
# @param [OCI::Database::Models::UpdateDbSystemDetails] update_db_system_details Request to update the properties of a DB System.
|
1920
2151
|
# @param [Hash] opts the optional parameters
|
2152
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2153
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1921
2154
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1922
2155
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1923
2156
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1944,20 +2177,31 @@ module OCI
|
|
1944
2177
|
|
1945
2178
|
post_body = @api_client.object_to_http_body(update_db_system_details)
|
1946
2179
|
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
2180
|
+
# rubocop:disable Metrics/BlockLength
|
2181
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#update_db_system') do
|
2182
|
+
@api_client.call_api(
|
2183
|
+
:PUT,
|
2184
|
+
path,
|
2185
|
+
endpoint,
|
2186
|
+
header_params: header_params,
|
2187
|
+
query_params: query_params,
|
2188
|
+
operation_signing_strategy: operation_signing_strategy,
|
2189
|
+
body: post_body,
|
2190
|
+
return_type: 'OCI::Database::Models::DbSystem'
|
2191
|
+
)
|
2192
|
+
end
|
2193
|
+
# rubocop:enable Metrics/BlockLength
|
1957
2194
|
end
|
1958
2195
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1959
2196
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1960
2197
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2198
|
+
|
2199
|
+
private
|
2200
|
+
|
2201
|
+
def applicable_retry_config(opts = {})
|
2202
|
+
return @retry_config unless opts.key?(:retry_config)
|
2203
|
+
opts[:retry_config]
|
2204
|
+
end
|
1961
2205
|
end
|
1962
2206
|
end
|
1963
2207
|
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|