oci 2.5.9 → 2.5.10
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -366,6 +366,78 @@ module OCI
|
|
366
366
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
367
367
|
|
368
368
|
|
369
|
+
# Moves an image into a different compartment within the same tenancy. For information about moving
|
370
|
+
# resources between compartments, see
|
371
|
+
# [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
372
|
+
#
|
373
|
+
# @param [String] image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
|
374
|
+
# @param [OCI::Core::Models::ChangeImageCompartmentDetails] change_image_compartment_details Request to change the compartment of a given image.
|
375
|
+
# @param [Hash] opts the optional parameters
|
376
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
377
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
378
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
379
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
380
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
381
|
+
#
|
382
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
383
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
384
|
+
#
|
385
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
386
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
387
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
388
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
389
|
+
# may be rejected).
|
390
|
+
#
|
391
|
+
# @return [Response] A Response object with data of type nil
|
392
|
+
def change_image_compartment(image_id, change_image_compartment_details, opts = {})
|
393
|
+
logger.debug 'Calling operation ComputeClient#change_image_compartment.' if logger
|
394
|
+
|
395
|
+
raise "Missing the required parameter 'image_id' when calling change_image_compartment." if image_id.nil?
|
396
|
+
raise "Missing the required parameter 'change_image_compartment_details' when calling change_image_compartment." if change_image_compartment_details.nil?
|
397
|
+
raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id)
|
398
|
+
|
399
|
+
path = '/images/{imageId}/actions/changeCompartment'.sub('{imageId}', image_id.to_s)
|
400
|
+
operation_signing_strategy = :standard
|
401
|
+
|
402
|
+
# rubocop:disable Style/NegatedIf
|
403
|
+
# Query Params
|
404
|
+
query_params = {}
|
405
|
+
|
406
|
+
# Header Params
|
407
|
+
header_params = {}
|
408
|
+
header_params[:accept] = 'application/json'
|
409
|
+
header_params[:'content-type'] = 'application/json'
|
410
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
411
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
412
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
413
|
+
# rubocop:enable Style/NegatedIf
|
414
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
415
|
+
|
416
|
+
post_body = @api_client.object_to_http_body(change_image_compartment_details)
|
417
|
+
|
418
|
+
# rubocop:disable Metrics/BlockLength
|
419
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeClient#change_image_compartment') do
|
420
|
+
@api_client.call_api(
|
421
|
+
:POST,
|
422
|
+
path,
|
423
|
+
endpoint,
|
424
|
+
header_params: header_params,
|
425
|
+
query_params: query_params,
|
426
|
+
operation_signing_strategy: operation_signing_strategy,
|
427
|
+
body: post_body
|
428
|
+
)
|
429
|
+
end
|
430
|
+
# rubocop:enable Metrics/BlockLength
|
431
|
+
end
|
432
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
433
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
434
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
435
|
+
|
436
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
437
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
438
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
439
|
+
|
440
|
+
|
369
441
|
# Create a subscription for listing resource version for a compartment. It will take some time to propagate to all regions.
|
370
442
|
#
|
371
443
|
# @param [OCI::Core::Models::CreateAppCatalogSubscriptionDetails] create_app_catalog_subscription_details Request for the creation of a subscription for listing resource version for a compartment.
|
@@ -683,7 +755,7 @@ module OCI
|
|
683
755
|
|
684
756
|
|
685
757
|
# Deletes an image.
|
686
|
-
# @param [String] image_id The OCID of the image.
|
758
|
+
# @param [String] image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
|
687
759
|
# @param [Hash] opts the optional parameters
|
688
760
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
689
761
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -986,7 +1058,7 @@ module OCI
|
|
986
1058
|
# See [Object Storage URLs](https://docs.cloud.oracle.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and [Using Pre-Authenticated Requests](https://docs.cloud.oracle.com/Content/Object/Tasks/usingpreauthenticatedrequests.htm)
|
987
1059
|
# for constructing URLs for image import/export.
|
988
1060
|
#
|
989
|
-
# @param [String] image_id The OCID of the image.
|
1061
|
+
# @param [String] image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
|
990
1062
|
# @param [OCI::Core::Models::ExportImageDetails] export_image_details Details for the image export.
|
991
1063
|
# @param [Hash] opts the optional parameters
|
992
1064
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
@@ -1385,7 +1457,7 @@ module OCI
|
|
1385
1457
|
|
1386
1458
|
|
1387
1459
|
# Gets the specified image.
|
1388
|
-
# @param [String] image_id The OCID of the image.
|
1460
|
+
# @param [String] image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
|
1389
1461
|
# @param [Hash] opts the optional parameters
|
1390
1462
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1391
1463
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -2701,7 +2773,7 @@ module OCI
|
|
2701
2773
|
# call. For important details about how pagination works, see
|
2702
2774
|
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2703
2775
|
#
|
2704
|
-
# @option opts [String] :image_id The OCID of an image.
|
2776
|
+
# @option opts [String] :image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an image.
|
2705
2777
|
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::Shape Shape}>
|
2706
2778
|
def list_shapes(compartment_id, opts = {})
|
2707
2779
|
logger.debug 'Calling operation ComputeClient#list_shapes.' if logger
|
@@ -3030,7 +3102,7 @@ module OCI
|
|
3030
3102
|
|
3031
3103
|
|
3032
3104
|
# Updates the display name of the image. Avoid entering confidential information.
|
3033
|
-
# @param [String] image_id The OCID of the image.
|
3105
|
+
# @param [String] image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
|
3034
3106
|
# @param [OCI::Core::Models::UpdateImageDetails] update_image_details Updates the image display name field. Avoid entering confidential information.
|
3035
3107
|
# @param [Hash] opts the optional parameters
|
3036
3108
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
@@ -301,7 +301,7 @@ module OCI
|
|
301
301
|
# Calls {OCI::Core::ComputeClient#delete_image} and then waits for the {OCI::Core::Models::Image} acted upon
|
302
302
|
# to enter the given state(s).
|
303
303
|
#
|
304
|
-
# @param [String] image_id The OCID of the image.
|
304
|
+
# @param [String] image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
|
305
305
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::Image#lifecycle_state}
|
306
306
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::ComputeClient#delete_image}
|
307
307
|
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
@@ -501,7 +501,7 @@ module OCI
|
|
501
501
|
# Calls {OCI::Core::ComputeClient#export_image} and then waits for the {OCI::Core::Models::Image} acted upon
|
502
502
|
# to enter the given state(s).
|
503
503
|
#
|
504
|
-
# @param [String] image_id The OCID of the image.
|
504
|
+
# @param [String] image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
|
505
505
|
# @param [OCI::Core::Models::ExportImageDetails] export_image_details Details for the image export.
|
506
506
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::Image#lifecycle_state}
|
507
507
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::ComputeClient#export_image}
|
@@ -701,7 +701,7 @@ module OCI
|
|
701
701
|
# Calls {OCI::Core::ComputeClient#update_image} and then waits for the {OCI::Core::Models::Image} acted upon
|
702
702
|
# to enter the given state(s).
|
703
703
|
#
|
704
|
-
# @param [String] image_id The OCID of the image.
|
704
|
+
# @param [String] image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
|
705
705
|
# @param [OCI::Core::Models::UpdateImageDetails] update_image_details Updates the image display name field. Avoid entering confidential information.
|
706
706
|
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::Image#lifecycle_state}
|
707
707
|
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::ComputeClient#update_image}
|
@@ -179,6 +179,160 @@ module OCI
|
|
179
179
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
180
180
|
|
181
181
|
|
182
|
+
# Moves an instance configuration into a different compartment within the same tenancy.
|
183
|
+
# For information about moving resources between compartments, see
|
184
|
+
# [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
185
|
+
#
|
186
|
+
# **Important:** Most of the properties for an existing instance configuration, including the compartment,
|
187
|
+
# cannot be modified after you create the instance configuration. Although you can move an instance configuration
|
188
|
+
# to a different compartment, you will not be able to use the instance configuration to manage instance pools
|
189
|
+
# in the new compartment. If you want to update an instance configuration to point to a different compartment,
|
190
|
+
# you should instead create a new instance configuration in the target compartment using
|
191
|
+
# [CreateInstanceConfiguration](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConfiguration/CreateInstanceConfiguration).
|
192
|
+
#
|
193
|
+
# @param [String] instance_configuration_id The OCID of the instance configuration.
|
194
|
+
# @param [OCI::Core::Models::ChangeInstanceConfigurationCompartmentDetails] change_instance_configuration_compartment_details Request to change the compartment of given instance configuration.
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
197
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
198
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
199
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
200
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
201
|
+
#
|
202
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
203
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
204
|
+
#
|
205
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
206
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
207
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
208
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
209
|
+
# may be rejected).
|
210
|
+
#
|
211
|
+
# @return [Response] A Response object with data of type nil
|
212
|
+
def change_instance_configuration_compartment(instance_configuration_id, change_instance_configuration_compartment_details, opts = {})
|
213
|
+
logger.debug 'Calling operation ComputeManagementClient#change_instance_configuration_compartment.' if logger
|
214
|
+
|
215
|
+
raise "Missing the required parameter 'instance_configuration_id' when calling change_instance_configuration_compartment." if instance_configuration_id.nil?
|
216
|
+
raise "Missing the required parameter 'change_instance_configuration_compartment_details' when calling change_instance_configuration_compartment." if change_instance_configuration_compartment_details.nil?
|
217
|
+
raise "Parameter value for 'instance_configuration_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_configuration_id)
|
218
|
+
|
219
|
+
path = '/instanceConfigurations/{instanceConfigurationId}/actions/changeCompartment'.sub('{instanceConfigurationId}', instance_configuration_id.to_s)
|
220
|
+
operation_signing_strategy = :standard
|
221
|
+
|
222
|
+
# rubocop:disable Style/NegatedIf
|
223
|
+
# Query Params
|
224
|
+
query_params = {}
|
225
|
+
|
226
|
+
# Header Params
|
227
|
+
header_params = {}
|
228
|
+
header_params[:accept] = 'application/json'
|
229
|
+
header_params[:'content-type'] = 'application/json'
|
230
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
231
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
232
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
233
|
+
# rubocop:enable Style/NegatedIf
|
234
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
235
|
+
|
236
|
+
post_body = @api_client.object_to_http_body(change_instance_configuration_compartment_details)
|
237
|
+
|
238
|
+
# rubocop:disable Metrics/BlockLength
|
239
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#change_instance_configuration_compartment') do
|
240
|
+
@api_client.call_api(
|
241
|
+
:POST,
|
242
|
+
path,
|
243
|
+
endpoint,
|
244
|
+
header_params: header_params,
|
245
|
+
query_params: query_params,
|
246
|
+
operation_signing_strategy: operation_signing_strategy,
|
247
|
+
body: post_body
|
248
|
+
)
|
249
|
+
end
|
250
|
+
# rubocop:enable Metrics/BlockLength
|
251
|
+
end
|
252
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
253
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
254
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
255
|
+
|
256
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
257
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
258
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
259
|
+
|
260
|
+
|
261
|
+
# Moves an instance pool into a different compartment within the same tenancy. For
|
262
|
+
# information about moving resources between compartments, see
|
263
|
+
# [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
264
|
+
#
|
265
|
+
# When you move an instance pool to a different compartment, associated resources such as the instances in
|
266
|
+
# the pool, boot volumes, VNICs, and autoscaling configurations are not moved.
|
267
|
+
#
|
268
|
+
# @param [String] instance_pool_id The OCID of the instance pool.
|
269
|
+
# @param [OCI::Core::Models::ChangeInstancePoolCompartmentDetails] change_instance_pool_compartment_details Request to change the compartment of given instance pool.
|
270
|
+
# @param [Hash] opts the optional parameters
|
271
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
272
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
273
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
274
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
275
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
276
|
+
#
|
277
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
278
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
279
|
+
#
|
280
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
281
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
282
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
283
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
284
|
+
# may be rejected).
|
285
|
+
#
|
286
|
+
# @return [Response] A Response object with data of type nil
|
287
|
+
def change_instance_pool_compartment(instance_pool_id, change_instance_pool_compartment_details, opts = {})
|
288
|
+
logger.debug 'Calling operation ComputeManagementClient#change_instance_pool_compartment.' if logger
|
289
|
+
|
290
|
+
raise "Missing the required parameter 'instance_pool_id' when calling change_instance_pool_compartment." if instance_pool_id.nil?
|
291
|
+
raise "Missing the required parameter 'change_instance_pool_compartment_details' when calling change_instance_pool_compartment." if change_instance_pool_compartment_details.nil?
|
292
|
+
raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
|
293
|
+
|
294
|
+
path = '/instancePools/{instancePoolId}/actions/changeCompartment'.sub('{instancePoolId}', instance_pool_id.to_s)
|
295
|
+
operation_signing_strategy = :standard
|
296
|
+
|
297
|
+
# rubocop:disable Style/NegatedIf
|
298
|
+
# Query Params
|
299
|
+
query_params = {}
|
300
|
+
|
301
|
+
# Header Params
|
302
|
+
header_params = {}
|
303
|
+
header_params[:accept] = 'application/json'
|
304
|
+
header_params[:'content-type'] = 'application/json'
|
305
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
306
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
307
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
308
|
+
# rubocop:enable Style/NegatedIf
|
309
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
310
|
+
|
311
|
+
post_body = @api_client.object_to_http_body(change_instance_pool_compartment_details)
|
312
|
+
|
313
|
+
# rubocop:disable Metrics/BlockLength
|
314
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#change_instance_pool_compartment') do
|
315
|
+
@api_client.call_api(
|
316
|
+
:POST,
|
317
|
+
path,
|
318
|
+
endpoint,
|
319
|
+
header_params: header_params,
|
320
|
+
query_params: query_params,
|
321
|
+
operation_signing_strategy: operation_signing_strategy,
|
322
|
+
body: post_body
|
323
|
+
)
|
324
|
+
end
|
325
|
+
# rubocop:enable Metrics/BlockLength
|
326
|
+
end
|
327
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
328
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
329
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
330
|
+
|
331
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
332
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
333
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
334
|
+
|
335
|
+
|
182
336
|
# Creates an instance configuration
|
183
337
|
#
|
184
338
|
# @param [OCI::Core::Models::CreateInstanceConfigurationDetails] create_instance_configuration Instance configuration creation details
|
@@ -519,6 +673,63 @@ module OCI
|
|
519
673
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
520
674
|
# rubocop:enable Lint/UnusedMethodArgument
|
521
675
|
|
676
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
677
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
678
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
679
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
680
|
+
|
681
|
+
|
682
|
+
# Gets information about a load balancer that is attached to the specified instance pool.
|
683
|
+
#
|
684
|
+
# @param [String] instance_pool_id The OCID of the instance pool.
|
685
|
+
# @param [String] instance_pool_load_balancer_attachment_id The OCID of the load balancer attachment.
|
686
|
+
# @param [Hash] opts the optional parameters
|
687
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
688
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
689
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::InstancePoolLoadBalancerAttachment InstancePoolLoadBalancerAttachment}
|
690
|
+
def get_instance_pool_load_balancer_attachment(instance_pool_id, instance_pool_load_balancer_attachment_id, opts = {})
|
691
|
+
logger.debug 'Calling operation ComputeManagementClient#get_instance_pool_load_balancer_attachment.' if logger
|
692
|
+
|
693
|
+
raise "Missing the required parameter 'instance_pool_id' when calling get_instance_pool_load_balancer_attachment." if instance_pool_id.nil?
|
694
|
+
raise "Missing the required parameter 'instance_pool_load_balancer_attachment_id' when calling get_instance_pool_load_balancer_attachment." if instance_pool_load_balancer_attachment_id.nil?
|
695
|
+
raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
|
696
|
+
raise "Parameter value for 'instance_pool_load_balancer_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_load_balancer_attachment_id)
|
697
|
+
|
698
|
+
path = '/instancePools/{instancePoolId}/loadBalancerAttachments/{instancePoolLoadBalancerAttachmentId}'.sub('{instancePoolId}', instance_pool_id.to_s).sub('{instancePoolLoadBalancerAttachmentId}', instance_pool_load_balancer_attachment_id.to_s)
|
699
|
+
operation_signing_strategy = :standard
|
700
|
+
|
701
|
+
# rubocop:disable Style/NegatedIf
|
702
|
+
# Query Params
|
703
|
+
query_params = {}
|
704
|
+
|
705
|
+
# Header Params
|
706
|
+
header_params = {}
|
707
|
+
header_params[:accept] = 'application/json'
|
708
|
+
header_params[:'content-type'] = 'application/json'
|
709
|
+
# rubocop:enable Style/NegatedIf
|
710
|
+
|
711
|
+
post_body = nil
|
712
|
+
|
713
|
+
# rubocop:disable Metrics/BlockLength
|
714
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeManagementClient#get_instance_pool_load_balancer_attachment') do
|
715
|
+
@api_client.call_api(
|
716
|
+
:GET,
|
717
|
+
path,
|
718
|
+
endpoint,
|
719
|
+
header_params: header_params,
|
720
|
+
query_params: query_params,
|
721
|
+
operation_signing_strategy: operation_signing_strategy,
|
722
|
+
body: post_body,
|
723
|
+
return_type: 'OCI::Core::Models::InstancePoolLoadBalancerAttachment'
|
724
|
+
)
|
725
|
+
end
|
726
|
+
# rubocop:enable Metrics/BlockLength
|
727
|
+
end
|
728
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
729
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
730
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
731
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
732
|
+
|
522
733
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
523
734
|
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
524
735
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
data/lib/oci/core/core.rb
CHANGED
@@ -10,6 +10,9 @@ module OCI
|
|
10
10
|
end
|
11
11
|
|
12
12
|
# Require models
|
13
|
+
require 'oci/core/models/add_network_security_group_security_rules_details'
|
14
|
+
require 'oci/core/models/add_security_rule_details'
|
15
|
+
require 'oci/core/models/added_network_security_group_security_rules'
|
13
16
|
require 'oci/core/models/app_catalog_listing'
|
14
17
|
require 'oci/core/models/app_catalog_listing_resource_version'
|
15
18
|
require 'oci/core/models/app_catalog_listing_resource_version_agreements'
|
@@ -36,6 +39,21 @@ require 'oci/core/models/boot_volume_source_from_boot_volume_details'
|
|
36
39
|
require 'oci/core/models/bulk_add_virtual_circuit_public_prefixes_details'
|
37
40
|
require 'oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details'
|
38
41
|
require 'oci/core/models/capture_console_history_details'
|
42
|
+
require 'oci/core/models/change_boot_volume_backup_compartment_details'
|
43
|
+
require 'oci/core/models/change_boot_volume_compartment_details'
|
44
|
+
require 'oci/core/models/change_image_compartment_details'
|
45
|
+
require 'oci/core/models/change_instance_configuration_compartment_details'
|
46
|
+
require 'oci/core/models/change_instance_pool_compartment_details'
|
47
|
+
require 'oci/core/models/change_nat_gateway_compartment_details'
|
48
|
+
require 'oci/core/models/change_route_table_compartment_details'
|
49
|
+
require 'oci/core/models/change_security_list_compartment_details'
|
50
|
+
require 'oci/core/models/change_service_gateway_compartment_details'
|
51
|
+
require 'oci/core/models/change_subnet_compartment_details'
|
52
|
+
require 'oci/core/models/change_vcn_compartment_details'
|
53
|
+
require 'oci/core/models/change_volume_backup_compartment_details'
|
54
|
+
require 'oci/core/models/change_volume_compartment_details'
|
55
|
+
require 'oci/core/models/change_volume_group_backup_compartment_details'
|
56
|
+
require 'oci/core/models/change_volume_group_compartment_details'
|
39
57
|
require 'oci/core/models/compute_instance_details'
|
40
58
|
require 'oci/core/models/connect_local_peering_gateways_details'
|
41
59
|
require 'oci/core/models/connect_remote_peering_connections_details'
|
@@ -62,6 +80,7 @@ require 'oci/core/models/create_instance_pool_placement_configuration_details'
|
|
62
80
|
require 'oci/core/models/create_internet_gateway_details'
|
63
81
|
require 'oci/core/models/create_local_peering_gateway_details'
|
64
82
|
require 'oci/core/models/create_nat_gateway_details'
|
83
|
+
require 'oci/core/models/create_network_security_group_details'
|
65
84
|
require 'oci/core/models/create_private_ip_details'
|
66
85
|
require 'oci/core/models/create_public_ip_details'
|
67
86
|
require 'oci/core/models/create_remote_peering_connection_details'
|
@@ -153,15 +172,19 @@ require 'oci/core/models/launch_options'
|
|
153
172
|
require 'oci/core/models/letter_of_authority'
|
154
173
|
require 'oci/core/models/local_peering_gateway'
|
155
174
|
require 'oci/core/models/nat_gateway'
|
175
|
+
require 'oci/core/models/network_security_group'
|
176
|
+
require 'oci/core/models/network_security_group_vnic'
|
156
177
|
require 'oci/core/models/paravirtualized_volume_attachment'
|
157
178
|
require 'oci/core/models/peer_region_for_remote_peering'
|
158
179
|
require 'oci/core/models/port_range'
|
159
180
|
require 'oci/core/models/private_ip'
|
160
181
|
require 'oci/core/models/public_ip'
|
161
182
|
require 'oci/core/models/remote_peering_connection'
|
183
|
+
require 'oci/core/models/remove_network_security_group_security_rules_details'
|
162
184
|
require 'oci/core/models/route_rule'
|
163
185
|
require 'oci/core/models/route_table'
|
164
186
|
require 'oci/core/models/security_list'
|
187
|
+
require 'oci/core/models/security_rule'
|
165
188
|
require 'oci/core/models/service'
|
166
189
|
require 'oci/core/models/service_gateway'
|
167
190
|
require 'oci/core/models/service_id_request_details'
|
@@ -195,11 +218,14 @@ require 'oci/core/models/update_instance_pool_placement_configuration_details'
|
|
195
218
|
require 'oci/core/models/update_internet_gateway_details'
|
196
219
|
require 'oci/core/models/update_local_peering_gateway_details'
|
197
220
|
require 'oci/core/models/update_nat_gateway_details'
|
221
|
+
require 'oci/core/models/update_network_security_group_details'
|
222
|
+
require 'oci/core/models/update_network_security_group_security_rules_details'
|
198
223
|
require 'oci/core/models/update_private_ip_details'
|
199
224
|
require 'oci/core/models/update_public_ip_details'
|
200
225
|
require 'oci/core/models/update_remote_peering_connection_details'
|
201
226
|
require 'oci/core/models/update_route_table_details'
|
202
227
|
require 'oci/core/models/update_security_list_details'
|
228
|
+
require 'oci/core/models/update_security_rule_details'
|
203
229
|
require 'oci/core/models/update_service_gateway_details'
|
204
230
|
require 'oci/core/models/update_subnet_details'
|
205
231
|
require 'oci/core/models/update_vcn_details'
|
@@ -210,6 +236,7 @@ require 'oci/core/models/update_volume_details'
|
|
210
236
|
require 'oci/core/models/update_volume_group_backup_details'
|
211
237
|
require 'oci/core/models/update_volume_group_details'
|
212
238
|
require 'oci/core/models/update_volume_kms_key_details'
|
239
|
+
require 'oci/core/models/updated_network_security_group_security_rules'
|
213
240
|
require 'oci/core/models/vcn'
|
214
241
|
require 'oci/core/models/virtual_circuit'
|
215
242
|
require 'oci/core/models/virtual_circuit_bandwidth_shape'
|