oci 2.5.11 → 2.6.0

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.
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
@@ -0,0 +1,24 @@
1
+ # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
4
+ module OCI
5
+ # This class provides a wrapper around {OCI::Dts::ShippingVendorsClient} and offers convenience methods
6
+ # for operations that would otherwise need to be chained together. For example, instead of performing an action
7
+ # on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
8
+ # to enter a given state, you can call a single method in this class to accomplish the same functionality
9
+ class Dts::ShippingVendorsClientCompositeOperations
10
+ # The {OCI::Dts::ShippingVendorsClient} used to communicate with the service_client
11
+ #
12
+ # @return [OCI::Dts::ShippingVendorsClient]
13
+ attr_reader :service_client
14
+
15
+ # Initializes a new ShippingVendorsClientCompositeOperations
16
+ #
17
+ # @param [OCI::Dts::ShippingVendorsClient] service_client The client used to communicate with the service.
18
+ # Defaults to a new service client created via {OCI::Dts::ShippingVendorsClient#initialize} with no arguments
19
+ def initialize(service_client = OCI::Dts::ShippingVendorsClient.new)
20
+ @service_client = service_client
21
+ end
22
+ end
23
+ end
24
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
@@ -0,0 +1,569 @@
1
+ # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ require 'uri'
4
+ require 'logger'
5
+
6
+ # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
7
+ module OCI
8
+ # A description of the DTS API
9
+ class Dts::TransferApplianceClient
10
+ # Client used to make HTTP requests.
11
+ # @return [OCI::ApiClient]
12
+ attr_reader :api_client
13
+
14
+ # Fully qualified endpoint URL
15
+ # @return [String]
16
+ attr_reader :endpoint
17
+
18
+ # The default retry configuration to apply to all operations in this service client. This can be overridden
19
+ # on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
20
+ # will not perform any retries
21
+ # @return [OCI::Retry::RetryConfig]
22
+ attr_reader :retry_config
23
+
24
+ # The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
25
+ # @return [String]
26
+ attr_reader :region
27
+
28
+ # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
29
+
30
+
31
+ # Creates a new TransferApplianceClient.
32
+ # Notes:
33
+ # If a config is not specified, then the global OCI.config will be used.
34
+ #
35
+ # This client is not thread-safe
36
+ #
37
+ # Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
38
+ # region. A region may be specified in the config or via or the region parameter. If specified in both, then the
39
+ # region parameter will be used.
40
+ # @param [Config] config A Config object.
41
+ # @param [String] region A region used to determine the service endpoint. This will usually
42
+ # correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
43
+ # @param [String] endpoint The fully qualified endpoint URL
44
+ # @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
45
+ # a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
46
+ # so that the instance principals signer can be provided to the client
47
+ # @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
48
+ # the details for the proxy can be provided in this parameter
49
+ # @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
50
+ # apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
51
+ # will not perform any retries
52
+ def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
53
+ # If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
54
+ # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
55
+ # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
56
+ # pass it to this constructor.
57
+ #
58
+ # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
59
+ # so try and load the config from the default file.
60
+ config ||= OCI.config unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
61
+ config ||= OCI::Config.new if signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
62
+ config.validate unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
63
+
64
+ if signer.nil?
65
+ signer = OCI::Signer.new(
66
+ config.user,
67
+ config.fingerprint,
68
+ config.tenancy,
69
+ config.key_file,
70
+ pass_phrase: config.pass_phrase,
71
+ private_key_content: config.key_content
72
+ )
73
+ end
74
+
75
+ @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
76
+ @retry_config = retry_config
77
+
78
+ if endpoint
79
+ @endpoint = endpoint + '/20171001'
80
+ else
81
+ region ||= config.region
82
+ region ||= signer.region if signer.respond_to?(:region)
83
+ self.region = region
84
+ end
85
+ logger.info "TransferApplianceClient endpoint set to '#{@endpoint}'." if logger
86
+ end
87
+ # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
88
+
89
+ # Set the region that will be used to determine the service endpoint.
90
+ # This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
91
+ # but may be an arbitrary string.
92
+ def region=(new_region)
93
+ @region = new_region
94
+
95
+ raise 'A region must be specified.' unless @region
96
+
97
+ @endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://datatransfer.{region}.{secondLevelDomain}') + '/20171001'
98
+ logger.info "TransferApplianceClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
99
+ end
100
+
101
+ # @return [Logger] The logger for this client. May be nil.
102
+ def logger
103
+ @api_client.config.logger
104
+ end
105
+
106
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
107
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
108
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
109
+
110
+
111
+ # Create a new Transfer Appliance
112
+ # @param [String] id ID of the Transfer Job
113
+ # @param [Hash] opts the optional parameters
114
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
115
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
116
+ # @option opts [String] :opc_retry_token
117
+ # @option opts [OCI::Dts::Models::CreateTransferApplianceDetails] :create_transfer_appliance_details Creates a New Transfer Appliance
118
+ # @return [Response] A Response object with data of type {OCI::Dts::Models::TransferAppliance TransferAppliance}
119
+ def create_transfer_appliance(id, opts = {})
120
+ logger.debug 'Calling operation TransferApplianceClient#create_transfer_appliance.' if logger
121
+
122
+ raise "Missing the required parameter 'id' when calling create_transfer_appliance." if id.nil?
123
+ raise "Parameter value for 'id' must not be blank" if OCI::Internal::Util.blank_string?(id)
124
+
125
+ path = '/transferJobs/{id}/transferAppliances'.sub('{id}', id.to_s)
126
+ operation_signing_strategy = :standard
127
+
128
+ # rubocop:disable Style/NegatedIf
129
+ # Query Params
130
+ query_params = {}
131
+
132
+ # Header Params
133
+ header_params = {}
134
+ header_params[:accept] = 'application/json'
135
+ header_params[:'content-type'] = 'application/json'
136
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
137
+ # rubocop:enable Style/NegatedIf
138
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
139
+
140
+ post_body = @api_client.object_to_http_body(opts[:create_transfer_appliance_details])
141
+
142
+ # rubocop:disable Metrics/BlockLength
143
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'TransferApplianceClient#create_transfer_appliance') do
144
+ @api_client.call_api(
145
+ :POST,
146
+ path,
147
+ endpoint,
148
+ header_params: header_params,
149
+ query_params: query_params,
150
+ operation_signing_strategy: operation_signing_strategy,
151
+ body: post_body,
152
+ return_type: 'OCI::Dts::Models::TransferAppliance'
153
+ )
154
+ end
155
+ # rubocop:enable Metrics/BlockLength
156
+ end
157
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
158
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
159
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
160
+
161
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
162
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
163
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
164
+ # rubocop:disable Lint/UnusedMethodArgument
165
+
166
+
167
+ # Creates an X.509 certificate from a public key
168
+ # @param [String] id ID of the Transfer Job
169
+ # @param [String] transfer_appliance_label Label of the Transfer Appliance
170
+ # @param [OCI::Dts::Models::TransferAppliancePublicKey] admin_public_key
171
+ # @param [Hash] opts the optional parameters
172
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
173
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
174
+ # @return [Response] A Response object with data of type {OCI::Dts::Models::TransferApplianceCertificate TransferApplianceCertificate}
175
+ def create_transfer_appliance_admin_credentials(id, transfer_appliance_label, admin_public_key, opts = {})
176
+ logger.debug 'Calling operation TransferApplianceClient#create_transfer_appliance_admin_credentials.' if logger
177
+
178
+ raise "Missing the required parameter 'id' when calling create_transfer_appliance_admin_credentials." if id.nil?
179
+ raise "Missing the required parameter 'transfer_appliance_label' when calling create_transfer_appliance_admin_credentials." if transfer_appliance_label.nil?
180
+ raise "Missing the required parameter 'admin_public_key' when calling create_transfer_appliance_admin_credentials." if admin_public_key.nil?
181
+ raise "Parameter value for 'id' must not be blank" if OCI::Internal::Util.blank_string?(id)
182
+ raise "Parameter value for 'transfer_appliance_label' must not be blank" if OCI::Internal::Util.blank_string?(transfer_appliance_label)
183
+
184
+ path = '/transferJobs/{id}/transferAppliances/{transferApplianceLabel}/admin_credentials'.sub('{id}', id.to_s).sub('{transferApplianceLabel}', transfer_appliance_label.to_s)
185
+ operation_signing_strategy = :standard
186
+
187
+ # rubocop:disable Style/NegatedIf
188
+ # Query Params
189
+ query_params = {}
190
+
191
+ # Header Params
192
+ header_params = {}
193
+ header_params[:accept] = 'application/json'
194
+ header_params[:'content-type'] = 'application/json'
195
+ # rubocop:enable Style/NegatedIf
196
+
197
+ post_body = @api_client.object_to_http_body(admin_public_key)
198
+
199
+ # rubocop:disable Metrics/BlockLength
200
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'TransferApplianceClient#create_transfer_appliance_admin_credentials') do
201
+ @api_client.call_api(
202
+ :POST,
203
+ path,
204
+ endpoint,
205
+ header_params: header_params,
206
+ query_params: query_params,
207
+ operation_signing_strategy: operation_signing_strategy,
208
+ body: post_body,
209
+ return_type: 'OCI::Dts::Models::TransferApplianceCertificate'
210
+ )
211
+ end
212
+ # rubocop:enable Metrics/BlockLength
213
+ end
214
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
215
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
216
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
217
+ # rubocop:enable Lint/UnusedMethodArgument
218
+
219
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
220
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
221
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
222
+ # rubocop:disable Lint/UnusedMethodArgument
223
+
224
+
225
+ # deletes a transfer Appliance
226
+ # @param [String] id ID of the Transfer Job
227
+ # @param [String] transfer_appliance_label Label of the Transfer Appliance
228
+ # @param [Hash] opts the optional parameters
229
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
230
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
231
+ # @return [Response] A Response object with data of type nil
232
+ def delete_transfer_appliance(id, transfer_appliance_label, opts = {})
233
+ logger.debug 'Calling operation TransferApplianceClient#delete_transfer_appliance.' if logger
234
+
235
+ raise "Missing the required parameter 'id' when calling delete_transfer_appliance." if id.nil?
236
+ raise "Missing the required parameter 'transfer_appliance_label' when calling delete_transfer_appliance." if transfer_appliance_label.nil?
237
+ raise "Parameter value for 'id' must not be blank" if OCI::Internal::Util.blank_string?(id)
238
+ raise "Parameter value for 'transfer_appliance_label' must not be blank" if OCI::Internal::Util.blank_string?(transfer_appliance_label)
239
+
240
+ path = '/transferJobs/{id}/transferAppliances/{transferApplianceLabel}'.sub('{id}', id.to_s).sub('{transferApplianceLabel}', transfer_appliance_label.to_s)
241
+ operation_signing_strategy = :standard
242
+
243
+ # rubocop:disable Style/NegatedIf
244
+ # Query Params
245
+ query_params = {}
246
+
247
+ # Header Params
248
+ header_params = {}
249
+ header_params[:accept] = 'application/json'
250
+ header_params[:'content-type'] = 'application/json'
251
+ # rubocop:enable Style/NegatedIf
252
+
253
+ post_body = nil
254
+
255
+ # rubocop:disable Metrics/BlockLength
256
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'TransferApplianceClient#delete_transfer_appliance') do
257
+ @api_client.call_api(
258
+ :DELETE,
259
+ path,
260
+ endpoint,
261
+ header_params: header_params,
262
+ query_params: query_params,
263
+ operation_signing_strategy: operation_signing_strategy,
264
+ body: post_body
265
+ )
266
+ end
267
+ # rubocop:enable Metrics/BlockLength
268
+ end
269
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
270
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
271
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
272
+ # rubocop:enable Lint/UnusedMethodArgument
273
+
274
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
275
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
276
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
277
+ # rubocop:disable Lint/UnusedMethodArgument
278
+
279
+
280
+ # Describes a transfer appliance in detail
281
+ # @param [String] id ID of the Transfer Job
282
+ # @param [String] transfer_appliance_label Label of the Transfer Appliance
283
+ # @param [Hash] opts the optional parameters
284
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
285
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
286
+ # @return [Response] A Response object with data of type {OCI::Dts::Models::TransferAppliance TransferAppliance}
287
+ def get_transfer_appliance(id, transfer_appliance_label, opts = {})
288
+ logger.debug 'Calling operation TransferApplianceClient#get_transfer_appliance.' if logger
289
+
290
+ raise "Missing the required parameter 'id' when calling get_transfer_appliance." if id.nil?
291
+ raise "Missing the required parameter 'transfer_appliance_label' when calling get_transfer_appliance." if transfer_appliance_label.nil?
292
+ raise "Parameter value for 'id' must not be blank" if OCI::Internal::Util.blank_string?(id)
293
+ raise "Parameter value for 'transfer_appliance_label' must not be blank" if OCI::Internal::Util.blank_string?(transfer_appliance_label)
294
+
295
+ path = '/transferJobs/{id}/transferAppliances/{transferApplianceLabel}'.sub('{id}', id.to_s).sub('{transferApplianceLabel}', transfer_appliance_label.to_s)
296
+ operation_signing_strategy = :standard
297
+
298
+ # rubocop:disable Style/NegatedIf
299
+ # Query Params
300
+ query_params = {}
301
+
302
+ # Header Params
303
+ header_params = {}
304
+ header_params[:accept] = 'application/json'
305
+ header_params[:'content-type'] = 'application/json'
306
+ # rubocop:enable Style/NegatedIf
307
+
308
+ post_body = nil
309
+
310
+ # rubocop:disable Metrics/BlockLength
311
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'TransferApplianceClient#get_transfer_appliance') do
312
+ @api_client.call_api(
313
+ :GET,
314
+ path,
315
+ endpoint,
316
+ header_params: header_params,
317
+ query_params: query_params,
318
+ operation_signing_strategy: operation_signing_strategy,
319
+ body: post_body,
320
+ return_type: 'OCI::Dts::Models::TransferAppliance'
321
+ )
322
+ end
323
+ # rubocop:enable Metrics/BlockLength
324
+ end
325
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
326
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
327
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
328
+ # rubocop:enable Lint/UnusedMethodArgument
329
+
330
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
331
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
332
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
333
+ # rubocop:disable Lint/UnusedMethodArgument
334
+
335
+
336
+ # Gets the x.509 certificate for the Transfer Appliance's dedicated Certificate Authority (CA)
337
+ # @param [String] id ID of the Transfer Job
338
+ # @param [String] transfer_appliance_label Label of the Transfer Appliance
339
+ # @param [Hash] opts the optional parameters
340
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
341
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
342
+ # @return [Response] A Response object with data of type {OCI::Dts::Models::TransferApplianceCertificate TransferApplianceCertificate}
343
+ def get_transfer_appliance_certificate_authority_certificate(id, transfer_appliance_label, opts = {})
344
+ logger.debug 'Calling operation TransferApplianceClient#get_transfer_appliance_certificate_authority_certificate.' if logger
345
+
346
+ raise "Missing the required parameter 'id' when calling get_transfer_appliance_certificate_authority_certificate." if id.nil?
347
+ raise "Missing the required parameter 'transfer_appliance_label' when calling get_transfer_appliance_certificate_authority_certificate." if transfer_appliance_label.nil?
348
+ raise "Parameter value for 'id' must not be blank" if OCI::Internal::Util.blank_string?(id)
349
+ raise "Parameter value for 'transfer_appliance_label' must not be blank" if OCI::Internal::Util.blank_string?(transfer_appliance_label)
350
+
351
+ path = '/transferJobs/{id}/transferAppliances/{transferApplianceLabel}/certificate_authority_certificate'.sub('{id}', id.to_s).sub('{transferApplianceLabel}', transfer_appliance_label.to_s)
352
+ operation_signing_strategy = :standard
353
+
354
+ # rubocop:disable Style/NegatedIf
355
+ # Query Params
356
+ query_params = {}
357
+
358
+ # Header Params
359
+ header_params = {}
360
+ header_params[:accept] = 'application/json'
361
+ header_params[:'content-type'] = 'application/json'
362
+ # rubocop:enable Style/NegatedIf
363
+
364
+ post_body = nil
365
+
366
+ # rubocop:disable Metrics/BlockLength
367
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'TransferApplianceClient#get_transfer_appliance_certificate_authority_certificate') do
368
+ @api_client.call_api(
369
+ :GET,
370
+ path,
371
+ endpoint,
372
+ header_params: header_params,
373
+ query_params: query_params,
374
+ operation_signing_strategy: operation_signing_strategy,
375
+ body: post_body,
376
+ return_type: 'OCI::Dts::Models::TransferApplianceCertificate'
377
+ )
378
+ end
379
+ # rubocop:enable Metrics/BlockLength
380
+ end
381
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
382
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
383
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
384
+ # rubocop:enable Lint/UnusedMethodArgument
385
+
386
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
387
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
388
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
389
+ # rubocop:disable Lint/UnusedMethodArgument
390
+
391
+
392
+ # Describes a transfer appliance encryptionPassphrase in detail
393
+ # @param [String] id ID of the Transfer Job
394
+ # @param [String] transfer_appliance_label Label of the Transfer Appliance
395
+ # @param [Hash] opts the optional parameters
396
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
397
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
398
+ # @return [Response] A Response object with data of type {OCI::Dts::Models::TransferApplianceEncryptionPassphrase TransferApplianceEncryptionPassphrase}
399
+ def get_transfer_appliance_encryption_passphrase(id, transfer_appliance_label, opts = {})
400
+ logger.debug 'Calling operation TransferApplianceClient#get_transfer_appliance_encryption_passphrase.' if logger
401
+
402
+ raise "Missing the required parameter 'id' when calling get_transfer_appliance_encryption_passphrase." if id.nil?
403
+ raise "Missing the required parameter 'transfer_appliance_label' when calling get_transfer_appliance_encryption_passphrase." if transfer_appliance_label.nil?
404
+ raise "Parameter value for 'id' must not be blank" if OCI::Internal::Util.blank_string?(id)
405
+ raise "Parameter value for 'transfer_appliance_label' must not be blank" if OCI::Internal::Util.blank_string?(transfer_appliance_label)
406
+
407
+ path = '/transferJobs/{id}/transferAppliances/{transferApplianceLabel}/encryptionPassphrase'.sub('{id}', id.to_s).sub('{transferApplianceLabel}', transfer_appliance_label.to_s)
408
+ operation_signing_strategy = :standard
409
+
410
+ # rubocop:disable Style/NegatedIf
411
+ # Query Params
412
+ query_params = {}
413
+
414
+ # Header Params
415
+ header_params = {}
416
+ header_params[:accept] = 'application/json'
417
+ header_params[:'content-type'] = 'application/json'
418
+ # rubocop:enable Style/NegatedIf
419
+
420
+ post_body = nil
421
+
422
+ # rubocop:disable Metrics/BlockLength
423
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'TransferApplianceClient#get_transfer_appliance_encryption_passphrase') do
424
+ @api_client.call_api(
425
+ :GET,
426
+ path,
427
+ endpoint,
428
+ header_params: header_params,
429
+ query_params: query_params,
430
+ operation_signing_strategy: operation_signing_strategy,
431
+ body: post_body,
432
+ return_type: 'OCI::Dts::Models::TransferApplianceEncryptionPassphrase'
433
+ )
434
+ end
435
+ # rubocop:enable Metrics/BlockLength
436
+ end
437
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
438
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
439
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
440
+ # rubocop:enable Lint/UnusedMethodArgument
441
+
442
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
443
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
444
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
445
+
446
+
447
+ # Lists Transfer Appliances associated with a transferJob
448
+ # @param [String] id ID of the Transfer Job
449
+ # @param [Hash] opts the optional parameters
450
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
451
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
452
+ # @option opts [String] :lifecycle_state filtering by lifecycleState
453
+ # Allowed values are: REQUESTED, ORACLE_PREPARING, SHIPPING, DELIVERED, PREPARING, RETURN_SHIPPED, RETURN_SHIPPED_CANCELLED, ORACLE_RECEIVED, ORACLE_RECEIVED_CANCELLED, PROCESSING, COMPLETE, CUSTOMER_NEVER_RECEIVED, ORACLE_NEVER_RECEIVED, CUSTOMER_LOST, CANCELLED, DELETED, REJECTED, ERROR
454
+ # @return [Response] A Response object with data of type {OCI::Dts::Models::MultipleTransferAppliances MultipleTransferAppliances}
455
+ def list_transfer_appliances(id, opts = {})
456
+ logger.debug 'Calling operation TransferApplianceClient#list_transfer_appliances.' if logger
457
+
458
+ raise "Missing the required parameter 'id' when calling list_transfer_appliances." if id.nil?
459
+
460
+ if opts[:lifecycle_state] && !%w[REQUESTED ORACLE_PREPARING SHIPPING DELIVERED PREPARING RETURN_SHIPPED RETURN_SHIPPED_CANCELLED ORACLE_RECEIVED ORACLE_RECEIVED_CANCELLED PROCESSING COMPLETE CUSTOMER_NEVER_RECEIVED ORACLE_NEVER_RECEIVED CUSTOMER_LOST CANCELLED DELETED REJECTED ERROR].include?(opts[:lifecycle_state])
461
+ raise 'Invalid value for "lifecycle_state", must be one of REQUESTED, ORACLE_PREPARING, SHIPPING, DELIVERED, PREPARING, RETURN_SHIPPED, RETURN_SHIPPED_CANCELLED, ORACLE_RECEIVED, ORACLE_RECEIVED_CANCELLED, PROCESSING, COMPLETE, CUSTOMER_NEVER_RECEIVED, ORACLE_NEVER_RECEIVED, CUSTOMER_LOST, CANCELLED, DELETED, REJECTED, ERROR.'
462
+ end
463
+ raise "Parameter value for 'id' must not be blank" if OCI::Internal::Util.blank_string?(id)
464
+
465
+ path = '/transferJobs/{id}/transferAppliances'.sub('{id}', id.to_s)
466
+ operation_signing_strategy = :standard
467
+
468
+ # rubocop:disable Style/NegatedIf
469
+ # Query Params
470
+ query_params = {}
471
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
472
+
473
+ # Header Params
474
+ header_params = {}
475
+ header_params[:accept] = 'application/json'
476
+ header_params[:'content-type'] = 'application/json'
477
+ # rubocop:enable Style/NegatedIf
478
+
479
+ post_body = nil
480
+
481
+ # rubocop:disable Metrics/BlockLength
482
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'TransferApplianceClient#list_transfer_appliances') do
483
+ @api_client.call_api(
484
+ :GET,
485
+ path,
486
+ endpoint,
487
+ header_params: header_params,
488
+ query_params: query_params,
489
+ operation_signing_strategy: operation_signing_strategy,
490
+ body: post_body,
491
+ return_type: 'OCI::Dts::Models::MultipleTransferAppliances'
492
+ )
493
+ end
494
+ # rubocop:enable Metrics/BlockLength
495
+ end
496
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
497
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
498
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
499
+
500
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
501
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
502
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
503
+
504
+
505
+ # Updates a Transfer Appliance
506
+ # @param [String] id ID of the Transfer Job
507
+ # @param [String] transfer_appliance_label Label of the Transfer Appliance
508
+ # @param [OCI::Dts::Models::UpdateTransferApplianceDetails] update_transfer_appliance_details fields to update
509
+ # @param [Hash] opts the optional parameters
510
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
511
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
512
+ # @option opts [String] :if_match The entity tag to match. Optional, if set, the update will be successful only if the
513
+ # object's tag matches the tag specified in the request.
514
+ #
515
+ # @return [Response] A Response object with data of type {OCI::Dts::Models::TransferAppliance TransferAppliance}
516
+ def update_transfer_appliance(id, transfer_appliance_label, update_transfer_appliance_details, opts = {})
517
+ logger.debug 'Calling operation TransferApplianceClient#update_transfer_appliance.' if logger
518
+
519
+ raise "Missing the required parameter 'id' when calling update_transfer_appliance." if id.nil?
520
+ raise "Missing the required parameter 'transfer_appliance_label' when calling update_transfer_appliance." if transfer_appliance_label.nil?
521
+ raise "Missing the required parameter 'update_transfer_appliance_details' when calling update_transfer_appliance." if update_transfer_appliance_details.nil?
522
+ raise "Parameter value for 'id' must not be blank" if OCI::Internal::Util.blank_string?(id)
523
+ raise "Parameter value for 'transfer_appliance_label' must not be blank" if OCI::Internal::Util.blank_string?(transfer_appliance_label)
524
+
525
+ path = '/transferJobs/{id}/transferAppliances/{transferApplianceLabel}'.sub('{id}', id.to_s).sub('{transferApplianceLabel}', transfer_appliance_label.to_s)
526
+ operation_signing_strategy = :standard
527
+
528
+ # rubocop:disable Style/NegatedIf
529
+ # Query Params
530
+ query_params = {}
531
+
532
+ # Header Params
533
+ header_params = {}
534
+ header_params[:accept] = 'application/json'
535
+ header_params[:'content-type'] = 'application/json'
536
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
537
+ # rubocop:enable Style/NegatedIf
538
+
539
+ post_body = @api_client.object_to_http_body(update_transfer_appliance_details)
540
+
541
+ # rubocop:disable Metrics/BlockLength
542
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'TransferApplianceClient#update_transfer_appliance') do
543
+ @api_client.call_api(
544
+ :PUT,
545
+ path,
546
+ endpoint,
547
+ header_params: header_params,
548
+ query_params: query_params,
549
+ operation_signing_strategy: operation_signing_strategy,
550
+ body: post_body,
551
+ return_type: 'OCI::Dts::Models::TransferAppliance'
552
+ )
553
+ end
554
+ # rubocop:enable Metrics/BlockLength
555
+ end
556
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
557
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
558
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
559
+
560
+ private
561
+
562
+ def applicable_retry_config(opts = {})
563
+ return @retry_config unless opts.key?(:retry_config)
564
+
565
+ opts[:retry_config]
566
+ end
567
+ end
568
+ end
569
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength