oci 2.5.11 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/lib/oci.rb +1 -0
  4. data/lib/oci/auth/federation_client.rb +2 -1
  5. data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +6 -1
  6. data/lib/oci/auth/url_based_certificate_retriever.rb +6 -2
  7. data/lib/oci/auth/util.rb +18 -0
  8. data/lib/oci/core/compute_client.rb +730 -48
  9. data/lib/oci/core/compute_client_composite_operations.rb +119 -0
  10. data/lib/oci/core/compute_management_client.rb +11 -4
  11. data/lib/oci/core/core.rb +13 -0
  12. data/lib/oci/core/models/add_security_rule_details.rb +4 -2
  13. data/lib/oci/core/models/attach_vnic_details.rb +1 -0
  14. data/lib/oci/core/models/capture_console_history_details.rb +1 -0
  15. data/lib/oci/core/models/change_dedicated_vm_host_compartment_details.rb +155 -0
  16. data/lib/oci/core/models/change_dhcp_options_compartment_details.rb +155 -0
  17. data/lib/oci/core/models/change_internet_gateway_compartment_details.rb +155 -0
  18. data/lib/oci/core/models/change_local_peering_gateway_compartment_details.rb +155 -0
  19. data/lib/oci/core/models/change_network_security_group_compartment_details.rb +155 -0
  20. data/lib/oci/core/models/change_public_ip_compartment_details.rb +155 -0
  21. data/lib/oci/core/models/create_dedicated_vm_host_details.rb +262 -0
  22. data/lib/oci/core/models/create_drg_attachment_details.rb +4 -2
  23. data/lib/oci/core/models/create_image_details.rb +1 -1
  24. data/lib/oci/core/models/create_instance_configuration_base.rb +16 -6
  25. data/lib/oci/core/models/create_instance_configuration_details.rb +1 -1
  26. data/lib/oci/core/models/create_instance_configuration_from_instance_details.rb +3 -2
  27. data/lib/oci/core/models/create_instance_pool_details.rb +3 -1
  28. data/lib/oci/core/models/create_local_peering_gateway_details.rb +1 -1
  29. data/lib/oci/core/models/create_service_gateway_details.rb +1 -1
  30. data/lib/oci/core/models/create_volume_group_backup_details.rb +3 -1
  31. data/lib/oci/core/models/create_volume_group_details.rb +1 -1
  32. data/lib/oci/core/models/cross_connect_mapping.rb +4 -0
  33. data/lib/oci/core/models/dedicated_vm_host.rb +359 -0
  34. data/lib/oci/core/models/dedicated_vm_host_instance_shape_summary.rb +170 -0
  35. data/lib/oci/core/models/dedicated_vm_host_instance_summary.rb +215 -0
  36. data/lib/oci/core/models/dedicated_vm_host_shape_summary.rb +171 -0
  37. data/lib/oci/core/models/dedicated_vm_host_summary.rb +325 -0
  38. data/lib/oci/core/models/drg_attachment.rb +6 -3
  39. data/lib/oci/core/models/egress_security_rule.rb +1 -0
  40. data/lib/oci/core/models/image.rb +2 -0
  41. data/lib/oci/core/models/ingress_security_rule.rb +2 -1
  42. data/lib/oci/core/models/instance.rb +16 -1
  43. data/lib/oci/core/models/instance_configuration.rb +10 -7
  44. data/lib/oci/core/models/ipv6.rb +2 -0
  45. data/lib/oci/core/models/launch_instance_details.rb +16 -1
  46. data/lib/oci/core/models/launch_options.rb +3 -2
  47. data/lib/oci/core/models/local_peering_gateway.rb +4 -3
  48. data/lib/oci/core/models/route_rule.rb +2 -1
  49. data/lib/oci/core/models/security_rule.rb +3 -1
  50. data/lib/oci/core/models/service_gateway.rb +4 -3
  51. data/lib/oci/core/models/subnet.rb +2 -1
  52. data/lib/oci/core/models/update_console_history_details.rb +1 -0
  53. data/lib/oci/core/models/update_dedicated_vm_host_details.rb +194 -0
  54. data/lib/oci/core/models/update_drg_attachment_details.rb +6 -3
  55. data/lib/oci/core/models/update_instance_pool_details.rb +3 -1
  56. data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -3
  57. data/lib/oci/core/models/update_network_security_group_details.rb +2 -0
  58. data/lib/oci/core/models/update_security_rule_details.rb +4 -2
  59. data/lib/oci/core/models/update_service_gateway_details.rb +4 -3
  60. data/lib/oci/core/models/update_vnic_details.rb +2 -0
  61. data/lib/oci/core/models/update_volume_backup_details.rb +1 -1
  62. data/lib/oci/core/models/update_volume_group_backup_details.rb +2 -1
  63. data/lib/oci/core/models/update_volume_group_details.rb +2 -1
  64. data/lib/oci/core/models/vcn.rb +2 -1
  65. data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
  66. data/lib/oci/core/virtual_network_client.rb +396 -59
  67. data/lib/oci/dts/dts.rb +57 -0
  68. data/lib/oci/dts/models/attach_devices_details.rb +153 -0
  69. data/lib/oci/dts/models/change_transfer_job_compartment_details.rb +154 -0
  70. data/lib/oci/dts/models/create_transfer_appliance_details.rb +152 -0
  71. data/lib/oci/dts/models/create_transfer_appliance_entitlement_details.rb +178 -0
  72. data/lib/oci/dts/models/create_transfer_device_details.rb +165 -0
  73. data/lib/oci/dts/models/create_transfer_job_details.rb +238 -0
  74. data/lib/oci/dts/models/create_transfer_package_details.rb +178 -0
  75. data/lib/oci/dts/models/detach_devices_details.rb +153 -0
  76. data/lib/oci/dts/models/multiple_transfer_appliances.rb +153 -0
  77. data/lib/oci/dts/models/multiple_transfer_devices.rb +153 -0
  78. data/lib/oci/dts/models/multiple_transfer_packages.rb +153 -0
  79. data/lib/oci/dts/models/new_transfer_device.rb +246 -0
  80. data/lib/oci/dts/models/shipping_address.rb +263 -0
  81. data/lib/oci/dts/models/shipping_vendors.rb +149 -0
  82. data/lib/oci/dts/models/transfer_appliance.rb +367 -0
  83. data/lib/oci/dts/models/transfer_appliance_certificate.rb +148 -0
  84. data/lib/oci/dts/models/transfer_appliance_encryption_passphrase.rb +152 -0
  85. data/lib/oci/dts/models/transfer_appliance_entitlement.rb +240 -0
  86. data/lib/oci/dts/models/transfer_appliance_public_key.rb +152 -0
  87. data/lib/oci/dts/models/transfer_appliance_summary.rb +223 -0
  88. data/lib/oci/dts/models/transfer_device.rb +268 -0
  89. data/lib/oci/dts/models/transfer_device_summary.rb +254 -0
  90. data/lib/oci/dts/models/transfer_job.rb +356 -0
  91. data/lib/oci/dts/models/transfer_job_summary.rb +296 -0
  92. data/lib/oci/dts/models/transfer_package.rb +281 -0
  93. data/lib/oci/dts/models/transfer_package_summary.rb +201 -0
  94. data/lib/oci/dts/models/update_transfer_appliance_details.rb +180 -0
  95. data/lib/oci/dts/models/update_transfer_device_details.rb +166 -0
  96. data/lib/oci/dts/models/update_transfer_job_details.rb +237 -0
  97. data/lib/oci/dts/models/update_transfer_package_details.rb +204 -0
  98. data/lib/oci/dts/shipping_vendors_client.rb +165 -0
  99. data/lib/oci/dts/shipping_vendors_client_composite_operations.rb +24 -0
  100. data/lib/oci/dts/transfer_appliance_client.rb +569 -0
  101. data/lib/oci/dts/transfer_appliance_client_composite_operations.rb +104 -0
  102. data/lib/oci/dts/transfer_appliance_entitlement_client.rb +223 -0
  103. data/lib/oci/dts/transfer_appliance_entitlement_client_composite_operations.rb +24 -0
  104. data/lib/oci/dts/transfer_device_client.rb +402 -0
  105. data/lib/oci/dts/transfer_device_client_composite_operations.rb +65 -0
  106. data/lib/oci/dts/transfer_job_client.rb +458 -0
  107. data/lib/oci/dts/transfer_job_client_composite_operations.rb +143 -0
  108. data/lib/oci/dts/transfer_package_client.rb +515 -0
  109. data/lib/oci/dts/transfer_package_client_composite_operations.rb +104 -0
  110. data/lib/oci/dts/util.rb +2 -0
  111. data/lib/oci/file_storage/models/create_file_system_details.rb +19 -4
  112. data/lib/oci/file_storage/models/file_system.rb +19 -4
  113. data/lib/oci/file_storage/models/file_system_summary.rb +19 -4
  114. data/lib/oci/file_storage/models/update_file_system_details.rb +22 -4
  115. data/lib/oci/limits/limits.rb +5 -0
  116. data/lib/oci/limits/limits_client.rb +444 -0
  117. data/lib/oci/limits/limits_client_composite_operations.rb +24 -0
  118. data/lib/oci/limits/models/create_quota_details.rb +1 -1
  119. data/lib/oci/limits/models/limit_definition_summary.rb +241 -0
  120. data/lib/oci/limits/models/limit_value_summary.rb +210 -0
  121. data/lib/oci/limits/models/quota.rb +1 -1
  122. data/lib/oci/limits/models/resource_availability.rb +163 -0
  123. data/lib/oci/limits/models/service_summary.rb +159 -0
  124. data/lib/oci/limits/models/update_quota_details.rb +1 -1
  125. data/lib/oci/limits/quotas_client.rb +12 -11
  126. data/lib/oci/monitoring/models/alarm.rb +20 -1
  127. data/lib/oci/monitoring/models/create_alarm_details.rb +20 -1
  128. data/lib/oci/monitoring/models/list_metrics_details.rb +23 -3
  129. data/lib/oci/monitoring/models/metric.rb +20 -1
  130. data/lib/oci/monitoring/models/metric_data.rb +20 -1
  131. data/lib/oci/monitoring/models/metric_data_details.rb +20 -1
  132. data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +20 -1
  133. data/lib/oci/monitoring/models/update_alarm_details.rb +20 -1
  134. data/lib/oci/regions.rb +14 -8
  135. data/lib/oci/streaming/models/archiver.rb +291 -0
  136. data/lib/oci/streaming/models/archiver_error.rb +159 -0
  137. data/lib/oci/streaming/models/archiver_lifecycle_state.rb +14 -0
  138. data/lib/oci/streaming/models/archiver_start_position.rb +10 -0
  139. data/lib/oci/streaming/models/create_archiver_details.rb +223 -0
  140. data/lib/oci/streaming/models/update_archiver_details.rb +222 -0
  141. data/lib/oci/streaming/stream_admin_client.rb +304 -0
  142. data/lib/oci/streaming/stream_admin_client_composite_operations.rb +162 -0
  143. data/lib/oci/streaming/streaming.rb +6 -0
  144. data/lib/oci/version.rb +1 -1
  145. data/lib/oci/waas/models/access_rule.rb +121 -4
  146. data/lib/oci/waas/models/access_rule_criteria.rb +12 -0
  147. data/lib/oci/waas/models/address_list.rb +289 -0
  148. data/lib/oci/waas/models/address_list_summary.rb +279 -0
  149. data/lib/oci/waas/models/caching_rule.rb +243 -0
  150. data/lib/oci/waas/models/caching_rule_criteria.rb +194 -0
  151. data/lib/oci/waas/models/caching_rule_summary.rb +246 -0
  152. data/lib/oci/waas/models/certificate.rb +22 -9
  153. data/lib/oci/waas/models/certificate_extensions.rb +3 -0
  154. data/lib/oci/waas/models/certificate_issuer_name.rb +225 -0
  155. data/lib/oci/waas/models/certificate_public_key_info.rb +4 -1
  156. data/lib/oci/waas/models/certificate_subject_name.rb +8 -1
  157. data/lib/oci/waas/models/certificate_summary.rb +10 -2
  158. data/lib/oci/waas/models/change_address_list_compartment_details.rb +154 -0
  159. data/lib/oci/waas/models/change_custom_protection_rule_compartment_details.rb +154 -0
  160. data/lib/oci/waas/models/create_address_list_details.rb +213 -0
  161. data/lib/oci/waas/models/create_certificate_details.rb +22 -3
  162. data/lib/oci/waas/models/create_custom_protection_rule_details.rb +251 -0
  163. data/lib/oci/waas/models/create_waas_policy_details.rb +26 -4
  164. data/lib/oci/waas/models/custom_protection_rule.rb +326 -0
  165. data/lib/oci/waas/models/custom_protection_rule_setting.rb +180 -0
  166. data/lib/oci/waas/models/custom_protection_rule_summary.rb +279 -0
  167. data/lib/oci/waas/models/origin_group.rb +149 -0
  168. data/lib/oci/waas/models/origin_group_origins.rb +159 -0
  169. data/lib/oci/waas/models/policy_config.rb +201 -4
  170. data/lib/oci/waas/models/protection_rule_exclusion.rb +2 -2
  171. data/lib/oci/waas/models/purge_cache.rb +149 -0
  172. data/lib/oci/waas/models/update_address_list_details.rb +199 -0
  173. data/lib/oci/waas/models/update_certificate_details.rb +10 -2
  174. data/lib/oci/waas/models/update_custom_protection_rule_details.rb +237 -0
  175. data/lib/oci/waas/models/update_waas_policy_details.rb +26 -4
  176. data/lib/oci/waas/models/waas_policy.rb +25 -3
  177. data/lib/oci/waas/models/waas_policy_custom_protection_rule_summary.rb +207 -0
  178. data/lib/oci/waas/models/waas_policy_summary.rb +10 -2
  179. data/lib/oci/waas/models/waf_config.rb +43 -1
  180. data/lib/oci/waas/models/waf_config_details.rb +43 -1
  181. data/lib/oci/waas/models/waf_log.rb +3 -3
  182. data/lib/oci/waas/models/work_request.rb +4 -1
  183. data/lib/oci/waas/models/work_request_operation_types.rb +4 -1
  184. data/lib/oci/waas/models/work_request_summary.rb +4 -1
  185. data/lib/oci/waas/waas.rb +19 -0
  186. data/lib/oci/waas/waas_client.rb +1147 -61
  187. data/lib/oci/waas/waas_client_composite_operations.rb +386 -0
  188. metadata +90 -2
