oci 2.5.9 → 2.5.10
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/autoscaling/auto_scaling_client.rb +73 -0
- data/lib/oci/autoscaling/autoscaling.rb +1 -0
- data/lib/oci/autoscaling/models/change_auto_scaling_compartment_details.rb +154 -0
- data/lib/oci/autoscaling/models/create_auto_scaling_configuration_details.rb +0 -1
- data/lib/oci/container_engine/models/work_request_error.rb +0 -1
- data/lib/oci/core/blockstorage_client.rb +342 -0
- data/lib/oci/core/compute_client.rb +77 -5
- data/lib/oci/core/compute_client_composite_operations.rb +3 -3
- data/lib/oci/core/compute_management_client.rb +211 -0
- data/lib/oci/core/core.rb +27 -0
- data/lib/oci/core/models/add_network_security_group_security_rules_details.rb +153 -0
- data/lib/oci/core/models/add_security_rule_details.rb +388 -0
- data/lib/oci/core/models/added_network_security_group_security_rules.rb +153 -0
- data/lib/oci/core/models/change_boot_volume_backup_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_boot_volume_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_image_compartment_details.rb +154 -0
- data/lib/oci/core/models/change_instance_configuration_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_instance_pool_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_nat_gateway_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_route_table_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_security_list_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_service_gateway_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_subnet_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_vcn_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_volume_backup_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_volume_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_volume_group_backup_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_volume_group_compartment_details.rb +153 -0
- data/lib/oci/core/models/create_network_security_group_details.rb +223 -0
- data/lib/oci/core/models/create_vnic_details.rb +18 -1
- data/lib/oci/core/models/image.rb +2 -1
- data/lib/oci/core/models/instance_configuration.rb +3 -1
- data/lib/oci/core/models/instance_configuration_create_vnic_details.rb +18 -1
- data/lib/oci/core/models/instance_configuration_instance_source_via_image_details.rb +15 -1
- data/lib/oci/core/models/instance_configuration_summary.rb +3 -3
- data/lib/oci/core/models/instance_pool.rb +4 -1
- data/lib/oci/core/models/instance_pool_summary.rb +3 -3
- data/lib/oci/core/models/network_security_group.rb +324 -0
- data/lib/oci/core/models/network_security_group_vnic.rb +188 -0
- data/lib/oci/core/models/remove_network_security_group_security_rules_details.rb +154 -0
- data/lib/oci/core/models/security_list.rb +5 -0
- data/lib/oci/core/models/security_rule.rb +455 -0
- data/lib/oci/core/models/update_network_security_group_details.rb +189 -0
- data/lib/oci/core/models/update_network_security_group_security_rules_details.rb +153 -0
- data/lib/oci/core/models/update_security_rule_details.rb +404 -0
- data/lib/oci/core/models/update_vnic_details.rb +20 -1
- data/lib/oci/core/models/updated_network_security_group_security_rules.rb +153 -0
- data/lib/oci/core/models/vnic.rb +18 -1
- data/lib/oci/core/virtual_network_client.rb +1228 -132
- data/lib/oci/core/virtual_network_client_composite_operations.rb +119 -0
- data/lib/oci/database/database.rb +19 -0
- data/lib/oci/database/database_client.rb +1066 -46
- data/lib/oci/database/database_client_composite_operations.rb +317 -0
- data/lib/oci/database/models/autonomous_container_database.rb +416 -0
- data/lib/oci/database/models/autonomous_container_database_backup_config.rb +157 -0
- data/lib/oci/database/models/autonomous_container_database_summary.rb +420 -0
- data/lib/oci/database/models/autonomous_database.rb +58 -1
- data/lib/oci/database/models/autonomous_database_backup.rb +16 -1
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +16 -1
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +11 -1
- data/lib/oci/database/models/autonomous_database_connection_urls.rb +170 -0
- data/lib/oci/database/models/autonomous_database_summary.rb +58 -1
- data/lib/oci/database/models/autonomous_db_preview_version_summary.rb +224 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure.rb +419 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure_maintenance_window.rb +186 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure_shape_summary.rb +224 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure_summary.rb +436 -0
- data/lib/oci/database/models/backup.rb +1 -0
- data/lib/oci/database/models/backup_summary.rb +1 -0
- data/lib/oci/database/models/create_autonomous_container_database_details.rb +284 -0
- data/lib/oci/database/models/create_autonomous_database_base.rb +46 -1
- data/lib/oci/database/models/create_autonomous_database_clone_details.rb +13 -1
- data/lib/oci/database/models/create_autonomous_database_details.rb +13 -1
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +34 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +1 -1
- data/lib/oci/database/models/day_of_week.rb +174 -0
- data/lib/oci/database/models/db_system.rb +34 -1
- data/lib/oci/database/models/db_system_summary.rb +34 -1
- data/lib/oci/database/models/launch_autonomous_exadata_infrastructure_details.rb +304 -0
- data/lib/oci/database/models/launch_db_system_base.rb +35 -2
- data/lib/oci/database/models/launch_db_system_details.rb +11 -2
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +11 -2
- data/lib/oci/database/models/maintenance_run.rb +392 -0
- data/lib/oci/database/models/maintenance_run_summary.rb +395 -0
- data/lib/oci/database/models/maintenance_window.rb +226 -0
- data/lib/oci/database/models/month.rb +179 -0
- data/lib/oci/database/models/restore_autonomous_database_details.rb +30 -4
- data/lib/oci/database/models/update_autonomous_container_database_details.rb +230 -0
- data/lib/oci/database/models/update_autonomous_database_details.rb +18 -1
- data/lib/oci/database/models/update_autonomous_exadata_infrastructure_details.rb +203 -0
- data/lib/oci/database/models/update_db_system_details.rb +37 -4
- data/lib/oci/database/models/update_maintenance_run_details.rb +154 -0
- data/lib/oci/email/email.rb +1 -0
- data/lib/oci/email/email_client.rb +62 -0
- data/lib/oci/email/models/change_sender_compartment_details.rb +157 -0
- data/lib/oci/key_management/key_management.rb +1 -0
- data/lib/oci/key_management/kms_crypto_client.rb +4 -4
- data/lib/oci/key_management/kms_management_client.rb +161 -10
- data/lib/oci/key_management/kms_management_client_composite_operations.rb +79 -0
- data/lib/oci/key_management/kms_vault_client.rb +16 -11
- data/lib/oci/key_management/models/key.rb +17 -1
- data/lib/oci/key_management/models/schedule_key_deletion_details.rb +156 -0
- data/lib/oci/load_balancer/load_balancer.rb +1 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +64 -0
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +50 -0
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +16 -1
- data/lib/oci/load_balancer/models/load_balancer.rb +16 -1
- data/lib/oci/load_balancer/models/remove_http_request_header_rule.rb +1 -1
- data/lib/oci/load_balancer/models/remove_http_response_header_rule.rb +1 -1
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +9 -5
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +2 -0
- data/lib/oci/load_balancer/models/update_network_security_groups_details.rb +154 -0
- data/lib/oci/monitoring/models/metric.rb +1 -0
- data/lib/oci/object_storage/models/work_request_error.rb +1 -0
- data/lib/oci/resource_manager/models/change_stack_compartment_details.rb +155 -0
- data/lib/oci/resource_manager/models/work_request.rb +293 -0
- data/lib/oci/resource_manager/models/work_request_error.rb +170 -0
- data/lib/oci/resource_manager/models/work_request_log_entry.rb +159 -0
- data/lib/oci/resource_manager/models/work_request_resource.rb +217 -0
- data/lib/oci/resource_manager/models/work_request_summary.rb +254 -0
- data/lib/oci/resource_manager/resource_manager.rb +6 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +338 -0
- data/lib/oci/resource_manager/resource_manager_client_composite_operations.rb +50 -0
- data/lib/oci/streaming/stream_admin_client.rb +2 -2
- data/lib/oci/streaming/stream_client.rb +1 -1
- data/lib/oci/version.rb +1 -1
- metadata +58 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c54fdb25b1a3d13fd3271efa59e0ed14c1534ef0bd2a8352d4507450204c096d
|
|
4
|
+
data.tar.gz: decef31275181e4583c2c92485ed6568c56c2b716a7aeb4696bc9ce5af7a99fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a15ef44d07a8e9f7b041f7f4c15cc008a2ffca53344f95180600c7f25d6ad5befb8394ee6c46d681bb416f0e5ec5c733fa00bcd6dd73cd0db6b9e3ec88c9049f
|
|
7
|
+
data.tar.gz: a1770aabd9def62af1694fbba3848d0ddee1de76a6fce6f3a3040f2b523e0d1eb23385cb188e6c6ccfa42efe09db9fec22feb85c7ae975db29445649c69ec44d
|
data/README.md
CHANGED
|
@@ -109,6 +109,79 @@ module OCI
|
|
|
109
109
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
110
110
|
|
|
111
111
|
|
|
112
|
+
# Moves an autoscaling configuration into a different compartment within the same tenancy. For information
|
|
113
|
+
# about moving resources between compartments, see
|
|
114
|
+
# [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
115
|
+
#
|
|
116
|
+
# When you move an autoscaling configuration to a different compartment, associated resources such as instance
|
|
117
|
+
# pools are not moved.
|
|
118
|
+
#
|
|
119
|
+
# @param [String] auto_scaling_configuration_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the autoscaling configuration.
|
|
120
|
+
# @param [OCI::Autoscaling::Models::ChangeAutoScalingCompartmentDetails] change_compartment_details Request to change the compartment of given autoscaling configuration.
|
|
121
|
+
# @param [Hash] opts the optional parameters
|
|
122
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
123
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
124
|
+
# @option opts [String] :opc_request_id
|
|
125
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
|
126
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
127
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
128
|
+
#
|
|
129
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
130
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
131
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
|
132
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
133
|
+
# may be rejected).
|
|
134
|
+
#
|
|
135
|
+
# @return [Response] A Response object with data of type nil
|
|
136
|
+
def change_auto_scaling_configuration_compartment(auto_scaling_configuration_id, change_compartment_details, opts = {})
|
|
137
|
+
logger.debug 'Calling operation AutoScalingClient#change_auto_scaling_configuration_compartment.' if logger
|
|
138
|
+
|
|
139
|
+
raise "Missing the required parameter 'auto_scaling_configuration_id' when calling change_auto_scaling_configuration_compartment." if auto_scaling_configuration_id.nil?
|
|
140
|
+
raise "Missing the required parameter 'change_compartment_details' when calling change_auto_scaling_configuration_compartment." if change_compartment_details.nil?
|
|
141
|
+
raise "Parameter value for 'auto_scaling_configuration_id' must not be blank" if OCI::Internal::Util.blank_string?(auto_scaling_configuration_id)
|
|
142
|
+
|
|
143
|
+
path = '/autoScalingConfigurations/{autoScalingConfigurationId}/actions/changeCompartment'.sub('{autoScalingConfigurationId}', auto_scaling_configuration_id.to_s)
|
|
144
|
+
operation_signing_strategy = :standard
|
|
145
|
+
|
|
146
|
+
# rubocop:disable Style/NegatedIf
|
|
147
|
+
# Query Params
|
|
148
|
+
query_params = {}
|
|
149
|
+
|
|
150
|
+
# Header Params
|
|
151
|
+
header_params = {}
|
|
152
|
+
header_params[:accept] = 'application/json'
|
|
153
|
+
header_params[:'content-type'] = 'application/json'
|
|
154
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
155
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
156
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
157
|
+
# rubocop:enable Style/NegatedIf
|
|
158
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
159
|
+
|
|
160
|
+
post_body = @api_client.object_to_http_body(change_compartment_details)
|
|
161
|
+
|
|
162
|
+
# rubocop:disable Metrics/BlockLength
|
|
163
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AutoScalingClient#change_auto_scaling_configuration_compartment') do
|
|
164
|
+
@api_client.call_api(
|
|
165
|
+
:POST,
|
|
166
|
+
path,
|
|
167
|
+
endpoint,
|
|
168
|
+
header_params: header_params,
|
|
169
|
+
query_params: query_params,
|
|
170
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
171
|
+
body: post_body
|
|
172
|
+
)
|
|
173
|
+
end
|
|
174
|
+
# rubocop:enable Metrics/BlockLength
|
|
175
|
+
end
|
|
176
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
177
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
178
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
179
|
+
|
|
180
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
181
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
182
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
183
|
+
|
|
184
|
+
|
|
112
185
|
# Creates an autoscaling configuration.
|
|
113
186
|
# @param [OCI::Autoscaling::Models::CreateAutoScalingConfigurationDetails] create_auto_scaling_configuration_details Creation details for an autoscaling configuration.
|
|
114
187
|
# @param [Hash] opts the optional parameters
|
|
@@ -16,6 +16,7 @@ require 'oci/autoscaling/models/auto_scaling_configuration_summary'
|
|
|
16
16
|
require 'oci/autoscaling/models/auto_scaling_policy'
|
|
17
17
|
require 'oci/autoscaling/models/auto_scaling_policy_summary'
|
|
18
18
|
require 'oci/autoscaling/models/capacity'
|
|
19
|
+
require 'oci/autoscaling/models/change_auto_scaling_compartment_details'
|
|
19
20
|
require 'oci/autoscaling/models/condition'
|
|
20
21
|
require 'oci/autoscaling/models/create_auto_scaling_configuration_details'
|
|
21
22
|
require 'oci/autoscaling/models/create_auto_scaling_policy_details'
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
# The configuration details for the move operation.
|
|
8
|
+
class Autoscaling::Models::ChangeAutoScalingCompartmentDetails
|
|
9
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the autoscaling configuration to.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
attr_accessor :compartment_id
|
|
13
|
+
|
|
14
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
15
|
+
def self.attribute_map
|
|
16
|
+
{
|
|
17
|
+
# rubocop:disable Style/SymbolLiteral
|
|
18
|
+
'compartment_id': :'compartmentId'
|
|
19
|
+
# rubocop:enable Style/SymbolLiteral
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Attribute type mapping.
|
|
24
|
+
def self.swagger_types
|
|
25
|
+
{
|
|
26
|
+
# rubocop:disable Style/SymbolLiteral
|
|
27
|
+
'compartment_id': :'String'
|
|
28
|
+
# rubocop:enable Style/SymbolLiteral
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
33
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# Initializes the object
|
|
37
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
38
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
39
|
+
def initialize(attributes = {})
|
|
40
|
+
return unless attributes.is_a?(Hash)
|
|
41
|
+
|
|
42
|
+
# convert string to symbol for hash key
|
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
44
|
+
|
|
45
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
46
|
+
|
|
47
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
48
|
+
|
|
49
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
50
|
+
end
|
|
51
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
52
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
53
|
+
|
|
54
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# Checks equality by comparing each attribute.
|
|
58
|
+
# @param [Object] other the other object to be compared
|
|
59
|
+
def ==(other)
|
|
60
|
+
return true if equal?(other)
|
|
61
|
+
|
|
62
|
+
self.class == other.class &&
|
|
63
|
+
compartment_id == other.compartment_id
|
|
64
|
+
end
|
|
65
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
66
|
+
|
|
67
|
+
# @see the `==` method
|
|
68
|
+
# @param [Object] other the other object to be compared
|
|
69
|
+
def eql?(other)
|
|
70
|
+
self == other
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
# Calculates hash code according to all attributes.
|
|
77
|
+
# @return [Fixnum] Hash code
|
|
78
|
+
def hash
|
|
79
|
+
[compartment_id].hash
|
|
80
|
+
end
|
|
81
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
82
|
+
|
|
83
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# Builds the object from hash
|
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
88
|
+
# @return [Object] Returns the model itself
|
|
89
|
+
def build_from_hash(attributes)
|
|
90
|
+
return nil unless attributes.is_a?(Hash)
|
|
91
|
+
|
|
92
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
93
|
+
if type =~ /^Array<(.*)>/i
|
|
94
|
+
# check to ensure the input is an array given that the the attribute
|
|
95
|
+
# is documented as an array but the input is not
|
|
96
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
97
|
+
public_method("#{key}=").call(
|
|
98
|
+
attributes[self.class.attribute_map[key]]
|
|
99
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
100
|
+
)
|
|
101
|
+
end
|
|
102
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
103
|
+
public_method("#{key}=").call(
|
|
104
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
self
|
|
111
|
+
end
|
|
112
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
113
|
+
|
|
114
|
+
# Returns the string representation of the object
|
|
115
|
+
# @return [String] String presentation of the object
|
|
116
|
+
def to_s
|
|
117
|
+
to_hash.to_s
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Returns the object in the form of hash
|
|
121
|
+
# @return [Hash] Returns the object in the form of hash
|
|
122
|
+
def to_hash
|
|
123
|
+
hash = {}
|
|
124
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
125
|
+
value = public_method(attr).call
|
|
126
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
127
|
+
|
|
128
|
+
hash[param] = _to_hash(value)
|
|
129
|
+
end
|
|
130
|
+
hash
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
private
|
|
134
|
+
|
|
135
|
+
# Outputs non-array value in the form of hash
|
|
136
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
137
|
+
# @param [Object] value Any valid value
|
|
138
|
+
# @return [Hash] Returns the value in the form of hash
|
|
139
|
+
def _to_hash(value)
|
|
140
|
+
if value.is_a?(Array)
|
|
141
|
+
value.compact.map { |v| _to_hash(v) }
|
|
142
|
+
elsif value.is_a?(Hash)
|
|
143
|
+
{}.tap do |hash|
|
|
144
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
145
|
+
end
|
|
146
|
+
elsif value.respond_to? :to_hash
|
|
147
|
+
value.to_hash
|
|
148
|
+
else
|
|
149
|
+
value
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -8,7 +8,6 @@ module OCI
|
|
|
8
8
|
#
|
|
9
9
|
class Autoscaling::Models::CreateAutoScalingConfigurationDetails
|
|
10
10
|
# **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the autoscaling configuration.
|
|
11
|
-
# The autoscaling configuration and the instance pool that it manages must be in the same compartment.
|
|
12
11
|
#
|
|
13
12
|
# @return [String]
|
|
14
13
|
attr_accessor :compartment_id
|
|
@@ -112,6 +112,348 @@ module OCI
|
|
|
112
112
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
113
113
|
|
|
114
114
|
|
|
115
|
+
# Change the compartment of a boot volume backup
|
|
116
|
+
#
|
|
117
|
+
# @param [String] boot_volume_backup_id The OCID of the boot volume backup.
|
|
118
|
+
# @param [OCI::Core::Models::ChangeBootVolumeBackupCompartmentDetails] change_boot_volume_backup_compartment_details Request to change the compartment of given boot volume backup.
|
|
119
|
+
# @param [Hash] opts the optional parameters
|
|
120
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
121
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
122
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
|
123
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
|
124
|
+
#
|
|
125
|
+
# @return [Response] A Response object with data of type nil
|
|
126
|
+
def change_boot_volume_backup_compartment(boot_volume_backup_id, change_boot_volume_backup_compartment_details, opts = {})
|
|
127
|
+
logger.debug 'Calling operation BlockstorageClient#change_boot_volume_backup_compartment.' if logger
|
|
128
|
+
|
|
129
|
+
raise "Missing the required parameter 'boot_volume_backup_id' when calling change_boot_volume_backup_compartment." if boot_volume_backup_id.nil?
|
|
130
|
+
raise "Missing the required parameter 'change_boot_volume_backup_compartment_details' when calling change_boot_volume_backup_compartment." if change_boot_volume_backup_compartment_details.nil?
|
|
131
|
+
raise "Parameter value for 'boot_volume_backup_id' must not be blank" if OCI::Internal::Util.blank_string?(boot_volume_backup_id)
|
|
132
|
+
|
|
133
|
+
path = '/bootVolumeBackups/{bootVolumeBackupId}/actions/changeCompartment'.sub('{bootVolumeBackupId}', boot_volume_backup_id.to_s)
|
|
134
|
+
operation_signing_strategy = :standard
|
|
135
|
+
|
|
136
|
+
# rubocop:disable Style/NegatedIf
|
|
137
|
+
# Query Params
|
|
138
|
+
query_params = {}
|
|
139
|
+
|
|
140
|
+
# Header Params
|
|
141
|
+
header_params = {}
|
|
142
|
+
header_params[:accept] = 'application/json'
|
|
143
|
+
header_params[:'content-type'] = 'application/json'
|
|
144
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
145
|
+
# rubocop:enable Style/NegatedIf
|
|
146
|
+
|
|
147
|
+
post_body = @api_client.object_to_http_body(change_boot_volume_backup_compartment_details)
|
|
148
|
+
|
|
149
|
+
# rubocop:disable Metrics/BlockLength
|
|
150
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#change_boot_volume_backup_compartment') do
|
|
151
|
+
@api_client.call_api(
|
|
152
|
+
:POST,
|
|
153
|
+
path,
|
|
154
|
+
endpoint,
|
|
155
|
+
header_params: header_params,
|
|
156
|
+
query_params: query_params,
|
|
157
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
158
|
+
body: post_body
|
|
159
|
+
)
|
|
160
|
+
end
|
|
161
|
+
# rubocop:enable Metrics/BlockLength
|
|
162
|
+
end
|
|
163
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
164
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
165
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
166
|
+
|
|
167
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
168
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
169
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
# Change the compartment of a boot volume
|
|
173
|
+
#
|
|
174
|
+
# @param [String] boot_volume_id The OCID of the boot volume.
|
|
175
|
+
# @param [OCI::Core::Models::ChangeBootVolumeCompartmentDetails] change_boot_volume_compartment_details Request to change the compartment of given boot volume.
|
|
176
|
+
# @param [Hash] opts the optional parameters
|
|
177
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
178
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
179
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
|
180
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
|
181
|
+
#
|
|
182
|
+
# @return [Response] A Response object with data of type nil
|
|
183
|
+
def change_boot_volume_compartment(boot_volume_id, change_boot_volume_compartment_details, opts = {})
|
|
184
|
+
logger.debug 'Calling operation BlockstorageClient#change_boot_volume_compartment.' if logger
|
|
185
|
+
|
|
186
|
+
raise "Missing the required parameter 'boot_volume_id' when calling change_boot_volume_compartment." if boot_volume_id.nil?
|
|
187
|
+
raise "Missing the required parameter 'change_boot_volume_compartment_details' when calling change_boot_volume_compartment." if change_boot_volume_compartment_details.nil?
|
|
188
|
+
raise "Parameter value for 'boot_volume_id' must not be blank" if OCI::Internal::Util.blank_string?(boot_volume_id)
|
|
189
|
+
|
|
190
|
+
path = '/bootVolumes/{bootVolumeId}/actions/changeCompartment'.sub('{bootVolumeId}', boot_volume_id.to_s)
|
|
191
|
+
operation_signing_strategy = :standard
|
|
192
|
+
|
|
193
|
+
# rubocop:disable Style/NegatedIf
|
|
194
|
+
# Query Params
|
|
195
|
+
query_params = {}
|
|
196
|
+
|
|
197
|
+
# Header Params
|
|
198
|
+
header_params = {}
|
|
199
|
+
header_params[:accept] = 'application/json'
|
|
200
|
+
header_params[:'content-type'] = 'application/json'
|
|
201
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
202
|
+
# rubocop:enable Style/NegatedIf
|
|
203
|
+
|
|
204
|
+
post_body = @api_client.object_to_http_body(change_boot_volume_compartment_details)
|
|
205
|
+
|
|
206
|
+
# rubocop:disable Metrics/BlockLength
|
|
207
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#change_boot_volume_compartment') do
|
|
208
|
+
@api_client.call_api(
|
|
209
|
+
:POST,
|
|
210
|
+
path,
|
|
211
|
+
endpoint,
|
|
212
|
+
header_params: header_params,
|
|
213
|
+
query_params: query_params,
|
|
214
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
215
|
+
body: post_body
|
|
216
|
+
)
|
|
217
|
+
end
|
|
218
|
+
# rubocop:enable Metrics/BlockLength
|
|
219
|
+
end
|
|
220
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
221
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
222
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
223
|
+
|
|
224
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
225
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
226
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
# Change the compartment of a volume backup
|
|
230
|
+
#
|
|
231
|
+
# @param [String] volume_backup_id The OCID of the volume backup.
|
|
232
|
+
# @param [OCI::Core::Models::ChangeVolumeBackupCompartmentDetails] change_volume_backup_compartment_details Request to change the compartment of given volume backup.
|
|
233
|
+
# @param [Hash] opts the optional parameters
|
|
234
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
235
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
236
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
|
237
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
|
238
|
+
#
|
|
239
|
+
# @return [Response] A Response object with data of type nil
|
|
240
|
+
def change_volume_backup_compartment(volume_backup_id, change_volume_backup_compartment_details, opts = {})
|
|
241
|
+
logger.debug 'Calling operation BlockstorageClient#change_volume_backup_compartment.' if logger
|
|
242
|
+
|
|
243
|
+
raise "Missing the required parameter 'volume_backup_id' when calling change_volume_backup_compartment." if volume_backup_id.nil?
|
|
244
|
+
raise "Missing the required parameter 'change_volume_backup_compartment_details' when calling change_volume_backup_compartment." if change_volume_backup_compartment_details.nil?
|
|
245
|
+
raise "Parameter value for 'volume_backup_id' must not be blank" if OCI::Internal::Util.blank_string?(volume_backup_id)
|
|
246
|
+
|
|
247
|
+
path = '/volumeBackups/{volumeBackupId}/actions/changeCompartment'.sub('{volumeBackupId}', volume_backup_id.to_s)
|
|
248
|
+
operation_signing_strategy = :standard
|
|
249
|
+
|
|
250
|
+
# rubocop:disable Style/NegatedIf
|
|
251
|
+
# Query Params
|
|
252
|
+
query_params = {}
|
|
253
|
+
|
|
254
|
+
# Header Params
|
|
255
|
+
header_params = {}
|
|
256
|
+
header_params[:accept] = 'application/json'
|
|
257
|
+
header_params[:'content-type'] = 'application/json'
|
|
258
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
259
|
+
# rubocop:enable Style/NegatedIf
|
|
260
|
+
|
|
261
|
+
post_body = @api_client.object_to_http_body(change_volume_backup_compartment_details)
|
|
262
|
+
|
|
263
|
+
# rubocop:disable Metrics/BlockLength
|
|
264
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#change_volume_backup_compartment') do
|
|
265
|
+
@api_client.call_api(
|
|
266
|
+
:POST,
|
|
267
|
+
path,
|
|
268
|
+
endpoint,
|
|
269
|
+
header_params: header_params,
|
|
270
|
+
query_params: query_params,
|
|
271
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
272
|
+
body: post_body
|
|
273
|
+
)
|
|
274
|
+
end
|
|
275
|
+
# rubocop:enable Metrics/BlockLength
|
|
276
|
+
end
|
|
277
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
278
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
279
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
280
|
+
|
|
281
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
282
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
283
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
# Change the compartment of a volume
|
|
287
|
+
#
|
|
288
|
+
# @param [String] volume_id The OCID of the volume.
|
|
289
|
+
# @param [OCI::Core::Models::ChangeVolumeCompartmentDetails] change_volume_compartment_details Request to change the compartment of given volume.
|
|
290
|
+
# @param [Hash] opts the optional parameters
|
|
291
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
292
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
293
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
|
294
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
|
295
|
+
#
|
|
296
|
+
# @return [Response] A Response object with data of type nil
|
|
297
|
+
def change_volume_compartment(volume_id, change_volume_compartment_details, opts = {})
|
|
298
|
+
logger.debug 'Calling operation BlockstorageClient#change_volume_compartment.' if logger
|
|
299
|
+
|
|
300
|
+
raise "Missing the required parameter 'volume_id' when calling change_volume_compartment." if volume_id.nil?
|
|
301
|
+
raise "Missing the required parameter 'change_volume_compartment_details' when calling change_volume_compartment." if change_volume_compartment_details.nil?
|
|
302
|
+
raise "Parameter value for 'volume_id' must not be blank" if OCI::Internal::Util.blank_string?(volume_id)
|
|
303
|
+
|
|
304
|
+
path = '/volumes/{volumeId}/actions/changeCompartment'.sub('{volumeId}', volume_id.to_s)
|
|
305
|
+
operation_signing_strategy = :standard
|
|
306
|
+
|
|
307
|
+
# rubocop:disable Style/NegatedIf
|
|
308
|
+
# Query Params
|
|
309
|
+
query_params = {}
|
|
310
|
+
|
|
311
|
+
# Header Params
|
|
312
|
+
header_params = {}
|
|
313
|
+
header_params[:accept] = 'application/json'
|
|
314
|
+
header_params[:'content-type'] = 'application/json'
|
|
315
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
316
|
+
# rubocop:enable Style/NegatedIf
|
|
317
|
+
|
|
318
|
+
post_body = @api_client.object_to_http_body(change_volume_compartment_details)
|
|
319
|
+
|
|
320
|
+
# rubocop:disable Metrics/BlockLength
|
|
321
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#change_volume_compartment') do
|
|
322
|
+
@api_client.call_api(
|
|
323
|
+
:POST,
|
|
324
|
+
path,
|
|
325
|
+
endpoint,
|
|
326
|
+
header_params: header_params,
|
|
327
|
+
query_params: query_params,
|
|
328
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
329
|
+
body: post_body
|
|
330
|
+
)
|
|
331
|
+
end
|
|
332
|
+
# rubocop:enable Metrics/BlockLength
|
|
333
|
+
end
|
|
334
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
335
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
336
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
337
|
+
|
|
338
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
339
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
340
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
# Change the compartment of a volume group backup
|
|
344
|
+
#
|
|
345
|
+
# @param [String] volume_group_backup_id The Oracle Cloud ID (OCID) that uniquely identifies the volume group backup.
|
|
346
|
+
# @param [OCI::Core::Models::ChangeVolumeGroupBackupCompartmentDetails] change_volume_group_backup_compartment_details Request to change the compartment of given volume group backup.
|
|
347
|
+
# @param [Hash] opts the optional parameters
|
|
348
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
349
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
350
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
|
351
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
|
352
|
+
#
|
|
353
|
+
# @return [Response] A Response object with data of type nil
|
|
354
|
+
def change_volume_group_backup_compartment(volume_group_backup_id, change_volume_group_backup_compartment_details, opts = {})
|
|
355
|
+
logger.debug 'Calling operation BlockstorageClient#change_volume_group_backup_compartment.' if logger
|
|
356
|
+
|
|
357
|
+
raise "Missing the required parameter 'volume_group_backup_id' when calling change_volume_group_backup_compartment." if volume_group_backup_id.nil?
|
|
358
|
+
raise "Missing the required parameter 'change_volume_group_backup_compartment_details' when calling change_volume_group_backup_compartment." if change_volume_group_backup_compartment_details.nil?
|
|
359
|
+
raise "Parameter value for 'volume_group_backup_id' must not be blank" if OCI::Internal::Util.blank_string?(volume_group_backup_id)
|
|
360
|
+
|
|
361
|
+
path = '/volumeGroupBackups/{volumeGroupBackupId}/actions/changeCompartment'.sub('{volumeGroupBackupId}', volume_group_backup_id.to_s)
|
|
362
|
+
operation_signing_strategy = :standard
|
|
363
|
+
|
|
364
|
+
# rubocop:disable Style/NegatedIf
|
|
365
|
+
# Query Params
|
|
366
|
+
query_params = {}
|
|
367
|
+
|
|
368
|
+
# Header Params
|
|
369
|
+
header_params = {}
|
|
370
|
+
header_params[:accept] = 'application/json'
|
|
371
|
+
header_params[:'content-type'] = 'application/json'
|
|
372
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
373
|
+
# rubocop:enable Style/NegatedIf
|
|
374
|
+
|
|
375
|
+
post_body = @api_client.object_to_http_body(change_volume_group_backup_compartment_details)
|
|
376
|
+
|
|
377
|
+
# rubocop:disable Metrics/BlockLength
|
|
378
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#change_volume_group_backup_compartment') do
|
|
379
|
+
@api_client.call_api(
|
|
380
|
+
:POST,
|
|
381
|
+
path,
|
|
382
|
+
endpoint,
|
|
383
|
+
header_params: header_params,
|
|
384
|
+
query_params: query_params,
|
|
385
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
386
|
+
body: post_body
|
|
387
|
+
)
|
|
388
|
+
end
|
|
389
|
+
# rubocop:enable Metrics/BlockLength
|
|
390
|
+
end
|
|
391
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
392
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
393
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
394
|
+
|
|
395
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
396
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
397
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
# Change the compartment of a volume group
|
|
401
|
+
#
|
|
402
|
+
# @param [String] volume_group_id The Oracle Cloud ID (OCID) that uniquely identifies the volume group.
|
|
403
|
+
# @param [OCI::Core::Models::ChangeVolumeGroupCompartmentDetails] change_volume_group_compartment_details Request to change the compartment of given volume group.
|
|
404
|
+
# @param [Hash] opts the optional parameters
|
|
405
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
406
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
407
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
|
408
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
|
409
|
+
#
|
|
410
|
+
# @return [Response] A Response object with data of type nil
|
|
411
|
+
def change_volume_group_compartment(volume_group_id, change_volume_group_compartment_details, opts = {})
|
|
412
|
+
logger.debug 'Calling operation BlockstorageClient#change_volume_group_compartment.' if logger
|
|
413
|
+
|
|
414
|
+
raise "Missing the required parameter 'volume_group_id' when calling change_volume_group_compartment." if volume_group_id.nil?
|
|
415
|
+
raise "Missing the required parameter 'change_volume_group_compartment_details' when calling change_volume_group_compartment." if change_volume_group_compartment_details.nil?
|
|
416
|
+
raise "Parameter value for 'volume_group_id' must not be blank" if OCI::Internal::Util.blank_string?(volume_group_id)
|
|
417
|
+
|
|
418
|
+
path = '/volumeGroups/{volumeGroupId}/actions/changeCompartment'.sub('{volumeGroupId}', volume_group_id.to_s)
|
|
419
|
+
operation_signing_strategy = :standard
|
|
420
|
+
|
|
421
|
+
# rubocop:disable Style/NegatedIf
|
|
422
|
+
# Query Params
|
|
423
|
+
query_params = {}
|
|
424
|
+
|
|
425
|
+
# Header Params
|
|
426
|
+
header_params = {}
|
|
427
|
+
header_params[:accept] = 'application/json'
|
|
428
|
+
header_params[:'content-type'] = 'application/json'
|
|
429
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
430
|
+
# rubocop:enable Style/NegatedIf
|
|
431
|
+
|
|
432
|
+
post_body = @api_client.object_to_http_body(change_volume_group_compartment_details)
|
|
433
|
+
|
|
434
|
+
# rubocop:disable Metrics/BlockLength
|
|
435
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'BlockstorageClient#change_volume_group_compartment') do
|
|
436
|
+
@api_client.call_api(
|
|
437
|
+
:POST,
|
|
438
|
+
path,
|
|
439
|
+
endpoint,
|
|
440
|
+
header_params: header_params,
|
|
441
|
+
query_params: query_params,
|
|
442
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
443
|
+
body: post_body
|
|
444
|
+
)
|
|
445
|
+
end
|
|
446
|
+
# rubocop:enable Metrics/BlockLength
|
|
447
|
+
end
|
|
448
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
449
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
450
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
451
|
+
|
|
452
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
453
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
454
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
455
|
+
|
|
456
|
+
|
|
115
457
|
# Creates a volume backup copy in specified region. For general information about volume backups,
|
|
116
458
|
# see [Overview of Block Volume Service Backups](https://docs.cloud.oracle.com/Content/Block/Concepts/blockvolumebackups.htm)
|
|
117
459
|
#
|