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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37573a9ca10b5391667b82d4ea82e579a1a895a3
|
4
|
+
data.tar.gz: 601a533872b26b89fc408e3c7822edafd5b1decf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75e03fd60ed4a3cd5bd31a0e71d2a4e38c18cdbaa61da2913a474c19ea3ea8a11c101e920e989b6f31016e69080c94c2cb32790aaa531bdbb093fdcd5340b430
|
7
|
+
data.tar.gz: 434a7e35aed3a027bd819dc73a57c5e1a7a6696ddadffa847f41c9607c50bd8719f1ba5d3507cbb56054a984b3f18c9435931a2792d045256915e1daf7c37dbf
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Oracle Cloud Infrastructure Ruby SDK
|
2
|
-
**Version 2.1.
|
2
|
+
**Version 2.1.2**
|
3
3
|
|
4
4
|
This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
|
5
5
|
|
@@ -103,6 +103,12 @@ The following table provides details about some of the attributes of the SDK.
|
|
103
103
|
</p>
|
104
104
|
</td>
|
105
105
|
</tr>
|
106
|
+
<tr>
|
107
|
+
<td>Retries</td>
|
108
|
+
<td>
|
109
|
+
By default the Ruby SDK will not retry failed service calls, however the SDK supports specifying per client and per operation retry configurations. An example of using retries can be found in the examples folder of the Ruby SDK <a href="https://docs.us-phoenix-1.oraclecloud.com/tools/ruby/latest/download/oci-ruby-sdk.zip">download</a>
|
110
|
+
</td>
|
111
|
+
</tr>
|
106
112
|
</tbody>
|
107
113
|
</table>
|
108
114
|
|
@@ -520,6 +526,17 @@ The {OCI::Signer} can be used to sign arbitrary requests to the Oracle Cloud Inf
|
|
520
526
|
|
521
527
|
puts result.body
|
522
528
|
|
529
|
+
|
530
|
+
## Documentation
|
531
|
+
|
532
|
+
Full documentation, including prerequisites and installation and configuration instructions, can be found [here](https://docs.us-phoenix-1.oraclecloud.com/Content/API/SDKDocs/rubysdk.htm).
|
533
|
+
|
534
|
+
API reference can be found [here](https://docs.us-phoenix-1.oraclecloud.com/tools/ruby/latest/frames.html).
|
535
|
+
|
536
|
+
## Changes
|
537
|
+
|
538
|
+
See [CHANGELOG](CHANGELOG.md).
|
539
|
+
|
523
540
|
## Notifications
|
524
541
|
To be notified when a new version of the Ruby SDK is released, subscribe to the [Atom feed](https://rubygems.org/gems/oci/versions.atom).
|
525
542
|
|
@@ -529,3 +546,11 @@ Ways to get in touch:
|
|
529
546
|
* [Stack Overflow](https://stackoverflow.com/): Please use the [oracle-cloud-infrastructure](https://stackoverflow.com/questions/tagged/oracle-cloud-infrastructure) and [oci-ruby-sdk](https://stackoverflow.com/questions/tagged/oci-ruby-sdk) tags in your post
|
530
547
|
* [Developer Tools section](https://community.oracle.com/community/cloud_computing/bare-metal/content?filterID=contentstatus%5Bpublished%5D~category%5Bdeveloper-tools%5D&filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bthread%5D) of the Oracle Cloud forums
|
531
548
|
* [My Oracle Support](https://support.oracle.com)
|
549
|
+
|
550
|
+
## License
|
551
|
+
|
552
|
+
Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
553
|
+
|
554
|
+
This SDK and sample is dual licensed under the Universal Permissive License 1.0 and the Apache License 2.0.
|
555
|
+
|
556
|
+
See [LICENSE](LICENSE.txt) for more details.
|
data/lib/oci.rb
CHANGED
@@ -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
|
# Get the configuration
|
94
104
|
# @param [String] compartment_id ID of the root compartment (tenancy)
|
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
|
# @return [Response] A Response object with data of type {OCI::Audit::Models::Configuration Configuration}
|
97
109
|
def get_configuration(compartment_id, opts = {})
|
98
110
|
logger.debug 'Calling operation AuditClient#get_configuration.' if logger
|
@@ -113,16 +125,20 @@ module OCI
|
|
113
125
|
|
114
126
|
post_body = nil
|
115
127
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
128
|
+
# rubocop:disable Metrics/BlockLength
|
129
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AuditClient#get_configuration') do
|
130
|
+
@api_client.call_api(
|
131
|
+
:GET,
|
132
|
+
path,
|
133
|
+
endpoint,
|
134
|
+
header_params: header_params,
|
135
|
+
query_params: query_params,
|
136
|
+
operation_signing_strategy: operation_signing_strategy,
|
137
|
+
body: post_body,
|
138
|
+
return_type: 'OCI::Audit::Models::Configuration'
|
139
|
+
)
|
140
|
+
end
|
141
|
+
# rubocop:enable Metrics/BlockLength
|
126
142
|
end
|
127
143
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
128
144
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -145,6 +161,8 @@ module OCI
|
|
145
161
|
# You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`.
|
146
162
|
#
|
147
163
|
# @param [Hash] opts the optional parameters
|
164
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
165
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
148
166
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous list query.
|
149
167
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
|
150
168
|
# If you need to contact Oracle about a particular request, please provide the request ID.
|
@@ -175,16 +193,20 @@ module OCI
|
|
175
193
|
|
176
194
|
post_body = nil
|
177
195
|
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
196
|
+
# rubocop:disable Metrics/BlockLength
|
197
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AuditClient#list_events') do
|
198
|
+
@api_client.call_api(
|
199
|
+
:GET,
|
200
|
+
path,
|
201
|
+
endpoint,
|
202
|
+
header_params: header_params,
|
203
|
+
query_params: query_params,
|
204
|
+
operation_signing_strategy: operation_signing_strategy,
|
205
|
+
body: post_body,
|
206
|
+
return_type: 'Array<OCI::Audit::Models::AuditEvent>'
|
207
|
+
)
|
208
|
+
end
|
209
|
+
# rubocop:enable Metrics/BlockLength
|
188
210
|
end
|
189
211
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
190
212
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -200,6 +222,8 @@ module OCI
|
|
200
222
|
# @param [String] compartment_id ID of the root compartment (tenancy)
|
201
223
|
# @param [OCI::Audit::Models::UpdateConfigurationDetails] update_configuration_details The configuration properties
|
202
224
|
# @param [Hash] opts the optional parameters
|
225
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
226
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
203
227
|
# @return [Response] A Response object with data of type nil
|
204
228
|
def update_configuration(compartment_id, update_configuration_details, opts = {})
|
205
229
|
logger.debug 'Calling operation AuditClient#update_configuration.' if logger
|
@@ -221,20 +245,31 @@ module OCI
|
|
221
245
|
|
222
246
|
post_body = @api_client.object_to_http_body(update_configuration_details)
|
223
247
|
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
248
|
+
# rubocop:disable Metrics/BlockLength
|
249
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AuditClient#update_configuration') do
|
250
|
+
@api_client.call_api(
|
251
|
+
:PUT,
|
252
|
+
path,
|
253
|
+
endpoint,
|
254
|
+
header_params: header_params,
|
255
|
+
query_params: query_params,
|
256
|
+
operation_signing_strategy: operation_signing_strategy,
|
257
|
+
body: post_body
|
258
|
+
)
|
259
|
+
end
|
260
|
+
# rubocop:enable Metrics/BlockLength
|
233
261
|
end
|
234
262
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
235
263
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
236
264
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
237
265
|
# rubocop:enable Lint/UnusedMethodArgument
|
266
|
+
|
267
|
+
private
|
268
|
+
|
269
|
+
def applicable_retry_config(opts = {})
|
270
|
+
return @retry_config unless opts.key?(:retry_config)
|
271
|
+
opts[:retry_config]
|
272
|
+
end
|
238
273
|
end
|
239
274
|
end
|
240
275
|
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -18,6 +18,12 @@ module OCI
|
|
18
18
|
# @return [String]
|
19
19
|
attr_accessor :event_id
|
20
20
|
|
21
|
+
# The name of the event.
|
22
|
+
# Example: `LaunchInstance`
|
23
|
+
#
|
24
|
+
# @return [String]
|
25
|
+
attr_accessor :event_name
|
26
|
+
|
21
27
|
# The source of the event.
|
22
28
|
# @return [String]
|
23
29
|
attr_accessor :event_source
|
@@ -89,6 +95,7 @@ module OCI
|
|
89
95
|
'tenant_id': :'tenantId',
|
90
96
|
'compartment_id': :'compartmentId',
|
91
97
|
'event_id': :'eventId',
|
98
|
+
'event_name': :'eventName',
|
92
99
|
'event_source': :'eventSource',
|
93
100
|
'event_type': :'eventType',
|
94
101
|
'event_time': :'eventTime',
|
@@ -116,6 +123,7 @@ module OCI
|
|
116
123
|
'tenant_id': :'String',
|
117
124
|
'compartment_id': :'String',
|
118
125
|
'event_id': :'String',
|
126
|
+
'event_name': :'String',
|
119
127
|
'event_source': :'String',
|
120
128
|
'event_type': :'String',
|
121
129
|
'event_time': :'DateTime',
|
@@ -145,6 +153,7 @@ module OCI
|
|
145
153
|
# @option attributes [String] :tenant_id The value to assign to the {#tenant_id} property
|
146
154
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
147
155
|
# @option attributes [String] :event_id The value to assign to the {#event_id} property
|
156
|
+
# @option attributes [String] :event_name The value to assign to the {#event_name} property
|
148
157
|
# @option attributes [String] :event_source The value to assign to the {#event_source} property
|
149
158
|
# @option attributes [String] :event_type The value to assign to the {#event_type} property
|
150
159
|
# @option attributes [DateTime] :event_time The value to assign to the {#event_time} property
|
@@ -185,6 +194,12 @@ module OCI
|
|
185
194
|
|
186
195
|
self.event_id = attributes[:'event_id'] if attributes[:'event_id']
|
187
196
|
|
197
|
+
self.event_name = attributes[:'eventName'] if attributes[:'eventName']
|
198
|
+
|
199
|
+
raise 'You cannot provide both :eventName and :event_name' if attributes.key?(:'eventName') && attributes.key?(:'event_name')
|
200
|
+
|
201
|
+
self.event_name = attributes[:'event_name'] if attributes[:'event_name']
|
202
|
+
|
188
203
|
self.event_source = attributes[:'eventSource'] if attributes[:'eventSource']
|
189
204
|
|
190
205
|
raise 'You cannot provide both :eventSource and :event_source' if attributes.key?(:'eventSource') && attributes.key?(:'event_source')
|
@@ -295,6 +310,7 @@ module OCI
|
|
295
310
|
tenant_id == other.tenant_id &&
|
296
311
|
compartment_id == other.compartment_id &&
|
297
312
|
event_id == other.event_id &&
|
313
|
+
event_name == other.event_name &&
|
298
314
|
event_source == other.event_source &&
|
299
315
|
event_type == other.event_type &&
|
300
316
|
event_time == other.event_time &&
|
@@ -326,7 +342,7 @@ module OCI
|
|
326
342
|
# Calculates hash code according to all attributes.
|
327
343
|
# @return [Fixnum] Hash code
|
328
344
|
def hash
|
329
|
-
[tenant_id, compartment_id, event_id, event_source, event_type, event_time, principal_id, credential_id, request_action, request_id, request_agent, request_headers, request_origin, request_parameters, request_resource, response_headers, response_status, response_time, response_payload].hash
|
345
|
+
[tenant_id, compartment_id, event_id, event_name, event_source, event_type, event_time, principal_id, credential_id, request_action, request_id, request_agent, request_headers, request_origin, request_parameters, request_resource, response_headers, response_status, response_time, response_payload].hash
|
330
346
|
end
|
331
347
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
332
348
|
|
@@ -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)
|
@@ -106,6 +116,8 @@ module OCI
|
|
106
116
|
#
|
107
117
|
# @param [OCI::Core::Models::CreateVolumeDetails] create_volume_details Request to create a new volume.
|
108
118
|
# @param [Hash] opts the optional parameters
|
119
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
120
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
109
121
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
110
122
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
111
123
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
@@ -129,19 +141,24 @@ module OCI
|
|
129
141
|
header_params['accept'] = 'application/json'
|
130
142
|
header_params['content-type'] = 'application/json'
|
131
143
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
144
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
132
145
|
|
133
146
|
post_body = @api_client.object_to_http_body(create_volume_details)
|
134
147
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
148
|
+
# rubocop:disable Metrics/BlockLength
|
149
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#create_volume') do
|
150
|
+
@api_client.call_api(
|
151
|
+
:POST,
|
152
|
+
path,
|
153
|
+
endpoint,
|
154
|
+
header_params: header_params,
|
155
|
+
query_params: query_params,
|
156
|
+
operation_signing_strategy: operation_signing_strategy,
|
157
|
+
body: post_body,
|
158
|
+
return_type: 'OCI::Core::Models::Volume'
|
159
|
+
)
|
160
|
+
end
|
161
|
+
# rubocop:enable Metrics/BlockLength
|
145
162
|
end
|
146
163
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
147
164
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -161,6 +178,8 @@ module OCI
|
|
161
178
|
#
|
162
179
|
# @param [OCI::Core::Models::CreateVolumeBackupDetails] create_volume_backup_details Request to create a new backup of given volume.
|
163
180
|
# @param [Hash] opts the optional parameters
|
181
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
182
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
164
183
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
165
184
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
166
185
|
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
@@ -184,19 +203,24 @@ module OCI
|
|
184
203
|
header_params['accept'] = 'application/json'
|
185
204
|
header_params['content-type'] = 'application/json'
|
186
205
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
206
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
187
207
|
|
188
208
|
post_body = @api_client.object_to_http_body(create_volume_backup_details)
|
189
209
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
210
|
+
# rubocop:disable Metrics/BlockLength
|
211
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#create_volume_backup') do
|
212
|
+
@api_client.call_api(
|
213
|
+
:POST,
|
214
|
+
path,
|
215
|
+
endpoint,
|
216
|
+
header_params: header_params,
|
217
|
+
query_params: query_params,
|
218
|
+
operation_signing_strategy: operation_signing_strategy,
|
219
|
+
body: post_body,
|
220
|
+
return_type: 'OCI::Core::Models::VolumeBackup'
|
221
|
+
)
|
222
|
+
end
|
223
|
+
# rubocop:enable Metrics/BlockLength
|
200
224
|
end
|
201
225
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
202
226
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -214,6 +238,8 @@ module OCI
|
|
214
238
|
#
|
215
239
|
# @param [OCI::Core::Models::CreateVolumeBackupPolicyAssignmentDetails] create_volume_backup_policy_assignment_details Request to assign a specified policy to a particular asset.
|
216
240
|
# @param [Hash] opts the optional parameters
|
241
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
242
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
217
243
|
# @return [Response] A Response object with data of type {OCI::Core::Models::VolumeBackupPolicyAssignment VolumeBackupPolicyAssignment}
|
218
244
|
def create_volume_backup_policy_assignment(create_volume_backup_policy_assignment_details, opts = {})
|
219
245
|
logger.debug 'Calling operation BlockstorageClient#create_volume_backup_policy_assignment.' if logger
|
@@ -233,16 +259,20 @@ module OCI
|
|
233
259
|
|
234
260
|
post_body = @api_client.object_to_http_body(create_volume_backup_policy_assignment_details)
|
235
261
|
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
262
|
+
# rubocop:disable Metrics/BlockLength
|
263
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#create_volume_backup_policy_assignment') do
|
264
|
+
@api_client.call_api(
|
265
|
+
:POST,
|
266
|
+
path,
|
267
|
+
endpoint,
|
268
|
+
header_params: header_params,
|
269
|
+
query_params: query_params,
|
270
|
+
operation_signing_strategy: operation_signing_strategy,
|
271
|
+
body: post_body,
|
272
|
+
return_type: 'OCI::Core::Models::VolumeBackupPolicyAssignment'
|
273
|
+
)
|
274
|
+
end
|
275
|
+
# rubocop:enable Metrics/BlockLength
|
246
276
|
end
|
247
277
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
248
278
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -261,6 +291,8 @@ module OCI
|
|
261
291
|
#
|
262
292
|
# @param [String] boot_volume_id The OCID of the boot volume.
|
263
293
|
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
295
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
264
296
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
265
297
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
266
298
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -286,15 +318,19 @@ module OCI
|
|
286
318
|
|
287
319
|
post_body = nil
|
288
320
|
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
321
|
+
# rubocop:disable Metrics/BlockLength
|
322
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#delete_boot_volume') do
|
323
|
+
@api_client.call_api(
|
324
|
+
:DELETE,
|
325
|
+
path,
|
326
|
+
endpoint,
|
327
|
+
header_params: header_params,
|
328
|
+
query_params: query_params,
|
329
|
+
operation_signing_strategy: operation_signing_strategy,
|
330
|
+
body: post_body
|
331
|
+
)
|
332
|
+
end
|
333
|
+
# rubocop:enable Metrics/BlockLength
|
298
334
|
end
|
299
335
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
300
336
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -312,6 +348,8 @@ module OCI
|
|
312
348
|
#
|
313
349
|
# @param [String] volume_id The OCID of the volume.
|
314
350
|
# @param [Hash] opts the optional parameters
|
351
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
352
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
315
353
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
316
354
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
317
355
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -337,15 +375,19 @@ module OCI
|
|
337
375
|
|
338
376
|
post_body = nil
|
339
377
|
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
378
|
+
# rubocop:disable Metrics/BlockLength
|
379
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#delete_volume') do
|
380
|
+
@api_client.call_api(
|
381
|
+
:DELETE,
|
382
|
+
path,
|
383
|
+
endpoint,
|
384
|
+
header_params: header_params,
|
385
|
+
query_params: query_params,
|
386
|
+
operation_signing_strategy: operation_signing_strategy,
|
387
|
+
body: post_body
|
388
|
+
)
|
389
|
+
end
|
390
|
+
# rubocop:enable Metrics/BlockLength
|
349
391
|
end
|
350
392
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
351
393
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -359,6 +401,8 @@ module OCI
|
|
359
401
|
# Deletes a volume backup.
|
360
402
|
# @param [String] volume_backup_id The OCID of the volume backup.
|
361
403
|
# @param [Hash] opts the optional parameters
|
404
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
405
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
362
406
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
363
407
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
364
408
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -384,15 +428,19 @@ module OCI
|
|
384
428
|
|
385
429
|
post_body = nil
|
386
430
|
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
431
|
+
# rubocop:disable Metrics/BlockLength
|
432
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#delete_volume_backup') do
|
433
|
+
@api_client.call_api(
|
434
|
+
:DELETE,
|
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
|
+
)
|
442
|
+
end
|
443
|
+
# rubocop:enable Metrics/BlockLength
|
396
444
|
end
|
397
445
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
398
446
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -406,6 +454,8 @@ module OCI
|
|
406
454
|
# Deletes a volume backup policy assignment (i.e. unassigns the policy from an asset).
|
407
455
|
# @param [String] policy_assignment_id The OCID of the volume backup policy assignment.
|
408
456
|
# @param [Hash] opts the optional parameters
|
457
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
458
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
409
459
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
410
460
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
411
461
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -431,15 +481,19 @@ module OCI
|
|
431
481
|
|
432
482
|
post_body = nil
|
433
483
|
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
484
|
+
# rubocop:disable Metrics/BlockLength
|
485
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#delete_volume_backup_policy_assignment') do
|
486
|
+
@api_client.call_api(
|
487
|
+
:DELETE,
|
488
|
+
path,
|
489
|
+
endpoint,
|
490
|
+
header_params: header_params,
|
491
|
+
query_params: query_params,
|
492
|
+
operation_signing_strategy: operation_signing_strategy,
|
493
|
+
body: post_body
|
494
|
+
)
|
495
|
+
end
|
496
|
+
# rubocop:enable Metrics/BlockLength
|
443
497
|
end
|
444
498
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
445
499
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -454,6 +508,8 @@ module OCI
|
|
454
508
|
# Gets information for the specified boot volume.
|
455
509
|
# @param [String] boot_volume_id The OCID of the boot volume.
|
456
510
|
# @param [Hash] opts the optional parameters
|
511
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
512
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
457
513
|
# @return [Response] A Response object with data of type {OCI::Core::Models::BootVolume BootVolume}
|
458
514
|
def get_boot_volume(boot_volume_id, opts = {})
|
459
515
|
logger.debug 'Calling operation BlockstorageClient#get_boot_volume.' if logger
|
@@ -474,16 +530,20 @@ module OCI
|
|
474
530
|
|
475
531
|
post_body = nil
|
476
532
|
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
533
|
+
# rubocop:disable Metrics/BlockLength
|
534
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#get_boot_volume') do
|
535
|
+
@api_client.call_api(
|
536
|
+
:GET,
|
537
|
+
path,
|
538
|
+
endpoint,
|
539
|
+
header_params: header_params,
|
540
|
+
query_params: query_params,
|
541
|
+
operation_signing_strategy: operation_signing_strategy,
|
542
|
+
body: post_body,
|
543
|
+
return_type: 'OCI::Core::Models::BootVolume'
|
544
|
+
)
|
545
|
+
end
|
546
|
+
# rubocop:enable Metrics/BlockLength
|
487
547
|
end
|
488
548
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
489
549
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -499,6 +559,8 @@ module OCI
|
|
499
559
|
# Gets information for the specified volume.
|
500
560
|
# @param [String] volume_id The OCID of the volume.
|
501
561
|
# @param [Hash] opts the optional parameters
|
562
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
563
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
502
564
|
# @return [Response] A Response object with data of type {OCI::Core::Models::Volume Volume}
|
503
565
|
def get_volume(volume_id, opts = {})
|
504
566
|
logger.debug 'Calling operation BlockstorageClient#get_volume.' if logger
|
@@ -519,16 +581,20 @@ module OCI
|
|
519
581
|
|
520
582
|
post_body = nil
|
521
583
|
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
584
|
+
# rubocop:disable Metrics/BlockLength
|
585
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#get_volume') do
|
586
|
+
@api_client.call_api(
|
587
|
+
:GET,
|
588
|
+
path,
|
589
|
+
endpoint,
|
590
|
+
header_params: header_params,
|
591
|
+
query_params: query_params,
|
592
|
+
operation_signing_strategy: operation_signing_strategy,
|
593
|
+
body: post_body,
|
594
|
+
return_type: 'OCI::Core::Models::Volume'
|
595
|
+
)
|
596
|
+
end
|
597
|
+
# rubocop:enable Metrics/BlockLength
|
532
598
|
end
|
533
599
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
534
600
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -544,6 +610,8 @@ module OCI
|
|
544
610
|
# Gets information for the specified volume backup.
|
545
611
|
# @param [String] volume_backup_id The OCID of the volume backup.
|
546
612
|
# @param [Hash] opts the optional parameters
|
613
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
614
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
547
615
|
# @return [Response] A Response object with data of type {OCI::Core::Models::VolumeBackup VolumeBackup}
|
548
616
|
def get_volume_backup(volume_backup_id, opts = {})
|
549
617
|
logger.debug 'Calling operation BlockstorageClient#get_volume_backup.' if logger
|
@@ -564,16 +632,20 @@ module OCI
|
|
564
632
|
|
565
633
|
post_body = nil
|
566
634
|
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
635
|
+
# rubocop:disable Metrics/BlockLength
|
636
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#get_volume_backup') do
|
637
|
+
@api_client.call_api(
|
638
|
+
:GET,
|
639
|
+
path,
|
640
|
+
endpoint,
|
641
|
+
header_params: header_params,
|
642
|
+
query_params: query_params,
|
643
|
+
operation_signing_strategy: operation_signing_strategy,
|
644
|
+
body: post_body,
|
645
|
+
return_type: 'OCI::Core::Models::VolumeBackup'
|
646
|
+
)
|
647
|
+
end
|
648
|
+
# rubocop:enable Metrics/BlockLength
|
577
649
|
end
|
578
650
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
579
651
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -589,6 +661,8 @@ module OCI
|
|
589
661
|
# Gets information for the specified volume backup policy.
|
590
662
|
# @param [String] policy_id The OCID of the volume backup policy.
|
591
663
|
# @param [Hash] opts the optional parameters
|
664
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
665
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
592
666
|
# @return [Response] A Response object with data of type {OCI::Core::Models::VolumeBackupPolicy VolumeBackupPolicy}
|
593
667
|
def get_volume_backup_policy(policy_id, opts = {})
|
594
668
|
logger.debug 'Calling operation BlockstorageClient#get_volume_backup_policy.' if logger
|
@@ -609,16 +683,20 @@ module OCI
|
|
609
683
|
|
610
684
|
post_body = nil
|
611
685
|
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
686
|
+
# rubocop:disable Metrics/BlockLength
|
687
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#get_volume_backup_policy') do
|
688
|
+
@api_client.call_api(
|
689
|
+
:GET,
|
690
|
+
path,
|
691
|
+
endpoint,
|
692
|
+
header_params: header_params,
|
693
|
+
query_params: query_params,
|
694
|
+
operation_signing_strategy: operation_signing_strategy,
|
695
|
+
body: post_body,
|
696
|
+
return_type: 'OCI::Core::Models::VolumeBackupPolicy'
|
697
|
+
)
|
698
|
+
end
|
699
|
+
# rubocop:enable Metrics/BlockLength
|
622
700
|
end
|
623
701
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
624
702
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -636,6 +714,8 @@ module OCI
|
|
636
714
|
#
|
637
715
|
# @param [String] asset_id The OCID of an asset (e.g. a volume).
|
638
716
|
# @param [Hash] opts the optional parameters
|
717
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
718
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
639
719
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
640
720
|
#
|
641
721
|
# Example: `500`
|
@@ -664,16 +744,20 @@ module OCI
|
|
664
744
|
|
665
745
|
post_body = nil
|
666
746
|
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
747
|
+
# rubocop:disable Metrics/BlockLength
|
748
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#get_volume_backup_policy_asset_assignment') do
|
749
|
+
@api_client.call_api(
|
750
|
+
:GET,
|
751
|
+
path,
|
752
|
+
endpoint,
|
753
|
+
header_params: header_params,
|
754
|
+
query_params: query_params,
|
755
|
+
operation_signing_strategy: operation_signing_strategy,
|
756
|
+
body: post_body,
|
757
|
+
return_type: 'Array<OCI::Core::Models::VolumeBackupPolicyAssignment>'
|
758
|
+
)
|
759
|
+
end
|
760
|
+
# rubocop:enable Metrics/BlockLength
|
677
761
|
end
|
678
762
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
679
763
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -688,6 +772,8 @@ module OCI
|
|
688
772
|
# Gets information for the specified volume backup policy assignment.
|
689
773
|
# @param [String] policy_assignment_id The OCID of the volume backup policy assignment.
|
690
774
|
# @param [Hash] opts the optional parameters
|
775
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
776
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
691
777
|
# @return [Response] A Response object with data of type {OCI::Core::Models::VolumeBackupPolicyAssignment VolumeBackupPolicyAssignment}
|
692
778
|
def get_volume_backup_policy_assignment(policy_assignment_id, opts = {})
|
693
779
|
logger.debug 'Calling operation BlockstorageClient#get_volume_backup_policy_assignment.' if logger
|
@@ -708,16 +794,20 @@ module OCI
|
|
708
794
|
|
709
795
|
post_body = nil
|
710
796
|
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
797
|
+
# rubocop:disable Metrics/BlockLength
|
798
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#get_volume_backup_policy_assignment') do
|
799
|
+
@api_client.call_api(
|
800
|
+
:GET,
|
801
|
+
path,
|
802
|
+
endpoint,
|
803
|
+
header_params: header_params,
|
804
|
+
query_params: query_params,
|
805
|
+
operation_signing_strategy: operation_signing_strategy,
|
806
|
+
body: post_body,
|
807
|
+
return_type: 'OCI::Core::Models::VolumeBackupPolicyAssignment'
|
808
|
+
)
|
809
|
+
end
|
810
|
+
# rubocop:enable Metrics/BlockLength
|
721
811
|
end
|
722
812
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
723
813
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -737,6 +827,8 @@ module OCI
|
|
737
827
|
#
|
738
828
|
# @param [String] compartment_id The OCID of the compartment.
|
739
829
|
# @param [Hash] opts the optional parameters
|
830
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
831
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
740
832
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
741
833
|
#
|
742
834
|
# Example: `500`
|
@@ -767,16 +859,20 @@ module OCI
|
|
767
859
|
|
768
860
|
post_body = nil
|
769
861
|
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
862
|
+
# rubocop:disable Metrics/BlockLength
|
863
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#list_boot_volumes') do
|
864
|
+
@api_client.call_api(
|
865
|
+
:GET,
|
866
|
+
path,
|
867
|
+
endpoint,
|
868
|
+
header_params: header_params,
|
869
|
+
query_params: query_params,
|
870
|
+
operation_signing_strategy: operation_signing_strategy,
|
871
|
+
body: post_body,
|
872
|
+
return_type: 'Array<OCI::Core::Models::BootVolume>'
|
873
|
+
)
|
874
|
+
end
|
875
|
+
# rubocop:enable Metrics/BlockLength
|
780
876
|
end
|
781
877
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
782
878
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -789,6 +885,8 @@ module OCI
|
|
789
885
|
|
790
886
|
# Lists all volume backup policies available to the caller.
|
791
887
|
# @param [Hash] opts the optional parameters
|
888
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
889
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
792
890
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
793
891
|
#
|
794
892
|
# Example: `500`
|
@@ -815,16 +913,20 @@ module OCI
|
|
815
913
|
|
816
914
|
post_body = nil
|
817
915
|
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
916
|
+
# rubocop:disable Metrics/BlockLength
|
917
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#list_volume_backup_policies') do
|
918
|
+
@api_client.call_api(
|
919
|
+
:GET,
|
920
|
+
path,
|
921
|
+
endpoint,
|
922
|
+
header_params: header_params,
|
923
|
+
query_params: query_params,
|
924
|
+
operation_signing_strategy: operation_signing_strategy,
|
925
|
+
body: post_body,
|
926
|
+
return_type: 'Array<OCI::Core::Models::VolumeBackupPolicy>'
|
927
|
+
)
|
928
|
+
end
|
929
|
+
# rubocop:enable Metrics/BlockLength
|
828
930
|
end
|
829
931
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
830
932
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -839,6 +941,8 @@ module OCI
|
|
839
941
|
#
|
840
942
|
# @param [String] compartment_id The OCID of the compartment.
|
841
943
|
# @param [Hash] opts the optional parameters
|
944
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
945
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
842
946
|
# @option opts [String] :volume_id The OCID of the volume.
|
843
947
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
844
948
|
#
|
@@ -903,16 +1007,20 @@ module OCI
|
|
903
1007
|
|
904
1008
|
post_body = nil
|
905
1009
|
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
1010
|
+
# rubocop:disable Metrics/BlockLength
|
1011
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#list_volume_backups') do
|
1012
|
+
@api_client.call_api(
|
1013
|
+
:GET,
|
1014
|
+
path,
|
1015
|
+
endpoint,
|
1016
|
+
header_params: header_params,
|
1017
|
+
query_params: query_params,
|
1018
|
+
operation_signing_strategy: operation_signing_strategy,
|
1019
|
+
body: post_body,
|
1020
|
+
return_type: 'Array<OCI::Core::Models::VolumeBackup>'
|
1021
|
+
)
|
1022
|
+
end
|
1023
|
+
# rubocop:enable Metrics/BlockLength
|
916
1024
|
end
|
917
1025
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
918
1026
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -927,6 +1035,8 @@ module OCI
|
|
927
1035
|
#
|
928
1036
|
# @param [String] compartment_id The OCID of the compartment.
|
929
1037
|
# @param [Hash] opts the optional parameters
|
1038
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1039
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
930
1040
|
# @option opts [String] :availability_domain The name of the Availability Domain.
|
931
1041
|
#
|
932
1042
|
# Example: `Uocm:PHX-AD-1`
|
@@ -994,16 +1104,20 @@ module OCI
|
|
994
1104
|
|
995
1105
|
post_body = nil
|
996
1106
|
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1107
|
+
# rubocop:disable Metrics/BlockLength
|
1108
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#list_volumes') do
|
1109
|
+
@api_client.call_api(
|
1110
|
+
:GET,
|
1111
|
+
path,
|
1112
|
+
endpoint,
|
1113
|
+
header_params: header_params,
|
1114
|
+
query_params: query_params,
|
1115
|
+
operation_signing_strategy: operation_signing_strategy,
|
1116
|
+
body: post_body,
|
1117
|
+
return_type: 'Array<OCI::Core::Models::Volume>'
|
1118
|
+
)
|
1119
|
+
end
|
1120
|
+
# rubocop:enable Metrics/BlockLength
|
1007
1121
|
end
|
1008
1122
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1009
1123
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1018,6 +1132,8 @@ module OCI
|
|
1018
1132
|
# @param [String] boot_volume_id The OCID of the boot volume.
|
1019
1133
|
# @param [OCI::Core::Models::UpdateBootVolumeDetails] update_boot_volume_details Update boot volume's display name.
|
1020
1134
|
# @param [Hash] opts the optional parameters
|
1135
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1136
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1021
1137
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1022
1138
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1023
1139
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1044,16 +1160,20 @@ module OCI
|
|
1044
1160
|
|
1045
1161
|
post_body = @api_client.object_to_http_body(update_boot_volume_details)
|
1046
1162
|
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1163
|
+
# rubocop:disable Metrics/BlockLength
|
1164
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#update_boot_volume') do
|
1165
|
+
@api_client.call_api(
|
1166
|
+
:PUT,
|
1167
|
+
path,
|
1168
|
+
endpoint,
|
1169
|
+
header_params: header_params,
|
1170
|
+
query_params: query_params,
|
1171
|
+
operation_signing_strategy: operation_signing_strategy,
|
1172
|
+
body: post_body,
|
1173
|
+
return_type: 'OCI::Core::Models::BootVolume'
|
1174
|
+
)
|
1175
|
+
end
|
1176
|
+
# rubocop:enable Metrics/BlockLength
|
1057
1177
|
end
|
1058
1178
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1059
1179
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1070,6 +1190,8 @@ module OCI
|
|
1070
1190
|
# @param [String] volume_id The OCID of the volume.
|
1071
1191
|
# @param [OCI::Core::Models::UpdateVolumeDetails] update_volume_details Update volume's display name. Avoid entering confidential information.
|
1072
1192
|
# @param [Hash] opts the optional parameters
|
1193
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1194
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1073
1195
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1074
1196
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1075
1197
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1096,16 +1218,20 @@ module OCI
|
|
1096
1218
|
|
1097
1219
|
post_body = @api_client.object_to_http_body(update_volume_details)
|
1098
1220
|
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1221
|
+
# rubocop:disable Metrics/BlockLength
|
1222
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#update_volume') do
|
1223
|
+
@api_client.call_api(
|
1224
|
+
:PUT,
|
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: 'OCI::Core::Models::Volume'
|
1232
|
+
)
|
1233
|
+
end
|
1234
|
+
# rubocop:enable Metrics/BlockLength
|
1109
1235
|
end
|
1110
1236
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1111
1237
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
@@ -1122,6 +1248,8 @@ module OCI
|
|
1122
1248
|
# @param [String] volume_backup_id The OCID of the volume backup.
|
1123
1249
|
# @param [OCI::Core::Models::UpdateVolumeBackupDetails] update_volume_backup_details Update volume backup fields
|
1124
1250
|
# @param [Hash] opts the optional parameters
|
1251
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1252
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then then operation will not retry
|
1125
1253
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1126
1254
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1127
1255
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
@@ -1148,20 +1276,31 @@ module OCI
|
|
1148
1276
|
|
1149
1277
|
post_body = @api_client.object_to_http_body(update_volume_backup_details)
|
1150
1278
|
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1279
|
+
# rubocop:disable Metrics/BlockLength
|
1280
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#update_volume_backup') do
|
1281
|
+
@api_client.call_api(
|
1282
|
+
:PUT,
|
1283
|
+
path,
|
1284
|
+
endpoint,
|
1285
|
+
header_params: header_params,
|
1286
|
+
query_params: query_params,
|
1287
|
+
operation_signing_strategy: operation_signing_strategy,
|
1288
|
+
body: post_body,
|
1289
|
+
return_type: 'OCI::Core::Models::VolumeBackup'
|
1290
|
+
)
|
1291
|
+
end
|
1292
|
+
# rubocop:enable Metrics/BlockLength
|
1161
1293
|
end
|
1162
1294
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1163
1295
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1164
1296
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1297
|
+
|
1298
|
+
private
|
1299
|
+
|
1300
|
+
def applicable_retry_config(opts = {})
|
1301
|
+
return @retry_config unless opts.key?(:retry_config)
|
1302
|
+
opts[:retry_config]
|
1303
|
+
end
|
1165
1304
|
end
|
1166
1305
|
end
|
1167
1306
|
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|