oci 2.5.10 → 2.5.11
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 +4 -1
- data/lib/oci.rb +3 -0
- data/lib/oci/budget/budget.rb +1 -0
- data/lib/oci/budget/budget_client.rb +21 -1
- data/lib/oci/budget/models/budget.rb +52 -2
- data/lib/oci/budget/models/budget_summary.rb +52 -2
- data/lib/oci/budget/models/create_budget_details.rb +55 -2
- data/lib/oci/budget/models/target_type.rb +10 -0
- data/lib/oci/core/blockstorage_client.rb +18 -6
- data/lib/oci/core/compute_client.rb +75 -0
- data/lib/oci/core/compute_management_client.rb +4 -1
- data/lib/oci/core/core.rb +12 -0
- data/lib/oci/core/models/add_security_rule_details.rb +2 -2
- data/lib/oci/core/models/boot_volume_backup.rb +19 -1
- data/lib/oci/core/models/change_boot_volume_backup_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_boot_volume_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_cpe_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_cross_connect_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_cross_connect_group_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_instance_compartment_details.rb +154 -0
- data/lib/oci/core/models/change_ip_sec_connection_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_remote_peering_connection_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_virtual_circuit_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_volume_backup_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_volume_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_volume_group_backup_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_volume_group_compartment_details.rb +2 -2
- data/lib/oci/core/models/copy_volume_backup_details.rb +27 -4
- data/lib/oci/core/models/create_cross_connect_details.rb +37 -1
- data/lib/oci/core/models/create_cross_connect_group_details.rb +40 -4
- data/lib/oci/core/models/create_instance_configuration_base.rb +250 -0
- data/lib/oci/core/models/create_instance_configuration_details.rb +15 -57
- data/lib/oci/core/models/create_instance_configuration_from_instance_details.rb +179 -0
- data/lib/oci/core/models/create_ipv6_details.rb +249 -0
- data/lib/oci/core/models/create_remote_peering_connection_details.rb +40 -4
- data/lib/oci/core/models/create_service_gateway_details.rb +23 -1
- data/lib/oci/core/models/create_subnet_details.rb +24 -1
- data/lib/oci/core/models/create_vcn_details.rb +56 -4
- data/lib/oci/core/models/create_virtual_circuit_details.rb +38 -2
- data/lib/oci/core/models/cross_connect.rb +37 -1
- data/lib/oci/core/models/cross_connect_group.rb +37 -1
- data/lib/oci/core/models/cross_connect_mapping.rb +50 -1
- data/lib/oci/core/models/egress_security_rule.rb +10 -7
- data/lib/oci/core/models/ingress_security_rule.rb +10 -7
- data/lib/oci/core/models/instance.rb +1 -0
- data/lib/oci/core/models/ipv6.rb +375 -0
- data/lib/oci/core/models/private_ip.rb +1 -0
- data/lib/oci/core/models/remote_peering_connection.rb +37 -1
- data/lib/oci/core/models/route_rule.rb +4 -1
- data/lib/oci/core/models/security_rule.rb +2 -2
- data/lib/oci/core/models/service_gateway.rb +18 -1
- data/lib/oci/core/models/subnet.rb +56 -1
- data/lib/oci/core/models/update_cross_connect_details.rb +37 -1
- data/lib/oci/core/models/update_cross_connect_group_details.rb +40 -4
- data/lib/oci/core/models/update_ipv6_details.rb +229 -0
- data/lib/oci/core/models/update_remote_peering_connection_details.rb +40 -4
- data/lib/oci/core/models/update_security_rule_details.rb +2 -2
- data/lib/oci/core/models/update_service_gateway_details.rb +18 -1
- data/lib/oci/core/models/update_virtual_circuit_details.rb +37 -1
- data/lib/oci/core/models/vcn.rb +42 -1
- data/lib/oci/core/models/virtual_circuit.rb +37 -1
- data/lib/oci/core/models/volume_backup.rb +19 -1
- data/lib/oci/core/virtual_network_client.rb +744 -10
- data/lib/oci/core/virtual_network_client_composite_operations.rb +119 -0
- data/lib/oci/database/database.rb +3 -0
- data/lib/oci/database/database_client.rb +320 -36
- data/lib/oci/database/models/autonomous_data_warehouse.rb +1 -0
- data/lib/oci/database/models/autonomous_data_warehouse_console_token_details.rb +164 -0
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +1 -0
- data/lib/oci/database/models/autonomous_database.rb +5 -3
- data/lib/oci/database/models/autonomous_database_connection_urls.rb +1 -1
- data/lib/oci/database/models/autonomous_database_console_token_details.rb +163 -0
- data/lib/oci/database/models/autonomous_database_summary.rb +5 -3
- data/lib/oci/database/models/autonomous_db_preview_version_summary.rb +1 -3
- data/lib/oci/database/models/change_compartment_details.rb +155 -0
- data/lib/oci/database/models/create_autonomous_database_base.rb +5 -4
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +2 -5
- data/lib/oci/database/models/create_database_details.rb +1 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +2 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +2 -1
- data/lib/oci/database/models/db_system.rb +2 -5
- data/lib/oci/database/models/db_system_summary.rb +2 -5
- data/lib/oci/database/models/launch_db_system_base.rb +3 -5
- data/lib/oci/database/models/maintenance_window.rb +2 -1
- data/lib/oci/database/models/update_autonomous_database_details.rb +5 -3
- data/lib/oci/database/models/update_db_system_details.rb +2 -5
- data/lib/oci/dns/dns.rb +2 -0
- data/lib/oci/dns/dns_client.rb +138 -1
- data/lib/oci/dns/models/change_steering_policy_compartment_details.rb +155 -0
- data/lib/oci/dns/models/change_zone_compartment_details.rb +155 -0
- data/lib/oci/events/events.rb +34 -0
- data/lib/oci/events/events_client.rb +537 -0
- data/lib/oci/events/events_client_composite_operations.rb +145 -0
- data/lib/oci/events/models/action.rb +275 -0
- data/lib/oci/events/models/action_details.rb +222 -0
- data/lib/oci/events/models/action_details_list.rb +150 -0
- data/lib/oci/events/models/action_list.rb +151 -0
- data/lib/oci/events/models/change_rule_compartment_details.rb +156 -0
- data/lib/oci/events/models/create_faa_s_action_details.rb +170 -0
- data/lib/oci/events/models/create_notification_service_action_details.rb +170 -0
- data/lib/oci/events/models/create_rule_details.rb +284 -0
- data/lib/oci/events/models/create_streaming_service_action_details.rb +170 -0
- data/lib/oci/events/models/faa_s_action.rb +178 -0
- data/lib/oci/events/models/notification_service_action.rb +179 -0
- data/lib/oci/events/models/rule.rb +372 -0
- data/lib/oci/events/models/rule_summary.rb +321 -0
- data/lib/oci/events/models/streaming_service_action.rb +178 -0
- data/lib/oci/events/models/update_rule_details.rb +266 -0
- data/lib/oci/events/util.rb +2 -0
- data/lib/oci/functions/functions.rb +29 -0
- data/lib/oci/functions/functions_invoke_client.rb +237 -0
- data/lib/oci/functions/functions_invoke_client_composite_operations.rb +24 -0
- data/lib/oci/functions/functions_management_client.rb +851 -0
- data/lib/oci/functions/functions_management_client_composite_operations.rb +266 -0
- data/lib/oci/functions/models/application.rb +322 -0
- data/lib/oci/functions/models/application_summary.rb +281 -0
- data/lib/oci/functions/models/change_application_compartment_details.rb +156 -0
- data/lib/oci/functions/models/create_application_details.rb +236 -0
- data/lib/oci/functions/models/create_function_details.rb +280 -0
- data/lib/oci/functions/models/function.rb +397 -0
- data/lib/oci/functions/models/function_summary.rb +381 -0
- data/lib/oci/functions/models/update_application_details.rb +191 -0
- data/lib/oci/functions/models/update_function_details.rb +250 -0
- data/lib/oci/functions/util.rb +2 -0
- data/lib/oci/healthchecks/health_checks_client.rb +147 -1
- data/lib/oci/healthchecks/healthchecks.rb +2 -0
- data/lib/oci/healthchecks/models/change_http_monitor_compartment_details.rb +155 -0
- data/lib/oci/healthchecks/models/change_ping_monitor_compartment_details.rb +155 -0
- data/lib/oci/healthchecks/models/create_http_monitor_details.rb +2 -1
- data/lib/oci/healthchecks/models/create_on_demand_http_probe_details.rb +2 -1
- data/lib/oci/healthchecks/models/create_on_demand_ping_probe_details.rb +2 -1
- data/lib/oci/healthchecks/models/create_ping_monitor_details.rb +2 -1
- data/lib/oci/healthchecks/models/http_monitor.rb +2 -0
- data/lib/oci/healthchecks/models/http_probe.rb +2 -0
- data/lib/oci/healthchecks/models/ping_monitor.rb +2 -0
- data/lib/oci/healthchecks/models/ping_probe.rb +2 -0
- data/lib/oci/healthchecks/models/update_http_monitor_details.rb +2 -0
- data/lib/oci/healthchecks/models/update_ping_monitor_details.rb +2 -0
- data/lib/oci/identity/identity.rb +1 -0
- data/lib/oci/identity/identity_client.rb +70 -0
- data/lib/oci/identity/identity_client_composite_operations.rb +50 -0
- data/lib/oci/identity/models/move_compartment_details.rb +155 -0
- data/lib/oci/key_management/key_management.rb +2 -0
- data/lib/oci/key_management/kms_management_client.rb +73 -0
- data/lib/oci/key_management/kms_vault_client.rb +73 -0
- data/lib/oci/key_management/models/change_key_compartment_details.rb +153 -0
- data/lib/oci/key_management/models/change_vault_compartment_details.rb +153 -0
- data/lib/oci/key_management/models/key.rb +1 -0
- data/lib/oci/key_management/models/key_summary.rb +1 -0
- data/lib/oci/key_management/models/vault.rb +1 -0
- data/lib/oci/key_management/models/vault_summary.rb +1 -0
- data/lib/oci/limits/limits.rb +23 -0
- data/lib/oci/limits/models/create_quota_details.rb +220 -0
- data/lib/oci/limits/models/quota.rb +287 -0
- data/lib/oci/limits/models/quota_summary.rb +273 -0
- data/lib/oci/limits/models/update_quota_details.rb +194 -0
- data/lib/oci/limits/quotas_client.rb +439 -0
- data/lib/oci/limits/quotas_client_composite_operations.rb +143 -0
- data/lib/oci/limits/util.rb +2 -0
- data/lib/oci/load_balancer/load_balancer.rb +9 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +139 -0
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +50 -0
- data/lib/oci/load_balancer/models/allow_rule.rb +181 -0
- data/lib/oci/load_balancer/models/backend_set.rb +21 -4
- data/lib/oci/load_balancer/models/backend_set_details.rb +21 -4
- data/lib/oci/load_balancer/models/change_load_balancer_compartment_details.rb +156 -0
- data/lib/oci/load_balancer/models/control_access_using_http_methods_rule.rb +205 -0
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +21 -4
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +37 -1
- data/lib/oci/load_balancer/models/lb_cookie_session_persistence_configuration_details.rb +334 -0
- data/lib/oci/load_balancer/models/listener_rule_summary.rb +166 -0
- data/lib/oci/load_balancer/models/rule.rb +4 -0
- data/lib/oci/load_balancer/models/rule_condition.rb +192 -0
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +6 -0
- data/lib/oci/load_balancer/models/source_ip_address_condition.rb +167 -0
- data/lib/oci/load_balancer/models/source_vcn_id_condition.rb +169 -0
- data/lib/oci/load_balancer/models/source_vcn_ip_address_condition.rb +171 -0
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +21 -4
- data/lib/oci/monitoring/models/alarm.rb +4 -3
- data/lib/oci/monitoring/models/alarm_summary.rb +4 -3
- data/lib/oci/monitoring/models/change_alarm_compartment_details.rb +155 -0
- data/lib/oci/monitoring/models/create_alarm_details.rb +4 -3
- data/lib/oci/monitoring/models/datapoint.rb +1 -1
- data/lib/oci/monitoring/models/list_metrics_details.rb +4 -4
- data/lib/oci/monitoring/models/metric_data.rb +14 -0
- data/lib/oci/monitoring/models/metric_data_details.rb +6 -4
- data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +3 -0
- data/lib/oci/monitoring/models/update_alarm_details.rb +4 -3
- data/lib/oci/monitoring/monitoring.rb +1 -0
- data/lib/oci/monitoring/monitoring_client.rb +140 -5
- data/lib/oci/ons/models/backoff_retry_policy.rb +2 -2
- data/lib/oci/ons/models/change_compartment_details.rb +156 -0
- data/lib/oci/ons/models/confirmation_result.rb +5 -6
- data/lib/oci/ons/models/create_topic_details.rb +1 -1
- data/lib/oci/ons/models/notification_topic.rb +2 -2
- data/lib/oci/ons/models/notification_topic_summary.rb +2 -2
- data/lib/oci/ons/models/subscription.rb +47 -4
- data/lib/oci/ons/models/subscription_summary.rb +19 -3
- data/lib/oci/ons/notification_control_plane_client.rb +95 -8
- data/lib/oci/ons/notification_data_plane_client.rb +109 -8
- data/lib/oci/ons/ons.rb +1 -0
- data/lib/oci/regions.rb +3 -0
- data/lib/oci/streaming/models/change_stream_compartment_details.rb +155 -0
- data/lib/oci/streaming/stream_admin_client.rb +58 -0
- data/lib/oci/streaming/streaming.rb +1 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/access_rule_criteria.rb +14 -2
- data/lib/oci/waas/models/change_certificate_compartment_details.rb +154 -0
- data/lib/oci/waas/models/change_waas_policy_compartment_details.rb +154 -0
- data/lib/oci/waas/models/create_certificate_details.rb +2 -2
- data/lib/oci/waas/models/protection_rule_exclusion.rb +16 -1
- data/lib/oci/waas/models/protection_settings.rb +9 -5
- data/lib/oci/waas/models/waas_policy.rb +1 -1
- data/lib/oci/waas/models/waf_config_details.rb +8 -8
- data/lib/oci/waas/models/waf_log.rb +40 -19
- data/lib/oci/waas/waas.rb +2 -0
- data/lib/oci/waas/waas_client.rb +155 -27
- data/lib/oci/work_requests/models/work_request.rb +14 -8
- data/lib/oci/work_requests/models/work_request_error.rb +3 -3
- data/lib/oci/work_requests/models/work_request_log_entry.rb +2 -2
- data/lib/oci/work_requests/models/work_request_resource.rb +9 -7
- data/lib/oci/work_requests/models/work_request_summary.rb +12 -6
- data/lib/oci/work_requests/work_request_client.rb +33 -16
- metadata +81 -2
|
@@ -10,6 +10,8 @@ module OCI
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
# Require models
|
|
13
|
+
require 'oci/key_management/models/change_key_compartment_details'
|
|
14
|
+
require 'oci/key_management/models/change_vault_compartment_details'
|
|
13
15
|
require 'oci/key_management/models/create_key_details'
|
|
14
16
|
require 'oci/key_management/models/create_vault_details'
|
|
15
17
|
require 'oci/key_management/models/decrypt_data_details'
|
|
@@ -157,6 +157,79 @@ module OCI
|
|
|
157
157
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
158
158
|
|
|
159
159
|
|
|
160
|
+
# Moves a key into a different compartment. When provided, If-Match is checked against ETag values of the key.
|
|
161
|
+
# @param [String] key_id The OCID of the key.
|
|
162
|
+
# @param [OCI::KeyManagement::Models::ChangeKeyCompartmentDetails] change_key_compartment_details
|
|
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 the operation will not retry
|
|
166
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a
|
|
167
|
+
# resource, set the `if-match` parameter to the value of the etag from a
|
|
168
|
+
# previous GET or POST response for that resource. The resource will be
|
|
169
|
+
# updated or deleted only if the etag you provide matches the resource's
|
|
170
|
+
# current etag value.
|
|
171
|
+
#
|
|
172
|
+
# @option opts [String] :opc_request_id Unique identifier for the request. If provided, the returned request ID
|
|
173
|
+
# will include this value. Otherwise, a random request ID will be
|
|
174
|
+
# generated by the service.
|
|
175
|
+
#
|
|
176
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
|
|
177
|
+
# of a timeout or server error without risk of executing that same action
|
|
178
|
+
# again. Retry tokens expire after 24 hours, but can be invalidated
|
|
179
|
+
# before then due to conflicting operations (e.g., if a resource has been
|
|
180
|
+
# deleted and purged from the system, then a retry of the original
|
|
181
|
+
# creation request may be rejected).
|
|
182
|
+
#
|
|
183
|
+
# @return [Response] A Response object with data of type nil
|
|
184
|
+
def change_key_compartment(key_id, change_key_compartment_details, opts = {})
|
|
185
|
+
logger.debug 'Calling operation KmsManagementClient#change_key_compartment.' if logger
|
|
186
|
+
|
|
187
|
+
raise "Missing the required parameter 'key_id' when calling change_key_compartment." if key_id.nil?
|
|
188
|
+
raise "Missing the required parameter 'change_key_compartment_details' when calling change_key_compartment." if change_key_compartment_details.nil?
|
|
189
|
+
raise "Parameter value for 'key_id' must not be blank" if OCI::Internal::Util.blank_string?(key_id)
|
|
190
|
+
|
|
191
|
+
path = '/20180608/keys/{keyId}/actions/changeCompartment'.sub('{keyId}', key_id.to_s)
|
|
192
|
+
operation_signing_strategy = :standard
|
|
193
|
+
|
|
194
|
+
# rubocop:disable Style/NegatedIf
|
|
195
|
+
# Query Params
|
|
196
|
+
query_params = {}
|
|
197
|
+
|
|
198
|
+
# Header Params
|
|
199
|
+
header_params = {}
|
|
200
|
+
header_params[:accept] = 'application/json'
|
|
201
|
+
header_params[:'content-type'] = 'application/json'
|
|
202
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
203
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
204
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
205
|
+
# rubocop:enable Style/NegatedIf
|
|
206
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
207
|
+
|
|
208
|
+
post_body = @api_client.object_to_http_body(change_key_compartment_details)
|
|
209
|
+
|
|
210
|
+
# rubocop:disable Metrics/BlockLength
|
|
211
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'KmsManagementClient#change_key_compartment') 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
|
+
)
|
|
221
|
+
end
|
|
222
|
+
# rubocop:enable Metrics/BlockLength
|
|
223
|
+
end
|
|
224
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
225
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
226
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
227
|
+
|
|
228
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
229
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
230
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
231
|
+
|
|
232
|
+
|
|
160
233
|
# Creates a new key.
|
|
161
234
|
# @param [OCI::KeyManagement::Models::CreateKeyDetails] create_key_details CreateKeyDetails
|
|
162
235
|
# @param [Hash] opts the optional parameters
|
|
@@ -184,6 +184,79 @@ module OCI
|
|
|
184
184
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
185
185
|
|
|
186
186
|
|
|
187
|
+
# Moves a vault into a different compartment. When provided, If-Match is checked against ETag values of the resource.
|
|
188
|
+
# @param [String] vault_id The OCID of the vault.
|
|
189
|
+
# @param [OCI::KeyManagement::Models::ChangeVaultCompartmentDetails] change_vault_compartment_details
|
|
190
|
+
# @param [Hash] opts the optional parameters
|
|
191
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
192
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
193
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a
|
|
194
|
+
# resource, set the `if-match` parameter to the value of the etag from a
|
|
195
|
+
# previous GET or POST response for that resource. The resource will be
|
|
196
|
+
# updated or deleted only if the etag you provide matches the resource's
|
|
197
|
+
# current etag value.
|
|
198
|
+
#
|
|
199
|
+
# @option opts [String] :opc_request_id Unique identifier for the request. If provided, the returned request ID
|
|
200
|
+
# will include this value. Otherwise, a random request ID will be
|
|
201
|
+
# generated by the service.
|
|
202
|
+
#
|
|
203
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
|
|
204
|
+
# of a timeout or server error without risk of executing that same action
|
|
205
|
+
# again. Retry tokens expire after 24 hours, but can be invalidated
|
|
206
|
+
# before then due to conflicting operations (e.g., if a resource has been
|
|
207
|
+
# deleted and purged from the system, then a retry of the original
|
|
208
|
+
# creation request may be rejected).
|
|
209
|
+
#
|
|
210
|
+
# @return [Response] A Response object with data of type nil
|
|
211
|
+
def change_vault_compartment(vault_id, change_vault_compartment_details, opts = {})
|
|
212
|
+
logger.debug 'Calling operation KmsVaultClient#change_vault_compartment.' if logger
|
|
213
|
+
|
|
214
|
+
raise "Missing the required parameter 'vault_id' when calling change_vault_compartment." if vault_id.nil?
|
|
215
|
+
raise "Missing the required parameter 'change_vault_compartment_details' when calling change_vault_compartment." if change_vault_compartment_details.nil?
|
|
216
|
+
raise "Parameter value for 'vault_id' must not be blank" if OCI::Internal::Util.blank_string?(vault_id)
|
|
217
|
+
|
|
218
|
+
path = '/20180608/vaults/{vaultId}/actions/changeCompartment'.sub('{vaultId}', vault_id.to_s)
|
|
219
|
+
operation_signing_strategy = :standard
|
|
220
|
+
|
|
221
|
+
# rubocop:disable Style/NegatedIf
|
|
222
|
+
# Query Params
|
|
223
|
+
query_params = {}
|
|
224
|
+
|
|
225
|
+
# Header Params
|
|
226
|
+
header_params = {}
|
|
227
|
+
header_params[:accept] = 'application/json'
|
|
228
|
+
header_params[:'content-type'] = 'application/json'
|
|
229
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
230
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
231
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
232
|
+
# rubocop:enable Style/NegatedIf
|
|
233
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
234
|
+
|
|
235
|
+
post_body = @api_client.object_to_http_body(change_vault_compartment_details)
|
|
236
|
+
|
|
237
|
+
# rubocop:disable Metrics/BlockLength
|
|
238
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'KmsVaultClient#change_vault_compartment') do
|
|
239
|
+
@api_client.call_api(
|
|
240
|
+
:POST,
|
|
241
|
+
path,
|
|
242
|
+
endpoint,
|
|
243
|
+
header_params: header_params,
|
|
244
|
+
query_params: query_params,
|
|
245
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
246
|
+
body: post_body
|
|
247
|
+
)
|
|
248
|
+
end
|
|
249
|
+
# rubocop:enable Metrics/BlockLength
|
|
250
|
+
end
|
|
251
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
252
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
253
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
254
|
+
|
|
255
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
256
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
257
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
258
|
+
|
|
259
|
+
|
|
187
260
|
# Creates a new vault. The type of vault you create determines key
|
|
188
261
|
# placement, pricing, and available options. Options include storage
|
|
189
262
|
# isolation, a dedicated service endpoint instead of a shared service
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
6
|
+
module OCI
|
|
7
|
+
# ChangeKeyCompartmentDetails model.
|
|
8
|
+
class KeyManagement::Models::ChangeKeyCompartmentDetails
|
|
9
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which the key should be moved.
|
|
10
|
+
# @return [String]
|
|
11
|
+
attr_accessor :compartment_id
|
|
12
|
+
|
|
13
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
14
|
+
def self.attribute_map
|
|
15
|
+
{
|
|
16
|
+
# rubocop:disable Style/SymbolLiteral
|
|
17
|
+
'compartment_id': :'compartmentId'
|
|
18
|
+
# rubocop:enable Style/SymbolLiteral
|
|
19
|
+
}
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Attribute type mapping.
|
|
23
|
+
def self.swagger_types
|
|
24
|
+
{
|
|
25
|
+
# rubocop:disable Style/SymbolLiteral
|
|
26
|
+
'compartment_id': :'String'
|
|
27
|
+
# rubocop:enable Style/SymbolLiteral
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
32
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# Initializes the object
|
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
37
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
38
|
+
def initialize(attributes = {})
|
|
39
|
+
return unless attributes.is_a?(Hash)
|
|
40
|
+
|
|
41
|
+
# convert string to symbol for hash key
|
|
42
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
43
|
+
|
|
44
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
45
|
+
|
|
46
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
47
|
+
|
|
48
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
49
|
+
end
|
|
50
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
51
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
52
|
+
|
|
53
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
# Checks equality by comparing each attribute.
|
|
57
|
+
# @param [Object] other the other object to be compared
|
|
58
|
+
def ==(other)
|
|
59
|
+
return true if equal?(other)
|
|
60
|
+
|
|
61
|
+
self.class == other.class &&
|
|
62
|
+
compartment_id == other.compartment_id
|
|
63
|
+
end
|
|
64
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
65
|
+
|
|
66
|
+
# @see the `==` method
|
|
67
|
+
# @param [Object] other the other object to be compared
|
|
68
|
+
def eql?(other)
|
|
69
|
+
self == other
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# Calculates hash code according to all attributes.
|
|
76
|
+
# @return [Fixnum] Hash code
|
|
77
|
+
def hash
|
|
78
|
+
[compartment_id].hash
|
|
79
|
+
end
|
|
80
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
81
|
+
|
|
82
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
# Builds the object from hash
|
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
87
|
+
# @return [Object] Returns the model itself
|
|
88
|
+
def build_from_hash(attributes)
|
|
89
|
+
return nil unless attributes.is_a?(Hash)
|
|
90
|
+
|
|
91
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
92
|
+
if type =~ /^Array<(.*)>/i
|
|
93
|
+
# check to ensure the input is an array given that the the attribute
|
|
94
|
+
# is documented as an array but the input is not
|
|
95
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
96
|
+
public_method("#{key}=").call(
|
|
97
|
+
attributes[self.class.attribute_map[key]]
|
|
98
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
102
|
+
public_method("#{key}=").call(
|
|
103
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
self
|
|
110
|
+
end
|
|
111
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
112
|
+
|
|
113
|
+
# Returns the string representation of the object
|
|
114
|
+
# @return [String] String presentation of the object
|
|
115
|
+
def to_s
|
|
116
|
+
to_hash.to_s
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Returns the object in the form of hash
|
|
120
|
+
# @return [Hash] Returns the object in the form of hash
|
|
121
|
+
def to_hash
|
|
122
|
+
hash = {}
|
|
123
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
124
|
+
value = public_method(attr).call
|
|
125
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
126
|
+
|
|
127
|
+
hash[param] = _to_hash(value)
|
|
128
|
+
end
|
|
129
|
+
hash
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
private
|
|
133
|
+
|
|
134
|
+
# Outputs non-array value in the form of hash
|
|
135
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
136
|
+
# @param [Object] value Any valid value
|
|
137
|
+
# @return [Hash] Returns the value in the form of hash
|
|
138
|
+
def _to_hash(value)
|
|
139
|
+
if value.is_a?(Array)
|
|
140
|
+
value.compact.map { |v| _to_hash(v) }
|
|
141
|
+
elsif value.is_a?(Hash)
|
|
142
|
+
{}.tap do |hash|
|
|
143
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
144
|
+
end
|
|
145
|
+
elsif value.respond_to? :to_hash
|
|
146
|
+
value.to_hash
|
|
147
|
+
else
|
|
148
|
+
value
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
6
|
+
module OCI
|
|
7
|
+
# ChangeVaultCompartmentDetails model.
|
|
8
|
+
class KeyManagement::Models::ChangeVaultCompartmentDetails
|
|
9
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which the vault should be moved.
|
|
10
|
+
# @return [String]
|
|
11
|
+
attr_accessor :compartment_id
|
|
12
|
+
|
|
13
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
14
|
+
def self.attribute_map
|
|
15
|
+
{
|
|
16
|
+
# rubocop:disable Style/SymbolLiteral
|
|
17
|
+
'compartment_id': :'compartmentId'
|
|
18
|
+
# rubocop:enable Style/SymbolLiteral
|
|
19
|
+
}
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Attribute type mapping.
|
|
23
|
+
def self.swagger_types
|
|
24
|
+
{
|
|
25
|
+
# rubocop:disable Style/SymbolLiteral
|
|
26
|
+
'compartment_id': :'String'
|
|
27
|
+
# rubocop:enable Style/SymbolLiteral
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
32
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# Initializes the object
|
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
37
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
38
|
+
def initialize(attributes = {})
|
|
39
|
+
return unless attributes.is_a?(Hash)
|
|
40
|
+
|
|
41
|
+
# convert string to symbol for hash key
|
|
42
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
43
|
+
|
|
44
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
45
|
+
|
|
46
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
47
|
+
|
|
48
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
49
|
+
end
|
|
50
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
51
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
52
|
+
|
|
53
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
# Checks equality by comparing each attribute.
|
|
57
|
+
# @param [Object] other the other object to be compared
|
|
58
|
+
def ==(other)
|
|
59
|
+
return true if equal?(other)
|
|
60
|
+
|
|
61
|
+
self.class == other.class &&
|
|
62
|
+
compartment_id == other.compartment_id
|
|
63
|
+
end
|
|
64
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
65
|
+
|
|
66
|
+
# @see the `==` method
|
|
67
|
+
# @param [Object] other the other object to be compared
|
|
68
|
+
def eql?(other)
|
|
69
|
+
self == other
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# Calculates hash code according to all attributes.
|
|
76
|
+
# @return [Fixnum] Hash code
|
|
77
|
+
def hash
|
|
78
|
+
[compartment_id].hash
|
|
79
|
+
end
|
|
80
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
81
|
+
|
|
82
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
# Builds the object from hash
|
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
87
|
+
# @return [Object] Returns the model itself
|
|
88
|
+
def build_from_hash(attributes)
|
|
89
|
+
return nil unless attributes.is_a?(Hash)
|
|
90
|
+
|
|
91
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
92
|
+
if type =~ /^Array<(.*)>/i
|
|
93
|
+
# check to ensure the input is an array given that the the attribute
|
|
94
|
+
# is documented as an array but the input is not
|
|
95
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
96
|
+
public_method("#{key}=").call(
|
|
97
|
+
attributes[self.class.attribute_map[key]]
|
|
98
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
102
|
+
public_method("#{key}=").call(
|
|
103
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
self
|
|
110
|
+
end
|
|
111
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
112
|
+
|
|
113
|
+
# Returns the string representation of the object
|
|
114
|
+
# @return [String] String presentation of the object
|
|
115
|
+
def to_s
|
|
116
|
+
to_hash.to_s
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Returns the object in the form of hash
|
|
120
|
+
# @return [Hash] Returns the object in the form of hash
|
|
121
|
+
def to_hash
|
|
122
|
+
hash = {}
|
|
123
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
124
|
+
value = public_method(attr).call
|
|
125
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
126
|
+
|
|
127
|
+
hash[param] = _to_hash(value)
|
|
128
|
+
end
|
|
129
|
+
hash
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
private
|
|
133
|
+
|
|
134
|
+
# Outputs non-array value in the form of hash
|
|
135
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
136
|
+
# @param [Object] value Any valid value
|
|
137
|
+
# @return [Hash] Returns the value in the form of hash
|
|
138
|
+
def _to_hash(value)
|
|
139
|
+
if value.is_a?(Array)
|
|
140
|
+
value.compact.map { |v| _to_hash(v) }
|
|
141
|
+
elsif value.is_a?(Hash)
|
|
142
|
+
{}.tap do |hash|
|
|
143
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
144
|
+
end
|
|
145
|
+
elsif value.respond_to? :to_hash
|
|
146
|
+
value.to_hash
|
|
147
|
+
else
|
|
148
|
+
value
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|