@@ -36,9 +36,10 @@ module OCI
36
36
  # @return [Hash<String, String>]
37
37
  attr_accessor :freeform_tags
38
38
 
39
- # The OCID of the route table the service gateway will use. For information about why you
40
- # would associate a route table with a service gateway, see
41
- # [Transit Routing: Private Access to Oracle Services Network](https://docs.cloud.oracle.com/Content/Network/Tasks/transitroutingoracleservices.htm).
39
+ # The OCID of the route table the service gateway will use.
40
+ #
41
+ # For information about why you would associate a route table with a service gateway, see
42
+ # [Transit Routing: Private Access to Oracle Services](https://docs.cloud.oracle.com/Content/Network/Tasks/transitroutingoracleservices.htm).
42
43
  #
43
44
  # @return [String]
44
45
  attr_accessor :route_table_id
@@ -15,6 +15,8 @@ module OCI
15
15
  attr_accessor :defined_tags
16
16
 
17
17
  # A user-friendly name. Does not have to be unique, and it's changeable.
18
+ # Avoid entering confidential information.
19
+ #
18
20
  # @return [String]
19
21
  attr_accessor :display_name
20
22
 
@@ -14,7 +14,7 @@ module OCI
14
14
  # @return [Hash<String, Hash<String, Object>>]
