oci 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/oci.rb +1 -0
- data/lib/oci/api_client.rb +21 -11
- data/lib/oci/audit/models/audit_event.rb +133 -19
- data/lib/oci/audit/models/configuration.rb +7 -1
- data/lib/oci/audit/models/update_configuration_details.rb +7 -1
- data/lib/oci/base_signer.rb +1 -2
- data/lib/oci/core/models/attach_boot_volume_details.rb +21 -3
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +11 -5
- data/lib/oci/core/models/attach_vnic_details.rb +28 -4
- data/lib/oci/core/models/attach_volume_details.rb +28 -4
- data/lib/oci/core/models/boot_volume.rb +56 -8
- data/lib/oci/core/models/boot_volume_attachment.rb +49 -7
- data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +7 -1
- data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +7 -1
- data/lib/oci/core/models/capture_console_history_details.rb +28 -4
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +7 -1
- data/lib/oci/core/models/console_history.rb +56 -8
- data/lib/oci/core/models/cpe.rb +28 -4
- data/lib/oci/core/models/create_cpe_details.rb +21 -3
- data/lib/oci/core/models/create_cross_connect_details.rb +49 -7
- data/lib/oci/core/models/create_cross_connect_group_details.rb +14 -2
- data/lib/oci/core/models/create_dhcp_details.rb +35 -5
- data/lib/oci/core/models/create_drg_attachment_details.rb +21 -3
- data/lib/oci/core/models/create_drg_details.rb +14 -2
- data/lib/oci/core/models/create_image_details.rb +49 -7
- data/lib/oci/core/models/create_instance_console_connection_details.rb +28 -4
- data/lib/oci/core/models/create_internet_gateway_details.rb +28 -4
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +35 -5
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +21 -3
- data/lib/oci/core/models/create_private_ip_details.rb +42 -6
- data/lib/oci/core/models/create_public_ip_details.rb +21 -3
- data/lib/oci/core/models/create_route_table_details.rb +42 -6
- data/lib/oci/core/models/create_security_list_details.rb +49 -7
- data/lib/oci/core/models/create_subnet_details.rb +84 -12
- data/lib/oci/core/models/create_vcn_details.rb +42 -6
- data/lib/oci/core/models/create_virtual_circuit_details.rb +70 -10
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +7 -1
- data/lib/oci/core/models/create_vnic_details.rb +42 -6
- data/lib/oci/core/models/create_volume_backup_details.rb +28 -4
- data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +14 -2
- data/lib/oci/core/models/create_volume_details.rb +70 -10
- data/lib/oci/core/models/cross_connect.rb +56 -8
- data/lib/oci/core/models/cross_connect_group.rb +28 -4
- data/lib/oci/core/models/cross_connect_mapping.rb +28 -4
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +7 -1
- data/lib/oci/core/models/cross_connect_status.rb +28 -4
- data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +7 -1
- data/lib/oci/core/models/dhcp_dns_option.rb +14 -2
- data/lib/oci/core/models/dhcp_options.rb +49 -7
- data/lib/oci/core/models/dhcp_search_domain_option.rb +7 -1
- data/lib/oci/core/models/drg.rb +28 -4
- data/lib/oci/core/models/drg_attachment.rb +42 -6
- data/lib/oci/core/models/egress_security_rule.rb +28 -4
- data/lib/oci/core/models/export_image_details.rb +7 -1
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +21 -3
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +7 -1
- data/lib/oci/core/models/fast_connect_provider_service.rb +35 -5
- data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +7 -1
- data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +7 -1
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +22 -10
- data/lib/oci/core/models/image.rb +84 -12
- data/lib/oci/core/models/image_source_details.rb +14 -2
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +22 -4
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +8 -2
- data/lib/oci/core/models/ingress_security_rule.rb +28 -4
- data/lib/oci/core/models/instance.rb +91 -13
- data/lib/oci/core/models/instance_console_connection.rb +49 -7
- data/lib/oci/core/models/instance_source_details.rb +7 -1
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +7 -1
- data/lib/oci/core/models/instance_source_via_image_details.rb +7 -1
- data/lib/oci/core/models/internet_gateway.rb +42 -6
- data/lib/oci/core/models/ip_sec_connection.rb +49 -7
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +14 -2
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +14 -2
- data/lib/oci/core/models/launch_instance_details.rb +84 -12
- data/lib/oci/core/models/launch_options.rb +21 -3
- data/lib/oci/core/models/letter_of_authority.rb +49 -7
- data/lib/oci/core/models/local_peering_gateway.rb +63 -9
- data/lib/oci/core/models/private_ip.rb +77 -11
- data/lib/oci/core/models/public_ip.rb +49 -7
- data/lib/oci/core/models/route_rule.rb +14 -2
- data/lib/oci/core/models/route_table.rb +56 -8
- data/lib/oci/core/models/security_list.rb +63 -9
- data/lib/oci/core/models/subnet.rb +119 -17
- data/lib/oci/core/models/tcp_options.rb +14 -2
- data/lib/oci/core/models/tunnel_config.rb +21 -3
- data/lib/oci/core/models/tunnel_status.rb +28 -4
- data/lib/oci/core/models/udp_options.rb +14 -2
- data/lib/oci/core/models/update_boot_volume_details.rb +7 -1
- data/lib/oci/core/models/update_console_history_details.rb +21 -3
- data/lib/oci/core/models/update_cpe_details.rb +7 -1
- data/lib/oci/core/models/update_cross_connect_details.rb +14 -2
- data/lib/oci/core/models/update_cross_connect_group_details.rb +7 -1
- data/lib/oci/core/models/update_dhcp_details.rb +21 -3
- data/lib/oci/core/models/update_drg_attachment_details.rb +7 -1
- data/lib/oci/core/models/update_drg_details.rb +7 -1
- data/lib/oci/core/models/update_image_details.rb +21 -3
- data/lib/oci/core/models/update_instance_details.rb +21 -3
- data/lib/oci/core/models/update_internet_gateway_details.rb +14 -2
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +7 -1
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +7 -1
- data/lib/oci/core/models/update_private_ip_details.rb +35 -5
- data/lib/oci/core/models/update_public_ip_details.rb +14 -2
- data/lib/oci/core/models/update_route_table_details.rb +28 -4
- data/lib/oci/core/models/update_security_list_details.rb +35 -5
- data/lib/oci/core/models/update_subnet_details.rb +21 -3
- data/lib/oci/core/models/update_vcn_details.rb +21 -3
- data/lib/oci/core/models/update_virtual_circuit_details.rb +49 -7
- data/lib/oci/core/models/update_vnic_details.rb +21 -3
- data/lib/oci/core/models/update_volume_backup_details.rb +21 -3
- data/lib/oci/core/models/update_volume_details.rb +21 -3
- data/lib/oci/core/models/vcn.rb +84 -12
- data/lib/oci/core/models/virtual_circuit.rb +126 -18
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +7 -1
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +14 -2
- data/lib/oci/core/models/vnic.rb +84 -12
- data/lib/oci/core/models/vnic_attachment.rb +70 -10
- data/lib/oci/core/models/volume.rb +77 -11
- data/lib/oci/core/models/volume_attachment.rb +63 -9
- data/lib/oci/core/models/volume_backup.rb +98 -14
- data/lib/oci/core/models/volume_backup_policy.rb +14 -2
- data/lib/oci/core/models/volume_backup_policy_assignment.rb +21 -3
- data/lib/oci/core/models/volume_backup_schedule.rb +21 -3
- data/lib/oci/database/database_client.rb +2 -2
- data/lib/oci/database/models/backup.rb +56 -8
- data/lib/oci/database/models/backup_summary.rb +56 -8
- data/lib/oci/database/models/create_backup_details.rb +14 -2
- data/lib/oci/database/models/create_data_guard_association_details.rb +28 -4
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +10 -4
- data/lib/oci/database/models/create_database_details.rb +49 -7
- data/lib/oci/database/models/create_database_from_backup_details.rb +21 -3
- data/lib/oci/database/models/create_db_home_details.rb +14 -2
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +14 -2
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +9 -3
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +2 -2
- data/lib/oci/database/models/data_guard_association.rb +91 -13
- data/lib/oci/database/models/data_guard_association_summary.rb +91 -13
- data/lib/oci/database/models/database.rb +84 -12
- data/lib/oci/database/models/database_summary.rb +84 -12
- data/lib/oci/database/models/db_backup_config.rb +7 -1
- data/lib/oci/database/models/db_home.rb +49 -7
- data/lib/oci/database/models/db_home_summary.rb +49 -7
- data/lib/oci/database/models/db_node.rb +42 -6
- data/lib/oci/database/models/db_node_summary.rb +42 -6
- data/lib/oci/database/models/db_system.rb +161 -23
- data/lib/oci/database/models/db_system_shape_summary.rb +7 -1
- data/lib/oci/database/models/db_system_summary.rb +161 -23
- data/lib/oci/database/models/db_version_summary.rb +7 -1
- data/lib/oci/database/models/failover_data_guard_association_details.rb +7 -1
- data/lib/oci/database/models/launch_db_system_details.rb +105 -15
- data/lib/oci/database/models/patch.rb +35 -5
- data/lib/oci/database/models/patch_details.rb +7 -1
- data/lib/oci/database/models/patch_history_entry.rb +35 -5
- data/lib/oci/database/models/patch_history_entry_summary.rb +35 -5
- data/lib/oci/database/models/patch_summary.rb +35 -5
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +7 -1
- data/lib/oci/database/models/restore_database_details.rb +7 -1
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +7 -1
- data/lib/oci/database/models/update_database_details.rb +7 -1
- data/lib/oci/database/models/update_db_home_details.rb +7 -1
- data/lib/oci/database/models/update_db_system_details.rb +21 -3
- data/lib/oci/dns/models/create_zone_details.rb +21 -3
- data/lib/oci/dns/models/record.rb +21 -3
- data/lib/oci/dns/models/record_details.rb +21 -3
- data/lib/oci/dns/models/record_operation.rb +21 -3
- data/lib/oci/dns/models/update_zone_details.rb +7 -1
- data/lib/oci/dns/models/zone.rb +42 -6
- data/lib/oci/dns/models/zone_summary.rb +28 -4
- data/lib/oci/file_storage/file_storage.rb +33 -0
- data/lib/oci/file_storage/file_storage_client.rb +1117 -0
- data/lib/oci/file_storage/models/create_export_details.rb +162 -0
- data/lib/oci/file_storage/models/create_file_system_details.rb +170 -0
- data/lib/oci/file_storage/models/create_mount_target_details.rb +242 -0
- data/lib/oci/file_storage/models/create_snapshot_details.rb +146 -0
- data/lib/oci/file_storage/models/export.rb +261 -0
- data/lib/oci/file_storage/models/export_set.rb +315 -0
- data/lib/oci/file_storage/models/export_set_summary.rb +260 -0
- data/lib/oci/file_storage/models/export_summary.rb +233 -0
- data/lib/oci/file_storage/models/file_system.rb +273 -0
- data/lib/oci/file_storage/models/file_system_summary.rb +265 -0
- data/lib/oci/file_storage/models/mount_target.rb +320 -0
- data/lib/oci/file_storage/models/mount_target_summary.rb +300 -0
- data/lib/oci/file_storage/models/snapshot.rb +217 -0
- data/lib/oci/file_storage/models/snapshot_summary.rb +217 -0
- data/lib/oci/file_storage/models/update_export_set_details.rb +185 -0
- data/lib/oci/file_storage/models/update_file_system_details.rb +131 -0
- data/lib/oci/file_storage/models/update_mount_target_details.rb +131 -0
- data/lib/oci/file_storage/util.rb +2 -0
- data/lib/oci/identity/models/add_user_to_group_details.rb +14 -2
- data/lib/oci/identity/models/api_key.rb +42 -6
- data/lib/oci/identity/models/availability_domain.rb +7 -1
- data/lib/oci/identity/models/compartment.rb +42 -6
- data/lib/oci/identity/models/create_compartment_details.rb +21 -3
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +7 -1
- data/lib/oci/identity/models/create_dynamic_group_details.rb +14 -2
- data/lib/oci/identity/models/create_group_details.rb +21 -3
- data/lib/oci/identity/models/create_identity_provider_details.rb +28 -4
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +14 -2
- data/lib/oci/identity/models/create_policy_details.rb +28 -4
- data/lib/oci/identity/models/create_region_subscription_details.rb +7 -1
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +11 -5
- data/lib/oci/identity/models/create_tag_details.rb +14 -2
- data/lib/oci/identity/models/create_tag_namespace_details.rb +21 -3
- data/lib/oci/identity/models/create_user_details.rb +21 -3
- data/lib/oci/identity/models/customer_secret_key.rb +42 -6
- data/lib/oci/identity/models/customer_secret_key_summary.rb +42 -6
- data/lib/oci/identity/models/dynamic_group.rb +35 -5
- data/lib/oci/identity/models/group.rb +42 -6
- data/lib/oci/identity/models/identity_provider.rb +49 -7
- data/lib/oci/identity/models/idp_group_mapping.rb +49 -7
- data/lib/oci/identity/models/policy.rb +49 -7
- data/lib/oci/identity/models/region_subscription.rb +21 -3
- data/lib/oci/identity/models/saml2_identity_provider.rb +28 -10
- data/lib/oci/identity/models/swift_password.rb +35 -5
- data/lib/oci/identity/models/tag.rb +49 -7
- data/lib/oci/identity/models/tag_namespace.rb +35 -5
- data/lib/oci/identity/models/tag_namespace_summary.rb +35 -5
- data/lib/oci/identity/models/tag_summary.rb +35 -5
- data/lib/oci/identity/models/tenancy.rb +21 -3
- data/lib/oci/identity/models/ui_password.rb +28 -4
- data/lib/oci/identity/models/update_compartment_details.rb +14 -2
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +7 -1
- data/lib/oci/identity/models/update_dynamic_group_details.rb +7 -1
- data/lib/oci/identity/models/update_group_details.rb +14 -2
- data/lib/oci/identity/models/update_identity_provider_details.rb +14 -2
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +14 -2
- data/lib/oci/identity/models/update_policy_details.rb +21 -3
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +9 -3
- data/lib/oci/identity/models/update_tag_details.rb +21 -3
- data/lib/oci/identity/models/update_tag_namespace_details.rb +21 -3
- data/lib/oci/identity/models/update_user_details.rb +14 -2
- data/lib/oci/identity/models/user.rb +42 -6
- data/lib/oci/identity/models/user_group_membership.rb +42 -6
- data/lib/oci/load_balancer/models/backend.rb +7 -1
- data/lib/oci/load_balancer/models/backend_details.rb +7 -1
- data/lib/oci/load_balancer/models/backend_health.rb +7 -1
- data/lib/oci/load_balancer/models/backend_set.rb +21 -3
- data/lib/oci/load_balancer/models/backend_set_details.rb +21 -3
- data/lib/oci/load_balancer/models/backend_set_health.rb +28 -4
- data/lib/oci/load_balancer/models/certificate.rb +21 -3
- data/lib/oci/load_balancer/models/certificate_details.rb +28 -4
- data/lib/oci/load_balancer/models/connection_configuration.rb +7 -1
- data/lib/oci/load_balancer/models/create_backend_details.rb +7 -1
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +21 -3
- data/lib/oci/load_balancer/models/create_certificate_details.rb +28 -4
- data/lib/oci/load_balancer/models/create_listener_details.rb +28 -4
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +51 -7
- data/lib/oci/load_balancer/models/create_path_route_set_details.rb +7 -1
- data/lib/oci/load_balancer/models/health_check_result.rb +21 -3
- data/lib/oci/load_balancer/models/health_checker.rb +35 -5
- data/lib/oci/load_balancer/models/health_checker_details.rb +35 -5
- data/lib/oci/load_balancer/models/ip_address.rb +14 -2
- data/lib/oci/load_balancer/models/listener.rb +28 -4
- data/lib/oci/load_balancer/models/listener_details.rb +28 -4
- data/lib/oci/load_balancer/models/load_balancer.rb +70 -10
- data/lib/oci/load_balancer/models/load_balancer_health.rb +28 -4
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +7 -1
- data/lib/oci/load_balancer/models/path_match_type.rb +7 -1
- data/lib/oci/load_balancer/models/path_route.rb +14 -2
- data/lib/oci/load_balancer/models/path_route_set.rb +7 -1
- data/lib/oci/load_balancer/models/path_route_set_details.rb +7 -1
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +16 -2
- data/lib/oci/load_balancer/models/ssl_configuration.rb +23 -3
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +23 -3
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +21 -3
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +35 -5
- data/lib/oci/load_balancer/models/update_listener_details.rb +28 -4
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +7 -1
- data/lib/oci/load_balancer/models/update_path_route_set_details.rb +7 -1
- data/lib/oci/load_balancer/models/work_request.rb +35 -5
- data/lib/oci/load_balancer/models/work_request_error.rb +7 -1
- data/lib/oci/object_storage/models/bucket.rb +83 -11
- data/lib/oci/object_storage/models/bucket_summary.rb +67 -7
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +14 -2
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +7 -1
- data/lib/oci/object_storage/models/create_bucket_details.rb +67 -7
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +21 -3
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +21 -3
- data/lib/oci/object_storage/models/list_objects.rb +7 -1
- data/lib/oci/object_storage/models/multipart_upload.rb +14 -2
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +7 -1
- data/lib/oci/object_storage/models/namespace_metadata.rb +14 -2
- data/lib/oci/object_storage/models/object_summary.rb +7 -1
- data/lib/oci/object_storage/models/preauthenticated_request.rb +35 -5
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +28 -4
- data/lib/oci/object_storage/models/rename_object_details.rb +35 -5
- data/lib/oci/object_storage/models/restore_objects_details.rb +25 -5
- data/lib/oci/object_storage/models/update_bucket_details.rb +60 -6
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +14 -2
- data/lib/oci/object_storage/object_storage_client.rb +17 -5
- data/lib/oci/object_storage/transfer/multipart/multipart_object_assembler.rb +11 -3
- data/lib/oci/signer.rb +0 -8
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waiter.rb +1 -0
- metadata +22 -2
@@ -23,7 +23,7 @@ module OCI
|
|
23
23
|
|
24
24
|
# Initializes the object
|
25
25
|
# @param [Hash] attributes Model attributes in the form of hash
|
26
|
-
# @option attributes [Integer] :
|
26
|
+
# @option attributes [Integer] :bandwidth_in_mbps The value to assign to the {#bandwidth_in_mbps} property
|
27
27
|
# @option attributes [String] :name The value to assign to the {#name} property
|
28
28
|
def initialize(attributes = {})
|
29
29
|
return unless attributes.is_a?(Hash)
|
@@ -35,6 +35,12 @@ module OCI
|
|
35
35
|
self.bandwidth_in_mbps = attributes[:'bandwidthInMbps']
|
36
36
|
end
|
37
37
|
|
38
|
+
raise 'You cannot provide both :bandwidthInMbps and :bandwidth_in_mbps' if attributes.key?(:'bandwidthInMbps') && attributes.key?(:'bandwidth_in_mbps')
|
39
|
+
|
40
|
+
if attributes[:'bandwidth_in_mbps']
|
41
|
+
self.bandwidth_in_mbps = attributes[:'bandwidth_in_mbps']
|
42
|
+
end
|
43
|
+
|
38
44
|
if attributes[:'name']
|
39
45
|
self.name = attributes[:'name']
|
40
46
|
end
|
@@ -30,8 +30,8 @@ module OCI
|
|
30
30
|
|
31
31
|
# Initializes the object
|
32
32
|
# @param [Hash] attributes Model attributes in the form of hash
|
33
|
-
# @option attributes [String] :
|
34
|
-
# @option attributes [String] :
|
33
|
+
# @option attributes [String] :cidr_block The value to assign to the {#cidr_block} property
|
34
|
+
# @option attributes [String] :verification_state The value to assign to the {#verification_state} property
|
35
35
|
def initialize(attributes = {})
|
36
36
|
return unless attributes.is_a?(Hash)
|
37
37
|
|
@@ -42,10 +42,22 @@ module OCI
|
|
42
42
|
self.cidr_block = attributes[:'cidrBlock']
|
43
43
|
end
|
44
44
|
|
45
|
+
raise 'You cannot provide both :cidrBlock and :cidr_block' if attributes.key?(:'cidrBlock') && attributes.key?(:'cidr_block')
|
46
|
+
|
47
|
+
if attributes[:'cidr_block']
|
48
|
+
self.cidr_block = attributes[:'cidr_block']
|
49
|
+
end
|
50
|
+
|
45
51
|
if attributes[:'verificationState']
|
46
52
|
self.verification_state = attributes[:'verificationState']
|
47
53
|
end
|
48
54
|
|
55
|
+
raise 'You cannot provide both :verificationState and :verification_state' if attributes.key?(:'verificationState') && attributes.key?(:'verification_state')
|
56
|
+
|
57
|
+
if attributes[:'verification_state']
|
58
|
+
self.verification_state = attributes[:'verification_state']
|
59
|
+
end
|
60
|
+
|
49
61
|
end
|
50
62
|
|
51
63
|
# Custom attribute writer method checking allowed values (enum).
|
data/lib/oci/core/models/vnic.rb
CHANGED
@@ -117,19 +117,19 @@ module OCI
|
|
117
117
|
|
118
118
|
# Initializes the object
|
119
119
|
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
-
# @option attributes [String] :
|
121
|
-
# @option attributes [String] :
|
122
|
-
# @option attributes [String] :
|
123
|
-
# @option attributes [String] :
|
120
|
+
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
121
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
122
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
123
|
+
# @option attributes [String] :hostname_label The value to assign to the {#hostname_label} property
|
124
124
|
# @option attributes [String] :id The value to assign to the {#id} property
|
125
|
-
# @option attributes [BOOLEAN] :
|
126
|
-
# @option attributes [String] :
|
127
|
-
# @option attributes [String] :
|
128
|
-
# @option attributes [String] :
|
129
|
-
# @option attributes [String] :
|
130
|
-
# @option attributes [BOOLEAN] :
|
131
|
-
# @option attributes [String] :
|
132
|
-
# @option attributes [DateTime] :
|
125
|
+
# @option attributes [BOOLEAN] :is_primary The value to assign to the {#is_primary} property
|
126
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
127
|
+
# @option attributes [String] :mac_address The value to assign to the {#mac_address} property
|
128
|
+
# @option attributes [String] :private_ip The value to assign to the {#private_ip} property
|
129
|
+
# @option attributes [String] :public_ip The value to assign to the {#public_ip} property
|
130
|
+
# @option attributes [BOOLEAN] :skip_source_dest_check The value to assign to the {#skip_source_dest_check} property
|
131
|
+
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
132
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
133
133
|
def initialize(attributes = {})
|
134
134
|
return unless attributes.is_a?(Hash)
|
135
135
|
|
@@ -140,18 +140,42 @@ module OCI
|
|
140
140
|
self.availability_domain = attributes[:'availabilityDomain']
|
141
141
|
end
|
142
142
|
|
143
|
+
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
144
|
+
|
145
|
+
if attributes[:'availability_domain']
|
146
|
+
self.availability_domain = attributes[:'availability_domain']
|
147
|
+
end
|
148
|
+
|
143
149
|
if attributes[:'compartmentId']
|
144
150
|
self.compartment_id = attributes[:'compartmentId']
|
145
151
|
end
|
146
152
|
|
153
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
154
|
+
|
155
|
+
if attributes[:'compartment_id']
|
156
|
+
self.compartment_id = attributes[:'compartment_id']
|
157
|
+
end
|
158
|
+
|
147
159
|
if attributes[:'displayName']
|
148
160
|
self.display_name = attributes[:'displayName']
|
149
161
|
end
|
150
162
|
|
163
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
164
|
+
|
165
|
+
if attributes[:'display_name']
|
166
|
+
self.display_name = attributes[:'display_name']
|
167
|
+
end
|
168
|
+
|
151
169
|
if attributes[:'hostnameLabel']
|
152
170
|
self.hostname_label = attributes[:'hostnameLabel']
|
153
171
|
end
|
154
172
|
|
173
|
+
raise 'You cannot provide both :hostnameLabel and :hostname_label' if attributes.key?(:'hostnameLabel') && attributes.key?(:'hostname_label')
|
174
|
+
|
175
|
+
if attributes[:'hostname_label']
|
176
|
+
self.hostname_label = attributes[:'hostname_label']
|
177
|
+
end
|
178
|
+
|
155
179
|
if attributes[:'id']
|
156
180
|
self.id = attributes[:'id']
|
157
181
|
end
|
@@ -160,34 +184,82 @@ module OCI
|
|
160
184
|
self.is_primary = attributes[:'isPrimary']
|
161
185
|
end
|
162
186
|
|
187
|
+
raise 'You cannot provide both :isPrimary and :is_primary' if attributes.key?(:'isPrimary') && attributes.key?(:'is_primary')
|
188
|
+
|
189
|
+
unless attributes[:'is_primary'].nil?
|
190
|
+
self.is_primary = attributes[:'is_primary']
|
191
|
+
end
|
192
|
+
|
163
193
|
if attributes[:'lifecycleState']
|
164
194
|
self.lifecycle_state = attributes[:'lifecycleState']
|
165
195
|
end
|
166
196
|
|
197
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
198
|
+
|
199
|
+
if attributes[:'lifecycle_state']
|
200
|
+
self.lifecycle_state = attributes[:'lifecycle_state']
|
201
|
+
end
|
202
|
+
|
167
203
|
if attributes[:'macAddress']
|
168
204
|
self.mac_address = attributes[:'macAddress']
|
169
205
|
end
|
170
206
|
|
207
|
+
raise 'You cannot provide both :macAddress and :mac_address' if attributes.key?(:'macAddress') && attributes.key?(:'mac_address')
|
208
|
+
|
209
|
+
if attributes[:'mac_address']
|
210
|
+
self.mac_address = attributes[:'mac_address']
|
211
|
+
end
|
212
|
+
|
171
213
|
if attributes[:'privateIp']
|
172
214
|
self.private_ip = attributes[:'privateIp']
|
173
215
|
end
|
174
216
|
|
217
|
+
raise 'You cannot provide both :privateIp and :private_ip' if attributes.key?(:'privateIp') && attributes.key?(:'private_ip')
|
218
|
+
|
219
|
+
if attributes[:'private_ip']
|
220
|
+
self.private_ip = attributes[:'private_ip']
|
221
|
+
end
|
222
|
+
|
175
223
|
if attributes[:'publicIp']
|
176
224
|
self.public_ip = attributes[:'publicIp']
|
177
225
|
end
|
178
226
|
|
227
|
+
raise 'You cannot provide both :publicIp and :public_ip' if attributes.key?(:'publicIp') && attributes.key?(:'public_ip')
|
228
|
+
|
229
|
+
if attributes[:'public_ip']
|
230
|
+
self.public_ip = attributes[:'public_ip']
|
231
|
+
end
|
232
|
+
|
179
233
|
unless attributes[:'skipSourceDestCheck'].nil?
|
180
234
|
self.skip_source_dest_check = attributes[:'skipSourceDestCheck']
|
181
235
|
end
|
182
236
|
|
237
|
+
raise 'You cannot provide both :skipSourceDestCheck and :skip_source_dest_check' if attributes.key?(:'skipSourceDestCheck') && attributes.key?(:'skip_source_dest_check')
|
238
|
+
|
239
|
+
unless attributes[:'skip_source_dest_check'].nil?
|
240
|
+
self.skip_source_dest_check = attributes[:'skip_source_dest_check']
|
241
|
+
end
|
242
|
+
|
183
243
|
if attributes[:'subnetId']
|
184
244
|
self.subnet_id = attributes[:'subnetId']
|
185
245
|
end
|
186
246
|
|
247
|
+
raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
|
248
|
+
|
249
|
+
if attributes[:'subnet_id']
|
250
|
+
self.subnet_id = attributes[:'subnet_id']
|
251
|
+
end
|
252
|
+
|
187
253
|
if attributes[:'timeCreated']
|
188
254
|
self.time_created = attributes[:'timeCreated']
|
189
255
|
end
|
190
256
|
|
257
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
258
|
+
|
259
|
+
if attributes[:'time_created']
|
260
|
+
self.time_created = attributes[:'time_created']
|
261
|
+
end
|
262
|
+
|
191
263
|
end
|
192
264
|
|
193
265
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -80,17 +80,17 @@ module OCI
|
|
80
80
|
|
81
81
|
# Initializes the object
|
82
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
83
|
-
# @option attributes [String] :
|
84
|
-
# @option attributes [String] :
|
85
|
-
# @option attributes [String] :
|
83
|
+
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
84
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
85
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
86
86
|
# @option attributes [String] :id The value to assign to the {#id} property
|
87
|
-
# @option attributes [String] :
|
88
|
-
# @option attributes [String] :
|
89
|
-
# @option attributes [Integer] :
|
90
|
-
# @option attributes [String] :
|
91
|
-
# @option attributes [DateTime] :
|
92
|
-
# @option attributes [Integer] :
|
93
|
-
# @option attributes [String] :
|
87
|
+
# @option attributes [String] :instance_id The value to assign to the {#instance_id} property
|
88
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
89
|
+
# @option attributes [Integer] :nic_index The value to assign to the {#nic_index} property
|
90
|
+
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
91
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
92
|
+
# @option attributes [Integer] :vlan_tag The value to assign to the {#vlan_tag} property
|
93
|
+
# @option attributes [String] :vnic_id The value to assign to the {#vnic_id} property
|
94
94
|
def initialize(attributes = {})
|
95
95
|
return unless attributes.is_a?(Hash)
|
96
96
|
|
@@ -101,14 +101,32 @@ module OCI
|
|
101
101
|
self.availability_domain = attributes[:'availabilityDomain']
|
102
102
|
end
|
103
103
|
|
104
|
+
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
105
|
+
|
106
|
+
if attributes[:'availability_domain']
|
107
|
+
self.availability_domain = attributes[:'availability_domain']
|
108
|
+
end
|
109
|
+
|
104
110
|
if attributes[:'compartmentId']
|
105
111
|
self.compartment_id = attributes[:'compartmentId']
|
106
112
|
end
|
107
113
|
|
114
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
115
|
+
|
116
|
+
if attributes[:'compartment_id']
|
117
|
+
self.compartment_id = attributes[:'compartment_id']
|
118
|
+
end
|
119
|
+
|
108
120
|
if attributes[:'displayName']
|
109
121
|
self.display_name = attributes[:'displayName']
|
110
122
|
end
|
111
123
|
|
124
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
125
|
+
|
126
|
+
if attributes[:'display_name']
|
127
|
+
self.display_name = attributes[:'display_name']
|
128
|
+
end
|
129
|
+
|
112
130
|
if attributes[:'id']
|
113
131
|
self.id = attributes[:'id']
|
114
132
|
end
|
@@ -117,30 +135,72 @@ module OCI
|
|
117
135
|
self.instance_id = attributes[:'instanceId']
|
118
136
|
end
|
119
137
|
|
138
|
+
raise 'You cannot provide both :instanceId and :instance_id' if attributes.key?(:'instanceId') && attributes.key?(:'instance_id')
|
139
|
+
|
140
|
+
if attributes[:'instance_id']
|
141
|
+
self.instance_id = attributes[:'instance_id']
|
142
|
+
end
|
143
|
+
|
120
144
|
if attributes[:'lifecycleState']
|
121
145
|
self.lifecycle_state = attributes[:'lifecycleState']
|
122
146
|
end
|
123
147
|
|
148
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
149
|
+
|
150
|
+
if attributes[:'lifecycle_state']
|
151
|
+
self.lifecycle_state = attributes[:'lifecycle_state']
|
152
|
+
end
|
153
|
+
|
124
154
|
if attributes[:'nicIndex']
|
125
155
|
self.nic_index = attributes[:'nicIndex']
|
126
156
|
end
|
127
157
|
|
158
|
+
raise 'You cannot provide both :nicIndex and :nic_index' if attributes.key?(:'nicIndex') && attributes.key?(:'nic_index')
|
159
|
+
|
160
|
+
if attributes[:'nic_index']
|
161
|
+
self.nic_index = attributes[:'nic_index']
|
162
|
+
end
|
163
|
+
|
128
164
|
if attributes[:'subnetId']
|
129
165
|
self.subnet_id = attributes[:'subnetId']
|
130
166
|
end
|
131
167
|
|
168
|
+
raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
|
169
|
+
|
170
|
+
if attributes[:'subnet_id']
|
171
|
+
self.subnet_id = attributes[:'subnet_id']
|
172
|
+
end
|
173
|
+
|
132
174
|
if attributes[:'timeCreated']
|
133
175
|
self.time_created = attributes[:'timeCreated']
|
134
176
|
end
|
135
177
|
|
178
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
179
|
+
|
180
|
+
if attributes[:'time_created']
|
181
|
+
self.time_created = attributes[:'time_created']
|
182
|
+
end
|
183
|
+
|
136
184
|
if attributes[:'vlanTag']
|
137
185
|
self.vlan_tag = attributes[:'vlanTag']
|
138
186
|
end
|
139
187
|
|
188
|
+
raise 'You cannot provide both :vlanTag and :vlan_tag' if attributes.key?(:'vlanTag') && attributes.key?(:'vlan_tag')
|
189
|
+
|
190
|
+
if attributes[:'vlan_tag']
|
191
|
+
self.vlan_tag = attributes[:'vlan_tag']
|
192
|
+
end
|
193
|
+
|
140
194
|
if attributes[:'vnicId']
|
141
195
|
self.vnic_id = attributes[:'vnicId']
|
142
196
|
end
|
143
197
|
|
198
|
+
raise 'You cannot provide both :vnicId and :vnic_id' if attributes.key?(:'vnicId') && attributes.key?(:'vnic_id')
|
199
|
+
|
200
|
+
if attributes[:'vnic_id']
|
201
|
+
self.vnic_id = attributes[:'vnic_id']
|
202
|
+
end
|
203
|
+
|
144
204
|
end
|
145
205
|
|
146
206
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -88,18 +88,18 @@ module OCI
|
|
88
88
|
|
89
89
|
# Initializes the object
|
90
90
|
# @param [Hash] attributes Model attributes in the form of hash
|
91
|
-
# @option attributes [String] :
|
92
|
-
# @option attributes [String] :
|
93
|
-
# @option attributes [Hash<String, Hash<String, Object>>] :
|
94
|
-
# @option attributes [String] :
|
95
|
-
# @option attributes [Hash<String, String>] :
|
91
|
+
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
92
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
93
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
94
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
95
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
96
96
|
# @option attributes [String] :id The value to assign to the {#id} property
|
97
|
-
# @option attributes [BOOLEAN] :
|
98
|
-
# @option attributes [String] :
|
99
|
-
# @option attributes [Integer] :
|
100
|
-
# @option attributes [Integer] :
|
101
|
-
# @option attributes [OCI::Core::Models::VolumeSourceDetails] :
|
102
|
-
# @option attributes [DateTime] :
|
97
|
+
# @option attributes [BOOLEAN] :is_hydrated The value to assign to the {#is_hydrated} property
|
98
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
99
|
+
# @option attributes [Integer] :size_in_gbs The value to assign to the {#size_in_gbs} property
|
100
|
+
# @option attributes [Integer] :size_in_mbs The value to assign to the {#size_in_mbs} property
|
101
|
+
# @option attributes [OCI::Core::Models::VolumeSourceDetails] :source_details The value to assign to the {#source_details} property
|
102
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
103
103
|
def initialize(attributes = {})
|
104
104
|
return unless attributes.is_a?(Hash)
|
105
105
|
|
@@ -110,22 +110,52 @@ module OCI
|
|
110
110
|
self.availability_domain = attributes[:'availabilityDomain']
|
111
111
|
end
|
112
112
|
|
113
|
+
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
114
|
+
|
115
|
+
if attributes[:'availability_domain']
|
116
|
+
self.availability_domain = attributes[:'availability_domain']
|
117
|
+
end
|
118
|
+
|
113
119
|
if attributes[:'compartmentId']
|
114
120
|
self.compartment_id = attributes[:'compartmentId']
|
115
121
|
end
|
116
122
|
|
123
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
124
|
+
|
125
|
+
if attributes[:'compartment_id']
|
126
|
+
self.compartment_id = attributes[:'compartment_id']
|
127
|
+
end
|
128
|
+
|
117
129
|
if attributes[:'definedTags']
|
118
130
|
self.defined_tags = attributes[:'definedTags']
|
119
131
|
end
|
120
132
|
|
133
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
134
|
+
|
135
|
+
if attributes[:'defined_tags']
|
136
|
+
self.defined_tags = attributes[:'defined_tags']
|
137
|
+
end
|
138
|
+
|
121
139
|
if attributes[:'displayName']
|
122
140
|
self.display_name = attributes[:'displayName']
|
123
141
|
end
|
124
142
|
|
143
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
144
|
+
|
145
|
+
if attributes[:'display_name']
|
146
|
+
self.display_name = attributes[:'display_name']
|
147
|
+
end
|
148
|
+
|
125
149
|
if attributes[:'freeformTags']
|
126
150
|
self.freeform_tags = attributes[:'freeformTags']
|
127
151
|
end
|
128
152
|
|
153
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
154
|
+
|
155
|
+
if attributes[:'freeform_tags']
|
156
|
+
self.freeform_tags = attributes[:'freeform_tags']
|
157
|
+
end
|
158
|
+
|
129
159
|
if attributes[:'id']
|
130
160
|
self.id = attributes[:'id']
|
131
161
|
end
|
@@ -134,26 +164,62 @@ module OCI
|
|
134
164
|
self.is_hydrated = attributes[:'isHydrated']
|
135
165
|
end
|
136
166
|
|
167
|
+
raise 'You cannot provide both :isHydrated and :is_hydrated' if attributes.key?(:'isHydrated') && attributes.key?(:'is_hydrated')
|
168
|
+
|
169
|
+
unless attributes[:'is_hydrated'].nil?
|
170
|
+
self.is_hydrated = attributes[:'is_hydrated']
|
171
|
+
end
|
172
|
+
|
137
173
|
if attributes[:'lifecycleState']
|
138
174
|
self.lifecycle_state = attributes[:'lifecycleState']
|
139
175
|
end
|
140
176
|
|
177
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
178
|
+
|
179
|
+
if attributes[:'lifecycle_state']
|
180
|
+
self.lifecycle_state = attributes[:'lifecycle_state']
|
181
|
+
end
|
182
|
+
|
141
183
|
if attributes[:'sizeInGBs']
|
142
184
|
self.size_in_gbs = attributes[:'sizeInGBs']
|
143
185
|
end
|
144
186
|
|
187
|
+
raise 'You cannot provide both :sizeInGBs and :size_in_gbs' if attributes.key?(:'sizeInGBs') && attributes.key?(:'size_in_gbs')
|
188
|
+
|
189
|
+
if attributes[:'size_in_gbs']
|
190
|
+
self.size_in_gbs = attributes[:'size_in_gbs']
|
191
|
+
end
|
192
|
+
|
145
193
|
if attributes[:'sizeInMBs']
|
146
194
|
self.size_in_mbs = attributes[:'sizeInMBs']
|
147
195
|
end
|
148
196
|
|
197
|
+
raise 'You cannot provide both :sizeInMBs and :size_in_mbs' if attributes.key?(:'sizeInMBs') && attributes.key?(:'size_in_mbs')
|
198
|
+
|
199
|
+
if attributes[:'size_in_mbs']
|
200
|
+
self.size_in_mbs = attributes[:'size_in_mbs']
|
201
|
+
end
|
202
|
+
|
149
203
|
if attributes[:'sourceDetails']
|
150
204
|
self.source_details = attributes[:'sourceDetails']
|
151
205
|
end
|
152
206
|
|
207
|
+
raise 'You cannot provide both :sourceDetails and :source_details' if attributes.key?(:'sourceDetails') && attributes.key?(:'source_details')
|
208
|
+
|
209
|
+
if attributes[:'source_details']
|
210
|
+
self.source_details = attributes[:'source_details']
|
211
|
+
end
|
212
|
+
|
153
213
|
if attributes[:'timeCreated']
|
154
214
|
self.time_created = attributes[:'timeCreated']
|
155
215
|
end
|
156
216
|
|
217
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
218
|
+
|
219
|
+
if attributes[:'time_created']
|
220
|
+
self.time_created = attributes[:'time_created']
|
221
|
+
end
|
222
|
+
|
157
223
|
end
|
158
224
|
|
159
225
|
# Custom attribute writer method checking allowed values (enum).
|