oci 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/oci/core/blockstorage_client.rb +412 -13
- data/lib/oci/core/blockstorage_client_composite_operations.rb +158 -0
- data/lib/oci/core/compute_client.rb +6 -7
- data/lib/oci/core/core.rb +13 -0
- data/lib/oci/core/models/boot_volume.rb +68 -1
- data/lib/oci/core/models/boot_volume_backup.rb +435 -0
- data/lib/oci/core/models/boot_volume_source_details.rb +163 -0
- data/lib/oci/core/models/boot_volume_source_from_boot_volume_backup_details.rb +154 -0
- data/lib/oci/core/models/boot_volume_source_from_boot_volume_details.rb +154 -0
- data/lib/oci/core/models/create_boot_volume_backup_details.rb +227 -0
- data/lib/oci/core/models/create_boot_volume_details.rb +250 -0
- data/lib/oci/core/models/create_service_gateway_details.rb +228 -0
- data/lib/oci/core/models/egress_security_rule.rb +44 -3
- data/lib/oci/core/models/ingress_security_rule.rb +47 -3
- data/lib/oci/core/models/instance_source_via_image_details.rb +0 -1
- data/lib/oci/core/models/route_rule.rb +59 -2
- data/lib/oci/core/models/service.rb +185 -0
- data/lib/oci/core/models/service_gateway.rb +325 -0
- data/lib/oci/core/models/service_id_request_details.rb +151 -0
- data/lib/oci/core/models/service_id_response_details.rb +165 -0
- data/lib/oci/core/models/update_boot_volume_backup_details.rb +189 -0
- data/lib/oci/core/models/update_boot_volume_details.rb +41 -4
- data/lib/oci/core/models/update_service_gateway_details.rb +225 -0
- data/lib/oci/core/models/volume_group.rb +21 -7
- data/lib/oci/core/models/volume_group_backup.rb +39 -7
- data/lib/oci/core/models/volume_group_source_from_volumes_details.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +582 -1
- data/lib/oci/core/virtual_network_client_composite_operations.rb +119 -0
- data/lib/oci/version.rb +1 -1
- metadata +15 -2
@@ -492,6 +492,45 @@ module OCI
|
|
492
492
|
# rubocop:disable Layout/EmptyLines
|
493
493
|
|
494
494
|
|
495
|
+
# Calls {OCI::Core::VirtualNetworkClient#create_service_gateway} and then waits for the {OCI::Core::Models::ServiceGateway} acted upon
|
496
|
+
# to enter the given state(s).
|
497
|
+
#
|
498
|
+
# @param [OCI::Core::Models::CreateServiceGatewayDetails] create_service_gateway_details Details for creating a service gateway.
|
499
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::ServiceGateway#lifecycle_state}
|
500
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::VirtualNetworkClient#create_service_gateway}
|
501
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
502
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
503
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
504
|
+
#
|
505
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Core::Models::ServiceGateway}
|
506
|
+
def create_service_gateway_and_wait_for_state(create_service_gateway_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
507
|
+
operation_result = @service_client.create_service_gateway(create_service_gateway_details, base_operation_opts)
|
508
|
+
|
509
|
+
return operation_result if wait_for_states.empty?
|
510
|
+
|
511
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
512
|
+
wait_for_resource_id = operation_result.data.id
|
513
|
+
|
514
|
+
begin
|
515
|
+
waiter_result = @service_client.get_service_gateway(wait_for_resource_id).wait_until(
|
516
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
517
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
518
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
519
|
+
)
|
520
|
+
result_to_return = waiter_result
|
521
|
+
|
522
|
+
return result_to_return
|
523
|
+
rescue StandardError
|
524
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
525
|
+
end
|
526
|
+
end
|
527
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
528
|
+
# rubocop:enable Layout/EmptyLines
|
529
|
+
|
530
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
531
|
+
# rubocop:disable Layout/EmptyLines
|
532
|
+
|
533
|
+
|
495
534
|
# Calls {OCI::Core::VirtualNetworkClient#create_subnet} and then waits for the {OCI::Core::Models::Subnet} acted upon
|
496
535
|
# to enter the given state(s).
|
497
536
|
#
|
@@ -1089,6 +1128,46 @@ module OCI
|
|
1089
1128
|
# rubocop:disable Layout/EmptyLines
|
1090
1129
|
|
1091
1130
|
|
1131
|
+
# Calls {OCI::Core::VirtualNetworkClient#delete_service_gateway} and then waits for the {OCI::Core::Models::ServiceGateway} acted upon
|
1132
|
+
# to enter the given state(s).
|
1133
|
+
#
|
1134
|
+
# @param [String] service_gateway_id The service gateway's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1135
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::ServiceGateway#lifecycle_state}
|
1136
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::VirtualNetworkClient#delete_service_gateway}
|
1137
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1138
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1139
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1140
|
+
#
|
1141
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type nil
|
1142
|
+
def delete_service_gateway_and_wait_for_state(service_gateway_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1143
|
+
initial_get_result = @service_client.get_service_gateway(service_gateway_id)
|
1144
|
+
operation_result = @service_client.delete_service_gateway(service_gateway_id, base_operation_opts)
|
1145
|
+
|
1146
|
+
return operation_result if wait_for_states.empty?
|
1147
|
+
|
1148
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1149
|
+
|
1150
|
+
begin
|
1151
|
+
waiter_result = initial_get_result.wait_until(
|
1152
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
1153
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1154
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200,
|
1155
|
+
succeed_on_not_found: true
|
1156
|
+
)
|
1157
|
+
result_to_return = waiter_result
|
1158
|
+
|
1159
|
+
return result_to_return
|
1160
|
+
rescue StandardError
|
1161
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1162
|
+
end
|
1163
|
+
end
|
1164
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1165
|
+
# rubocop:enable Layout/EmptyLines
|
1166
|
+
|
1167
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1168
|
+
# rubocop:disable Layout/EmptyLines
|
1169
|
+
|
1170
|
+
|
1092
1171
|
# Calls {OCI::Core::VirtualNetworkClient#delete_subnet} and then waits for the {OCI::Core::Models::Subnet} acted upon
|
1093
1172
|
# to enter the given state(s).
|
1094
1173
|
#
|
@@ -1689,6 +1768,46 @@ module OCI
|
|
1689
1768
|
# rubocop:disable Layout/EmptyLines
|
1690
1769
|
|
1691
1770
|
|
1771
|
+
# Calls {OCI::Core::VirtualNetworkClient#update_service_gateway} and then waits for the {OCI::Core::Models::ServiceGateway} acted upon
|
1772
|
+
# to enter the given state(s).
|
1773
|
+
#
|
1774
|
+
# @param [String] service_gateway_id The service gateway's [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
1775
|
+
# @param [OCI::Core::Models::UpdateServiceGatewayDetails] update_service_gateway_details Details object for updating a service gateway.
|
1776
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::ServiceGateway#lifecycle_state}
|
1777
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::VirtualNetworkClient#update_service_gateway}
|
1778
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1779
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1780
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1781
|
+
#
|
1782
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Core::Models::ServiceGateway}
|
1783
|
+
def update_service_gateway_and_wait_for_state(service_gateway_id, update_service_gateway_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1784
|
+
operation_result = @service_client.update_service_gateway(service_gateway_id, update_service_gateway_details, base_operation_opts)
|
1785
|
+
|
1786
|
+
return operation_result if wait_for_states.empty?
|
1787
|
+
|
1788
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1789
|
+
wait_for_resource_id = operation_result.data.id
|
1790
|
+
|
1791
|
+
begin
|
1792
|
+
waiter_result = @service_client.get_service_gateway(wait_for_resource_id).wait_until(
|
1793
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
1794
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1795
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1796
|
+
)
|
1797
|
+
result_to_return = waiter_result
|
1798
|
+
|
1799
|
+
return result_to_return
|
1800
|
+
rescue StandardError
|
1801
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1802
|
+
end
|
1803
|
+
end
|
1804
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1805
|
+
# rubocop:enable Layout/EmptyLines
|
1806
|
+
|
1807
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1808
|
+
# rubocop:disable Layout/EmptyLines
|
1809
|
+
|
1810
|
+
|
1692
1811
|
# Calls {OCI::Core::VirtualNetworkClient#update_subnet} and then waits for the {OCI::Core::Models::Subnet} acted upon
|
1693
1812
|
# to enter the given state(s).
|
1694
1813
|
#
|
data/lib/oci/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oracle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -220,6 +220,10 @@ files:
|
|
220
220
|
- "./lib/oci/core/models/attach_volume_details.rb"
|
221
221
|
- "./lib/oci/core/models/boot_volume.rb"
|
222
222
|
- "./lib/oci/core/models/boot_volume_attachment.rb"
|
223
|
+
- "./lib/oci/core/models/boot_volume_backup.rb"
|
224
|
+
- "./lib/oci/core/models/boot_volume_source_details.rb"
|
225
|
+
- "./lib/oci/core/models/boot_volume_source_from_boot_volume_backup_details.rb"
|
226
|
+
- "./lib/oci/core/models/boot_volume_source_from_boot_volume_details.rb"
|
223
227
|
- "./lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb"
|
224
228
|
- "./lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb"
|
225
229
|
- "./lib/oci/core/models/capture_console_history_details.rb"
|
@@ -227,6 +231,8 @@ files:
|
|
227
231
|
- "./lib/oci/core/models/connect_remote_peering_connections_details.rb"
|
228
232
|
- "./lib/oci/core/models/console_history.rb"
|
229
233
|
- "./lib/oci/core/models/cpe.rb"
|
234
|
+
- "./lib/oci/core/models/create_boot_volume_backup_details.rb"
|
235
|
+
- "./lib/oci/core/models/create_boot_volume_details.rb"
|
230
236
|
- "./lib/oci/core/models/create_cpe_details.rb"
|
231
237
|
- "./lib/oci/core/models/create_cross_connect_details.rb"
|
232
238
|
- "./lib/oci/core/models/create_cross_connect_group_details.rb"
|
@@ -243,6 +249,7 @@ files:
|
|
243
249
|
- "./lib/oci/core/models/create_remote_peering_connection_details.rb"
|
244
250
|
- "./lib/oci/core/models/create_route_table_details.rb"
|
245
251
|
- "./lib/oci/core/models/create_security_list_details.rb"
|
252
|
+
- "./lib/oci/core/models/create_service_gateway_details.rb"
|
246
253
|
- "./lib/oci/core/models/create_subnet_details.rb"
|
247
254
|
- "./lib/oci/core/models/create_vcn_details.rb"
|
248
255
|
- "./lib/oci/core/models/create_virtual_circuit_details.rb"
|
@@ -303,12 +310,17 @@ files:
|
|
303
310
|
- "./lib/oci/core/models/route_rule.rb"
|
304
311
|
- "./lib/oci/core/models/route_table.rb"
|
305
312
|
- "./lib/oci/core/models/security_list.rb"
|
313
|
+
- "./lib/oci/core/models/service.rb"
|
314
|
+
- "./lib/oci/core/models/service_gateway.rb"
|
315
|
+
- "./lib/oci/core/models/service_id_request_details.rb"
|
316
|
+
- "./lib/oci/core/models/service_id_response_details.rb"
|
306
317
|
- "./lib/oci/core/models/shape.rb"
|
307
318
|
- "./lib/oci/core/models/subnet.rb"
|
308
319
|
- "./lib/oci/core/models/tcp_options.rb"
|
309
320
|
- "./lib/oci/core/models/tunnel_config.rb"
|
310
321
|
- "./lib/oci/core/models/tunnel_status.rb"
|
311
322
|
- "./lib/oci/core/models/udp_options.rb"
|
323
|
+
- "./lib/oci/core/models/update_boot_volume_backup_details.rb"
|
312
324
|
- "./lib/oci/core/models/update_boot_volume_details.rb"
|
313
325
|
- "./lib/oci/core/models/update_console_history_details.rb"
|
314
326
|
- "./lib/oci/core/models/update_cpe_details.rb"
|
@@ -327,6 +339,7 @@ files:
|
|
327
339
|
- "./lib/oci/core/models/update_remote_peering_connection_details.rb"
|
328
340
|
- "./lib/oci/core/models/update_route_table_details.rb"
|
329
341
|
- "./lib/oci/core/models/update_security_list_details.rb"
|
342
|
+
- "./lib/oci/core/models/update_service_gateway_details.rb"
|
330
343
|
- "./lib/oci/core/models/update_subnet_details.rb"
|
331
344
|
- "./lib/oci/core/models/update_vcn_details.rb"
|
332
345
|
- "./lib/oci/core/models/update_virtual_circuit_details.rb"
|