15
15
  attr_accessor :defined_tags
16
16
 
17
- # A friendly user-specified name for the volume backup.
17
+ # A user-friendly name for the volume backup.
18
18
  # Avoid entering confidential information.
19
19
  #
20
20
  # @return [String]
@@ -14,7 +14,8 @@ module OCI
14
14
  # @return [Hash<String, Hash<String, Object>>]
15
15
  attr_accessor :defined_tags
16
16
 
17
- # A friendly user-specified name for the volume group backup.
17
+ # A user-friendly name for the volume group backup. Avoid entering confidential information.
18
+ #
18
19
  # @return [String]
19
20
  attr_accessor :display_name
20
21
 
@@ -14,7 +14,8 @@ module OCI
14
14
  # @return [Hash<String, Hash<String, Object>>]
15
15
  attr_accessor :defined_tags
16
16
 
17
- # A user-friendly name for the volume group.
17
+ # A user-friendly name for the volume group. Avoid entering confidential information.
18
+ #
18
19
  # @return [String]
19
20
  attr_accessor :display_name
20
21
 
@@ -94,7 +94,8 @@ module OCI
94
94
  # For an IPv6-enabled VCN, this is the IPv6 CIDR block for the VCN's private IP address space.
95
95
  # The VCN size is always /48. If you don't provide a value when creating the VCN, Oracle
