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.
- 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
data/lib/oci/core/models/ipv6.rb
CHANGED
|
@@ -11,6 +11,8 @@ module OCI
|
|
|
11
11
|
# You can create and assign an IPv6 to any VNIC that is in an IPv6-enabled subnet in an
|
|
12
12
|
# IPv6-enabled VCN.
|
|
13
13
|
#
|
|
14
|
+
# **Note:** IPv6 addressing is currently supported only in the Government Cloud.
|
|
15
|
+
#
|
|
14
16
|
# For important details about IPv6 addressing in a VCN, see [IPv6 Addresses](https://docs.cloud.oracle.com/Content/Network/Concepts/ipv6.htm).
|
|
15
17
|
#
|
|
16
18
|
class Core::Models::Ipv6
|
|
@@ -25,6 +25,11 @@ module OCI
|
|
|
25
25
|
# @return [OCI::Core::Models::CreateVnicDetails]
|
|
26
26
|
attr_accessor :create_vnic_details
|
|
27
27
|
|
|
28
|
+
# The OCID of dedicated VM host.
|
|
29
|
+
#
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :dedicated_vm_host_id
|
|
32
|
+
|
|
28
33
|
# Defined tags for this resource. Each key is predefined and scoped to a
|
|
29
34
|
# namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
30
35
|
#
|
|
@@ -212,6 +217,7 @@ module OCI
|
|
|
212
217
|
'availability_domain': :'availabilityDomain',
|
|
213
218
|
'compartment_id': :'compartmentId',
|
|
214
219
|
'create_vnic_details': :'createVnicDetails',
|
|
220
|
+
'dedicated_vm_host_id': :'dedicatedVmHostId',
|
|
215
221
|
'defined_tags': :'definedTags',
|
|
216
222
|
'display_name': :'displayName',
|
|
217
223
|
'extended_metadata': :'extendedMetadata',
|
|
@@ -237,6 +243,7 @@ module OCI
|
|
|
237
243
|
'availability_domain': :'String',
|
|
238
244
|
'compartment_id': :'String',
|
|
239
245
|
'create_vnic_details': :'OCI::Core::Models::CreateVnicDetails',
|
|
246
|
+
'dedicated_vm_host_id': :'String',
|
|
240
247
|
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
241
248
|
'display_name': :'String',
|
|
242
249
|
'extended_metadata': :'Hash<String, Object>',
|
|
@@ -264,6 +271,7 @@ module OCI
|
|
|
264
271
|
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
|
265
272
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
266
273
|
# @option attributes [OCI::Core::Models::CreateVnicDetails] :create_vnic_details The value to assign to the {#create_vnic_details} property
|
|
274
|
+
# @option attributes [String] :dedicated_vm_host_id The value to assign to the {#dedicated_vm_host_id} property
|
|
267
275
|
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
268
276
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
269
277
|
# @option attributes [Hash<String, Object>] :extended_metadata The value to assign to the {#extended_metadata} property
|
|
@@ -302,6 +310,12 @@ module OCI
|
|
|
302
310
|
|
|
303
311
|
self.create_vnic_details = attributes[:'create_vnic_details'] if attributes[:'create_vnic_details']
|
|
304
312
|
|
|
313
|
+
self.dedicated_vm_host_id = attributes[:'dedicatedVmHostId'] if attributes[:'dedicatedVmHostId']
|
|
314
|
+
|
|
315
|
+
raise 'You cannot provide both :dedicatedVmHostId and :dedicated_vm_host_id' if attributes.key?(:'dedicatedVmHostId') && attributes.key?(:'dedicated_vm_host_id')
|
|
316
|
+
|
|
317
|
+
self.dedicated_vm_host_id = attributes[:'dedicated_vm_host_id'] if attributes[:'dedicated_vm_host_id']
|
|
318
|
+
|
|
305
319
|
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
306
320
|
|
|
307
321
|
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
@@ -393,6 +407,7 @@ module OCI
|
|
|
393
407
|
availability_domain == other.availability_domain &&
|
|
394
408
|
compartment_id == other.compartment_id &&
|
|
395
409
|
create_vnic_details == other.create_vnic_details &&
|
|
410
|
+
dedicated_vm_host_id == other.dedicated_vm_host_id &&
|
|
396
411
|
defined_tags == other.defined_tags &&
|
|
397
412
|
display_name == other.display_name &&
|
|
398
413
|
extended_metadata == other.extended_metadata &&
|
|
@@ -422,7 +437,7 @@ module OCI
|
|
|
422
437
|
# Calculates hash code according to all attributes.
|
|
423
438
|
# @return [Fixnum] Hash code
|
|
424
439
|
def hash
|
|
425
|
-
[availability_domain, compartment_id, create_vnic_details, defined_tags, display_name, extended_metadata, fault_domain, freeform_tags, hostname_label, image_id, ipxe_script, metadata, agent_config, shape, source_details, subnet_id, is_pv_encryption_in_transit_enabled].hash
|
|
440
|
+
[availability_domain, compartment_id, create_vnic_details, dedicated_vm_host_id, defined_tags, display_name, extended_metadata, fault_domain, freeform_tags, hostname_label, image_id, ipxe_script, metadata, agent_config, shape, source_details, subnet_id, is_pv_encryption_in_transit_enabled].hash
|
|
426
441
|
end
|
|
427
442
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
428
443
|
|
|
@@ -60,9 +60,10 @@ module OCI
|
|
|
60
60
|
# @return [String]
|
|
61
61
|
attr_reader :firmware
|
|
62
62
|
|
|
63
|
-
# **[Required]** Emulation type for NIC.
|
|
63
|
+
# **[Required]** Emulation type for the physical network interface card (NIC).
|
|
64
64
|
# * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver.
|
|
65
|
-
# * `VFIO` - Direct attached Virtual Function network controller.
|
|
65
|
+
# * `VFIO` - Direct attached Virtual Function network controller. This is the networking type
|
|
66
|
+
# when you launch an instance using hardware-assisted (SR-IOV) networking.
|
|
66
67
|
# * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using virtio drivers.
|
|
67
68
|
#
|
|
68
69
|
# @return [String]
|
|
@@ -107,9 +107,10 @@ module OCI
|
|
|
107
107
|
# @return [String]
|
|
108
108
|
attr_accessor :peering_status_details
|
|
109
109
|
|
|
110
|
-
# The OCID of the route table the LPG is using.
|
|
111
|
-
#
|
|
112
|
-
#
|
|
110
|
+
# The OCID of the route table the LPG is using.
|
|
111
|
+
#
|
|
112
|
+
# For information about why you would associate a route table with an LPG, see
|
|
113
|
+
# [Transit Routing: Access to Multiple VCNs in Same Region](https://docs.cloud.oracle.com/Content/Network/Tasks/transitrouting.htm).
|
|
113
114
|
#
|
|
114
115
|
# @return [String]
|
|
115
116
|
attr_accessor :route_table_id
|
|
@@ -35,7 +35,8 @@ module OCI
|
|
|
35
35
|
#
|
|
36
36
|
# * IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24`
|
|
37
37
|
# or `2001:0db8:0123:45::/56`. If you set this to an IPv6 CIDR, the route rule's target
|
|
38
|
-
# can only be a DRG or internet gateway.
|
|
38
|
+
# can only be a DRG or internet gateway. Note that IPv6 addressing is currently supported only
|
|
39
|
+
# in the Government Cloud.
|
|
39
40
|
#
|
|
40
41
|
# * The `cidrBlock` value for a {Service}, if you're
|
|
41
42
|
# setting up a route rule for traffic destined for a particular `Service` through
|
|
@@ -41,6 +41,7 @@ module OCI
|
|
|
41
41
|
# Allowed values:
|
|
42
42
|
#
|
|
43
43
|
# * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
|
|
44
|
+
# Note that IPv6 addressing is currently supported only in the Government Cloud.
|
|
44
45
|
#
|
|
45
46
|
# * The `cidrBlock` value for a {Service}, if you're
|
|
46
47
|
# setting up a security rule for traffic destined for a particular `Service` through
|
|
@@ -125,6 +126,7 @@ module OCI
|
|
|
125
126
|
# Allowed values:
|
|
126
127
|
#
|
|
127
128
|
# * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
|
|
129
|
+
# Note that IPv6 addressing is currently supported only in the Government Cloud.
|
|
128
130
|
#
|
|
129
131
|
# * The `cidrBlock` value for a {Service}, if you're
|
|
130
132
|
# setting up a security rule for traffic coming from a particular `Service` through
|
|
@@ -145,7 +147,7 @@ module OCI
|
|
|
145
147
|
# {Service} (the rule is for traffic coming from a
|
|
146
148
|
# particular `Service` through a service gateway).
|
|
147
149
|
#
|
|
148
|
-
# * `NETWORK_SECURITY_GROUP`: If the rule's `
|
|
150
|
+
# * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID of a
|
|
149
151
|
# {NetworkSecurityGroup}.
|
|
150
152
|
#
|
|
151
153
|
# @return [String]
|
|
@@ -74,9 +74,10 @@ module OCI
|
|
|
74
74
|
# @return [String]
|
|
75
75
|
attr_reader :lifecycle_state
|
|
76
76
|
|
|
77
|
-
# The OCID of the route table the service gateway is using.
|
|
78
|
-
#
|
|
79
|
-
#
|
|
77
|
+
# The OCID of the route table the service gateway is using.
|
|
78
|
+
#
|
|
79
|
+
# For information about why you would associate a route table with a service gateway, see
|
|
80
|
+
# [Transit Routing: Private Access to Oracle Services](https://docs.cloud.oracle.com/Content/Network/Tasks/transitroutingoracleservices.htm).
|
|
80
81
|
#
|
|
81
82
|
# @return [String]
|
|
82
83
|
attr_accessor :route_table_id
|
|
@@ -95,7 +95,8 @@ module OCI
|
|
|
95
95
|
attr_accessor :id
|
|
96
96
|
|
|
97
97
|
# For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet's private IP address
|
|
98
|
-
# space. The subnet size is always /64.
|
|
98
|
+
# space. The subnet size is always /64. Note that IPv6 addressing is currently supported only
|
|
99
|
+
# in the Government Cloud.
|
|
99
100
|
#
|
|
100
101
|
# Example: `2001:0db8:0123:1111::/64`
|
|
101
102
|
#
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
6
|
+
module OCI
|
|
7
|
+
# Update dedicated VM host details.
|
|
8
|
+
#
|
|
9
|
+
class Core::Models::UpdateDedicatedVmHostDetails
|
|
10
|
+
# Defined tags for this resource. Each key is predefined and scoped to a
|
|
11
|
+
# namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
12
|
+
#
|
|
13
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
14
|
+
#
|
|
15
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
16
|
+
attr_accessor :defined_tags
|
|
17
|
+
|
|
18
|
+
# A user-friendly name. Does not have to be unique, and it's changeable.
|
|
19
|
+
# Avoid entering confidential information.
|
|
20
|
+
#
|
|
21
|
+
# Example: `My dedicated VM host`
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :display_name
|
|
25
|
+
|
|
26
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
27
|
+
# predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
|
|
28
|
+
#
|
|
29
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
30
|
+
#
|
|
31
|
+
# @return [Hash<String, String>]
|
|
32
|
+
attr_accessor :freeform_tags
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
# rubocop:disable Style/SymbolLiteral
|
|
38
|
+
'defined_tags': :'definedTags',
|
|
39
|
+
'display_name': :'displayName',
|
|
40
|
+
'freeform_tags': :'freeformTags'
|
|
41
|
+
# rubocop:enable Style/SymbolLiteral
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.swagger_types
|
|
47
|
+
{
|
|
48
|
+
# rubocop:disable Style/SymbolLiteral
|
|
49
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
50
|
+
'display_name': :'String',
|
|
51
|
+
'freeform_tags': :'Hash<String, String>'
|
|
52
|
+
# rubocop:enable Style/SymbolLiteral
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
57
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
63
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
64
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
65
|
+
def initialize(attributes = {})
|
|
66
|
+
return unless attributes.is_a?(Hash)
|
|
67
|
+
|
|
68
|
+
# convert string to symbol for hash key
|
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
70
|
+
|
|
71
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
72
|
+
|
|
73
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
74
|
+
|
|
75
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
76
|
+
|
|
77
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
78
|
+
|
|
79
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
80
|
+
|
|
81
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
82
|
+
|
|
83
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
84
|
+
|
|
85
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
86
|
+
|
|
87
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
88
|
+
end
|
|
89
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
90
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
91
|
+
|
|
92
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
# Checks equality by comparing each attribute.
|
|
96
|
+
# @param [Object] other the other object to be compared
|
|
97
|
+
def ==(other)
|
|
98
|
+
return true if equal?(other)
|
|
99
|
+
|
|
100
|
+
self.class == other.class &&
|
|
101
|
+
defined_tags == other.defined_tags &&
|
|
102
|
+
display_name == other.display_name &&
|
|
103
|
+
freeform_tags == other.freeform_tags
|
|
104
|
+
end
|
|
105
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
106
|
+
|
|
107
|
+
# @see the `==` method
|
|
108
|
+
# @param [Object] other the other object to be compared
|
|
109
|
+
def eql?(other)
|
|
110
|
+
self == other
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
# Calculates hash code according to all attributes.
|
|
117
|
+
# @return [Fixnum] Hash code
|
|
118
|
+
def hash
|
|
119
|
+
[defined_tags, display_name, freeform_tags].hash
|
|
120
|
+
end
|
|
121
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
122
|
+
|
|
123
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
# Builds the object from hash
|
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
+
# @return [Object] Returns the model itself
|
|
129
|
+
def build_from_hash(attributes)
|
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
|
131
|
+
|
|
132
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
133
|
+
if type =~ /^Array<(.*)>/i
|
|
134
|
+
# check to ensure the input is an array given that the the attribute
|
|
135
|
+
# is documented as an array but the input is not
|
|
136
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
137
|
+
public_method("#{key}=").call(
|
|
138
|
+
attributes[self.class.attribute_map[key]]
|
|
139
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
140
|
+
)
|
|
141
|
+
end
|
|
142
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
143
|
+
public_method("#{key}=").call(
|
|
144
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
145
|
+
)
|
|
146
|
+
end
|
|
147
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
self
|
|
151
|
+
end
|
|
152
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
153
|
+
|
|
154
|
+
# Returns the string representation of the object
|
|
155
|
+
# @return [String] String presentation of the object
|
|
156
|
+
def to_s
|
|
157
|
+
to_hash.to_s
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Returns the object in the form of hash
|
|
161
|
+
# @return [Hash] Returns the object in the form of hash
|
|
162
|
+
def to_hash
|
|
163
|
+
hash = {}
|
|
164
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
165
|
+
value = public_method(attr).call
|
|
166
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
167
|
+
|
|
168
|
+
hash[param] = _to_hash(value)
|
|
169
|
+
end
|
|
170
|
+
hash
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
private
|
|
174
|
+
|
|
175
|
+
# Outputs non-array value in the form of hash
|
|
176
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
177
|
+
# @param [Object] value Any valid value
|
|
178
|
+
# @return [Hash] Returns the value in the form of hash
|
|
179
|
+
def _to_hash(value)
|
|
180
|
+
if value.is_a?(Array)
|
|
181
|
+
value.compact.map { |v| _to_hash(v) }
|
|
182
|
+
elsif value.is_a?(Hash)
|
|
183
|
+
{}.tap do |hash|
|
|
184
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
185
|
+
end
|
|
186
|
+
elsif value.respond_to? :to_hash
|
|
187
|
+
value.to_hash
|
|
188
|
+
else
|
|
189
|
+
value
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -12,9 +12,12 @@ module OCI
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
attr_accessor :display_name
|
|
14
14
|
|
|
15
|
-
# The OCID of the route table the DRG attachment will use.
|
|
16
|
-
#
|
|
17
|
-
#
|
|
15
|
+
# The OCID of the route table the DRG attachment will use.
|
|
16
|
+
#
|
|
17
|
+
# For information about why you would associate a route table with a DRG attachment, see:
|
|
18
|
+
#
|
|
19
|
+
# * [Transit Routing: Access to Multiple VCNs in Same Region](https://docs.cloud.oracle.com/Content/Network/Tasks/transitrouting.htm)
|
|
20
|
+
# * [Transit Routing: Private Access to Oracle Services](https://docs.cloud.oracle.com/Content/Network/Tasks/transitroutingoracleservices.htm)
|
|
18
21
|
#
|
|
19
22
|
# @return [String]
|
|
20
23
|
attr_accessor :route_table_id
|
|
@@ -14,7 +14,9 @@ module OCI
|
|
|
14
14
|
# @return [Hash<String, Hash<String, Object>>]
|
|
15
15
|
attr_accessor :defined_tags
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# A user-friendly name for the instance pool. Does not have to be unique, and it's
|
|
18
|
+
# changeable. Avoid entering confidential information.
|
|
19
|
+
#
|
|
18
20
|
# @return [String]
|
|
19
21
|
attr_accessor :display_name
|
|
20
22
|
|
|
@@ -28,9 +28,10 @@ module OCI
|
|
|
28
28
|
# @return [Hash<String, String>]
|
|
29
29
|
attr_accessor :freeform_tags
|
|
30
30
|
|
|
31
|
-
# The OCID of the route table the LPG will use.
|
|
32
|
-
#
|
|
33
|
-
#
|
|
31
|
+
# The OCID of the route table the LPG will use.
|
|
32
|
+
#
|
|
33
|
+
# For information about why you would associate a route table with an LPG, see
|
|
34
|
+
# [Transit Routing: Access to Multiple VCNs in Same Region](https://docs.cloud.oracle.com/Content/Network/Tasks/transitrouting.htm).
|
|
34
35
|
#
|
|
35
36
|
# @return [String]
|
|
36
37
|
attr_accessor :route_table_id
|
|
@@ -24,7 +24,7 @@ module OCI
|
|
|
24
24
|
SOURCE_TYPE_NETWORK_SECURITY_GROUP = 'NETWORK_SECURITY_GROUP'.freeze
|
|
25
25
|
].freeze
|
|
26
26
|
|
|
27
|
-
# An optional description of your choice for the rule.
|
|
27
|
+
# An optional description of your choice for the rule. Avoid entering confidential information.
|
|
28
28
|
#
|
|
29
29
|
# @return [String]
|
|
30
30
|
attr_accessor :description
|
|
@@ -35,6 +35,7 @@ module OCI
|
|
|
35
35
|
# Allowed values:
|
|
36
36
|
#
|
|
37
37
|
# * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
|
|
38
|
+
# Note that IPv6 addressing is currently supported only in the Government Cloud.
|
|
38
39
|
#
|
|
39
40
|
# * The `cidrBlock` value for a {Service}, if you're
|
|
40
41
|
# setting up a security rule for traffic destined for a particular `Service` through
|
|
@@ -113,6 +114,7 @@ module OCI
|
|
|
113
114
|
# Allowed values:
|
|
114
115
|
#
|
|
115
116
|
# * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
|
|
117
|
+
# Note that IPv6 addressing is currently supported only in the Government Cloud.
|
|
116
118
|
#
|
|
117
119
|
# * The `cidrBlock` value for a {Service}, if you're
|
|
118
120
|
# setting up a security rule for traffic coming from a particular `Service` through
|
|
@@ -133,7 +135,7 @@ module OCI
|
|
|
133
135
|
# {Service} (the rule is for traffic coming from a
|
|
134
136
|
# particular `Service` through a service gateway).
|
|
135
137
|
#
|
|
136
|
-
# * `NETWORK_SECURITY_GROUP`: If the rule's `
|
|
138
|
+
# * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID of a
|
|
137
139
|
# {NetworkSecurityGroup}.
|
|
138
140
|
#
|
|
139
141
|
# @return [String]
|