oci 2.0.4 → 2.0.5
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/LICENSE.txt +3 -3
- data/README.md +72 -6
- data/lib/oci.rb +1 -1
- data/lib/oci/api_client.rb +1 -1
- data/lib/oci/audit/audit.rb +1 -1
- data/lib/oci/audit/audit_client.rb +1 -1
- data/lib/oci/audit/models/audit_event.rb +4 -4
- data/lib/oci/audit/models/configuration.rb +4 -4
- data/lib/oci/audit/models/update_configuration_details.rb +4 -4
- data/lib/oci/audit/util.rb +2 -1
- data/lib/oci/config.rb +1 -1
- data/lib/oci/config_file_loader.rb +1 -1
- data/lib/oci/core/blockstorage_client.rb +1 -1
- data/lib/oci/core/compute_client.rb +4 -2
- data/lib/oci/core/core.rb +2 -1
- data/lib/oci/core/models/attach_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +4 -4
- data/lib/oci/core/models/attach_vnic_details.rb +4 -4
- data/lib/oci/core/models/attach_volume_details.rb +4 -4
- data/lib/oci/core/models/boot_volume.rb +4 -4
- data/lib/oci/core/models/boot_volume_attachment.rb +4 -4
- data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +4 -4
- data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +4 -4
- data/lib/oci/core/models/capture_console_history_details.rb +36 -5
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +4 -4
- data/lib/oci/core/models/console_history.rb +36 -6
- data/lib/oci/core/models/cpe.rb +4 -4
- data/lib/oci/core/models/create_cpe_details.rb +4 -4
- data/lib/oci/core/models/create_cross_connect_details.rb +4 -4
- data/lib/oci/core/models/create_cross_connect_group_details.rb +4 -4
- data/lib/oci/core/models/create_dhcp_details.rb +36 -5
- data/lib/oci/core/models/create_drg_attachment_details.rb +4 -4
- data/lib/oci/core/models/create_drg_details.rb +4 -4
- data/lib/oci/core/models/create_image_details.rb +69 -8
- data/lib/oci/core/models/create_instance_console_connection_details.rb +36 -5
- data/lib/oci/core/models/create_internet_gateway_details.rb +4 -4
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +4 -4
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +4 -4
- data/lib/oci/core/models/create_private_ip_details.rb +36 -5
- data/lib/oci/core/models/create_route_table_details.rb +36 -5
- data/lib/oci/core/models/create_security_list_details.rb +36 -5
- data/lib/oci/core/models/create_subnet_details.rb +36 -5
- data/lib/oci/core/models/create_vcn_details.rb +39 -8
- data/lib/oci/core/models/create_virtual_circuit_details.rb +4 -4
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +4 -4
- data/lib/oci/core/models/create_vnic_details.rb +4 -4
- data/lib/oci/core/models/create_volume_backup_details.rb +36 -5
- data/lib/oci/core/models/create_volume_details.rb +36 -5
- data/lib/oci/core/models/cross_connect.rb +4 -4
- data/lib/oci/core/models/cross_connect_group.rb +4 -4
- data/lib/oci/core/models/cross_connect_location.rb +4 -4
- data/lib/oci/core/models/cross_connect_mapping.rb +4 -4
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +4 -4
- data/lib/oci/core/models/cross_connect_status.rb +4 -4
- data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +4 -4
- data/lib/oci/core/models/dhcp_dns_option.rb +4 -4
- data/lib/oci/core/models/dhcp_option.rb +4 -4
- data/lib/oci/core/models/dhcp_options.rb +36 -5
- data/lib/oci/core/models/dhcp_search_domain_option.rb +4 -4
- data/lib/oci/core/models/drg.rb +4 -4
- data/lib/oci/core/models/drg_attachment.rb +4 -4
- data/lib/oci/core/models/egress_security_rule.rb +4 -4
- data/lib/oci/core/models/export_image_details.rb +4 -4
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +4 -4
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +4 -4
- data/lib/oci/core/models/fast_connect_provider_service.rb +4 -4
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +4 -4
- data/lib/oci/core/models/icmp_options.rb +4 -4
- data/lib/oci/core/models/image.rb +77 -6
- data/lib/oci/core/models/image_source_details.rb +32 -5
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +8 -5
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +8 -5
- data/lib/oci/core/models/ingress_security_rule.rb +4 -4
- data/lib/oci/core/models/instance.rb +77 -5
- data/lib/oci/core/models/instance_console_connection.rb +52 -8
- data/lib/oci/core/models/instance_credentials.rb +4 -4
- data/lib/oci/core/models/instance_source_details.rb +4 -4
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/instance_source_via_image_details.rb +4 -4
- data/lib/oci/core/models/internet_gateway.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +4 -4
- data/lib/oci/core/models/launch_instance_details.rb +39 -6
- data/lib/oci/core/models/launch_options.rb +239 -0
- data/lib/oci/core/models/letter_of_authority.rb +4 -4
- data/lib/oci/core/models/local_peering_gateway.rb +4 -4
- data/lib/oci/core/models/port_range.rb +4 -4
- data/lib/oci/core/models/private_ip.rb +36 -5
- data/lib/oci/core/models/route_rule.rb +4 -4
- data/lib/oci/core/models/route_table.rb +36 -5
- data/lib/oci/core/models/security_list.rb +36 -5
- data/lib/oci/core/models/shape.rb +4 -4
- data/lib/oci/core/models/subnet.rb +36 -5
- data/lib/oci/core/models/tcp_options.rb +4 -4
- data/lib/oci/core/models/tunnel_config.rb +4 -4
- data/lib/oci/core/models/tunnel_status.rb +4 -4
- data/lib/oci/core/models/udp_options.rb +4 -4
- data/lib/oci/core/models/update_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/update_console_history_details.rb +39 -8
- data/lib/oci/core/models/update_cpe_details.rb +4 -4
- data/lib/oci/core/models/update_cross_connect_details.rb +4 -4
- data/lib/oci/core/models/update_cross_connect_group_details.rb +4 -4
- data/lib/oci/core/models/update_dhcp_details.rb +36 -5
- data/lib/oci/core/models/update_drg_attachment_details.rb +4 -4
- data/lib/oci/core/models/update_drg_details.rb +4 -4
- data/lib/oci/core/models/update_image_details.rb +39 -8
- data/lib/oci/core/models/update_instance_details.rb +39 -8
- data/lib/oci/core/models/update_internet_gateway_details.rb +4 -4
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +4 -4
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -4
- data/lib/oci/core/models/update_private_ip_details.rb +36 -5
- data/lib/oci/core/models/update_route_table_details.rb +36 -5
- data/lib/oci/core/models/update_security_list_details.rb +36 -5
- data/lib/oci/core/models/update_subnet_details.rb +39 -8
- data/lib/oci/core/models/update_vcn_details.rb +39 -8
- data/lib/oci/core/models/update_virtual_circuit_details.rb +4 -4
- data/lib/oci/core/models/update_vnic_details.rb +4 -4
- data/lib/oci/core/models/update_volume_backup_details.rb +39 -8
- data/lib/oci/core/models/update_volume_details.rb +39 -8
- data/lib/oci/core/models/vcn.rb +36 -5
- data/lib/oci/core/models/virtual_circuit.rb +4 -4
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +4 -4
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +4 -4
- data/lib/oci/core/models/vnic.rb +4 -4
- data/lib/oci/core/models/vnic_attachment.rb +4 -4
- data/lib/oci/core/models/volume.rb +36 -5
- data/lib/oci/core/models/volume_attachment.rb +4 -4
- data/lib/oci/core/models/volume_backup.rb +36 -5
- data/lib/oci/core/models/volume_source_details.rb +4 -4
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +4 -4
- data/lib/oci/core/models/volume_source_from_volume_details.rb +4 -4
- data/lib/oci/core/util.rb +2 -1
- data/lib/oci/core/virtual_network_client.rb +1 -1
- data/lib/oci/database/database.rb +1 -1
- data/lib/oci/database/database_client.rb +1 -1
- data/lib/oci/database/models/backup.rb +4 -4
- data/lib/oci/database/models/backup_summary.rb +4 -4
- data/lib/oci/database/models/create_backup_details.rb +4 -4
- data/lib/oci/database/models/create_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +4 -4
- data/lib/oci/database/models/create_database_details.rb +4 -4
- data/lib/oci/database/models/create_database_from_backup_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +4 -4
- data/lib/oci/database/models/data_guard_association.rb +4 -4
- data/lib/oci/database/models/data_guard_association_summary.rb +4 -4
- data/lib/oci/database/models/database.rb +4 -4
- data/lib/oci/database/models/database_summary.rb +4 -4
- data/lib/oci/database/models/db_backup_config.rb +4 -4
- data/lib/oci/database/models/db_home.rb +4 -4
- data/lib/oci/database/models/db_home_summary.rb +4 -4
- data/lib/oci/database/models/db_node.rb +4 -4
- data/lib/oci/database/models/db_node_summary.rb +4 -4
- data/lib/oci/database/models/db_system.rb +4 -4
- data/lib/oci/database/models/db_system_shape_summary.rb +4 -4
- data/lib/oci/database/models/db_system_summary.rb +4 -4
- data/lib/oci/database/models/db_version_summary.rb +4 -4
- data/lib/oci/database/models/failover_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/launch_db_system_details.rb +4 -4
- data/lib/oci/database/models/patch.rb +4 -4
- data/lib/oci/database/models/patch_details.rb +4 -4
- data/lib/oci/database/models/patch_history_entry.rb +4 -4
- data/lib/oci/database/models/patch_history_entry_summary.rb +4 -4
- data/lib/oci/database/models/patch_summary.rb +4 -4
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/restore_database_details.rb +4 -4
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/update_database_details.rb +4 -4
- data/lib/oci/database/models/update_db_home_details.rb +4 -4
- data/lib/oci/database/models/update_db_system_details.rb +4 -4
- data/lib/oci/database/util.rb +2 -1
- data/lib/oci/errors.rb +1 -1
- data/lib/oci/global_context.rb +1 -1
- data/lib/oci/identity/identity.rb +9 -1
- data/lib/oci/identity/identity_client.rb +339 -1
- data/lib/oci/identity/models/add_user_to_group_details.rb +4 -4
- data/lib/oci/identity/models/api_key.rb +4 -4
- data/lib/oci/identity/models/availability_domain.rb +4 -4
- data/lib/oci/identity/models/compartment.rb +34 -8
- data/lib/oci/identity/models/create_api_key_details.rb +4 -4
- data/lib/oci/identity/models/create_compartment_details.rb +34 -8
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +4 -4
- data/lib/oci/identity/models/create_group_details.rb +34 -8
- data/lib/oci/identity/models/create_identity_provider_details.rb +34 -8
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +4 -4
- data/lib/oci/identity/models/create_policy_details.rb +34 -8
- data/lib/oci/identity/models/create_region_subscription_details.rb +4 -4
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +11 -5
- data/lib/oci/identity/models/create_swift_password_details.rb +4 -4
- data/lib/oci/identity/models/create_tag_details.rb +158 -0
- data/lib/oci/identity/models/create_tag_namespace_details.rb +169 -0
- data/lib/oci/identity/models/create_user_details.rb +34 -8
- data/lib/oci/identity/models/customer_secret_key.rb +4 -4
- data/lib/oci/identity/models/customer_secret_key_summary.rb +4 -4
- data/lib/oci/identity/models/group.rb +35 -8
- data/lib/oci/identity/models/identity_provider.rb +34 -8
- data/lib/oci/identity/models/idp_group_mapping.rb +4 -4
- data/lib/oci/identity/models/policy.rb +34 -8
- data/lib/oci/identity/models/region.rb +4 -4
- data/lib/oci/identity/models/region_subscription.rb +4 -4
- data/lib/oci/identity/models/saml2_identity_provider.rb +11 -5
- data/lib/oci/identity/models/swift_password.rb +4 -4
- data/lib/oci/identity/models/tag.rb +228 -0
- data/lib/oci/identity/models/tag_namespace.rb +205 -0
- data/lib/oci/identity/models/tag_namespace_summary.rb +205 -0
- data/lib/oci/identity/models/tag_summary.rb +205 -0
- data/lib/oci/identity/models/tenancy.rb +34 -8
- data/lib/oci/identity/models/ui_password.rb +4 -4
- data/lib/oci/identity/models/update_compartment_details.rb +34 -8
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +4 -4
- data/lib/oci/identity/models/update_group_details.rb +34 -8
- data/lib/oci/identity/models/update_identity_provider_details.rb +34 -8
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +4 -4
- data/lib/oci/identity/models/update_policy_details.rb +34 -8
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +11 -5
- data/lib/oci/identity/models/update_state_details.rb +4 -4
- data/lib/oci/identity/models/update_swift_password_details.rb +4 -4
- data/lib/oci/identity/models/update_tag_details.rb +157 -0
- data/lib/oci/identity/models/update_tag_namespace_details.rb +157 -0
- data/lib/oci/identity/models/update_user_details.rb +34 -8
- data/lib/oci/identity/models/user.rb +35 -8
- data/lib/oci/identity/models/user_group_membership.rb +4 -4
- data/lib/oci/identity/util.rb +2 -1
- data/lib/oci/internal/internal.rb +1 -1
- data/lib/oci/internal/util.rb +2 -2
- data/lib/oci/load_balancer/load_balancer.rb +1 -1
- data/lib/oci/load_balancer/load_balancer_client.rb +1 -1
- data/lib/oci/load_balancer/models/backend.rb +4 -4
- data/lib/oci/load_balancer/models/backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/backend_health.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set_health.rb +4 -4
- data/lib/oci/load_balancer/models/certificate.rb +4 -4
- data/lib/oci/load_balancer/models/certificate_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_certificate_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/health_check_result.rb +4 -4
- data/lib/oci/load_balancer/models/health_checker.rb +4 -4
- data/lib/oci/load_balancer/models/health_checker_details.rb +4 -4
- data/lib/oci/load_balancer/models/ip_address.rb +4 -4
- data/lib/oci/load_balancer/models/listener.rb +4 -4
- data/lib/oci/load_balancer/models/listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_health.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +4 -4
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +4 -4
- data/lib/oci/load_balancer/models/ssl_configuration.rb +4 -4
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/work_request.rb +4 -4
- data/lib/oci/load_balancer/models/work_request_error.rb +4 -4
- data/lib/oci/load_balancer/util.rb +1 -1
- data/lib/oci/object_storage/models/bucket.rb +4 -4
- data/lib/oci/object_storage/models/bucket_summary.rb +4 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +4 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +4 -4
- data/lib/oci/object_storage/models/create_bucket_details.rb +4 -4
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +4 -4
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +4 -4
- data/lib/oci/object_storage/models/list_objects.rb +4 -4
- data/lib/oci/object_storage/models/multipart_upload.rb +4 -4
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +4 -4
- data/lib/oci/object_storage/models/namespace_metadata.rb +4 -4
- data/lib/oci/object_storage/models/object_summary.rb +4 -4
- data/lib/oci/object_storage/models/preauthenticated_request.rb +4 -4
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +4 -4
- data/lib/oci/object_storage/models/rename_object_details.rb +4 -4
- data/lib/oci/object_storage/models/restore_objects_details.rb +4 -4
- data/lib/oci/object_storage/models/update_bucket_details.rb +4 -4
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +4 -4
- data/lib/oci/object_storage/object_storage.rb +1 -1
- data/lib/oci/object_storage/object_storage_client.rb +1 -1
- data/lib/oci/object_storage/util.rb +2 -1
- data/lib/oci/regions.rb +1 -1
- data/lib/oci/response.rb +1 -1
- data/lib/oci/response_headers.rb +1 -1
- data/lib/oci/signer.rb +1 -1
- data/lib/oci/version.rb +2 -2
- data/lib/oci/waiter.rb +21 -5
- data/lib/oraclebmc.rb +1 -1
- metadata +11 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -8,10 +8,27 @@ module OCI
|
|
|
8
8
|
# @return [String]
|
|
9
9
|
attr_accessor :compartment_id
|
|
10
10
|
|
|
11
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
12
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
13
|
+
#
|
|
14
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
15
|
+
#
|
|
16
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
17
|
+
attr_accessor :defined_tags
|
|
18
|
+
|
|
11
19
|
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
|
12
20
|
# @return [String]
|
|
13
21
|
attr_accessor :display_name
|
|
14
22
|
|
|
23
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
24
|
+
# predefined name, type, or namespace. For more information, see
|
|
25
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
26
|
+
#
|
|
27
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
28
|
+
#
|
|
29
|
+
# @return [Hash<String, String>]
|
|
30
|
+
attr_accessor :freeform_tags
|
|
31
|
+
|
|
15
32
|
# A set of DHCP options.
|
|
16
33
|
# @return [Array<OCI::Core::Models::DhcpOption>]
|
|
17
34
|
attr_accessor :options
|
|
@@ -33,10 +50,18 @@ module OCI
|
|
|
33
50
|
self.compartment_id = attributes[:'compartmentId']
|
|
34
51
|
end
|
|
35
52
|
|
|
53
|
+
if attributes[:'definedTags']
|
|
54
|
+
self.defined_tags = attributes[:'definedTags']
|
|
55
|
+
end
|
|
56
|
+
|
|
36
57
|
if attributes[:'displayName']
|
|
37
58
|
self.display_name = attributes[:'displayName']
|
|
38
59
|
end
|
|
39
60
|
|
|
61
|
+
if attributes[:'freeformTags']
|
|
62
|
+
self.freeform_tags = attributes[:'freeformTags']
|
|
63
|
+
end
|
|
64
|
+
|
|
40
65
|
if attributes[:'options']
|
|
41
66
|
self.options = attributes[:'options']
|
|
42
67
|
end
|
|
@@ -53,7 +78,9 @@ module OCI
|
|
|
53
78
|
return true if self.equal?(other_object)
|
|
54
79
|
self.class == other_object.class &&
|
|
55
80
|
compartment_id == other_object.compartment_id &&
|
|
81
|
+
defined_tags == other_object.defined_tags &&
|
|
56
82
|
display_name == other_object.display_name &&
|
|
83
|
+
freeform_tags == other_object.freeform_tags &&
|
|
57
84
|
options == other_object.options &&
|
|
58
85
|
vcn_id == other_object.vcn_id
|
|
59
86
|
end
|
|
@@ -67,7 +94,7 @@ module OCI
|
|
|
67
94
|
# Calculates hash code according to all attributes.
|
|
68
95
|
# @return [Fixnum] Hash code
|
|
69
96
|
def hash
|
|
70
|
-
[compartment_id, display_name, options, vcn_id].hash
|
|
97
|
+
[compartment_id, defined_tags, display_name, freeform_tags, options, vcn_id].hash
|
|
71
98
|
end
|
|
72
99
|
|
|
73
100
|
# Builds the object from hash
|
|
@@ -80,10 +107,10 @@ module OCI
|
|
|
80
107
|
# check to ensure the input is an array given that the the attribute
|
|
81
108
|
# is documented as an array but the input is not
|
|
82
109
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
83
|
-
self.
|
|
110
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
84
111
|
end
|
|
85
112
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
86
|
-
self.
|
|
113
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
87
114
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
88
115
|
end
|
|
89
116
|
|
|
@@ -101,7 +128,7 @@ module OCI
|
|
|
101
128
|
def to_hash
|
|
102
129
|
hash = {}
|
|
103
130
|
self.class.attribute_map.each_pair do |attr, param|
|
|
104
|
-
value =
|
|
131
|
+
value = public_method(attr).call
|
|
105
132
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
106
133
|
hash[param] = _to_hash(value)
|
|
107
134
|
end
|
|
@@ -134,7 +161,9 @@ module OCI
|
|
|
134
161
|
def self.attribute_map
|
|
135
162
|
{
|
|
136
163
|
:'compartment_id' => :'compartmentId',
|
|
164
|
+
:'defined_tags' => :'definedTags',
|
|
137
165
|
:'display_name' => :'displayName',
|
|
166
|
+
:'freeform_tags' => :'freeformTags',
|
|
138
167
|
:'options' => :'options',
|
|
139
168
|
:'vcn_id' => :'vcnId'
|
|
140
169
|
}
|
|
@@ -144,7 +173,9 @@ module OCI
|
|
|
144
173
|
def self.swagger_types
|
|
145
174
|
{
|
|
146
175
|
:'compartment_id' => :'String',
|
|
176
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
|
147
177
|
:'display_name' => :'String',
|
|
178
|
+
:'freeform_tags' => :'Hash<String, String>',
|
|
148
179
|
:'options' => :'Array<OCI::Core::Models::DhcpOption>',
|
|
149
180
|
:'vcn_id' => :'String'
|
|
150
181
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -71,10 +71,10 @@ module OCI
|
|
|
71
71
|
# check to ensure the input is an array given that the the attribute
|
|
72
72
|
# is documented as an array but the input is not
|
|
73
73
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
74
|
-
self.
|
|
74
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
75
75
|
end
|
|
76
76
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
77
|
-
self.
|
|
77
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
78
78
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
79
79
|
end
|
|
80
80
|
|
|
@@ -92,7 +92,7 @@ module OCI
|
|
|
92
92
|
def to_hash
|
|
93
93
|
hash = {}
|
|
94
94
|
self.class.attribute_map.each_pair do |attr, param|
|
|
95
|
-
value =
|
|
95
|
+
value = public_method(attr).call
|
|
96
96
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
97
97
|
hash[param] = _to_hash(value)
|
|
98
98
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -62,10 +62,10 @@ module OCI
|
|
|
62
62
|
# check to ensure the input is an array given that the the attribute
|
|
63
63
|
# is documented as an array but the input is not
|
|
64
64
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
65
|
-
self.
|
|
65
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
66
66
|
end
|
|
67
67
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
68
|
-
self.
|
|
68
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
69
69
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -83,7 +83,7 @@ module OCI
|
|
|
83
83
|
def to_hash
|
|
84
84
|
hash = {}
|
|
85
85
|
self.class.attribute_map.each_pair do |attr, param|
|
|
86
|
-
value =
|
|
86
|
+
value = public_method(attr).call
|
|
87
87
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
88
88
|
hash[param] = _to_hash(value)
|
|
89
89
|
end
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
5
5
|
module OCI
|
|
6
6
|
class Core::Models::CreateImageDetails
|
|
7
|
+
|
|
8
|
+
LAUNCH_MODE_ENUM = [LAUNCH_MODE_NATIVE = 'NATIVE',
|
|
9
|
+
LAUNCH_MODE_EMULATED = 'EMULATED',
|
|
10
|
+
LAUNCH_MODE_CUSTOM = 'CUSTOM']
|
|
11
|
+
|
|
7
12
|
# The OCID of the compartment containing the instance you want to use as the basis for the image.
|
|
8
13
|
# @return [String]
|
|
9
14
|
attr_accessor :compartment_id
|
|
10
15
|
|
|
16
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
17
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
18
|
+
#
|
|
19
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
20
|
+
#
|
|
21
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
22
|
+
attr_accessor :defined_tags
|
|
23
|
+
|
|
11
24
|
# A user-friendly name for the image. It does not have to be unique, and it's changeable.
|
|
12
25
|
# Avoid entering confidential information.
|
|
13
26
|
#
|
|
@@ -18,6 +31,15 @@ module OCI
|
|
|
18
31
|
# @return [String]
|
|
19
32
|
attr_accessor :display_name
|
|
20
33
|
|
|
34
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
35
|
+
# predefined name, type, or namespace. For more information, see
|
|
36
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
37
|
+
#
|
|
38
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
39
|
+
#
|
|
40
|
+
# @return [Hash<String, String>]
|
|
41
|
+
attr_accessor :freeform_tags
|
|
42
|
+
|
|
21
43
|
# Details for creating an image through import
|
|
22
44
|
# @return [OCI::Core::Models::ImageSourceDetails]
|
|
23
45
|
attr_accessor :image_source_details
|
|
@@ -26,6 +48,14 @@ module OCI
|
|
|
26
48
|
# @return [String]
|
|
27
49
|
attr_accessor :instance_id
|
|
28
50
|
|
|
51
|
+
# Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
|
|
52
|
+
# * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
|
|
53
|
+
# * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
|
|
54
|
+
# * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_accessor :launch_mode
|
|
58
|
+
|
|
29
59
|
|
|
30
60
|
# Initializes the object
|
|
31
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -39,10 +69,18 @@ module OCI
|
|
|
39
69
|
self.compartment_id = attributes[:'compartmentId']
|
|
40
70
|
end
|
|
41
71
|
|
|
72
|
+
if attributes[:'definedTags']
|
|
73
|
+
self.defined_tags = attributes[:'definedTags']
|
|
74
|
+
end
|
|
75
|
+
|
|
42
76
|
if attributes[:'displayName']
|
|
43
77
|
self.display_name = attributes[:'displayName']
|
|
44
78
|
end
|
|
45
79
|
|
|
80
|
+
if attributes[:'freeformTags']
|
|
81
|
+
self.freeform_tags = attributes[:'freeformTags']
|
|
82
|
+
end
|
|
83
|
+
|
|
46
84
|
if attributes[:'imageSourceDetails']
|
|
47
85
|
self.image_source_details = attributes[:'imageSourceDetails']
|
|
48
86
|
end
|
|
@@ -51,6 +89,20 @@ module OCI
|
|
|
51
89
|
self.instance_id = attributes[:'instanceId']
|
|
52
90
|
end
|
|
53
91
|
|
|
92
|
+
if attributes[:'launchMode']
|
|
93
|
+
self.launch_mode = attributes[:'launchMode']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
99
|
+
# @param [Object] launch_mode Object to be assigned
|
|
100
|
+
def launch_mode=(launch_mode)
|
|
101
|
+
if launch_mode && !LAUNCH_MODE_ENUM.include?(launch_mode)
|
|
102
|
+
fail "Invalid value for 'launch_mode': this must be one of the values in LAUNCH_MODE_ENUM."
|
|
103
|
+
else
|
|
104
|
+
@launch_mode = launch_mode
|
|
105
|
+
end
|
|
54
106
|
end
|
|
55
107
|
|
|
56
108
|
# Checks equality by comparing each attribute.
|
|
@@ -59,9 +111,12 @@ module OCI
|
|
|
59
111
|
return true if self.equal?(other_object)
|
|
60
112
|
self.class == other_object.class &&
|
|
61
113
|
compartment_id == other_object.compartment_id &&
|
|
114
|
+
defined_tags == other_object.defined_tags &&
|
|
62
115
|
display_name == other_object.display_name &&
|
|
116
|
+
freeform_tags == other_object.freeform_tags &&
|
|
63
117
|
image_source_details == other_object.image_source_details &&
|
|
64
|
-
instance_id == other_object.instance_id
|
|
118
|
+
instance_id == other_object.instance_id &&
|
|
119
|
+
launch_mode == other_object.launch_mode
|
|
65
120
|
end
|
|
66
121
|
|
|
67
122
|
# @see the `==` method
|
|
@@ -73,7 +128,7 @@ module OCI
|
|
|
73
128
|
# Calculates hash code according to all attributes.
|
|
74
129
|
# @return [Fixnum] Hash code
|
|
75
130
|
def hash
|
|
76
|
-
[compartment_id, display_name, image_source_details, instance_id].hash
|
|
131
|
+
[compartment_id, defined_tags, display_name, freeform_tags, image_source_details, instance_id, launch_mode].hash
|
|
77
132
|
end
|
|
78
133
|
|
|
79
134
|
# Builds the object from hash
|
|
@@ -86,10 +141,10 @@ module OCI
|
|
|
86
141
|
# check to ensure the input is an array given that the the attribute
|
|
87
142
|
# is documented as an array but the input is not
|
|
88
143
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
89
|
-
self.
|
|
144
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
90
145
|
end
|
|
91
146
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
92
|
-
self.
|
|
147
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
93
148
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
94
149
|
end
|
|
95
150
|
|
|
@@ -107,7 +162,7 @@ module OCI
|
|
|
107
162
|
def to_hash
|
|
108
163
|
hash = {}
|
|
109
164
|
self.class.attribute_map.each_pair do |attr, param|
|
|
110
|
-
value =
|
|
165
|
+
value = public_method(attr).call
|
|
111
166
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
112
167
|
hash[param] = _to_hash(value)
|
|
113
168
|
end
|
|
@@ -140,9 +195,12 @@ module OCI
|
|
|
140
195
|
def self.attribute_map
|
|
141
196
|
{
|
|
142
197
|
:'compartment_id' => :'compartmentId',
|
|
198
|
+
:'defined_tags' => :'definedTags',
|
|
143
199
|
:'display_name' => :'displayName',
|
|
200
|
+
:'freeform_tags' => :'freeformTags',
|
|
144
201
|
:'image_source_details' => :'imageSourceDetails',
|
|
145
|
-
:'instance_id' => :'instanceId'
|
|
202
|
+
:'instance_id' => :'instanceId',
|
|
203
|
+
:'launch_mode' => :'launchMode'
|
|
146
204
|
}
|
|
147
205
|
end
|
|
148
206
|
|
|
@@ -150,9 +208,12 @@ module OCI
|
|
|
150
208
|
def self.swagger_types
|
|
151
209
|
{
|
|
152
210
|
:'compartment_id' => :'String',
|
|
211
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
|
153
212
|
:'display_name' => :'String',
|
|
213
|
+
:'freeform_tags' => :'Hash<String, String>',
|
|
154
214
|
:'image_source_details' => :'OCI::Core::Models::ImageSourceDetails',
|
|
155
|
-
:'instance_id' => :'String'
|
|
215
|
+
:'instance_id' => :'String',
|
|
216
|
+
:'launch_mode' => :'String'
|
|
156
217
|
}
|
|
157
218
|
end
|
|
158
219
|
end
|
|
@@ -1,9 +1,26 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
5
5
|
module OCI
|
|
6
6
|
class Core::Models::CreateInstanceConsoleConnectionDetails
|
|
7
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
8
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
9
|
+
#
|
|
10
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
11
|
+
#
|
|
12
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
13
|
+
attr_accessor :defined_tags
|
|
14
|
+
|
|
15
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
16
|
+
# predefined name, type, or namespace. For more information, see
|
|
17
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
18
|
+
#
|
|
19
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
20
|
+
#
|
|
21
|
+
# @return [Hash<String, String>]
|
|
22
|
+
attr_accessor :freeform_tags
|
|
23
|
+
|
|
7
24
|
# The OCID of the instance to create the console connection to.
|
|
8
25
|
# @return [String]
|
|
9
26
|
attr_accessor :instance_id
|
|
@@ -21,6 +38,14 @@ module OCI
|
|
|
21
38
|
# convert string to symbol for hash key
|
|
22
39
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
23
40
|
|
|
41
|
+
if attributes[:'definedTags']
|
|
42
|
+
self.defined_tags = attributes[:'definedTags']
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
if attributes[:'freeformTags']
|
|
46
|
+
self.freeform_tags = attributes[:'freeformTags']
|
|
47
|
+
end
|
|
48
|
+
|
|
24
49
|
if attributes[:'instanceId']
|
|
25
50
|
self.instance_id = attributes[:'instanceId']
|
|
26
51
|
end
|
|
@@ -36,6 +61,8 @@ module OCI
|
|
|
36
61
|
def ==(other_object)
|
|
37
62
|
return true if self.equal?(other_object)
|
|
38
63
|
self.class == other_object.class &&
|
|
64
|
+
defined_tags == other_object.defined_tags &&
|
|
65
|
+
freeform_tags == other_object.freeform_tags &&
|
|
39
66
|
instance_id == other_object.instance_id &&
|
|
40
67
|
public_key == other_object.public_key
|
|
41
68
|
end
|
|
@@ -49,7 +76,7 @@ module OCI
|
|
|
49
76
|
# Calculates hash code according to all attributes.
|
|
50
77
|
# @return [Fixnum] Hash code
|
|
51
78
|
def hash
|
|
52
|
-
[instance_id, public_key].hash
|
|
79
|
+
[defined_tags, freeform_tags, instance_id, public_key].hash
|
|
53
80
|
end
|
|
54
81
|
|
|
55
82
|
# Builds the object from hash
|
|
@@ -62,10 +89,10 @@ module OCI
|
|
|
62
89
|
# check to ensure the input is an array given that the the attribute
|
|
63
90
|
# is documented as an array but the input is not
|
|
64
91
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
65
|
-
self.
|
|
92
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
66
93
|
end
|
|
67
94
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
68
|
-
self.
|
|
95
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
69
96
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
70
97
|
end
|
|
71
98
|
|
|
@@ -83,7 +110,7 @@ module OCI
|
|
|
83
110
|
def to_hash
|
|
84
111
|
hash = {}
|
|
85
112
|
self.class.attribute_map.each_pair do |attr, param|
|
|
86
|
-
value =
|
|
113
|
+
value = public_method(attr).call
|
|
87
114
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
88
115
|
hash[param] = _to_hash(value)
|
|
89
116
|
end
|
|
@@ -115,6 +142,8 @@ module OCI
|
|
|
115
142
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
116
143
|
def self.attribute_map
|
|
117
144
|
{
|
|
145
|
+
:'defined_tags' => :'definedTags',
|
|
146
|
+
:'freeform_tags' => :'freeformTags',
|
|
118
147
|
:'instance_id' => :'instanceId',
|
|
119
148
|
:'public_key' => :'publicKey'
|
|
120
149
|
}
|
|
@@ -123,6 +152,8 @@ module OCI
|
|
|
123
152
|
# Attribute type mapping.
|
|
124
153
|
def self.swagger_types
|
|
125
154
|
{
|
|
155
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
|
156
|
+
:'freeform_tags' => :'Hash<String, String>',
|
|
126
157
|
:'instance_id' => :'String',
|
|
127
158
|
:'public_key' => :'String'
|
|
128
159
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -80,10 +80,10 @@ module OCI
|
|
|
80
80
|
# check to ensure the input is an array given that the the attribute
|
|
81
81
|
# is documented as an array but the input is not
|
|
82
82
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
83
|
-
self.
|
|
83
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
84
84
|
end
|
|
85
85
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
86
|
-
self.
|
|
86
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
87
87
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
88
88
|
end
|
|
89
89
|
|
|
@@ -101,7 +101,7 @@ module OCI
|
|
|
101
101
|
def to_hash
|
|
102
102
|
hash = {}
|
|
103
103
|
self.class.attribute_map.each_pair do |attr, param|
|
|
104
|
-
value =
|
|
104
|
+
value = public_method(attr).call
|
|
105
105
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
106
106
|
hash[param] = _to_hash(value)
|
|
107
107
|
end
|