96
96
  # provides one and uses that *same* CIDR for the `ipv6PublicCidrBlock`. If you do provide a
97
- # value, Oracle provides a *different* CIDR for the `ipv6PublicCidrBlock`.
97
+ # value, Oracle provides a *different* CIDR for the `ipv6PublicCidrBlock`. Note that IPv6
98
+ # addressing is currently supported only in the Government Cloud.
98
99
  #
99
100
  # Example: `2001:0db8:0123::/48`
100
101
  #
@@ -26,7 +26,7 @@ module OCI
26
26
  # @return [String]
27
27
  attr_reader :backup_type
28
28
 
29
- # **[Required]** The number of seconds that the backup time should be shifted from the default interval boundaries specified by the period. Backup time = Frequency start time + Offset.
29
+ # The number of seconds that the backup time should be shifted from the default interval boundaries specified by the period. Backup time = Frequency start time + Offset.
30
30
  # @return [Integer]
31
31
  attr_accessor :offset_seconds
32
32
 
@@ -553,6 +553,140 @@ module OCI
553
553
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
554
554
 
555
555
 
556
+ # Moves a set of DHCP options into a different compartment within the same tenancy. For information
557
+ # about moving resources between compartments, see
558
+ # [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
559
+ #
560
+ # @param [String] dhcp_id The OCID for the set of DHCP options.
561
+ # @param [OCI::Core::Models::ChangeDhcpOptionsCompartmentDetails] change_dhcp_options_compartment_details Request to change the compartment of a set of DHCP Options.
562
+ # @param [Hash] opts the optional parameters
563
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
564
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
565
+ # @option opts [String] :opc_request_id Unique identifier for the request.
566
+ # If you need to contact Oracle about a particular request, please provide the request ID.
567
+ #
568
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
569
+ # server error without risk of executing that same action again. Retry tokens expire after 24
570
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
571
+ # has been deleted and purged from the system, then a retry of the original creation request
572
+ # may be rejected).
573
+ #
574
+ # @return [Response] A Response object with data of type nil
575
+ def change_dhcp_options_compartment(dhcp_id, change_dhcp_options_compartment_details, opts = {})
576
+ logger.debug 'Calling operation VirtualNetworkClient#change_dhcp_options_compartment.' if logger
577
+
578
+ raise "Missing the required parameter 'dhcp_id' when calling change_dhcp_options_compartment." if dhcp_id.nil?
579
+ raise "Missing the required parameter 'change_dhcp_options_compartment_details' when calling change_dhcp_options_compartment." if change_dhcp_options_compartment_details.nil?
580
+ raise "Parameter value for 'dhcp_id' must not be blank" if OCI::Internal::Util.blank_string?(dhcp_id)
581
+
582
+ path = '/dhcps/{dhcpId}/actions/changeCompartment'.sub('{dhcpId}', dhcp_id.to_s)
583
+ operation_signing_strategy = :standard
584
+
585
+ # rubocop:disable Style/NegatedIf
586
+ # Query Params
587
+ query_params = {}
588
+
589
+ # Header Params
590
+ header_params = {}
591
+ header_params[:accept] = 'application/json'
592
+ header_params[:'content-type'] = 'application/json'
593
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
594
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
595
+ # rubocop:enable Style/NegatedIf
596
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
597
+
598
+ post_body = @api_client.object_to_http_body(change_dhcp_options_compartment_details)
599
+
600
+ # rubocop:disable Metrics/BlockLength
601
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_dhcp_options_compartment') do
602
+ @api_client.call_api(
603
+ :POST,
604
+ path,
605
+ endpoint,
606
+ header_params: header_params,
607
+ query_params: query_params,
608
+ operation_signing_strategy: operation_signing_strategy,
609
+ body: post_body
610
+ )
611
+ end
612
+ # rubocop:enable Metrics/BlockLength
613
+ end
614
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
615
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
616
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
617
+
618
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
619
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
620
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
621
+
622
+
623
+ # Moves an internet gateway into a different compartment within the same tenancy. For information
624
+ # about moving resources between compartments, see
625
+ # [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
626
+ #
627
+ # @param [String] ig_id The OCID of the internet gateway.
628
+ # @param [OCI::Core::Models::ChangeInternetGatewayCompartmentDetails] change_internet_gateway_compartment_details Request to change the compartment of an internet gateway.
629
+ # @param [Hash] opts the optional parameters
630
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
631
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
632
+ # @option opts [String] :opc_request_id Unique identifier for the request.
633
+ # If you need to contact Oracle about a particular request, please provide the request ID.
634
+ #
635
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
636
+ # server error without risk of executing that same action again. Retry tokens expire after 24
637
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
638
+ # has been deleted and purged from the system, then a retry of the original creation request
639
+ # may be rejected).
640
+ #
641
+ # @return [Response] A Response object with data of type nil
642
+ def change_internet_gateway_compartment(ig_id, change_internet_gateway_compartment_details, opts = {})
643
+ logger.debug 'Calling operation VirtualNetworkClient#change_internet_gateway_compartment.' if logger
644
+
645
+ raise "Missing the required parameter 'ig_id' when calling change_internet_gateway_compartment." if ig_id.nil?
646
+ raise "Missing the required parameter 'change_internet_gateway_compartment_details' when calling change_internet_gateway_compartment." if change_internet_gateway_compartment_details.nil?
647
+ raise "Parameter value for 'ig_id' must not be blank" if OCI::Internal::Util.blank_string?(ig_id)
648
+
649
+ path = '/internetGateways/{igId}/actions/changeCompartment'.sub('{igId}', ig_id.to_s)
650
+ operation_signing_strategy = :standard
651
+
652
+ # rubocop:disable Style/NegatedIf
653
+ # Query Params
654
+ query_params = {}
655
+
656
+ # Header Params
657
+ header_params = {}
658
+ header_params[:accept] = 'application/json'
659
+ header_params[:'content-type'] = 'application/json'
660
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
661
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
662
+ # rubocop:enable Style/NegatedIf
663
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
664
+
665
+ post_body = @api_client.object_to_http_body(change_internet_gateway_compartment_details)
666
+
667
+ # rubocop:disable Metrics/BlockLength
668
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_internet_gateway_compartment') do
669
+ @api_client.call_api(
670
+ :POST,
671
+ path,
672
+ endpoint,
673
+ header_params: header_params,
674
+ query_params: query_params,
675
+ operation_signing_strategy: operation_signing_strategy,
676
+ body: post_body
677
+ )
678
+ end
679
+ # rubocop:enable Metrics/BlockLength
680
+ end
681
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
682
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
683
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
684
+
685
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
686
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
687
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
688
+
689
+
556
690
  # Moves an IPSec connection into a different compartment within the same tenancy. For information
