oci 2.5.11 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/oci.rb +1 -0
- data/lib/oci/auth/federation_client.rb +2 -1
- data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +6 -1
- data/lib/oci/auth/url_based_certificate_retriever.rb +6 -2
- data/lib/oci/auth/util.rb +18 -0
- data/lib/oci/core/compute_client.rb +730 -48
- data/lib/oci/core/compute_client_composite_operations.rb +119 -0
- data/lib/oci/core/compute_management_client.rb +11 -4
- data/lib/oci/core/core.rb +13 -0
- data/lib/oci/core/models/add_security_rule_details.rb +4 -2
- data/lib/oci/core/models/attach_vnic_details.rb +1 -0
- data/lib/oci/core/models/capture_console_history_details.rb +1 -0
- data/lib/oci/core/models/change_dedicated_vm_host_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_dhcp_options_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_internet_gateway_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_local_peering_gateway_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_network_security_group_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_public_ip_compartment_details.rb +155 -0
- data/lib/oci/core/models/create_dedicated_vm_host_details.rb +262 -0
- data/lib/oci/core/models/create_drg_attachment_details.rb +4 -2
- data/lib/oci/core/models/create_image_details.rb +1 -1
- data/lib/oci/core/models/create_instance_configuration_base.rb +16 -6
- data/lib/oci/core/models/create_instance_configuration_details.rb +1 -1
- data/lib/oci/core/models/create_instance_configuration_from_instance_details.rb +3 -2
- data/lib/oci/core/models/create_instance_pool_details.rb +3 -1
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +1 -1
- data/lib/oci/core/models/create_service_gateway_details.rb +1 -1
- data/lib/oci/core/models/create_volume_group_backup_details.rb +3 -1
- data/lib/oci/core/models/create_volume_group_details.rb +1 -1
- data/lib/oci/core/models/cross_connect_mapping.rb +4 -0
- data/lib/oci/core/models/dedicated_vm_host.rb +359 -0
- data/lib/oci/core/models/dedicated_vm_host_instance_shape_summary.rb +170 -0
- data/lib/oci/core/models/dedicated_vm_host_instance_summary.rb +215 -0
- data/lib/oci/core/models/dedicated_vm_host_shape_summary.rb +171 -0
- data/lib/oci/core/models/dedicated_vm_host_summary.rb +325 -0
- data/lib/oci/core/models/drg_attachment.rb +6 -3
- data/lib/oci/core/models/egress_security_rule.rb +1 -0
- data/lib/oci/core/models/image.rb +2 -0
- data/lib/oci/core/models/ingress_security_rule.rb +2 -1
- data/lib/oci/core/models/instance.rb +16 -1
- data/lib/oci/core/models/instance_configuration.rb +10 -7
- data/lib/oci/core/models/ipv6.rb +2 -0
- data/lib/oci/core/models/launch_instance_details.rb +16 -1
- data/lib/oci/core/models/launch_options.rb +3 -2
- data/lib/oci/core/models/local_peering_gateway.rb +4 -3
- data/lib/oci/core/models/route_rule.rb +2 -1
- data/lib/oci/core/models/security_rule.rb +3 -1
- data/lib/oci/core/models/service_gateway.rb +4 -3
- data/lib/oci/core/models/subnet.rb +2 -1
- data/lib/oci/core/models/update_console_history_details.rb +1 -0
- data/lib/oci/core/models/update_dedicated_vm_host_details.rb +194 -0
- data/lib/oci/core/models/update_drg_attachment_details.rb +6 -3
- data/lib/oci/core/models/update_instance_pool_details.rb +3 -1
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -3
- data/lib/oci/core/models/update_network_security_group_details.rb +2 -0
- data/lib/oci/core/models/update_security_rule_details.rb +4 -2
- data/lib/oci/core/models/update_service_gateway_details.rb +4 -3
- data/lib/oci/core/models/update_vnic_details.rb +2 -0
- data/lib/oci/core/models/update_volume_backup_details.rb +1 -1
- data/lib/oci/core/models/update_volume_group_backup_details.rb +2 -1
- data/lib/oci/core/models/update_volume_group_details.rb +2 -1
- data/lib/oci/core/models/vcn.rb +2 -1
- data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +396 -59
- data/lib/oci/dts/dts.rb +57 -0
- data/lib/oci/dts/models/attach_devices_details.rb +153 -0
- data/lib/oci/dts/models/change_transfer_job_compartment_details.rb +154 -0
- data/lib/oci/dts/models/create_transfer_appliance_details.rb +152 -0
- data/lib/oci/dts/models/create_transfer_appliance_entitlement_details.rb +178 -0
- data/lib/oci/dts/models/create_transfer_device_details.rb +165 -0
- data/lib/oci/dts/models/create_transfer_job_details.rb +238 -0
- data/lib/oci/dts/models/create_transfer_package_details.rb +178 -0
- data/lib/oci/dts/models/detach_devices_details.rb +153 -0
- data/lib/oci/dts/models/multiple_transfer_appliances.rb +153 -0
- data/lib/oci/dts/models/multiple_transfer_devices.rb +153 -0
- data/lib/oci/dts/models/multiple_transfer_packages.rb +153 -0
- data/lib/oci/dts/models/new_transfer_device.rb +246 -0
- data/lib/oci/dts/models/shipping_address.rb +263 -0
- data/lib/oci/dts/models/shipping_vendors.rb +149 -0
- data/lib/oci/dts/models/transfer_appliance.rb +367 -0
- data/lib/oci/dts/models/transfer_appliance_certificate.rb +148 -0
- data/lib/oci/dts/models/transfer_appliance_encryption_passphrase.rb +152 -0
- data/lib/oci/dts/models/transfer_appliance_entitlement.rb +240 -0
- data/lib/oci/dts/models/transfer_appliance_public_key.rb +152 -0
- data/lib/oci/dts/models/transfer_appliance_summary.rb +223 -0
- data/lib/oci/dts/models/transfer_device.rb +268 -0
- data/lib/oci/dts/models/transfer_device_summary.rb +254 -0
- data/lib/oci/dts/models/transfer_job.rb +356 -0
- data/lib/oci/dts/models/transfer_job_summary.rb +296 -0
- data/lib/oci/dts/models/transfer_package.rb +281 -0
- data/lib/oci/dts/models/transfer_package_summary.rb +201 -0
- data/lib/oci/dts/models/update_transfer_appliance_details.rb +180 -0
- data/lib/oci/dts/models/update_transfer_device_details.rb +166 -0
- data/lib/oci/dts/models/update_transfer_job_details.rb +237 -0
- data/lib/oci/dts/models/update_transfer_package_details.rb +204 -0
- data/lib/oci/dts/shipping_vendors_client.rb +165 -0
- data/lib/oci/dts/shipping_vendors_client_composite_operations.rb +24 -0
- data/lib/oci/dts/transfer_appliance_client.rb +569 -0
- data/lib/oci/dts/transfer_appliance_client_composite_operations.rb +104 -0
- data/lib/oci/dts/transfer_appliance_entitlement_client.rb +223 -0
- data/lib/oci/dts/transfer_appliance_entitlement_client_composite_operations.rb +24 -0
- data/lib/oci/dts/transfer_device_client.rb +402 -0
- data/lib/oci/dts/transfer_device_client_composite_operations.rb +65 -0
- data/lib/oci/dts/transfer_job_client.rb +458 -0
- data/lib/oci/dts/transfer_job_client_composite_operations.rb +143 -0
- data/lib/oci/dts/transfer_package_client.rb +515 -0
- data/lib/oci/dts/transfer_package_client_composite_operations.rb +104 -0
- data/lib/oci/dts/util.rb +2 -0
- data/lib/oci/file_storage/models/create_file_system_details.rb +19 -4
- data/lib/oci/file_storage/models/file_system.rb +19 -4
- data/lib/oci/file_storage/models/file_system_summary.rb +19 -4
- data/lib/oci/file_storage/models/update_file_system_details.rb +22 -4
- data/lib/oci/limits/limits.rb +5 -0
- data/lib/oci/limits/limits_client.rb +444 -0
- data/lib/oci/limits/limits_client_composite_operations.rb +24 -0
- data/lib/oci/limits/models/create_quota_details.rb +1 -1
- data/lib/oci/limits/models/limit_definition_summary.rb +241 -0
- data/lib/oci/limits/models/limit_value_summary.rb +210 -0
- data/lib/oci/limits/models/quota.rb +1 -1
- data/lib/oci/limits/models/resource_availability.rb +163 -0
- data/lib/oci/limits/models/service_summary.rb +159 -0
- data/lib/oci/limits/models/update_quota_details.rb +1 -1
- data/lib/oci/limits/quotas_client.rb +12 -11
- data/lib/oci/monitoring/models/alarm.rb +20 -1
- data/lib/oci/monitoring/models/create_alarm_details.rb +20 -1
- data/lib/oci/monitoring/models/list_metrics_details.rb +23 -3
- data/lib/oci/monitoring/models/metric.rb +20 -1
- data/lib/oci/monitoring/models/metric_data.rb +20 -1
- data/lib/oci/monitoring/models/metric_data_details.rb +20 -1
- data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +20 -1
- data/lib/oci/monitoring/models/update_alarm_details.rb +20 -1
- data/lib/oci/regions.rb +14 -8
- data/lib/oci/streaming/models/archiver.rb +291 -0
- data/lib/oci/streaming/models/archiver_error.rb +159 -0
- data/lib/oci/streaming/models/archiver_lifecycle_state.rb +14 -0
- data/lib/oci/streaming/models/archiver_start_position.rb +10 -0
- data/lib/oci/streaming/models/create_archiver_details.rb +223 -0
- data/lib/oci/streaming/models/update_archiver_details.rb +222 -0
- data/lib/oci/streaming/stream_admin_client.rb +304 -0
- data/lib/oci/streaming/stream_admin_client_composite_operations.rb +162 -0
- data/lib/oci/streaming/streaming.rb +6 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/access_rule.rb +121 -4
- data/lib/oci/waas/models/access_rule_criteria.rb +12 -0
- data/lib/oci/waas/models/address_list.rb +289 -0
- data/lib/oci/waas/models/address_list_summary.rb +279 -0
- data/lib/oci/waas/models/caching_rule.rb +243 -0
- data/lib/oci/waas/models/caching_rule_criteria.rb +194 -0
- data/lib/oci/waas/models/caching_rule_summary.rb +246 -0
- data/lib/oci/waas/models/certificate.rb +22 -9
- data/lib/oci/waas/models/certificate_extensions.rb +3 -0
- data/lib/oci/waas/models/certificate_issuer_name.rb +225 -0
- data/lib/oci/waas/models/certificate_public_key_info.rb +4 -1
- data/lib/oci/waas/models/certificate_subject_name.rb +8 -1
- data/lib/oci/waas/models/certificate_summary.rb +10 -2
- data/lib/oci/waas/models/change_address_list_compartment_details.rb +154 -0
- data/lib/oci/waas/models/change_custom_protection_rule_compartment_details.rb +154 -0
- data/lib/oci/waas/models/create_address_list_details.rb +213 -0
- data/lib/oci/waas/models/create_certificate_details.rb +22 -3
- data/lib/oci/waas/models/create_custom_protection_rule_details.rb +251 -0
- data/lib/oci/waas/models/create_waas_policy_details.rb +26 -4
- data/lib/oci/waas/models/custom_protection_rule.rb +326 -0
- data/lib/oci/waas/models/custom_protection_rule_setting.rb +180 -0
- data/lib/oci/waas/models/custom_protection_rule_summary.rb +279 -0
- data/lib/oci/waas/models/origin_group.rb +149 -0
- data/lib/oci/waas/models/origin_group_origins.rb +159 -0
- data/lib/oci/waas/models/policy_config.rb +201 -4
- data/lib/oci/waas/models/protection_rule_exclusion.rb +2 -2
- data/lib/oci/waas/models/purge_cache.rb +149 -0
- data/lib/oci/waas/models/update_address_list_details.rb +199 -0
- data/lib/oci/waas/models/update_certificate_details.rb +10 -2
- data/lib/oci/waas/models/update_custom_protection_rule_details.rb +237 -0
- data/lib/oci/waas/models/update_waas_policy_details.rb +26 -4
- data/lib/oci/waas/models/waas_policy.rb +25 -3
- data/lib/oci/waas/models/waas_policy_custom_protection_rule_summary.rb +207 -0
- data/lib/oci/waas/models/waas_policy_summary.rb +10 -2
- data/lib/oci/waas/models/waf_config.rb +43 -1
- data/lib/oci/waas/models/waf_config_details.rb +43 -1
- data/lib/oci/waas/models/waf_log.rb +3 -3
- data/lib/oci/waas/models/work_request.rb +4 -1
- data/lib/oci/waas/models/work_request_operation_types.rb +4 -1
- data/lib/oci/waas/models/work_request_summary.rb +4 -1
- data/lib/oci/waas/waas.rb +19 -0
- data/lib/oci/waas/waas_client.rb +1147 -61
- data/lib/oci/waas/waas_client_composite_operations.rb +386 -0
- metadata +90 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 131dfb1d0efb26ccab1277d563d82e7a6f7e1b664a48f4cdf2d263c1928863be
|
4
|
+
data.tar.gz: 669c6d5cb6b5ef5205b583ed47c89c402cddd656715e97e64e086f57ce055bf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 915a09253be1bf8592d3e9d24f92a7c9b45bf4a7417516c814e1ae48e3ddb566ba8926e2519ed2cbdc677dee6352d2c243d0ad705747edc7c77485c462aea2ef
|
7
|
+
data.tar.gz: fc0737c033ff896d52ae596d08a806b5824ad0a88b82f0858a447a2b03bb5fef392963ffdc02b2ee6c5a40927eb7b7bf1857482eb99b9f685203cf0336a2bcf5
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Oracle Cloud Infrastructure Ruby SDK
|
2
|
-
**Version 2.
|
2
|
+
**Version 2.6.0**
|
3
3
|
|
4
4
|
This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
|
5
5
|
|
@@ -13,6 +13,7 @@ The Ruby SDK supports the following services:
|
|
13
13
|
* Compute Autoscaling
|
14
14
|
* Container Engine
|
15
15
|
* Core Services (which includes Networking, Compute, and Block Volume)
|
16
|
+
* Data Transfer
|
16
17
|
* Database
|
17
18
|
* Domain Name System
|
18
19
|
* Email
|
@@ -22,6 +23,7 @@ The Ruby SDK supports the following services:
|
|
22
23
|
* Health Checks
|
23
24
|
* Identity and Access Management
|
24
25
|
* Key Management
|
26
|
+
* Limits
|
25
27
|
* Load Balancing
|
26
28
|
* Monitoring
|
27
29
|
* Notification
|
data/lib/oci.rb
CHANGED
@@ -90,6 +90,7 @@ module OCI
|
|
90
90
|
|
91
91
|
leaf_certificate_pem = @leaf_certificate_supplier.certificate_pem
|
92
92
|
request_payload = {
|
93
|
+
'payload': 'SERVICE_PRINCIPAL',
|
93
94
|
'certificate': OCI::Auth::Util.sanitize_certificate_string(leaf_certificate_pem),
|
94
95
|
'publicKey': OCI::Auth::Util.sanitize_certificate_string(@session_key_supplier.key_pair[:public_key].to_pem)
|
95
96
|
}
|
@@ -109,7 +110,7 @@ module OCI
|
|
109
110
|
fingerprint,
|
110
111
|
@leaf_certificate_supplier.private_key_pem)
|
111
112
|
|
112
|
-
request =
|
113
|
+
request = OCI::Auth::Util.get_metadata_request(@federation_endpoint, 'post')
|
113
114
|
request.body = request_payload.to_json
|
114
115
|
|
115
116
|
header_params = {}
|
@@ -70,7 +70,12 @@ module OCI
|
|
70
70
|
@leaf_certificate_retriever.certificate
|
71
71
|
)
|
72
72
|
|
73
|
-
|
73
|
+
uri = URI(GET_REGION_URL)
|
74
|
+
raw_region_client = Net::HTTP.new(uri.hostname, uri.port)
|
75
|
+
raw_region = nil
|
76
|
+
raw_region_client.request(OCI::Auth::Util.get_metadata_request(GET_REGION_URL, 'get')) do |response|
|
77
|
+
raw_region = response.body.strip.downcase
|
78
|
+
end
|
74
79
|
symbolised_raw_region = raw_region.to_sym
|
75
80
|
@region = if OCI::Regions::REGION_SHORT_NAMES_TO_LONG_NAMES.key?(symbolised_raw_region)
|
76
81
|
OCI::Regions::REGION_SHORT_NAMES_TO_LONG_NAMES[symbolised_raw_region]
|
@@ -77,14 +77,18 @@ module OCI
|
|
77
77
|
def refresh
|
78
78
|
@refresh_lock.lock
|
79
79
|
@certificate_retrieve_http_client.start do
|
80
|
-
@certificate_retrieve_http_client.request(
|
80
|
+
@certificate_retrieve_http_client.request(
|
81
|
+
OCI::Auth::Util.get_metadata_request(@certificate_url, 'get')
|
82
|
+
) do |response|
|
81
83
|
@certificate_pem = response.body
|
82
84
|
end
|
83
85
|
end
|
84
86
|
|
85
87
|
if @private_key_retrieve_http_client
|
86
88
|
@private_key_retrieve_http_client.start do
|
87
|
-
@private_key_retrieve_http_client.request(
|
89
|
+
@private_key_retrieve_http_client.request(
|
90
|
+
OCI::Auth::Util.get_metadata_request(@private_key_url, 'get')
|
91
|
+
) do |response|
|
88
92
|
@private_key_pem = response.body
|
89
93
|
@private_key = OpenSSL::PKey::RSA.new(
|
90
94
|
@private_key_pem,
|
data/lib/oci/auth/util.rb
CHANGED
@@ -5,6 +5,9 @@ module OCI
|
|
5
5
|
# Contains utility methods to support functionality in the {OCI::Auth} module, for example being able
|
6
6
|
# to extract information from certificates and scrubbing certificate information for calls to Auth Service
|
7
7
|
module Util
|
8
|
+
AUTHORIZATION_HEADER = 'Authorization'.freeze
|
9
|
+
AUTHORIZATION_HEADER_VALUE = 'Bearer Oracle'.freeze
|
10
|
+
|
8
11
|
def self.get_tenancy_id_from_certificate(x509_certificate)
|
9
12
|
subject_array = x509_certificate.subject.to_a
|
10
13
|
subject_array.each do |subject_name|
|
@@ -30,6 +33,21 @@ module OCI
|
|
30
33
|
.gsub('-----END PUBLIC KEY-----', '')
|
31
34
|
.delete("\n")
|
32
35
|
end
|
36
|
+
|
37
|
+
def self.get_metadata_request(request_url, type)
|
38
|
+
case type
|
39
|
+
when 'post'
|
40
|
+
request = Net::HTTP::Post.new(request_url)
|
41
|
+
when 'get'
|
42
|
+
request = Net::HTTP::Get.new(request_url)
|
43
|
+
when 'put'
|
44
|
+
request = Net::HTTP::Put.new(request_url)
|
45
|
+
else
|
46
|
+
raise "Unknown request-type #{type} provided."
|
47
|
+
end
|
48
|
+
request[AUTHORIZATION_HEADER] = AUTHORIZATION_HEADER_VALUE
|
49
|
+
request
|
50
|
+
end
|
33
51
|
end
|
34
52
|
end
|
35
53
|
end
|
@@ -366,6 +366,75 @@ module OCI
|
|
366
366
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
367
367
|
|
368
368
|
|
369
|
+
# Moves a dedicated vm host from one compartment to another
|
370
|
+
# @param [String] dedicated_vm_host_id The OCID of the dedicated VM host.
|
371
|
+
# @param [OCI::Core::Models::ChangeDedicatedVmHostCompartmentDetails] change_dedicated_vm_host_compartment_details Request to change the compartment of a given dedicated vm host.
|
372
|
+
# @param [Hash] opts the optional parameters
|
373
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
374
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
375
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
376
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
377
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
378
|
+
#
|
379
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
380
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
381
|
+
#
|
382
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
383
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
384
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
385
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
386
|
+
# may be rejected).
|
387
|
+
#
|
388
|
+
# @return [Response] A Response object with data of type nil
|
389
|
+
def change_dedicated_vm_host_compartment(dedicated_vm_host_id, change_dedicated_vm_host_compartment_details, opts = {})
|
390
|
+
logger.debug 'Calling operation ComputeClient#change_dedicated_vm_host_compartment.' if logger
|
391
|
+
|
392
|
+
raise "Missing the required parameter 'dedicated_vm_host_id' when calling change_dedicated_vm_host_compartment." if dedicated_vm_host_id.nil?
|
393
|
+
raise "Missing the required parameter 'change_dedicated_vm_host_compartment_details' when calling change_dedicated_vm_host_compartment." if change_dedicated_vm_host_compartment_details.nil?
|
394
|
+
raise "Parameter value for 'dedicated_vm_host_id' must not be blank" if OCI::Internal::Util.blank_string?(dedicated_vm_host_id)
|
395
|
+
|
396
|
+
path = '/dedicatedVmHosts/{dedicatedVmHostId}/actions/changeCompartment'.sub('{dedicatedVmHostId}', dedicated_vm_host_id.to_s)
|
397
|
+
operation_signing_strategy = :standard
|
398
|
+
|
399
|
+
# rubocop:disable Style/NegatedIf
|
400
|
+
# Query Params
|
401
|
+
query_params = {}
|
402
|
+
|
403
|
+
# Header Params
|
404
|
+
header_params = {}
|
405
|
+
header_params[:accept] = 'application/json'
|
406
|
+
header_params[:'content-type'] = 'application/json'
|
407
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
408
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
409
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
410
|
+
# rubocop:enable Style/NegatedIf
|
411
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
412
|
+
|
413
|
+
post_body = @api_client.object_to_http_body(change_dedicated_vm_host_compartment_details)
|
414
|
+
|
415
|
+
# rubocop:disable Metrics/BlockLength
|
416
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeClient#change_dedicated_vm_host_compartment') do
|
417
|
+
@api_client.call_api(
|
418
|
+
:POST,
|
419
|
+
path,
|
420
|
+
endpoint,
|
421
|
+
header_params: header_params,
|
422
|
+
query_params: query_params,
|
423
|
+
operation_signing_strategy: operation_signing_strategy,
|
424
|
+
body: post_body
|
425
|
+
)
|
426
|
+
end
|
427
|
+
# rubocop:enable Metrics/BlockLength
|
428
|
+
end
|
429
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
430
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
431
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
432
|
+
|
433
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
434
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
435
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
436
|
+
|
437
|
+
|
369
438
|
# Moves an image into a different compartment within the same tenancy. For information about moving
|
370
439
|
# resources between compartments, see
|
371
440
|
# [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
@@ -572,6 +641,69 @@ module OCI
|
|
572
641
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
573
642
|
|
574
643
|
|
644
|
+
# Creates a new dedicated virtual machine (VM) host in the specified compartment and the specified availability domain.
|
645
|
+
#
|
646
|
+
# @param [OCI::Core::Models::CreateDedicatedVmHostDetails] create_dedicated_vm_host_details The details for creating a new dedicated virtual machine (VM) host.
|
647
|
+
# @param [Hash] opts the optional parameters
|
648
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
649
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
650
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
651
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
652
|
+
#
|
653
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
654
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
655
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
656
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
657
|
+
# may be rejected).
|
658
|
+
#
|
659
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::DedicatedVmHost DedicatedVmHost}
|
660
|
+
def create_dedicated_vm_host(create_dedicated_vm_host_details, opts = {})
|
661
|
+
logger.debug 'Calling operation ComputeClient#create_dedicated_vm_host.' if logger
|
662
|
+
|
663
|
+
raise "Missing the required parameter 'create_dedicated_vm_host_details' when calling create_dedicated_vm_host." if create_dedicated_vm_host_details.nil?
|
664
|
+
|
665
|
+
path = '/dedicatedVmHosts'
|
666
|
+
operation_signing_strategy = :standard
|
667
|
+
|
668
|
+
# rubocop:disable Style/NegatedIf
|
669
|
+
# Query Params
|
670
|
+
query_params = {}
|
671
|
+
|
672
|
+
# Header Params
|
673
|
+
header_params = {}
|
674
|
+
header_params[:accept] = 'application/json'
|
675
|
+
header_params[:'content-type'] = 'application/json'
|
676
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
677
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
678
|
+
# rubocop:enable Style/NegatedIf
|
679
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
680
|
+
|
681
|
+
post_body = @api_client.object_to_http_body(create_dedicated_vm_host_details)
|
682
|
+
|
683
|
+
# rubocop:disable Metrics/BlockLength
|
684
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeClient#create_dedicated_vm_host') do
|
685
|
+
@api_client.call_api(
|
686
|
+
:POST,
|
687
|
+
path,
|
688
|
+
endpoint,
|
689
|
+
header_params: header_params,
|
690
|
+
query_params: query_params,
|
691
|
+
operation_signing_strategy: operation_signing_strategy,
|
692
|
+
body: post_body,
|
693
|
+
return_type: 'OCI::Core::Models::DedicatedVmHost'
|
694
|
+
)
|
695
|
+
end
|
696
|
+
# rubocop:enable Metrics/BlockLength
|
697
|
+
end
|
698
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
699
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
700
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
701
|
+
|
702
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
703
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
704
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
705
|
+
|
706
|
+
|
575
707
|
# Creates a boot disk image for the specified instance or imports an exported image from the Oracle Cloud Infrastructure Object Storage service.
|
576
708
|
#
|
577
709
|
# When creating a new image, you must provide the OCID of the instance you want to use as the basis for the image, and
|
@@ -829,6 +961,63 @@ module OCI
|
|
829
961
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
830
962
|
|
831
963
|
|
964
|
+
# Deletes the specified dedicated virtual machine (VM) host.
|
965
|
+
#
|
966
|
+
# If any VM instances are assigned to the dedicated VM host, it will not be deleted and the service will return a 409 response code.
|
967
|
+
#
|
968
|
+
# @param [String] dedicated_vm_host_id The OCID of the dedicated VM host.
|
969
|
+
# @param [Hash] opts the optional parameters
|
970
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
971
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
972
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
973
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
974
|
+
#
|
975
|
+
# @return [Response] A Response object with data of type nil
|
976
|
+
def delete_dedicated_vm_host(dedicated_vm_host_id, opts = {})
|
977
|
+
logger.debug 'Calling operation ComputeClient#delete_dedicated_vm_host.' if logger
|
978
|
+
|
979
|
+
raise "Missing the required parameter 'dedicated_vm_host_id' when calling delete_dedicated_vm_host." if dedicated_vm_host_id.nil?
|
980
|
+
raise "Parameter value for 'dedicated_vm_host_id' must not be blank" if OCI::Internal::Util.blank_string?(dedicated_vm_host_id)
|
981
|
+
|
982
|
+
path = '/dedicatedVmHosts/{dedicatedVmHostId}'.sub('{dedicatedVmHostId}', dedicated_vm_host_id.to_s)
|
983
|
+
operation_signing_strategy = :standard
|
984
|
+
|
985
|
+
# rubocop:disable Style/NegatedIf
|
986
|
+
# Query Params
|
987
|
+
query_params = {}
|
988
|
+
|
989
|
+
# Header Params
|
990
|
+
header_params = {}
|
991
|
+
header_params[:accept] = 'application/json'
|
992
|
+
header_params[:'content-type'] = 'application/json'
|
993
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
994
|
+
# rubocop:enable Style/NegatedIf
|
995
|
+
|
996
|
+
post_body = nil
|
997
|
+
|
998
|
+
# rubocop:disable Metrics/BlockLength
|
999
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeClient#delete_dedicated_vm_host') do
|
1000
|
+
@api_client.call_api(
|
1001
|
+
:DELETE,
|
1002
|
+
path,
|
1003
|
+
endpoint,
|
1004
|
+
header_params: header_params,
|
1005
|
+
query_params: query_params,
|
1006
|
+
operation_signing_strategy: operation_signing_strategy,
|
1007
|
+
body: post_body
|
1008
|
+
)
|
1009
|
+
end
|
1010
|
+
# rubocop:enable Metrics/BlockLength
|
1011
|
+
end
|
1012
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1013
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1014
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1015
|
+
|
1016
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1017
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1018
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1019
|
+
|
1020
|
+
|
832
1021
|
# Deletes an image.
|
833
1022
|
# @param [String] image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
|
834
1023
|
# @param [Hash] opts the optional parameters
|
@@ -1525,6 +1714,61 @@ module OCI
|
|
1525
1714
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1526
1715
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1527
1716
|
|
1717
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1718
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1719
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1720
|
+
|
1721
|
+
|
1722
|
+
# Gets information about the specified dedicated virtual machine (VM) host.
|
1723
|
+
# @param [String] dedicated_vm_host_id The OCID of the dedicated VM host.
|
1724
|
+
# @param [Hash] opts the optional parameters
|
1725
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1726
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1727
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
1728
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
1729
|
+
#
|
1730
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::DedicatedVmHost DedicatedVmHost}
|
1731
|
+
def get_dedicated_vm_host(dedicated_vm_host_id, opts = {})
|
1732
|
+
logger.debug 'Calling operation ComputeClient#get_dedicated_vm_host.' if logger
|
1733
|
+
|
1734
|
+
raise "Missing the required parameter 'dedicated_vm_host_id' when calling get_dedicated_vm_host." if dedicated_vm_host_id.nil?
|
1735
|
+
raise "Parameter value for 'dedicated_vm_host_id' must not be blank" if OCI::Internal::Util.blank_string?(dedicated_vm_host_id)
|
1736
|
+
|
1737
|
+
path = '/dedicatedVmHosts/{dedicatedVmHostId}'.sub('{dedicatedVmHostId}', dedicated_vm_host_id.to_s)
|
1738
|
+
operation_signing_strategy = :standard
|
1739
|
+
|
1740
|
+
# rubocop:disable Style/NegatedIf
|
1741
|
+
# Query Params
|
1742
|
+
query_params = {}
|
1743
|
+
|
1744
|
+
# Header Params
|
1745
|
+
header_params = {}
|
1746
|
+
header_params[:accept] = 'application/json'
|
1747
|
+
header_params[:'content-type'] = 'application/json'
|
1748
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1749
|
+
# rubocop:enable Style/NegatedIf
|
1750
|
+
|
1751
|
+
post_body = nil
|
1752
|
+
|
1753
|
+
# rubocop:disable Metrics/BlockLength
|
1754
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeClient#get_dedicated_vm_host') do
|
1755
|
+
@api_client.call_api(
|
1756
|
+
:GET,
|
1757
|
+
path,
|
1758
|
+
endpoint,
|
1759
|
+
header_params: header_params,
|
1760
|
+
query_params: query_params,
|
1761
|
+
operation_signing_strategy: operation_signing_strategy,
|
1762
|
+
body: post_body,
|
1763
|
+
return_type: 'OCI::Core::Models::DedicatedVmHost'
|
1764
|
+
)
|
1765
|
+
end
|
1766
|
+
# rubocop:enable Metrics/BlockLength
|
1767
|
+
end
|
1768
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1769
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1770
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1771
|
+
|
1528
1772
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1529
1773
|
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1530
1774
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
@@ -2441,29 +2685,19 @@ module OCI
|
|
2441
2685
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2442
2686
|
|
2443
2687
|
|
2444
|
-
# Lists the
|
2445
|
-
#
|
2446
|
-
# [custom images](https://docs.cloud.oracle.com/Content/Compute/Tasks/managingcustomimages.htm) that have
|
2447
|
-
# been created. The list of images returned is ordered to first show all
|
2448
|
-
# Oracle-provided images, then all custom images.
|
2449
|
-
#
|
2450
|
-
# The order of images returned may change when new images are released.
|
2688
|
+
# Lists the shapes that can be used to launch a virtual machine (VM) instance on a dedicated VM host within the specified compartment.
|
2689
|
+
# You can filter the list by compatibility with a specific dedicated VM host shape.
|
2451
2690
|
#
|
2452
2691
|
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
2453
2692
|
# @param [Hash] opts the optional parameters
|
2454
2693
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2455
2694
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2456
|
-
# @option opts [String] :
|
2457
|
-
#
|
2458
|
-
# @option opts [String] :operating_system The image's operating system.
|
2459
|
-
#
|
2460
|
-
# Example: `Oracle Linux`
|
2695
|
+
# @option opts [String] :availability_domain The name of the availability domain.
|
2461
2696
|
#
|
2462
|
-
#
|
2697
|
+
# Example: `Uocm:PHX-AD-1`
|
2463
2698
|
#
|
2464
|
-
#
|
2699
|
+
# @option opts [String] :dedicated_vm_host_shape Dedicated VM host shape name
|
2465
2700
|
#
|
2466
|
-
# @option opts [String] :shape Shape name.
|
2467
2701
|
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated
|
2468
2702
|
# \"List\" call. For important details about how pagination works, see
|
2469
2703
|
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
@@ -2474,48 +2708,424 @@ module OCI
|
|
2474
2708
|
# call. For important details about how pagination works, see
|
2475
2709
|
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2476
2710
|
#
|
2477
|
-
# @option opts [String] :
|
2478
|
-
#
|
2479
|
-
# sort order is case sensitive.
|
2480
|
-
#
|
2481
|
-
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
2482
|
-
# optionally filter by availability domain if the scope of the resource type is within a
|
2483
|
-
# single availability domain. If you call one of these \"List\" operations without specifying
|
2484
|
-
# an availability domain, the resources are grouped by availability domain, then sorted.
|
2485
|
-
#
|
2486
|
-
# Allowed values are: TIMECREATED, DISPLAYNAME
|
2487
|
-
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
2488
|
-
# is case sensitive.
|
2489
|
-
#
|
2490
|
-
# Allowed values are: ASC, DESC
|
2491
|
-
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
|
2711
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
2712
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
2492
2713
|
#
|
2493
|
-
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::
|
2494
|
-
def
|
2495
|
-
logger.debug 'Calling operation ComputeClient#
|
2496
|
-
|
2497
|
-
raise "Missing the required parameter 'compartment_id' when calling list_images." if compartment_id.nil?
|
2498
|
-
|
2499
|
-
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
2500
|
-
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
2501
|
-
end
|
2502
|
-
|
2503
|
-
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
2504
|
-
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
2505
|
-
end
|
2714
|
+
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::DedicatedVmHostInstanceShapeSummary DedicatedVmHostInstanceShapeSummary}>
|
2715
|
+
def list_dedicated_vm_host_instance_shapes(compartment_id, opts = {})
|
2716
|
+
logger.debug 'Calling operation ComputeClient#list_dedicated_vm_host_instance_shapes.' if logger
|
2506
2717
|
|
2507
|
-
|
2508
|
-
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Image::LIFECYCLE_STATE_ENUM.'
|
2509
|
-
end
|
2718
|
+
raise "Missing the required parameter 'compartment_id' when calling list_dedicated_vm_host_instance_shapes." if compartment_id.nil?
|
2510
2719
|
|
2511
|
-
path = '/
|
2720
|
+
path = '/dedicatedVmHostInstanceShapes'
|
2512
2721
|
operation_signing_strategy = :standard
|
2513
2722
|
|
2514
2723
|
# rubocop:disable Style/NegatedIf
|
2515
2724
|
# Query Params
|
2516
2725
|
query_params = {}
|
2517
2726
|
query_params[:compartmentId] = compartment_id
|
2518
|
-
query_params[:
|
2727
|
+
query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
|
2728
|
+
query_params[:dedicatedVmHostShape] = opts[:dedicated_vm_host_shape] if opts[:dedicated_vm_host_shape]
|
2729
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2730
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2731
|
+
|
2732
|
+
# Header Params
|
2733
|
+
header_params = {}
|
2734
|
+
header_params[:accept] = 'application/json'
|
2735
|
+
header_params[:'content-type'] = 'application/json'
|
2736
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2737
|
+
# rubocop:enable Style/NegatedIf
|
2738
|
+
|
2739
|
+
post_body = nil
|
2740
|
+
|
2741
|
+
# rubocop:disable Metrics/BlockLength
|
2742
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeClient#list_dedicated_vm_host_instance_shapes') do
|
2743
|
+
@api_client.call_api(
|
2744
|
+
:GET,
|
2745
|
+
path,
|
2746
|
+
endpoint,
|
2747
|
+
header_params: header_params,
|
2748
|
+
query_params: query_params,
|
2749
|
+
operation_signing_strategy: operation_signing_strategy,
|
2750
|
+
body: post_body,
|
2751
|
+
return_type: 'Array<OCI::Core::Models::DedicatedVmHostInstanceShapeSummary>'
|
2752
|
+
)
|
2753
|
+
end
|
2754
|
+
# rubocop:enable Metrics/BlockLength
|
2755
|
+
end
|
2756
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2757
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2758
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2759
|
+
|
2760
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2761
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2762
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2763
|
+
|
2764
|
+
|
2765
|
+
# Returns the list of instances on the dedicated virtual machine (VM) hosts that match the specified criteria.
|
2766
|
+
#
|
2767
|
+
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
2768
|
+
# @param [String] dedicated_vm_host_id The OCID of the dedicated VM host.
|
2769
|
+
# @param [Hash] opts the optional parameters
|
2770
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2771
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2772
|
+
# @option opts [String] :availability_domain The name of the availability domain.
|
2773
|
+
#
|
2774
|
+
# Example: `Uocm:PHX-AD-1`
|
2775
|
+
#
|
2776
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated
|
2777
|
+
# \"List\" call. For important details about how pagination works, see
|
2778
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2779
|
+
#
|
2780
|
+
# Example: `50`
|
2781
|
+
#
|
2782
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
2783
|
+
# call. For important details about how pagination works, see
|
2784
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2785
|
+
#
|
2786
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
2787
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
2788
|
+
#
|
2789
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
2790
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
2791
|
+
# sort order is case sensitive.
|
2792
|
+
#
|
2793
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
2794
|
+
# optionally filter by availability domain if the scope of the resource type is within a
|
2795
|
+
# single availability domain. If you call one of these \"List\" operations without specifying
|
2796
|
+
# an availability domain, the resources are grouped by availability domain, then sorted.
|
2797
|
+
#
|
2798
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
2799
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
2800
|
+
# is case sensitive.
|
2801
|
+
#
|
2802
|
+
# Allowed values are: ASC, DESC
|
2803
|
+
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::DedicatedVmHostInstanceSummary DedicatedVmHostInstanceSummary}>
|
2804
|
+
def list_dedicated_vm_host_instances(compartment_id, dedicated_vm_host_id, opts = {})
|
2805
|
+
logger.debug 'Calling operation ComputeClient#list_dedicated_vm_host_instances.' if logger
|
2806
|
+
|
2807
|
+
raise "Missing the required parameter 'compartment_id' when calling list_dedicated_vm_host_instances." if compartment_id.nil?
|
2808
|
+
raise "Missing the required parameter 'dedicated_vm_host_id' when calling list_dedicated_vm_host_instances." if dedicated_vm_host_id.nil?
|
2809
|
+
|
2810
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
2811
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
2812
|
+
end
|
2813
|
+
|
2814
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
2815
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
2816
|
+
end
|
2817
|
+
raise "Parameter value for 'dedicated_vm_host_id' must not be blank" if OCI::Internal::Util.blank_string?(dedicated_vm_host_id)
|
2818
|
+
|
2819
|
+
path = '/dedicatedVmHosts/{dedicatedVmHostId}/instances'.sub('{dedicatedVmHostId}', dedicated_vm_host_id.to_s)
|
2820
|
+
operation_signing_strategy = :standard
|
2821
|
+
|
2822
|
+
# rubocop:disable Style/NegatedIf
|
2823
|
+
# Query Params
|
2824
|
+
query_params = {}
|
2825
|
+
query_params[:compartmentId] = compartment_id
|
2826
|
+
query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
|
2827
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2828
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2829
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2830
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2831
|
+
|
2832
|
+
# Header Params
|
2833
|
+
header_params = {}
|
2834
|
+
header_params[:accept] = 'application/json, application/x-json-stream'
|
2835
|
+
header_params[:'content-type'] = 'application/json'
|
2836
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2837
|
+
# rubocop:enable Style/NegatedIf
|
2838
|
+
|
2839
|
+
post_body = nil
|
2840
|
+
|
2841
|
+
# rubocop:disable Metrics/BlockLength
|
2842
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeClient#list_dedicated_vm_host_instances') do
|
2843
|
+
@api_client.call_api(
|
2844
|
+
:GET,
|
2845
|
+
path,
|
2846
|
+
endpoint,
|
2847
|
+
header_params: header_params,
|
2848
|
+
query_params: query_params,
|
2849
|
+
operation_signing_strategy: operation_signing_strategy,
|
2850
|
+
body: post_body,
|
2851
|
+
return_type: 'Array<OCI::Core::Models::DedicatedVmHostInstanceSummary>'
|
2852
|
+
)
|
2853
|
+
end
|
2854
|
+
# rubocop:enable Metrics/BlockLength
|
2855
|
+
end
|
2856
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2857
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2858
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2859
|
+
|
2860
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2861
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2862
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2863
|
+
|
2864
|
+
|
2865
|
+
# Lists the shapes that can be used to launch a dedicated virtual machine (VM) host within the specified compartment.
|
2866
|
+
#
|
2867
|
+
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
2868
|
+
# @param [Hash] opts the optional parameters
|
2869
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2870
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2871
|
+
# @option opts [String] :availability_domain The name of the availability domain.
|
2872
|
+
#
|
2873
|
+
# Example: `Uocm:PHX-AD-1`
|
2874
|
+
#
|
2875
|
+
# @option opts [String] :instance_shape_name Instance shape name
|
2876
|
+
#
|
2877
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated
|
2878
|
+
# \"List\" call. For important details about how pagination works, see
|
2879
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2880
|
+
#
|
2881
|
+
# Example: `50`
|
2882
|
+
#
|
2883
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
2884
|
+
# call. For important details about how pagination works, see
|
2885
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2886
|
+
#
|
2887
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
2888
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
2889
|
+
#
|
2890
|
+
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::DedicatedVmHostShapeSummary DedicatedVmHostShapeSummary}>
|
2891
|
+
def list_dedicated_vm_host_shapes(compartment_id, opts = {})
|
2892
|
+
logger.debug 'Calling operation ComputeClient#list_dedicated_vm_host_shapes.' if logger
|
2893
|
+
|
2894
|
+
raise "Missing the required parameter 'compartment_id' when calling list_dedicated_vm_host_shapes." if compartment_id.nil?
|
2895
|
+
|
2896
|
+
path = '/dedicatedVmHostShapes'
|
2897
|
+
operation_signing_strategy = :standard
|
2898
|
+
|
2899
|
+
# rubocop:disable Style/NegatedIf
|
2900
|
+
# Query Params
|
2901
|
+
query_params = {}
|
2902
|
+
query_params[:compartmentId] = compartment_id
|
2903
|
+
query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
|
2904
|
+
query_params[:instanceShapeName] = opts[:instance_shape_name] if opts[:instance_shape_name]
|
2905
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2906
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2907
|
+
|
2908
|
+
# Header Params
|
2909
|
+
header_params = {}
|
2910
|
+
header_params[:accept] = 'application/json'
|
2911
|
+
header_params[:'content-type'] = 'application/json'
|
2912
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2913
|
+
# rubocop:enable Style/NegatedIf
|
2914
|
+
|
2915
|
+
post_body = nil
|
2916
|
+
|
2917
|
+
# rubocop:disable Metrics/BlockLength
|
2918
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeClient#list_dedicated_vm_host_shapes') do
|
2919
|
+
@api_client.call_api(
|
2920
|
+
:GET,
|
2921
|
+
path,
|
2922
|
+
endpoint,
|
2923
|
+
header_params: header_params,
|
2924
|
+
query_params: query_params,
|
2925
|
+
operation_signing_strategy: operation_signing_strategy,
|
2926
|
+
body: post_body,
|
2927
|
+
return_type: 'Array<OCI::Core::Models::DedicatedVmHostShapeSummary>'
|
2928
|
+
)
|
2929
|
+
end
|
2930
|
+
# rubocop:enable Metrics/BlockLength
|
2931
|
+
end
|
2932
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2933
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2934
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2935
|
+
|
2936
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2937
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2938
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2939
|
+
|
2940
|
+
|
2941
|
+
# Returns the list of dedicated virtual machine (VM) hosts that match the specified criteria from the specified compartment.
|
2942
|
+
#
|
2943
|
+
# You can limit the list by specifying a dedicated VM host display name. The list will include all the identically-named
|
2944
|
+
# dedicated VM hosts in the compartment.
|
2945
|
+
#
|
2946
|
+
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
2947
|
+
# @param [Hash] opts the optional parameters
|
2948
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2949
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2950
|
+
# @option opts [String] :availability_domain The name of the availability domain.
|
2951
|
+
#
|
2952
|
+
# Example: `Uocm:PHX-AD-1`
|
2953
|
+
#
|
2954
|
+
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state.
|
2955
|
+
# Allowed values are: CREATING, ACTIVE, UPDATING, DELETING, DELETED, FAILED
|
2956
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
2957
|
+
#
|
2958
|
+
# @option opts [String] :instance_shape_name Instance shape name
|
2959
|
+
#
|
2960
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated
|
2961
|
+
# \"List\" call. For important details about how pagination works, see
|
2962
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2963
|
+
#
|
2964
|
+
# Example: `50`
|
2965
|
+
#
|
2966
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
2967
|
+
# call. For important details about how pagination works, see
|
2968
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2969
|
+
#
|
2970
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
2971
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
2972
|
+
#
|
2973
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
2974
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
2975
|
+
# sort order is case sensitive.
|
2976
|
+
#
|
2977
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
2978
|
+
# optionally filter by availability domain if the scope of the resource type is within a
|
2979
|
+
# single availability domain. If you call one of these \"List\" operations without specifying
|
2980
|
+
# an availability domain, the resources are grouped by availability domain, then sorted.
|
2981
|
+
#
|
2982
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
2983
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
2984
|
+
# is case sensitive.
|
2985
|
+
#
|
2986
|
+
# Allowed values are: ASC, DESC
|
2987
|
+
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::DedicatedVmHostSummary DedicatedVmHostSummary}>
|
2988
|
+
def list_dedicated_vm_hosts(compartment_id, opts = {})
|
2989
|
+
logger.debug 'Calling operation ComputeClient#list_dedicated_vm_hosts.' if logger
|
2990
|
+
|
2991
|
+
raise "Missing the required parameter 'compartment_id' when calling list_dedicated_vm_hosts." if compartment_id.nil?
|
2992
|
+
|
2993
|
+
if opts[:lifecycle_state] && !%w[CREATING ACTIVE UPDATING DELETING DELETED FAILED].include?(opts[:lifecycle_state])
|
2994
|
+
raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, UPDATING, DELETING, DELETED, FAILED.'
|
2995
|
+
end
|
2996
|
+
|
2997
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
2998
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
2999
|
+
end
|
3000
|
+
|
3001
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
3002
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
3003
|
+
end
|
3004
|
+
|
3005
|
+
path = '/dedicatedVmHosts'
|
3006
|
+
operation_signing_strategy = :standard
|
3007
|
+
|
3008
|
+
# rubocop:disable Style/NegatedIf
|
3009
|
+
# Query Params
|
3010
|
+
query_params = {}
|
3011
|
+
query_params[:compartmentId] = compartment_id
|
3012
|
+
query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
|
3013
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
3014
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
3015
|
+
query_params[:instanceShapeName] = opts[:instance_shape_name] if opts[:instance_shape_name]
|
3016
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
3017
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3018
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
3019
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
3020
|
+
|
3021
|
+
# Header Params
|
3022
|
+
header_params = {}
|
3023
|
+
header_params[:accept] = 'application/json, application/x-json-stream'
|
3024
|
+
header_params[:'content-type'] = 'application/json'
|
3025
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3026
|
+
# rubocop:enable Style/NegatedIf
|
3027
|
+
|
3028
|
+
post_body = nil
|
3029
|
+
|
3030
|
+
# rubocop:disable Metrics/BlockLength
|
3031
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeClient#list_dedicated_vm_hosts') do
|
3032
|
+
@api_client.call_api(
|
3033
|
+
:GET,
|
3034
|
+
path,
|
3035
|
+
endpoint,
|
3036
|
+
header_params: header_params,
|
3037
|
+
query_params: query_params,
|
3038
|
+
operation_signing_strategy: operation_signing_strategy,
|
3039
|
+
body: post_body,
|
3040
|
+
return_type: 'Array<OCI::Core::Models::DedicatedVmHostSummary>'
|
3041
|
+
)
|
3042
|
+
end
|
3043
|
+
# rubocop:enable Metrics/BlockLength
|
3044
|
+
end
|
3045
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3046
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3047
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3048
|
+
|
3049
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3050
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3051
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3052
|
+
|
3053
|
+
|
3054
|
+
# Lists the available images in the specified compartment, including both
|
3055
|
+
# [Oracle-provided images](https://docs.cloud.oracle.com/Content/Compute/References/images.htm) and
|
3056
|
+
# [custom images](https://docs.cloud.oracle.com/Content/Compute/Tasks/managingcustomimages.htm) that have
|
3057
|
+
# been created. The list of images returned is ordered to first show all
|
3058
|
+
# Oracle-provided images, then all custom images.
|
3059
|
+
#
|
3060
|
+
# The order of images returned may change when new images are released.
|
3061
|
+
#
|
3062
|
+
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
3063
|
+
# @param [Hash] opts the optional parameters
|
3064
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3065
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3066
|
+
# @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
|
3067
|
+
#
|
3068
|
+
# @option opts [String] :operating_system The image's operating system.
|
3069
|
+
#
|
3070
|
+
# Example: `Oracle Linux`
|
3071
|
+
#
|
3072
|
+
# @option opts [String] :operating_system_version The image's operating system version.
|
3073
|
+
#
|
3074
|
+
# Example: `7.2`
|
3075
|
+
#
|
3076
|
+
# @option opts [String] :shape Shape name.
|
3077
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated
|
3078
|
+
# \"List\" call. For important details about how pagination works, see
|
3079
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3080
|
+
#
|
3081
|
+
# Example: `50`
|
3082
|
+
#
|
3083
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
|
3084
|
+
# call. For important details about how pagination works, see
|
3085
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3086
|
+
#
|
3087
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
|
3088
|
+
# TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
|
3089
|
+
# sort order is case sensitive.
|
3090
|
+
#
|
3091
|
+
# **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
|
3092
|
+
# optionally filter by availability domain if the scope of the resource type is within a
|
3093
|
+
# single availability domain. If you call one of these \"List\" operations without specifying
|
3094
|
+
# an availability domain, the resources are grouped by availability domain, then sorted.
|
3095
|
+
#
|
3096
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
3097
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
|
3098
|
+
# is case sensitive.
|
3099
|
+
#
|
3100
|
+
# Allowed values are: ASC, DESC
|
3101
|
+
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
|
3102
|
+
#
|
3103
|
+
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::Image Image}>
|
3104
|
+
def list_images(compartment_id, opts = {})
|
3105
|
+
logger.debug 'Calling operation ComputeClient#list_images.' if logger
|
3106
|
+
|
3107
|
+
raise "Missing the required parameter 'compartment_id' when calling list_images." if compartment_id.nil?
|
3108
|
+
|
3109
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
3110
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
3111
|
+
end
|
3112
|
+
|
3113
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
3114
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
3115
|
+
end
|
3116
|
+
|
3117
|
+
if opts[:lifecycle_state] && !OCI::Core::Models::Image::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
3118
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Image::LIFECYCLE_STATE_ENUM.'
|
3119
|
+
end
|
3120
|
+
|
3121
|
+
path = '/images'
|
3122
|
+
operation_signing_strategy = :standard
|
3123
|
+
|
3124
|
+
# rubocop:disable Style/NegatedIf
|
3125
|
+
# Query Params
|
3126
|
+
query_params = {}
|
3127
|
+
query_params[:compartmentId] = compartment_id
|
3128
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
2519
3129
|
query_params[:operatingSystem] = opts[:operating_system] if opts[:operating_system]
|
2520
3130
|
query_params[:operatingSystemVersion] = opts[:operating_system_version] if opts[:operating_system_version]
|
2521
3131
|
query_params[:shape] = opts[:shape] if opts[:shape]
|
@@ -3176,6 +3786,78 @@ module OCI
|
|
3176
3786
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3177
3787
|
|
3178
3788
|
|
3789
|
+
# Updates the displayName, freeformTags, and definedTags attributes for the specified dedicated virtual machine (VM) host.
|
3790
|
+
# If an attribute value is not included, it will not be updated.
|
3791
|
+
#
|
3792
|
+
# @param [String] dedicated_vm_host_id The OCID of the dedicated VM host.
|
3793
|
+
# @param [OCI::Core::Models::UpdateDedicatedVmHostDetails] update_dedicated_vm_host_details Update dedicated VM host details
|
3794
|
+
# @param [Hash] opts the optional parameters
|
3795
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3796
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3797
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
3798
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3799
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
3800
|
+
#
|
3801
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
3802
|
+
# If you need to contact Oracle about a particular request, please provide the request ID.
|
3803
|
+
#
|
3804
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3805
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
3806
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
3807
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
3808
|
+
# may be rejected).
|
3809
|
+
#
|
3810
|
+
# @return [Response] A Response object with data of type {OCI::Core::Models::DedicatedVmHost DedicatedVmHost}
|
3811
|
+
def update_dedicated_vm_host(dedicated_vm_host_id, update_dedicated_vm_host_details, opts = {})
|
3812
|
+
logger.debug 'Calling operation ComputeClient#update_dedicated_vm_host.' if logger
|
3813
|
+
|
3814
|
+
raise "Missing the required parameter 'dedicated_vm_host_id' when calling update_dedicated_vm_host." if dedicated_vm_host_id.nil?
|
3815
|
+
raise "Missing the required parameter 'update_dedicated_vm_host_details' when calling update_dedicated_vm_host." if update_dedicated_vm_host_details.nil?
|
3816
|
+
raise "Parameter value for 'dedicated_vm_host_id' must not be blank" if OCI::Internal::Util.blank_string?(dedicated_vm_host_id)
|
3817
|
+
|
3818
|
+
path = '/dedicatedVmHosts/{dedicatedVmHostId}'.sub('{dedicatedVmHostId}', dedicated_vm_host_id.to_s)
|
3819
|
+
operation_signing_strategy = :standard
|
3820
|
+
|
3821
|
+
# rubocop:disable Style/NegatedIf
|
3822
|
+
# Query Params
|
3823
|
+
query_params = {}
|
3824
|
+
|
3825
|
+
# Header Params
|
3826
|
+
header_params = {}
|
3827
|
+
header_params[:accept] = 'application/json'
|
3828
|
+
header_params[:'content-type'] = 'application/json'
|
3829
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3830
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3831
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
3832
|
+
# rubocop:enable Style/NegatedIf
|
3833
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
3834
|
+
|
3835
|
+
post_body = @api_client.object_to_http_body(update_dedicated_vm_host_details)
|
3836
|
+
|
3837
|
+
# rubocop:disable Metrics/BlockLength
|
3838
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ComputeClient#update_dedicated_vm_host') do
|
3839
|
+
@api_client.call_api(
|
3840
|
+
:PUT,
|
3841
|
+
path,
|
3842
|
+
endpoint,
|
3843
|
+
header_params: header_params,
|
3844
|
+
query_params: query_params,
|
3845
|
+
operation_signing_strategy: operation_signing_strategy,
|
3846
|
+
body: post_body,
|
3847
|
+
return_type: 'OCI::Core::Models::DedicatedVmHost'
|
3848
|
+
)
|
3849
|
+
end
|
3850
|
+
# rubocop:enable Metrics/BlockLength
|
3851
|
+
end
|
3852
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3853
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3854
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3855
|
+
|
3856
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3857
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3858
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3859
|
+
|
3860
|
+
|
3179
3861
|
# Updates the display name of the image. Avoid entering confidential information.
|
3180
3862
|
# @param [String] image_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the image.
|
3181
3863
|
# @param [OCI::Core::Models::UpdateImageDetails] update_image_details Updates the image display name field. Avoid entering confidential information.
|