557
691
  # about moving resources between compartments, see
558
692
  # [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
@@ -620,6 +754,73 @@ module OCI
620
754
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
621
755
 
622
756
 
757
+ # Moves a local peering gateway into a different compartment within the same tenancy. For information
758
+ # about moving resources between compartments, see
759
+ # [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
760
+ #
761
+ # @param [String] local_peering_gateway_id The OCID of the local peering gateway.
762
+ # @param [OCI::Core::Models::ChangeLocalPeeringGatewayCompartmentDetails] change_local_peering_gateway_compartment_details Request to change the compartment of a given local peering gateway.
763
+ # @param [Hash] opts the optional parameters
764
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
765
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
766
+ # @option opts [String] :opc_request_id Unique identifier for the request.
767
+ # If you need to contact Oracle about a particular request, please provide the request ID.
768
+ #
769
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
770
+ # server error without risk of executing that same action again. Retry tokens expire after 24
771
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
772
+ # has been deleted and purged from the system, then a retry of the original creation request
773
+ # may be rejected).
774
+ #
775
+ # @return [Response] A Response object with data of type nil
776
+ def change_local_peering_gateway_compartment(local_peering_gateway_id, change_local_peering_gateway_compartment_details, opts = {})
777
+ logger.debug 'Calling operation VirtualNetworkClient#change_local_peering_gateway_compartment.' if logger
778
+
779
+ raise "Missing the required parameter 'local_peering_gateway_id' when calling change_local_peering_gateway_compartment." if local_peering_gateway_id.nil?
780
+ raise "Missing the required parameter 'change_local_peering_gateway_compartment_details' when calling change_local_peering_gateway_compartment." if change_local_peering_gateway_compartment_details.nil?
781
+ raise "Parameter value for 'local_peering_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(local_peering_gateway_id)
782
+
783
+ path = '/localPeeringGateways/{localPeeringGatewayId}/actions/changeCompartment'.sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
784
+ operation_signing_strategy = :standard
785
+
786
+ # rubocop:disable Style/NegatedIf
787
+ # Query Params
788
+ query_params = {}
789
+
790
+ # Header Params
791
+ header_params = {}
792
+ header_params[:accept] = 'application/json'
793
+ header_params[:'content-type'] = 'application/json'
794
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
795
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
796
+ # rubocop:enable Style/NegatedIf
797
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
798
+
799
+ post_body = @api_client.object_to_http_body(change_local_peering_gateway_compartment_details)
800
+
801
+ # rubocop:disable Metrics/BlockLength
802
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_local_peering_gateway_compartment') do
803
+ @api_client.call_api(
804
+ :POST,
805
+ path,
806
+ endpoint,
807
+ header_params: header_params,
808
+ query_params: query_params,
809
+ operation_signing_strategy: operation_signing_strategy,
810
+ body: post_body
811
+ )
812
+ end
813
+ # rubocop:enable Metrics/BlockLength
814
+ end
815
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
816
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
817
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
818
+
819
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
820
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
821
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
822
+
823
+
623
824
  # Moves a NAT gateway into a different compartment within the same tenancy. For information
624
825
  # about moving resources between compartments, see
625
826
  # [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
@@ -687,6 +888,142 @@ module OCI
687
888
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
688
889
 
689
890
 
891
+ # Moves a network security group into a different compartment within the same tenancy. For
892
+ # information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
893
+ #
894
+ # @param [String] network_security_group_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security group.
895
+ # @param [OCI::Core::Models::ChangeNetworkSecurityGroupCompartmentDetails] change_network_security_group_compartment_details Request to change the compartment of a network security group.
896
+ # @param [Hash] opts the optional parameters
897
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
898
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
899
+ # @option opts [String] :opc_request_id Unique identifier for the request.
900
+ # If you need to contact Oracle about a particular request, please provide the request ID.
901
+ #
902
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
903
+ # server error without risk of executing that same action again. Retry tokens expire after 24
904
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
905
+ # has been deleted and purged from the system, then a retry of the original creation request
906
+ # may be rejected).
907
+ #
908
+ # @return [Response] A Response object with data of type nil
909
+ def change_network_security_group_compartment(network_security_group_id, change_network_security_group_compartment_details, opts = {})
910
+ logger.debug 'Calling operation VirtualNetworkClient#change_network_security_group_compartment.' if logger
911
+
912
+ raise "Missing the required parameter 'network_security_group_id' when calling change_network_security_group_compartment." if network_security_group_id.nil?
913
+ raise "Missing the required parameter 'change_network_security_group_compartment_details' when calling change_network_security_group_compartment." if change_network_security_group_compartment_details.nil?
914
+ raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id)
915
+
916
+ path = '/networkSecurityGroups/{networkSecurityGroupId}/actions/changeCompartment'.sub('{networkSecurityGroupId}', network_security_group_id.to_s)
917
+ operation_signing_strategy = :standard
918
+
919
+ # rubocop:disable Style/NegatedIf
920
+ # Query Params
921
+ query_params = {}
922
+
923
+ # Header Params
924
+ header_params = {}
925
+ header_params[:accept] = 'application/json'
926
+ header_params[:'content-type'] = 'application/json'
927
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
928
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
929
+ # rubocop:enable Style/NegatedIf
930
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
931
+
932
+ post_body = @api_client.object_to_http_body(change_network_security_group_compartment_details)
933
+
934
+ # rubocop:disable Metrics/BlockLength
935
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_network_security_group_compartment') do
936
+ @api_client.call_api(
937
+ :POST,
938
+ path,
939
+ endpoint,
940
+ header_params: header_params,
941
+ query_params: query_params,
942
+ operation_signing_strategy: operation_signing_strategy,
943
+ body: post_body
944
+ )
945
+ end
946
+ # rubocop:enable Metrics/BlockLength
947
+ end
948
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
949
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
950
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
951
+
952
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
953
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
954
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
955
+
956
+
957
+ # Moves a public IP into a different compartment within the same tenancy. For information
958
+ # about moving resources between compartments, see
959
+ # [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
960
+ #
961
+ # This operation applies only to reserved public IPs. Ephemeral public IPs always belong to the
962
+ # same compartment as their VNIC and move accordingly.
963
+ #
964
+ # @param [String] public_ip_id The OCID of the public IP.
965
+ # @param [OCI::Core::Models::ChangePublicIpCompartmentDetails] change_public_ip_compartment_details Request to change the compartment of a Public IP.
966
+ # @param [Hash] opts the optional parameters
967
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
968
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
969
+ # @option opts [String] :opc_request_id Unique identifier for the request.
970
+ # If you need to contact Oracle about a particular request, please provide the request ID.
971
+ #
972
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
973
+ # server error without risk of executing that same action again. Retry tokens expire after 24
974
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
975
+ # has been deleted and purged from the system, then a retry of the original creation request
976
+ # may be rejected).
977
+ #
978
+ # @return [Response] A Response object with data of type nil
979
+ def change_public_ip_compartment(public_ip_id, change_public_ip_compartment_details, opts = {})
980
+ logger.debug 'Calling operation VirtualNetworkClient#change_public_ip_compartment.' if logger
981
+
982
+ raise "Missing the required parameter 'public_ip_id' when calling change_public_ip_compartment." if public_ip_id.nil?
983
+ raise "Missing the required parameter 'change_public_ip_compartment_details' when calling change_public_ip_compartment." if change_public_ip_compartment_details.nil?
984
+ raise "Parameter value for 'public_ip_id' must not be blank" if OCI::Internal::Util.blank_string?(public_ip_id)
985
+
986
+ path = '/publicIps/{publicIpId}/actions/changeCompartment'.sub('{publicIpId}', public_ip_id.to_s)
987
+ operation_signing_strategy = :standard
988
+
989
+ # rubocop:disable Style/NegatedIf
990
+ # Query Params
991
+ query_params = {}
992
+
993
+ # Header Params
994
+ header_params = {}
995
+ header_params[:accept] = 'application/json'
996
+ header_params[:'content-type'] = 'application/json'
997
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
998
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
999
+ # rubocop:enable Style/NegatedIf
1000
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
1001
+
1002
+ post_body = @api_client.object_to_http_body(change_public_ip_compartment_details)
1003
+
1004
+ # rubocop:disable Metrics/BlockLength
1005
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#change_public_ip_compartment') do
1006
+ @api_client.call_api(
1007
+ :POST,
1008
+ path,
1009
+ endpoint,
1010
+ header_params: header_params,
1011
+ query_params: query_params,
1012
+ operation_signing_strategy: operation_signing_strategy,
1013
+ body: post_body
1014
+ )
1015
+ end
1016
+ # rubocop:enable Metrics/BlockLength
1017
+ end
1018
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1019
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1020
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1021
+
1022
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1023
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1024
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1025
+
1026
+
690
1027
  # Moves a remote peering connection (RPC) into a different compartment within the same tenancy. For information
691
1028
  # about moving resources between compartments, see
692
1029
  # [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
@@ -4593,65 +4930,6 @@ module OCI
4593
4930
  # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
4594
4931
  # rubocop:enable Lint/UnusedMethodArgument
4595
4932
 
4596
- # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
4597
- # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
4598
- # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
4599
-
4600
-
4601
- # Gets the specified IPv6. You must specify the object's OCID.
4602
- # Alternatively, you can get the object by using
4603
- # {#list_ipv6s list_ipv6s}
4604
- # with the IPv6 address (for example, 2001:0db8:0123:1111:98fe:dcba:9876:4321) and subnet OCID.
4605
- #
4606
- # @param [String] ipv6_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPv6.
4607
- # @param [Hash] opts the optional parameters
4608
- # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
4609
- # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
4610
- # @option opts [String] :opc_request_id Unique identifier for the request.
4611
- # If you need to contact Oracle about a particular request, please provide the request ID.
4612
- #
4613
- # @return [Response] A Response object with data of type {OCI::Core::Models::Ipv6 Ipv6}
4614
- def get_ipv6(ipv6_id, opts = {})
4615
- logger.debug 'Calling operation VirtualNetworkClient#get_ipv6.' if logger
4616
-
4617
- raise "Missing the required parameter 'ipv6_id' when calling get_ipv6." if ipv6_id.nil?
4618
- raise "Parameter value for 'ipv6_id' must not be blank" if OCI::Internal::Util.blank_string?(ipv6_id)
4619
-
4620
- path = '/ipv6/{ipv6Id}'.sub('{ipv6Id}', ipv6_id.to_s)
4621
- operation_signing_strategy = :standard
4622
-
4623
- # rubocop:disable Style/NegatedIf
4624
- # Query Params
4625
- query_params = {}
4626
-
4627
- # Header Params
4628
- header_params = {}
4629
- header_params[:accept] = 'application/json'
4630
- header_params[:'content-type'] = 'application/json'
4631
- header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
4632
- # rubocop:enable Style/NegatedIf
4633
-
4634
- post_body = nil
4635
-
4636
- # rubocop:disable Metrics/BlockLength
4637
- OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_ipv6') do
4638
- @api_client.call_api(
4639
- :GET,
4640
- path,
4641
- endpoint,
4642
- header_params: header_params,
4643
- query_params: query_params,
4644
- operation_signing_strategy: operation_signing_strategy,
4645
- body: post_body,
4646
- return_type: 'OCI::Core::Models::Ipv6'
4647
- )
4648
- end
4649
- # rubocop:enable Metrics/BlockLength
4650
- end
4651
- # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
4652
- # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
4653
- # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
4654
-
4655
4933
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
4656
4934
  # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
4657
4935
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
@@ -5052,6 +5330,65 @@ module OCI
5052
5330
  # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
5053
5331
  # rubocop:enable Lint/UnusedMethodArgument
5054
5332
 
5333
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
5334
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
5335
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
5336
+
5337
+
5338
+ # Gets the specified IPv6. You must specify the object's OCID.
5339
+ # Alternatively, you can get the object by using
5340
+ # {#list_ipv6s list_ipv6s}
5341
+ # with the IPv6 address (for example, 2001:0db8:0123:1111:98fe:dcba:9876:4321) and subnet OCID.
5342
+ #
5343
+ # @param [String] ipv6_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPv6.
5344
+ # @param [Hash] opts the optional parameters
5345
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
5346
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
5347
+ # @option opts [String] :opc_request_id Unique identifier for the request.
5348
+ # If you need to contact Oracle about a particular request, please provide the request ID.
5349
+ #
5350
+ # @return [Response] A Response object with data of type {OCI::Core::Models::Ipv6 Ipv6}
5351
+ def get_ipv6(ipv6_id, opts = {})
5352
+ logger.debug 'Calling operation VirtualNetworkClient#get_ipv6.' if logger
5353
+
5354
+ raise "Missing the required parameter 'ipv6_id' when calling get_ipv6." if ipv6_id.nil?
5355
+ raise "Parameter value for 'ipv6_id' must not be blank" if OCI::Internal::Util.blank_string?(ipv6_id)
5356
+
5357
+ path = '/ipv6/{ipv6Id}'.sub('{ipv6Id}', ipv6_id.to_s)
5358
+ operation_signing_strategy = :standard
5359
+
5360
+ # rubocop:disable Style/NegatedIf
5361
+ # Query Params
5362
+ query_params = {}
5363
+
5364
+ # Header Params
5365
+ header_params = {}
5366
+ header_params[:accept] = 'application/json'
5367
+ header_params[:'content-type'] = 'application/json'
5368
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
5369
+ # rubocop:enable Style/NegatedIf
5370
+
5371
+ post_body = nil
5372
+
5373
+ # rubocop:disable Metrics/BlockLength
5374
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#get_ipv6') do
5375
+ @api_client.call_api(
5376
+ :GET,
5377
+ path,
5378
+ endpoint,
5379
+ header_params: header_params,
5380
+ query_params: query_params,
5381
+ operation_signing_strategy: operation_signing_strategy,
5382
+ body: post_body,
5383
+ return_type: 'OCI::Core::Models::Ipv6'
5384
+ )
5385
+ end
5386
+ # rubocop:enable Metrics/BlockLength
5387
+ end
5388
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
5389
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
5390
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
5391
+
5055
5392
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
5056
5393
  # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
5057
5394
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines